Class Fog::CDN::HP::Real
In: lib/fog/hp/requests/cdn/put_container.rb
lib/fog/hp/requests/cdn/head_container.rb
lib/fog/hp/requests/cdn/post_container.rb
lib/fog/hp/requests/cdn/get_containers.rb
lib/fog/hp/requests/cdn/delete_container.rb
lib/fog/hp/cdn.rb
Parent: Object

Methods

Included Modules

Utils

Public Class methods

Public Instance methods

Delete an existing container

Parameters

  • name<~String> - Name of container to delete

List existing cdn-enabled storage containers

Parameters

  • options<~Hash>:
    • ‘enabled_only’<~Boolean> - Set to true to limit results to cdn enabled containers
    • ‘limit’<~Integer> - Upper limit to number of results returned
    • ‘marker’<~String> - Only return objects with name greater than this value

Returns

  • response<~Excon::Response>:
    • body<~Array>:
      • container<~String>: Name of container

List cdn properties for a container

Parameters

  • name<~String> - Name of container to retrieve info for

Returns

  • response<~Excon::Response>:
    • headers<~Hash>:
      • ‘X-Cdn-Enabled’<~Boolean> - cdn status for container
      • ‘X-Cdn-Uri’<~String> - cdn url for this container
      • ‘X-Ttl’<~String> - integer seconds before data expires, defaults to 86400 (1 day)
      • ‘X-Log-Retention’<~Boolean> - ?

modify CDN properties for a container

Parameters

  • name<~String> - Name for container, should be < 256 bytes and must not contain ’/’

# options<~Hash>:

  * 'X-CDN-Enabled'<~Boolean> - cdn status for container
  * 'X-CDN-URI'<~String> - cdn url for this container
  * 'X-TTL'<~String> - integer seconds before data expires, defaults to 86400 (1 day), in 900 (15 min.) to 1577836800 (50 years)
  * 'X-Log-Retention'<~Boolean> - ?

enable CDN for a container

Parameters

  • name<~String> - Name for container, should be < 256 bytes and must not contain ’/’

# options<~Hash>:

  * 'X-CDN-Enabled'<~Boolean> - cdn status for container
  * 'X-CDN-URI'<~String> - cdn url for this container
  * 'X-TTL'<~String> - integer seconds before data expires, defaults to 86400 (1 day), in 900 (15 min.) to 1577836800 (50 years)
  * 'X-Log-Retention'<~Boolean> - ?

[Validate]