GetAddonRelease
Queries the details of an add-on release to check the accessed state.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:GetAddonRelease |
get |
*AddonRelease
|
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.