Common Request Headers

Table 1 Common request headers

Parameter

Description

Mandatory

Example Value

x-sdk-date

Specifies the time when the request is sent. The time is in YYYYMMDD'T'HHMMSS'Z' format.

The value is the current GMT time of the system.

No

This parameter is mandatory for AK/SK authentication.

20150907T101459Z

Authorization

Specifies the authentication information.

The value can be obtained from the request signing result.

For details, see section Request Signing Procedure.

No

This parameter is mandatory for AK/SK authentication.

SDK-HMAC-SHA256 Credential=ZIRRKMTWPTQFQI1WKNKB/20150907//ec2/sdk_request, SignedHeaders=content-type;host;x-sdk-date, Signature=55741b610f3c9fa3ae40b5a8021ebf7ebc2a28a603fc62d25cb3bfe6608e1994

Host

Specifies the server domain name and port number of the resources being requested. The value can be obtained from the URL of the service API. The value is hostname[:port]. If the port number is not specified, the default port is used. The default port number for https is port 443.

No

This parameter is mandatory for AK/SK authentication.

code.test.com

or

code.test.com:443

Content-type

Specifies the request body MIME type.

Yes

application/json

Content-Length

Specifies the length of the request body. The unit is byte.

This parameter is mandatory for POST and PUT requests but must be left blank for GET requests.

3495

X-Project-Id

Specifies the project ID. This parameter is used to obtain the token for the project.

This parameter is mandatory for a request from a DeC or multi-project user.

No

e9993fc787d94b6c886cbaa340f9c0f4

X-Auth-Token

Specifies the user token.

No

This parameter is mandatory for token authentication.

None

NOTE:

For details about other parameters in the message header, see the HTTP protocol documentation.

Registration