This operation creates a new vault with the specified name. The name of the vault must be unique within a region for an AWS account. You can create up to 1,000 vaults per account. For information on creating more vaults, go to the Amazon Glacier product detail page.
You must use the following guidelines when naming a vault.
Names can be between 1 and 255 characters long.
Allowed characters are a–z, A–Z, 0–9, '_' (underscore), '-' (hyphen), and '.' (period).
This operation is idempotent, you can send the same request multiple times and it has no further effect after the first time Amazon Glacier creates the specified vault.
To create a vault, send an HTTP PUT request to the URI of the vault to be created.
VaultNameHTTP/1.1 Host: glacier.
SignatureValueContent-Length: 0 x-amz-glacier-version: 2012-06-01
AccountId is the AWS Account ID. This value must match the AWS Account ID associated with the credentials used to sign the request. You can either specify an AWS Account ID or optionally a single '
-' (hyphen), in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include any hyphens ('-') in the ID.
This operation does not use request parameters.
This operation uses only request headers that are common to all operations. For information about common request headers, see Common Request Headers.
The request body for this operation must be empty (0 bytes).
HTTP/1.1 201 Created x-amzn-RequestId: x-amzn-RequestId Date: Date Location: Location
A successful response includes the following response headers, in addition to the response headers that are common to all operations. For more information about common response headers, see Common Response Headers.
The relative URI path of the vault that was created.
This operation does not return a response body.
For information about Amazon Glacier exceptions and error messages, see Error Responses.
The following example sends an HTTP PUT request to create a vault named
PUT /-/vaults/examplevault HTTP/1.1 Host: glacier.us-east-1.amazonaws.com x-amz-Date: 20141123T120000Z x-amz-glacier-version: 2012-06-01 Content-Length: 0 Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20141123/us-east-1/glacier/aws4_request,SignedHeaders=host;x-amz-date;x-amz-glacier-version,Signature=9257c16da6b25a715ce900a5b45b03da0447acf430195dcb540091b12966f2a2
Amazon Glacier creates the vault and returns the relative URI path of the vault in the
Location header. The account ID is always displayed in the
Location header regardless of whether the account ID or a hyphen
-') was specified in the request.
HTTP/1.1 201 Created x-amzn-RequestId: AAABZpJrTyioDC_HsOmHae8EZp_uBSJr6cnGOLKp_XJCl-Q Date: Sun, 23 Nov 2014 12:02:00 GMT Location: /111122223333/vaults/examplevault