IObjectStorageProviderEnableStaticWebOnContainer Method (String, String, Boolean, String, Boolean, CloudIdentity) |
Namespace: net.openstack.Core.Providers
void EnableStaticWebOnContainer( string container, string css, bool listing, string region = null, bool useInternalUrl = false, CloudIdentity identity = null )
Exception | Condition |
---|---|
ArgumentNullException |
If container is .
-or- If css is . |
ArgumentException |
If container is empty.
-or- If css is empty. |
ContainerNameException | If container is not a valid container name. |
ObjectNameException | If css is not a valid object name. |
NotSupportedException |
If the provider does not support the given identity type.
-or- The specified region is not supported. -or- useInternalUrl is and the provider does not support internal URLs. |
InvalidOperationException |
If identity is and no default identity is available for the provider.
-or- If region is and no default region is available for the provider. |
CDNNotEnabledException | If the provider requires containers be CDN-enabled before they can be accessed from the web, and the CDNEnabled property is false. |
ResponseException | If the REST API request failed. |