All Products
Search
Document Center

Batch Compute:Common parameters

Last Updated:Apr 12, 2018

Batch Compute uses the common Alibaba Cloud signature method for access authorization. That is, the request header contains a field prefixed with “x-acs”, and the signature is calculated and compared for user authentication. Required fields in a header are listed as follows:

Standard headers

Name Type Description
Authorization String Signature content. This field is required. A signature is not required for this field.
Content-Length Number Actual length of the request in the body. If the request is compressed before transmission, this field is the size of the request after compression. If the request has no body, this field is 0.A signature is not required for this field.
Content-MD5 String It is the string produced after the request body is calculated with MD5. The calculation result is in uppercase. If the request has no body, skip this field.
Content-Type String Body type. The value is a string. The options are application/json and application/json-rpc. The default value is application/json.If the request has no body, skip this field.
Date String Current sending time. Currently, this field must be in RFC 822 format, using GMT. The format is %a, %d %b %Y %H:%M:%S GMT, for example, Mon, 3 Jan 2010 08:33:47 GMT. The maximum difference between the time indicated by Date and the time when the server receives the request is 15 minutes. If the difference exceeds 15 minutes, the request is rejected.
Accept String Return value required by the client. The options are application/json and application/json-rpc. By default, this field is not specified.
Host String Complete name (without http://) of the request host, for example, batchcompute.cn-qingdao.aliyuncs.com.

Custom headers

Name Type Description
x-acs-version String Current API version, for example, x.x.x.
x-acs-compress-type String Compression type. Currently, only the deflate type is supported. This field is left unspecified if the request is not compressed.
x-acs-body-rawsize Number Original body size. This field is used for decompression. If the request has no body, this field is 0. The value ranges from 0 KB to 256 KB.
x-acs-signature-method String Signature calculation method. Currently, “hmac-sha1” is supported. For more information about the signature calculation method, see [Signature rules](api-v20151111/call-method/signature.
x-acs-signature-nonce String A unique random number, used to prevent replay attacks. You must use different random numbers for different requests.
x-acs-access-id String AccessId used to access Batch Compute. By default, this field is not specified.
x-acs-request-id String Request ID that is automatically generated for log tracing.