GetIntegrationPolicy
Queries Access Center policy information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:GetIntegrationPolicy |
get |
*integrationPolicy
|
None | None |
Request syntax
GET /integration-policies/{policyId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| policyId |
string |
Yes |
The policy ID. |
policy-ac38a7cb02d14ff48bc9f97d0a75063e |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| policy |
object |
The access policy. |
|
| bindResource |
object |
The bound resource information. |
|
| clusterId |
string |
The cluster ID. |
00b1630f02814f95a9bce717d8d56bb2 |
| clusterType |
string |
The cluster type. |
ManagedKubernetes |
| vpcCidr |
string |
The VPC CIDR block. |
10.12.0.1/16 |
| vpcId |
string |
The VPC ID. |
vpc-2zegqpeyxplhtmdg70xnr |
| entityUserId |
string |
The UID of the actual owner of the bound resource in cross-account scenarios. |
12xxxx |
| entityGroup |
object |
The entity group. |
|
| description |
string |
The description. |
Access policy for production environment resources |
| entityGroupId |
string |
The entity group ID. |
eg-b79f65d11fb94e779867cf937c3a3002 |
| entityGroupName |
string |
The entity group name. |
prod-database |
| entityRules |
object |
The entity rules. |
|
| annotations |
array<object> |
The annotations. |
|
|
object |
The annotations. |
||
| op |
string |
The operation performed. |
add |
| tagKey |
string |
The tag key. |
use |
| tagValues |
array |
The tag values. |
|
|
string |
The tag values. |
db |
|
| entityTypes |
array |
The list of entity types. |
|
|
string |
The entity type. |
CS |
|
| fieldRules |
array<object> |
The list of property rules. |
|
|
object |
The property rule. |
||
| fieldKey |
string |
The unique identifier of the field. |
test |
| fieldValues |
array |
The field content. |
|
|
string |
The field content. |
test-value |
|
| op |
string |
The operation performed. |
add |
| instanceIds |
array |
The instance IDs. |
|
|
string |
The instance IDs. |
i-uf6bsi1aivfbn581buj6,i-uf6eu25p75drryo4712u |
|
| ipMatchRule |
object |
The IP address matching rule. |
|
| ipCidr |
string |
The IP CIDR block. |
10.10.0.1/16 |
| ipFieldKey |
string |
The key of the IP address field. |
test-key |
| labels |
array<object> |
The labels. |
|
|
object |
The tag key. |
||
| op |
string |
The operation performed. |
add |
| tagKey |
string |
The tag key of the instance. |
key1 |
| tagValues |
array |
The list of tag values. |
|
|
string |
The tag values. |
value1 |
|
| regionIds |
array |
The list of region IDs. |
|
|
string |
The region ID. |
cn-beijing |
|
| resourceGroupId |
string |
The resource group ID. |
rg-aek3aqsuvlv3yyq |
| tags |
array<object> |
The tag values. |
|
|
object |
The value of the resource tag. |
||
| op |
string |
The operation performed. |
add |
| tagKey |
string |
The tag key of the instance. |
key2 |
| tagValues |
array |
The list of tag values. |
|
|
string |
The tag values. |
values |
|
| regionId |
string |
The region ID. |
cn-heyuan |
| userId |
string |
The user ID. |
u123456 |
| workspace |
string |
The workspace. |
test-api |
| query |
string |
The query condition. |
status: 200 AND totalTime > 0.5 |
| managedInfo |
object |
The policy management information. |
|
| securityGroupId |
string |
The security group ID. |
sg-xxxxxx |
| vswitchId |
string |
The vSwitch ID. |
vsw-xxxxxxxxx |
| policyId |
string |
The policy ID. |
policy-c9efed2b99c348d49e589c5f780fc074 |
| policyName |
string |
The policy name. |
ControlPolicy4DetailVportInfo |
| policyType |
string |
The access policy type. |
CS |
| regionId |
string |
The region ID. |
cn-heyuan |
| resourceGroupId |
string |
The resource group ID. |
rg-xxxxx |
| tags |
array<object> |
The tag key. |
|
|
object |
The labels. |
||
| key |
string |
The tag key. |
use |
| value |
string |
The tag value. |
db |
| userId |
string |
The user ID. |
u123456 |
| workspace |
string |
The workspace. |
prometheus |
| csUmodelStatus |
boolean |
The installation status of umodel in the container environment. |
true |
| addonNames |
array |
The names of all components installed in this policy. |
|
|
string |
The name of the installed component. |
cs-default |
|
| apiVersion |
string |
The policy version. |
v2 |
| requestId |
string |
Id of the request |
0B9377D9-C56B-5C2E-A8A4-A01D6CC3F4B8 |
Examples
Success response
JSON format
{
"policy": {
"bindResource": {
"clusterId": "00b1630f02814f95a9bce717d8d56bb2 ",
"clusterType": "ManagedKubernetes",
"vpcCidr": "10.12.0.1/16",
"vpcId": "vpc-2zegqpeyxplhtmdg70xnr",
"entityUserId": "12xxxx"
},
"entityGroup": {
"description": "xxxxxx",
"entityGroupId": "eg-b79f65d11fb94e779867cf937c3a3002",
"entityGroupName": "prod-database",
"entityRules": {
"annotations": [
{
"op": "add",
"tagKey": "use",
"tagValues": [
"db"
]
}
],
"entityTypes": [
"CS"
],
"fieldRules": [
{
"fieldKey": "test",
"fieldValues": [
"test-value"
],
"op": "add"
}
],
"instanceIds": [
"i-uf6bsi1aivfbn581buj6,i-uf6eu25p75drryo4712u"
],
"ipMatchRule": {
"ipCidr": "10.10.0.1/16",
"ipFieldKey": "test-key"
},
"labels": [
{
"op": "add",
"tagKey": "key1",
"tagValues": [
"value1"
]
}
],
"regionIds": [
"cn-beijing"
],
"resourceGroupId": "rg-aek3aqsuvlv3yyq",
"tags": [
{
"op": "add",
"tagKey": "key2",
"tagValues": [
"values"
]
}
]
},
"regionId": "cn-heyuan",
"userId": "u123456",
"workspace": "test-api",
"query": "status: 200 AND totalTime > 0.5"
},
"managedInfo": {
"securityGroupId": "sg-xxxxxx",
"vswitchId": "vsw-xxxxxxxxx"
},
"policyId": "policy-c9efed2b99c348d49e589c5f780fc074",
"policyName": "ControlPolicy4DetailVportInfo",
"policyType": "CS",
"regionId": "cn-heyuan",
"resourceGroupId": "rg-xxxxx",
"tags": [
{
"key": "use",
"value": "db"
}
],
"userId": "u123456",
"workspace": "prometheus",
"csUmodelStatus": true,
"addonNames": [
"cs-default"
],
"apiVersion": "v2"
},
"requestId": "0B9377D9-C56B-5C2E-A8A4-A01D6CC3F4B8"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.