@Beta 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") com.google.common.collect.FluentIterable<CDNContainer> list()
@Named(value="cdn:list") com.google.common.collect.FluentIterable<CDNContainer> list(ListCDNContainerOptions options)
options - the options to control output.@Named(value="cdn:get") @Nullable CDNContainer get(String containerName)
containerName - the name of the CDN Container@Named(value="cdn:enable") @Nullable URI enable(String containerName)
CDNContainer.containerName - corresponds to CDNContainer.getName().URI or null, if not found.@Named(value="cdn:enable") @Nullable URI enable(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") boolean disable(String containerName)
CDNContainer.containerName - corresponds to CDNContainer.getName().true if the container was disabled, false if not.@Named(value="cdn:purge") boolean purgeObject(String containerName, 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") boolean update(String containerName, UpdateCDNContainerOptions options)
UpdateCDNContainerOptions options.containerName - corresponds to CDNContainer.getName().options - the UpdateCDNContainerOptions options.Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.