• Cloud Server Backup Service

csbs
  1. Help Center
  2. Cloud Server Backup Service
  3. API Reference
  4. Public Parameters
  5. Common Request Headers

Common Request Headers

Table 1 General request headers

Name

Description

Mandatory

Examples

x-sdk-date

Time when the request is sent. The value is in YYYYMMDD'T'HHMMSS'Z' format.

The value is the current Greenwich Mean Time (GMT) of the system.

No

This field is mandatory for AK/SK authentication.

20150907T101459Z

Authorization

Signature authentication information

This value can be obtained from the request signing result.

For details, see Obtaining Request Authentication Information.

No

This field 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

Requested server information, which can be obtained from the URL of the service API. The value is in the hostname[:port] format. If the port number is not specified, the default port is used. The default port number for https is 443.

No

This field is mandatory for AK/SK authentication.

code.test.com

or

code.test.com:443

Content-Type

MIME type of the body in the request You are advised to use the default value application/json. For interfaces used to upload objects or images, the value can vary depending on the stream type.

Yes

application/json

Content-Length

Length of the request body. The unit is byte.

No

3495

X-Project-Id

Project ID. Obtain the project ID by following the instructions in Obtaining a Project ID.

No

e9993fc787d94b6c886cbaa340f9c0f4

X-Auth-Token

User token.

For details about how to obtain the token, see "Obtaining the User Token" in the Identity and Access Management API Reference. The token is the value of X-Subject-Token in the response.

No

This field is mandatory for token authentication.

The following is part of an example token: MIIPAgYJKoZIhvcNAQcCoIIO8zCCDu8CAQExDTALBglghkgBZQMEAgEwgg1QBgkqhkiG9w0BBwGggg1BBIINPXsidG9rZ.

NOTE:

For details about other headers, see the HTTP protocol.