AWS SDK Version 3 for .NET
API Reference

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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.Glacier.Model.DescribeVaultResponse

Namespace: Amazon.Glacier.Model
Assembly: AWSSDK.Glacier.dll
Version: 3.x.y.z

Syntax

C#
public class DescribeVaultResponse : AmazonWebServiceResponse

The DescribeVaultResponse type exposes the following members

Constructors

NameDescription
Public Method DescribeVaultResponse()

Properties

NameTypeDescription
Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property 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 2012-03-20T17:03:43.221Z.

Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property 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 2012-03-20T17:03:43.221Z.

Public Property 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 null if an inventory has not yet run on the vault, for example if you just created the vault.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property 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.

Public Property VaultARN System.String

Gets and sets the property VaultARN.

The Amazon Resource Name (ARN) of the vault.

Public Property VaultName System.String

Gets and sets the property VaultName.

The name of the vault.

Examples

The example retrieves data about a vault named my-vault.

To retrieve information about a 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;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5