Queries artifact versions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenestsupplier:ListArtifactVersions |
list |
*Artifact
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MaxResults |
integer |
No |
The number of entries to return on each page. The maximum value is 100. The default value is 20. |
20 |
| NextToken |
string |
No |
The token to retrieve the next page of results. Set this to the NextToken value from the previous call. |
AAAAAc3HCuYhJi/wvpk4xOr0VLbfVwapgMwCN1wYzPVzLbItEdB0uWSY7AGnM3qCgm/YnjuEfwSnMwiMkcUoI0hRQzE= |
| ArtifactId |
string |
Yes |
The artifact ID. To obtain the artifact ID, call the ListArtifacts operation. |
artifact-eea08d1e2d3a43aexxxx |
| Filters |
array<object> |
No |
The filter. |
|
|
object |
No |
The filter. |
||
| Name |
string |
No |
The filter name. This parameter supports querying by one or more filter names. Valid values: Status: Filters by artifact status. |
Status |
| Values |
array |
No |
The list of filter values. |
|
|
string |
No |
The filter values. A maximum of 10 values can be specified. |
Created |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
46577928-3162-15A6-9084-69820EB9xxxx |
| NextToken |
string |
The token that is used to retrieve the next page of results. If the results are not complete, this token is returned. To retrieve the next page of results, include this token in the next request. |
AAAAAc3HCuYhJi/wvpk4xOr0VLbfVwapgMwCN1wYzPVzLbItEdB0uWSY7AGnM3qCgm/YnjuEfwSnMwiMkcUoI0hRQzE= |
| MaxResults |
integer |
The number of entries returned per page. The maximum value is 100. The default value is 20. |
20 |
| TotalCount |
integer |
The total number of entries that meet the query criteria. |
2 |
| Artifacts |
array<object> |
The information about the artifact versions. |
|
|
array<object> |
The information about the artifact versions. |
||
| ArtifactId |
string |
The artifact ID. |
artifact-eea08d1e2d3a43aexxxx |
| ArtifactType |
string |
The artifact type. |
EcsImage |
| VersionName |
string |
The name of the artifact version. |
v1 |
| ArtifactVersion |
string |
The version of the artifact. |
2 |
| Status |
string |
The status of the artifact. Valid values:
|
Available |
| ArtifactProperty |
string |
The properties of the artifact. |
{\"CommodityCode\":\"cmjj0005xxxx\",\"CommodityVersion\":\"V2022xxxx\"} |
| SupportRegionIds |
string |
The IDs of the regions to which the artifact is distributed. |
[ "cn-beijing", "cn-hangzhou", "cn-shanghai" ] |
| GmtModified |
string |
The time when the artifact was last modified. |
2022-10-20T02:19:55Z |
| Progress |
string |
The distribution progress of the artifact. |
100 |
| GmtCreate |
string |
The time when the artifact was created. |
2022-10-20T02:19:53Z |
| ImageDelivery |
object |
The result of the image distribution. |
|
|
string |
The result of the image distribution. |
{ "cn-beijing":"m-2ze9swf380tsad9wxxxx", "cn-shanghai":"m-uf6d2kp5yb3fuq6ixxxx", "cn-hangzhou":"m-bp1co0b2dkon58moxxxx" } |
|
| SecurityAuditResult |
string |
The security scan result. Valid values:
|
Normal |
| ResultFile |
string |
The file that contains the security scan results. |
https://compute-nest-security-audit-bucket-ap-southeast-1.oss-ap-southeast-1.aliyuncs.com/51416747xxxx/xxxx |
| StatusDetail |
string |
The description of the artifact status. |
"/usr/local/share/aliyun-assist/work/script/t-hz04zm90y6og0sg.sh: line 1: pip: command not found" |
| ArtifactBuildProperty |
string |
The content used to build the artifact. This parameter is used for managed artifact builds. |
"{\"RegionId\":\"xxx\", \"SourceImageId\":\"xxx\", \"\":\"xxx\", \"CommandType\":\"xxx\", \"CommandContent\":\"xxx\"}" |
| ArtifactBuildType |
string |
The artifact build type. |
Dockerfile |
Examples
Success response
JSON format
{
"RequestId": "46577928-3162-15A6-9084-69820EB9xxxx",
"NextToken": "AAAAAc3HCuYhJi/wvpk4xOr0VLbfVwapgMwCN1wYzPVzLbItEdB0uWSY7AGnM3qCgm/YnjuEfwSnMwiMkcUoI0hRQzE=",
"MaxResults": 20,
"TotalCount": 2,
"Artifacts": [
{
"ArtifactId": "artifact-eea08d1e2d3a43aexxxx",
"ArtifactType": "EcsImage",
"VersionName": "v1",
"ArtifactVersion": "2",
"Status": "Available",
"ArtifactProperty": "{\\\"CommodityCode\\\":\\\"cmjj0005xxxx\\\",\\\"CommodityVersion\\\":\\\"V2022xxxx\\\"}",
"SupportRegionIds": "[\n\t\t\t\t\t\"cn-beijing\",\n\t\t\t\t\t\"cn-hangzhou\",\n\t\t\t\t\t\"cn-shanghai\"\n\t\t\t\t]",
"GmtModified": "2022-10-20T02:19:55Z",
"Progress": "100",
"GmtCreate": "2022-10-20T02:19:53Z",
"ImageDelivery": {
"key": "{\n\t\t\t\t\t\"cn-beijing\":\"m-2ze9swf380tsad9wxxxx\",\n\t\t\t\t\t\"cn-shanghai\":\"m-uf6d2kp5yb3fuq6ixxxx\",\n\t\t\t\t\t\"cn-hangzhou\":\"m-bp1co0b2dkon58moxxxx\"\n\t\t\t\t}"
},
"SecurityAuditResult": "Normal",
"ResultFile": "https://compute-nest-security-audit-bucket-ap-southeast-1.oss-ap-southeast-1.aliyuncs.com/51416747xxxx/xxxx",
"StatusDetail": "\"/usr/local/share/aliyun-assist/work/script/t-hz04zm90y6og0sg.sh: line 1: pip: command not found\"",
"ArtifactBuildProperty": "\"{\\\"RegionId\\\":\\\"xxx\\\", \\\"SourceImageId\\\":\\\"xxx\\\", \\\"\\\":\\\"xxx\\\", \\\"CommandType\\\":\\\"xxx\\\", \\\"CommandContent\\\":\\\"xxx\\\"}\"\n",
"ArtifactBuildType": "Dockerfile"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.