ListAddonReleases

Updated at:

Lists the releases of an add-on.

Operation description

Queries the list of integration configurations.

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

cms:ListAddonReleases

list

*AddonRelease

acs:cms:{#regionId}:{#accountId}:integrationpolicy/{#PolicyId}/addonrelease/*

None None

Request syntax

GET /integration-policies/{policyId}/addon-releases HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

policyId

string

Yes

The policy environment ID.

policy-xxxxxxxxxxxx

Request parameters

Parameter

Type

Required

Description

Example

addonName

string

No

The add-on name.

cs-gpu

parentAddonReleaseId

string

No

The parent add-on release ID.

policy-xxxxxxxxxxxxx

nextToken

string

No

The next token for pagination.

0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

maxResults

string

No

The maximum number of results to return.

10

Response elements

Element

Type

Description

Example

object

The response data.

nextToken

string

The token used to query the next page.

0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

releases

array<object>

The collection of onboarded component information.

array<object>

The collection of onboarded component information.

addonName

string

The name of the add-on.

cs-gpu

alertRuleCount

integer

The number of alert rules.

6

apiVersion

string

The version number.

2023-03-30

conditions

array<object>

The installation phase conditions.

object

The installation phase conditions.

firstTransitionTime

string

The time of the first transition.

2024-11-04T16:10:22+08:00

lastTransitionTime

string

The time of the last transition.

2024-11-04T16:10:22+08:00

message

string

The detailed information.

The addon loaded successfully

status

string

The status of the phase.

True

type

string

The type of the phase.

Loaded

config

string

The configuration information of the component.

{"install":{"mode":"auto-install","listenPort":"9400"},"discoverMode":"instances","discover":{"instances":"worker-k8s-for-cs-c126d87c76218487e83ab322017f11b44"},"scrapeInterval":"15","enableSecuritecs-nodeyGroupInjection":"true","metricTags":""}

createTime

string

The onboarding time.

2024-11-04T16:10:12+08:00

dashboardCount

integer

The number of dashboards.

3

entityRules EntityGroupBase

The entity details.

envType

string

The type of the environment.

CS

environmentId

string

The ID of the environment.

policy-xxxxxxxxxxxx

exporterCount

integer

The number of plug-ins.

2

haveConfig

boolean

Indicates whether a configuration exists.

true

installUserId

string

The ID of the onboarding user.

175xxxxxxxxx

language

string

The language.

zh

managed

boolean

Indicates whether the component is managed.

true

nextVersion

string

The starting version number of the remaining list.

None

parentAddonReleaseId

string

The parent add-on release ID.

policy-xxxxxxxxxxxxxx

policyId

string

The ID of the policy.

policy-xxxxxxxxxxxxxx

regionId

string

The region ID.

cn-hangzhou

releaseId

string

The release ID.

7339d808-66f9-4d40-83fa-xxxxxxxxxxx

releaseName

string

The name of the release.

test-gpu-integration-name

scene

string

The scenario of the component.

container

status

string

The status.

running

subAddonRelease

object

The statistics information of the sub-add-on release.

ready

integer

The number of ready sub-releases.

2

total

integer

The total number of sub-releases.

3

updateTime

string

The update time.

2024-11-04T16:10:23+08:00

userId

string

The ID of the associated user.

175xxxxxxxxxxxxx

version

string

The version of the component.

0.0.2

workspace

string

The workspace.

default

requestId

string

The request ID.

CD8BA7D6-995D-578D-9941-78B0FECD14B5

total

integer

The total number of components.

1

Examples

Success response

JSON format

{
  "nextToken": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
  "releases": [
    {
      "addonName": "cs-gpu",
      "alertRuleCount": 6,
      "apiVersion": "2023-03-30",
      "conditions": [
        {
          "firstTransitionTime": "2024-11-04T16:10:22+08:00",
          "lastTransitionTime": "2024-11-04T16:10:22+08:00",
          "message": "The addon loaded successfully",
          "status": "True",
          "type": "Loaded"
        }
      ],
      "config": "{\"install\":{\"mode\":\"auto-install\",\"listenPort\":\"9400\"},\"discoverMode\":\"instances\",\"discover\":{\"instances\":\"worker-k8s-for-cs-c126d87c76218487e83ab322017f11b44\"},\"scrapeInterval\":\"15\",\"enableSecuritecs-nodeyGroupInjection\":\"true\",\"metricTags\":\"\"}",
      "createTime": "2024-11-04T16:10:12+08:00",
      "dashboardCount": 3,
      "entityRules": {
        "description": "ECS instance",
        "entityGroupId": "eg-1234567890",
        "entityGroupName": "All ECS entities",
        "entityQueries": [
          {
            "entityType": "acs.ecs.instance",
            "spl": ".entity with(type='acs.ecs.instance') | where region_id in ('cn-beijing')"
          }
        ],
        "entityRules": {
          "annotations": [
            {
              "op": "in",
              "tagKey": "instanceId",
              "tagValues": [
                "i-bp1gj8wyq4fxk28k6iy2\n"
              ]
            }
          ],
          "entityTypes": [
            "acs.ecs.instance"
          ],
          "fieldRules": [
            {
              "fieldKey": "instanceId",
              "fieldValues": [
                "i-bp1gj8wyq4fxk28k6iy2"
              ],
              "op": "in"
            }
          ],
          "instanceIds": [
            "i-bp1gj8wyq4fxk28k6iy2"
          ],
          "ipMatchRule": {
            "ipCIDR": "192.168.0.0/16",
            "ipFieldKey": "ecs_ip"
          },
          "labels": [
            {
              "op": "in",
              "tagKey": "project",
              "tagValues": [
                "demo"
              ]
            }
          ],
          "regionIds": [
            "cn-shanghai"
          ],
          "resourceGroupId": "rg-acfm2m7atreujs1",
          "tags": [
            {
              "op": "in",
              "tagKey": "project",
              "tagValues": [
                "demo"
              ]
            }
          ]
        },
        "regionId": "cn-heyuan",
        "userId": "1654218***343050",
        "workspace": "default-cms-1654218***343050-cn-hangzhou"
      },
      "envType": "CS",
      "environmentId": "policy-xxxxxxxxxxxx",
      "exporterCount": 2,
      "haveConfig": true,
      "installUserId": "175xxxxxxxxx",
      "language": "zh",
      "managed": true,
      "nextVersion": "None",
      "parentAddonReleaseId": "policy-xxxxxxxxxxxxxx",
      "policyId": "policy-xxxxxxxxxxxxxx",
      "regionId": "cn-hangzhou",
      "releaseId": "7339d808-66f9-4d40-83fa-xxxxxxxxxxx",
      "releaseName": "test-gpu-integration-name",
      "scene": "container",
      "status": "running",
      "subAddonRelease": {
        "ready": 2,
        "total": 3
      },
      "updateTime": "2024-11-04T16:10:23+08:00",
      "userId": "175xxxxxxxxxxxxx",
      "version": "0.0.2",
      "workspace": "default"
    }
  ],
  "requestId": "CD8BA7D6-995D-578D-9941-78B0FECD14B5",
  "total": 1
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.