IObjectStorageProviderGetObjectMetaData Method |
Namespace: net.openstack.Core.Providers
Dictionary<string, string> GetObjectMetaData( string container, string objectName, string region = null, bool useInternalUrl = false, CloudIdentity identity = null )
Exception | Condition |
---|---|
ArgumentNullException |
If container is .
-or- If objectName is . |
ArgumentException |
If container is empty.
-or- If objectName is empty. |
ContainerNameException | If container is not a valid container name. |
ObjectNameException | If objectName 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. |
ResponseException | If the REST API request failed. |
This call returns information for the first replicant of the object located in the distributed storage system. If changes were made to the specified object that are not yet fully replicated through the storage system, the results of this call may not match the most recent information uploaded to Object Storage.
Notes to Implementers |
---|
The resulting Dictionary<string, string> should use the OrdinalIgnoreCase equality comparer to ensure lookups are not case sensitive. |