@Beta @Consumes(value="application/json") public interface CDNApi extends Closeable
publicURL
noted in the service catalog for Cloud Files during Authentication and set the
X-CDN-Enabled header to true.org.jclouds.rackspace.cloudfiles.v1.CloudFilesApi#getCDNApi(String)}| Modifier and Type | Method and Description |
|---|---|
boolean |
disable(String containerName)
Disables the
CDNContainer. |
URI |
enable(String containerName)
Enables the
CDNContainer. |
URI |
enable(String containerName,
int ttl)
Enables the
CDNContainer with a TTL. |
CDNContainer |
get(String containerName)
Gets the specified CDN Container.
|
com.google.common.collect.FluentIterable<CDNContainer> |
list()
Lists up to 10,000 CDN containers.
|
com.google.common.collect.FluentIterable<CDNContainer> |
list(ListCDNContainerOptions options)
Lists CDN containers, with the given options.
|
boolean |
purgeObject(String containerName,
String objectName,
Iterable<String> emails)
Purges an object from the CDN.
|
boolean |
update(String containerName,
UpdateCDNContainerOptions options)
Updates a CDN container with the supplied
UpdateCDNContainerOptions options. |
@Named(value="cdn:list") @GET @Path(value="/") com.google.common.collect.FluentIterable<CDNContainer> list()
@Named(value="cdn:list") @GET @Path(value="/") com.google.common.collect.FluentIterable<CDNContainer> list(ListCDNContainerOptions options)
options - the options to control output.@Named(value="cdn:get")
@HEAD
@Path(value="/{container}")
@Nullable
CDNContainer get(@PathParam(value="container")
String containerName)
containerName - the name of the CDN Container@Named(value="cdn:enable")
@PUT
@Path(value="/{containerName}")
@Nullable
URI enable(@PathParam(value="containerName")
String containerName)
CDNContainer.containerName - corresponds to CDNContainer.getName().URI or null, if not found.@Named(value="cdn:enable")
@PUT
@Path(value="/{containerName}")
@Nullable
URI enable(@PathParam(value="containerName")
String containerName,
@HeaderParam(value="X-Ttl")
int ttl)
CDNContainer with a TTL.containerName - corresponds to CDNContainer.getName().ttl - the TTL for the CDN Container.URI or null, if not found.@Named(value="cdn:disable")
@PUT
@Path(value="/{containerName}")
boolean disable(@PathParam(value="containerName")
String containerName)
CDNContainer.containerName - corresponds to CDNContainer.getName().true if the container was disabled, false if not.@Named(value="cdn:purge")
@DELETE
@Path(value="/{containerName}/{objectName}")
boolean purgeObject(@PathParam(value="containerName")
String containerName,
@PathParam(value="objectName")
String objectName,
Iterable<String> emails)
containerName - corresponds to CDNContainer.getName().objectName - the object in the CDNContainer to purge.emails - the email addresses to notify after purging.true if the object was successfully purged, false if not.@Named(value="cdn:update")
@POST
@Path(value="/{containerName}")
boolean update(@PathParam(value="containerName")
String containerName,
UpdateCDNContainerOptions options)
UpdateCDNContainerOptions options.containerName - corresponds to CDNContainer.getName().options - the UpdateCDNContainerOptions options.Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.