AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Contains the Amazon S3 Glacier response to your request.
Namespace: Amazon.Glacier.Model
Assembly: AWSSDK.Glacier.dll
Version: 3.x.y.z
public class DescribeVaultResponse : AmazonWebServiceResponse
The DescribeVaultResponse type exposes the following members
Name | Description | |
---|---|---|
DescribeVaultResponse() |
Name | Type | Description | |
---|---|---|---|
ContentLength | System.Int64 | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
CreationDate | System.DateTime |
Gets and sets the property CreationDate.
The Universal Coordinated Time (UTC) date when the vault was created. This value should
be a string in the ISO 8601 date format, for example |
|
HttpStatusCode | System.Net.HttpStatusCode | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
LastInventoryDate | System.DateTime |
Gets and sets the property LastInventoryDate.
The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed the last
vault inventory. This value should be a string in the ISO 8601 date format, for example
|
|
NumberOfArchives | System.Int64 |
Gets and sets the property NumberOfArchives.
The number of archives in the vault as of the last inventory date. This field will
return |
|
ResponseMetadata | Amazon.Runtime.ResponseMetadata | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
SizeInBytes | System.Int64 |
Gets and sets the property SizeInBytes. Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example if you just created the vault. |
|
VaultARN | System.String |
Gets and sets the property VaultARN. The Amazon Resource Name (ARN) of the vault. |
|
VaultName | System.String |
Gets and sets the property VaultName. The name of the vault. |
The example retrieves data about a vault named my-vault.
var client = new AmazonGlacierClient(); var response = client.DescribeVault(new DescribeVaultRequest { AccountId = "-", VaultName = "my-vault" }); string creationDate = response.CreationDate; long numberOfArchives = response.NumberOfArchives; long sizeInBytes = response.SizeInBytes; string vaultARN = response.VaultARN; string vaultName = response.VaultName;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5