All Products
Search
Document Center

Compute Nest:ListArtifactVersions

Last Updated:Oct 23, 2025

Queries artifact versions.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

computenestsupplier:ListArtifactVersions

list

*Artifact

acs:computenestsupplier:*:{#accountId}:artifact/{#ArtifactId}

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:

  • Created: The artifact is created.

  • Scanning: The artifact is being scanned.

  • ScanFailed: The artifact failed to be scanned.

  • Delivering: The artifact is being distributed.

  • Available: The artifact is available.

  • Deleted: The artifact is deleted.

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: The artifact is normal and has no threats.

  • AtRisk: The artifact has security threats.

  • Processing: The security scan is in progress.

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.