GetAddonRelease - 查看接入组件信息

查看addon release(查看接入状态)。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用前面加 * 表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
cms:GetAddonReleaseget
*AddonRelease
acs:cms:{#regionId}:{#accountId}:integrationpolicy/{#PolicyId}/addonrelease/{#ReleaseName}

请求语法

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

请求参数

名称类型必填描述示例值
releaseNamestring

AddonRelease 的名称。

test-gpu-integration-name
policyIdstring

环境 ID。

policy-xxxxxxxxxxxx

返回参数

名称类型描述示例值
object
configstring

组件配置。

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

详细信息。

addonNamestring

组件 Addon 名称。

cs-gpu
alertRuleCountlong

告警规则数量。

6
conditionsarray<object>

安装阶段信息。

conditionsobject
firstTransitionTimestring

第一次转换时间。

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

最后一次转换时间。

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

详细信息。

The addon loaded successfully
statusstring

阶段状态。

True
typestring

阶段类型。

Loaded
configstring

组件配置信息。

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

接入时间。

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

大盘数量。

3
environmentIdstring

环境 ID。

policy-xxxxxxxxxxx
exporterCountlong

插件数量。

2
haveConfigboolean

是否有配置。

true
installUserIdstring

接入用户 ID。

1707xxxxxxxxxxxx
languagestring

语言。

zh
managedboolean

是否为托管组件。

true
parentAddonReleaseIdstring

父级 AddonReleaseId。

policy-xxxxxxxxxxxxx
policyIdstring

策略 ID。

policy-xxxxxxxxxxxxx
regionIdstring

区域 ID。

cn-hangzhou
releaseIdstring

Release ID。

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

Release 的名称。

test-gpu-integration-name
scenestring

组件场景。

container
statusstring

组件状态。

running
updateTimestring

更新时间。

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

所属用户 ID。

1707xxxxxxxxxxxx
versionstring

组件版本。

0.0.2
envTypestring

环境类型。

CS
workspacestring

工作空间。

default
entityRulesEntityGroupBase

实体详情。

requestIdstring

请求 ID。

0B9377D9-C56B-5C2E-A8A4-A01D6CC3F4B8

示例

正常返回示例

JSON格式

{
  "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,
    "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",
    "envType": "CS",
    "workspace": "default",
    "entityRules": {
      "workspace": "default-cms-1654218***343050-cn-hangzhou",
      "regionId": "cn-heyuan",
      "entityQueries": [
        {
          "entityType": "acs.ecs.instance",
          "spl": ".entity with(type='acs.ecs.instance') | where region_id in ('cn-beijing')"
        }
      ],
      "description": "ECS 实例",
      "entityGroupId": "eg-1234567890",
      "entityRules": {
        "ipMatchRule": [
          {
            "ipFieldKey": "hostIp",
            "ipCIDR": "192.168.0.1/10"
          }
        ],
        "instanceIds": [
          "i-bp1gj8wyq4fxk28k6iy2"
        ],
        "fieldRules": [
          {
            "op": "in",
            "fieldKey": "instanceId",
            "fieldValues": [
              "i-bp1gj8wyq4fxk28k6iy2"
            ]
          }
        ],
        "annotations": [
          {
            "op": "in",
            "tagKey": "instanceId",
            "tagValues": [
              "i-bp1gj8wyq4fxk28k6iy2\n"
            ]
          }
        ],
        "resourceGroupId": "rg-acfm2m7atreujs1",
        "entityTypes": [
          "acs.ecs.instance"
        ],
        "regionIds": [
          "cn-shanghai"
        ],
        "tags": [
          {
            "op": "in",
            "tagKey": "project",
            "tagValues": [
              "demo"
            ]
          }
        ],
        "labels": [
          {
            "op": "in",
            "tagKey": "project",
            "tagValues": [
              "demo"
            ]
          }
        ]
      },
      "entityGroupName": "ECS 全部实体",
      "userId": "1654218***343050"
    }
  },
  "requestId": "0B9377D9-C56B-5C2E-A8A4-A01D6CC3F4B8"
}

错误码

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史