調用ListControlPolicies查詢管控策略列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
resourcemanager:ListControlPolicies |
list |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| PolicyType |
string |
否 |
管控策略類型。取值:
|
System |
| PageNumber |
integer |
否 |
頁碼。 起始值:1。預設值:1。 |
1 |
| PageSize |
integer |
否 |
分頁時每頁顯示的資料條數。 取值範圍:1~100。預設值:10。 |
10 |
| Language |
string |
否 |
指定返回結果中管控策略描述的語言。取值:
說明
該參數僅在系統管控策略時有效。 |
zh-CN |
| Tag |
array<object> |
否 |
標籤。 |
|
|
object |
否 |
標籤。 |
||
| Key |
string |
否 |
標籤鍵。 |
tag_key |
| Value |
string |
否 |
標籤值。 |
tag_value |
| ControlPolicyType |
string |
否 |
RESOURCE_CONTROL_POLICY |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回結果。 |
||
| TotalCount |
integer |
管控策略數量。 |
1 |
| RequestId |
string |
請求 ID。 |
9424A34C-3471-45AD-B6AB-924BBDFE42F9 |
| PageSize |
integer |
分頁時每頁顯示的資料條數。 |
10 |
| PageNumber |
integer |
頁碼。 |
1 |
| ControlPolicies |
object |
||
| ControlPolicy |
array<object> |
管控策略列表。 |
|
|
array<object> |
管控策略列表。 |
||
| UpdateDate |
string |
管控策略更新時間。 |
2020-08-05T06:32:24Z |
| Description |
string |
管控策略描述。 |
支援阿里雲所有操作的系統管控策略 |
| EffectScope |
string |
管控策略生效範圍。取值:
|
All |
| AttachmentCount |
string |
管控策略被引用的次數。 |
44 |
| PolicyName |
string |
管控策略名稱稱。 |
FullAliyunAccess |
| PolicyId |
string |
管控策略 ID。 |
cp-FullAliyunAccess |
| CreateDate |
string |
管控策略建立時間。 |
2020-08-05T06:32:24Z |
| PolicyType |
string |
管控策略類型。取值:
|
System |
| Tags |
object |
||
| Tag |
array<object> |
標籤。 |
|
|
object |
標籤。 |
||
| Key |
string |
標籤鍵。 |
tag_key |
| Value |
string |
標籤值。 |
tag_value |
| ControlPolicyType |
string |
RESOURCE_CONTROL_POLICY |
樣本
正常返回樣本
JSON格式
{
"TotalCount": 1,
"RequestId": "9424A34C-3471-45AD-B6AB-924BBDFE42F9",
"PageSize": 10,
"PageNumber": 1,
"ControlPolicies": {
"ControlPolicy": [
{
"UpdateDate": "2020-08-05T06:32:24Z",
"Description": "支援阿里雲所有操作的系統管控策略",
"EffectScope": "All",
"AttachmentCount": "44",
"PolicyName": "FullAliyunAccess",
"PolicyId": "cp-FullAliyunAccess",
"CreateDate": "2020-08-05T06:32:24Z",
"PolicyType": "System",
"Tags": {
"Tag": [
{
"Key": "tag_key",
"Value": "tag_value"
}
]
},
"ControlPolicyType": "RESOURCE_CONTROL_POLICY"
}
]
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。