Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Mei, Sai <meisai@huawei.com> Co-committed-by: Mei, Sai <meisai@huawei.com>
7.7 KiB
Common Request Headers
Parameter |
Description |
Mandatory |
Example Value |
---|---|---|---|
x-sdk-date |
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 |
Authentication information. The value can be obtained from the request signing result. For details, see Signing a Request. |
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 |
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 443. |
No This parameter is mandatory for AK/SK authentication. |
code.test.com or code.test.com:443 |
Content-type |
Request body MIME type. |
Yes |
application/json |
Content-Length |
Length of the request body, expressed in bytes. |
This parameter is mandatory for POST and PUT requests but must be left blank for GET requests. |
3495 |
X-Project-Id |
Project ID. This parameter is used to obtain the token for the project. |
No |
e9993fc787d94b6c886cbaa340f9c0f4 |
X-Auth-Token |
User token. |
Yes This parameter is mandatory for token authentication. |
None |