To call a City Visual Intelligence Engine API, send an HTTP GET request to its endpoint. Include the required parameters in the request. The system returns a result. Both the request and the response are encoded in the UTF-8 character set.
Request structure
City Visual Intelligence Engine provides Remote Procedure Call (RPC) APIs. You can call these APIs by sending HTTP GET requests.
The request structure is as follows:
http://Endpoint/?Action=xx&Parameters
Where:
- Endpoint: The service endpoint for the City Visual Intelligence Engine API is cityvisual.[RegionId].aliyuncs.com.
- Action: The operation to perform. For example, call DescribeInstances to query existing City Visual Intelligence Engine instances.
- Version: The API version to use. The API version of City Visual Intelligence Engine is 2018-10-30.
- Parameters: The request parameters. Separate each parameter with an ampersand (&).
Request parameters include common parameters and API-specific parameters. Common parameters include information such as the API version and identity verification. For more information, see Common parameters.
The following example shows how to call the DescribeInstances operation to query the details of existing City Visual Intelligence Engine instances:
Note The examples in this document are formatted for readability.
https://cityvisua.cn-shanghai.aliyuncs.com/?Action=DescribeInstances
&RegionId=cn-shanghai
&Format=JSON
&Version=2018-10-30
&Signature=xxxx%xxxx%3D
&SignatureMethod=HMAC-SHA1
&SignatureNonce=15215528852396
&SignatureVersion=1.0
&AccessKeyId=key-test
&TimeStamp=2019-09-01T12:00:00Z
…
该文章对您有帮助吗?