Common request parameters

Updated at:

The Alibaba Cloud Visual Intelligence API is a Remote Procedure Call (RPC) API. All API calls must include common request parameters.

Request example

http://goodstech.cn-shanghai.aliyuncs.com/?Signature=NAxwl1W9ROkidJfGeZrsKUXw%2BQ****
&AccessKeyId=testId
&Action=ClassifyCommodity
&Format=JSON
&RegionId=cn-shanghai
&SignatureMethod=HMAC-SHA1
&SignatureNonce=313ef0fb-0393-464f-a6e2-59d9ca2585b1
&SignatureVersion=1.0
&Timestamp=2019-10-12T08%3A18%3A18Z
&Version=2019-12-30

Request parameters

Name

Type

Required

Description

Signature

String

Yes

The final signature string for the request. To learn how to generate a signature, see Request signature.

AccessKeyId

String

Yes

The AccessKey ID used to access the service. For more information, see Create an AccessKey.

Action

String

Yes

The name of the API operation.

Format

String

No

The format of the response.

Valid values: JSON (default) and XML.

RegionId

String

No

The ID of the region where the API is supported.

Example: cn-shanghai.

SignatureMethod

String

Yes

The signature method.

The value must be HMAC-SHA1.

SignatureNonce

String

Yes

A unique random number for the signature that prevents replay attacks. Use a different random number for each request. In Java, you can generate this value using java.util.UUID.randomUUID().

SignatureVersion

String

Yes

The signature algorithm version.

The value must be 1.0.

Timestamp

String

Yes

The timestamp of the request. The timestamp must be in UTC and in the ISO 8601 standard format: YYYY-MM-DDThh:mm:ssZ.

For example, 2019-10-13T10:00:00Z is equivalent to 18:00:00 on October 13, 2019 (UTC+8).

Version

String

Yes

The version number of the API. The format is YYYY-MM-DD.

The value must be 2019-12-30.