GetAddonRelease

Updated at:

Queries the details of an add-on release to check the accessed state.

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:GetAddonRelease

get

*AddonRelease

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

None None

Request syntax

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

Path Parameters

Parameter

Type

Required

Description

Example

releaseName

string

Yes

The name of the add-on release.

test-gpu-integration-name

policyId

string

Yes

The environment ID.

policy-xxxxxxxxxxxx

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

config

string

The component configuration.

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

release

object

The detailed information.

addonName

string

The name of the add-on component.

cs-gpu

alertRuleCount

integer

The number of alert rules.

6

conditions

array<object>

The installation phase information.

object

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 phase status.

True

type

string

The phase type.

Loaded

config

string

The component configuration information.

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

createTime

string

The provisioning time.

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

dashboardCount

integer

The number of dashboards.

3

entityRules EntityGroupBase

The entity details.

envType

string

The environment type.

CS

environmentId

string

The environment ID.

policy-xxxxxxxxxxx

exporterCount

integer

The number of plugins.

2

haveConfig

boolean

Specifies whether a configuration exists.

true

installUserId

string

The ID of the user who provisioned the component.

1707xxxxxxxxxxxx

language

string

The language.

zh

managed

boolean

Specifies whether the component is managed.

true

parentAddonReleaseId

string

The parent AddonRelease ID.

policy-xxxxxxxxxxxxx

policyId

string

The policy ID.

policy-xxxxxxxxxxxxx

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 component scenario.

container

status

string

The component status.

running

updateTime

string

The update time.

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

userId

string

The ID of the user to whom the component belongs.

1707xxxxxxxxxxxx

version

string

The component version.

0.0.2

workspace

string

The workspace.

default

requestId

string

The request ID.

0B9377D9-C56B-5C2E-A8A4-A01D6CC3F4B8

Examples

Success response

JSON format

{
  "config": "{\"install\":{\"mode\":\"auto-install\",\"listenPort\":\"9400\"},\"discoverMode\":\"instances\",\"discover\":{\"instances\":\"worker-k8s-for-cs-c126d87c76218487e83ab322017f11b44\"},\"scrapeInterval\":\"15\",\"enableSecuritecs-nodeyGroupInjection\":\"true\",\"metricTags\":\"\"}",
  "release": {
    "addonName": "cs-gpu",
    "alertRuleCount": 6,
    "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": {
      "entityGroupId": "eg-1234567890",
      "entityGroupName": "All ECS entities",
      "userId": "1654218***343050",
      "workspace": "default-cms-1654218***343050-cn-hangzhou",
      "description": "ECS instance",
      "regionId": "cn-heyuan",
      "entityQueries": [
        {
          "spl": ".entity with(type='acs.ecs.instance') | where region_id in ('cn-beijing')",
          "entityType": "acs.ecs.instance"
        }
      ],
      "entityRules": {
        "resourceGroupId": "rg-acfm2m7atreujs1",
        "ipMatchRule": {
          "ipFieldKey": "ecs_ip",
          "ipCIDR": "192.168.0.0/16"
        },
        "tags": [
          {
            "tagKey": "project",
            "op": "in",
            "tagValues": [
              "demo"
            ]
          }
        ],
        "instanceIds": [
          "i-bp1gj8wyq4fxk28k6iy2"
        ],
        "entityTypes": [
          "acs.ecs.instance"
        ],
        "regionIds": [
          "cn-shanghai"
        ],
        "labels": [
          {
            "tagKey": "project",
            "op": "in",
            "tagValues": [
              "demo"
            ]
          }
        ],
        "annotations": [
          {
            "tagKey": "instanceId",
            "op": "in",
            "tagValues": [
              "i-bp1gj8wyq4fxk28k6iy2\n"
            ]
          }
        ],
        "fieldRules": [
          {
            "fieldKey": "instanceId",
            "op": "in",
            "fieldValues": [
              "i-bp1gj8wyq4fxk28k6iy2"
            ]
          }
        ]
      }
    },
    "envType": "CS",
    "environmentId": "policy-xxxxxxxxxxx",
    "exporterCount": 2,
    "haveConfig": true,
    "installUserId": "1707xxxxxxxxxxxx",
    "language": "zh",
    "managed": true,
    "parentAddonReleaseId": "policy-xxxxxxxxxxxxx",
    "policyId": "policy-xxxxxxxxxxxxx",
    "regionId": "cn-hangzhou",
    "releaseId": "7339d808-66f9-4d40-83fa-xxxxxxxxxxx",
    "releaseName": "test-gpu-integration-name",
    "scene": "container",
    "status": "running",
    "updateTime": "2024-11-04T16:10:12+08:00",
    "userId": "1707xxxxxxxxxxxx",
    "version": "0.0.2",
    "workspace": "default"
  },
  "requestId": "0B9377D9-C56B-5C2E-A8A4-A01D6CC3F4B8"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.