Queries a list of artifacts.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenestsupplier:ListArtifacts |
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 query token. Set it to the NextToken value returned from the previous API call. |
AAAAAc3HCuYhJi/wvpk4xOr0VLbfVwapgMwCN1wYzPVzLbItEdB0uWSY7AGnM3qCgm/YnjuEfwSnMwiMkcUoI0hRQzE= |
| Filter |
array<object> |
No |
The filter. |
|
|
object |
No |
The filter. |
||
| Name |
string |
No |
The name of the filter. You can specify one or more filter names to query artifacts. Valid values:
|
ArtifactType |
| Values |
array |
No |
A list of filter values. |
|
|
string |
No |
The list of filter values. You can specify from 1 to 10 values. |
value1 |
|
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-aek25yfxxxxxxxx |
| Tag |
array<object> |
No |
The tag. |
|
|
object |
No |
The tag. |
||
| Key |
string |
No |
The tag key. |
key1 |
| Value |
string |
No |
The tag value. |
value1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
46577928-3162-15A6-9084-69820EB9xxxx |
| NextToken |
string |
The query token. Set it to the NextToken value returned from the previous API call. |
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 filter criteria. |
2 |
| Artifacts |
array<object> |
The information about the artifacts. |
|
|
array<object> |
The information about the artifacts. |
||
| ArtifactId |
string |
The artifact ID. |
artifact-eea08d1e2d3a43aexxxx |
| ArtifactType |
string |
The artifact type. |
EcsImage |
| Name |
string |
The artifact name. |
Name |
| MaxVersion |
string |
The latest version. |
2 |
| Description |
string |
The description of the artifact. |
Description |
| GmtModified |
string |
The time when the artifact was modified. |
2022-10-20T02:19:55Z |
| Status |
string |
The status of the artifact. Valid values:
|
Created |
| ResourceGroupId |
string |
The resource group ID. |
rg-aek25rexxxxxxxx |
| Tags |
array<object> |
The tags. |
|
|
object |
The tag. |
||
| Key |
string |
The tag key. |
key1 |
| Value |
string |
The tag value. |
value1 |
| ArtifactBuildProperty |
string |
The content used to build the artifact. This parameter is used for hosted artifact builds. |
{\"CodeRepo\":{\"Owner\":\"wenle\",\"Platform\":\"github\",\"Branch\":\"main\",\"RepoName\":\"aliyun-computenest/java-springboot-demo\"}} |
| PermissionType |
string |
The permission field. This parameter is valid for artifacts of the container image, Helm chart, and file types. For other types of artifacts, you can only change the permission from Automatic to Public. Valid values:
|
Public |
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",
"Name": "Name",
"MaxVersion": "2",
"Description": "Description",
"GmtModified": "2022-10-20T02:19:55Z",
"Status": "Created",
"ResourceGroupId": "rg-aek25rexxxxxxxx",
"Tags": [
{
"Key": "key1",
"Value": "value1"
}
],
"ArtifactBuildProperty": "{\\\"CodeRepo\\\":{\\\"Owner\\\":\\\"wenle\\\",\\\"Platform\\\":\\\"github\\\",\\\"Branch\\\":\\\"main\\\",\\\"RepoName\\\":\\\"aliyun-computenest/java-springboot-demo\\\"}}",
"PermissionType": "Public"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.