AWS Storage Gateway User Guide
Required Request Headers
API Reference for AWS Storage
Gateway
In addition to using the console, you can use the AWS Storage Gateway API to programmatically
configure and manage your gateways. This section describes the AWS Storage Gateway operations,
request signing for authentication and the error handling. For information about the regions and
endpoints available for AWS Storage Gateway, see
Note
You can also use the AWS SDKs when developing applications with AWS Storage Gateway. The
AWS SDKs for Java, .NET, and PHP wrap the underlying AWS Storage Gateway API, simplifying
your programming tasks. For information about downloading the SDK libraries, see
Topics
•
AWS Storage Gateway Required Request Headers (p. 399)
•
•
•
AWS Storage Gateway Required Request Headers
This section describes the required headers that you must send with every POST request to AWS
Storage Gateway. You include HTTP headers to identify key information about the request including the
operation you want to invoke, the date of the request, and information that indicates the authorization
of you as the sender of the request. Headers are case insensitive and the order of the headers is not
important.
The following example shows headers that are used in the
POST / HTTP/1.1
Host: storagegateway.us-east-2.amazonaws.com.cn
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20120425/us-east-2/
storagegateway/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-target,
Signature=9cd5a3584d1d67d57e61f120f35102d6b3649066abdd4bf4bbcf05bd9f2f8fe2
x-amz-date: 20120912T120000Z
x-amz-target: StorageGateway_20120630.ActivateGateway
The following are the headers that must include with your POST requests to AWS Storage Gateway.
Headers shown below that begin with "x-amz" are AWS-specific headers. All other headers listed are
common header used in HTTP transactions.
Header
Description
Authorization
The authorization header contains several of pieces of information about the
request that enable AWS Storage Gateway to determine if the request is a
API Version 2013-06-30
399