查看addon release(查看接入状态)。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cms:GetAddonRelease |
get |
*AddonRelease
|
无 | 无 |
请求语法
GET /integration-policies/{policyId}/addon-releases/{releaseName} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| releaseName |
string |
是 |
AddonRelease 的名称 |
test-gpu-integration-name |
| policyId |
string |
是 |
环境 ID |
policy-xxxxxxxxxxxx |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| config |
string |
组件配置。 |
{"install":{"mode":"auto-install","listenPort":"9400"},"discoverMode":"instances","discover":{"instances":"worker-k8s-for-cs-c126d87c76218487e83ab322017f11b44"},"scrapeInterval":"15","enableSecuritecs-nodeyGroupInjection":"true","metricTags":""} |
| release |
object |
详细信息。 |
|
| addonName |
string |
组件 Addon 名称。 |
cs-gpu |
| alertRuleCount |
integer |
告警规则数量。 |
6 |
| conditions |
array<object> |
安装阶段信息。 |
|
|
object |
|||
| firstTransitionTime |
string |
第一次转换时间。 |
2024-11-04T16:10:22+08:00 |
| lastTransitionTime |
string |
最后一次转换时间。 |
2024-11-04T16:10:22+08:00 |
| message |
string |
详细信息。 |
The addon loaded successfully |
| status |
string |
阶段状态。 |
True |
| type |
string |
阶段类型。 |
Loaded |
| config |
string |
组件配置信息。 |
{"install":{"mode":"auto-install","listenPort":"9400"},"discoverMode":"instances","discover":{"instances":"worker-k8s-for-cs-c126d87c76218487e83ab322017f11b44"},"scrapeInterval":"15","enableSecuritecs-nodeyGroupInjection":"true","metricTags":""} |
| createTime |
string |
接入时间。 |
2024-11-04T16:10:12+08:00 |
| dashboardCount |
integer |
大盘数量。 |
3 |
| environmentId |
string |
环境 ID。 |
policy-xxxxxxxxxxx |
| exporterCount |
integer |
插件数量。 |
2 |
| haveConfig |
boolean |
是否有配置。 |
true |
| installUserId |
string |
接入用户 ID。 |
1707xxxxxxxxxxxx |
| language |
string |
语言。 |
zh |
| managed |
boolean |
是否为托管组件。 |
true |
| parentAddonReleaseId |
string |
父级 AddonReleaseId。 |
policy-xxxxxxxxxxxxx |
| policyId |
string |
策略 ID。 |
policy-xxxxxxxxxxxxx |
| regionId |
string |
区域 ID。 |
cn-hangzhou |
| releaseId |
string |
Release ID。 |
7339d808-66f9-4d40-83fa-xxxxxxxxxxx |
| releaseName |
string |
Release 的名称。 |
test-gpu-integration-name |
| scene |
string |
组件场景。 |
container |
| status |
string |
组件状态。 |
running |
| updateTime |
string |
更新时间。 |
2024-11-04T16:10:12+08:00 |
| userId |
string |
所属用户 ID。 |
1707xxxxxxxxxxxx |
| version |
string |
组件版本。 |
0.0.2 |
| envType |
string |
环境类型。 |
CS |
| workspace |
string |
工作空间。 |
default |
| entityRules | EntityGroupBase |
实体详情。 |
|
| requestId |
string |
请求 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"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。