To call an API operation of Container Registry Enterprise Edition, you need to send an HTTP request using the GET method to the API endpoint of Container Registry Enterprise Edition. You must include required parameters in the valid format in an API request to ensure the desired response. Requests and responses are encoded by using the UTF-8 character set.
Request syntax
Container Registry Enterprise Edition APIs use RPC style. You can call Container Registry Enterprise Edition APIs by sending HTTP GET requests.
http://Endpoint/?Action=xx&Parameters
- Endpoint: the endpoint of the Container Registry Enterprise Edition API. Valid value: cr.[regionId].aliyuncs.com.
- Action: the operation that you want to perform, for example, GetInstance. You can call this operation to query Container Registry Enterprise Edition instances that have been created.
- Version: the version of the API. The API version of Container Registry Enterprise Edition is 2018-12-01.
- Parameters: the request parameters for the operation. Separate multiple parameters with ampersands
(&).
Request parameters include both common parameters and operation-specific parameters. Common parameters include the API version and authentication-related parameters. For more information, see Common parameters.
http(s)://[Endpoint]/? Action=GetInstance
&InstanceId=cri-xkx6vujuhay0tasd
&Format=xml
&Version=2018-12-01
&Signature=xxxx%xxxx%3D
&SignatureMethod=HMAC-SHA1
&SignatureNonce=15215528852396
&SignatureVersion=1.0
&AccessKeyId=key-test
&TimeStamp=2012-06-01T12:00:00Z
...