Queries the information about the image of an application.
Debugging
Request headers
This operation uses only common request headers. For more information, see Common request parameters and common response parameters.
Request syntax
GET /pop/v1/sam/container/describeApplicationImage HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
AppId | String | Query | Yes | d700e680-aa4d-4ec1-afc2-6566b5ff**** | The ID of the application. |
ImageUrl | String | Query | Yes | registry-vpc.cn-hangzhou.aliyuncs.com/demo/demo:latest | The URL of the image. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** | The ID of the request. |
Message | String | success | The returned message.
|
TraceId | String | 0a98a02315955564772843261e**** | The ID of the trace. It is used to query the details of a request. |
Data | Object | The information about the image of an application. |
|
Logo | String | Reserved parameter | This parameter is reserved. |
RepoOriginType | String | ALI_HUB | The type of the repository. Only Container Registry is supported. |
CrUrl | String | Reserved parameter | This parameter is reserved. |
RepoTag | String | latest | The tag of the image. |
RepoType | String | Reserved parameter | This parameter is reserved. |
RepoName | String | demo | The name of the repository. |
RepoNamespace | String | demo | The name of the namespace to which the repository belongs. |
RegionId | String | cn-beijing | The ID of the region. |
ErrorCode | String | This parameter is left empty. | The error code.
|
Code | String | 200 | The HTTP status code. Valid values:
|
Success | Boolean | true | Indicates whether the image information was obtained. Valid values:
|
Examples
Sample requests
GET /pop/v1/sam/container/describeApplicationImage?AppId=d700e680-aa4d-4ec1-afc2-6566b5ff****&ImageUrl=registry-vpc.cn-hangzhou.aliyuncs.com/demo/demo:latest HTTP/1.1
Host:sae.aliyuncs.com
Content-Type:application/json
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeApplicationImageResponse>
<RequestId>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</RequestId>
<Message>success</Message>
<TraceId>0a98a02315955564772843261e****</TraceId>
<Data>
<Logo>Reserved</Logo>
<RepoOriginType>ALI_HUB</RepoOriginType>
<CrUrl> Reserved</CrUrl>
<RepoTag>latest</RepoTag>
<RepoType>Reserved</RepoType>
<RepoName>demo</RepoName>
<RepoNamespace>demo</RepoNamespace>
<RegionId>cn-beijing</RegionId>
</Data>
<Code>200</Code>
<Success>true</Success>
</DescribeApplicationImageResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message" : "success",
"TraceId" : "0a98a02315955564772843261e****",
"Data" : {
"Logo": "Reserved",
"RepoOriginType" : "ALI_HUB",
"CrUrl": "Reserved",
"RepoTag" : "latest",
"RepoType": "Reserved",
"RepoName" : "demo",
"RepoNamespace" : "demo",
"RegionId" : "cn-beijing"
},
"Code" : "200",
"Success" : true
}
Error codes
For a list of error codes, visit the API Error Center.