查看資源群組。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ecd:DescribeResourceGroups |
list |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ResourceGroupName |
string |
否 |
資源群組名稱。 |
部門A資源群組 |
| ResourceGroupIds |
array |
否 |
資源群組 ID 列表。 |
|
|
string |
否 |
資源群組 ID。 |
rg-9th3k8twp3ox2*** |
|
| PageSize |
integer |
否 |
每頁數量。 |
20 |
| PageNumber |
integer |
否 |
頁碼。 |
1 |
| NeedContainResourceGroupWithOfficeSite |
integer |
否 |
說明
該參數不對外開放使用。 |
0 |
| Platform |
string |
否 |
說明
固定值:AliyunConsole。
|
AliyunConsole |
| BusinessChannel |
string |
否 |
渠道標記 |
ENTERPRISE |
| AliyunResourceGroupIds |
array |
否 |
雲平台資源群組 ID。 |
|
|
string |
否 |
資源群組 ID。 |
rg-as8nlsbsxsldk*** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回資訊集合。 |
||
| RequestId |
string |
請求 ID。 |
68BA1DF7-8814-5AED-B844-F8F7F7**** |
| ResourceGroup |
array<object> |
資源群組資訊列表。 |
|
|
array<object> |
資源群組資訊。 |
||
| ResourceGroupId |
string |
資源群組 ID。 |
rg-cyo0il2pzge1*** |
| ResourceGroupName |
string |
資源群組名稱。 |
測試資源群組 |
| ResourceCount |
string |
資源群組內的資源數量。 |
119 |
| AuthCount |
string |
資源群組授權的管理員數量。 |
3 |
| CreateTime |
string |
建立時間。 |
2022-11-29T17:25:40.000000000Z |
| Policies |
array<object> |
說明
資源群組關聯的策略。
|
|
|
object |
|||
| Id |
string |
策略 ID。 |
pl-a8jnatl8kjasb*** |
| Name |
string |
策略名稱稱。 |
測試策略123 |
| IsDefault |
boolean |
是否預設策略。 |
False |
| Timers |
array<object> |
說明
關聯的定時任務。
|
|
|
object |
|||
| Id |
string |
定時任務 ID。 |
t-asdzx0mbjhg*** |
| Name |
string |
定時任務名稱。 |
測試工作123 |
| TimerStatus |
string |
||
| BindStatus |
string |
||
| AppRules |
array<object> |
||
|
object |
|||
| Id |
string |
||
| Name |
string |
||
| Type |
integer |
||
| AliyunResourceGroupId |
string |
阿里雲資源群組 ID |
rg-123456 |
| TotalCount |
string |
資源群組總個數。 |
7 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "68BA1DF7-8814-5AED-B844-F8F7F7****",
"ResourceGroup": [
{
"ResourceGroupId": "rg-cyo0il2pzge1***",
"ResourceGroupName": "測試資源群組",
"ResourceCount": "119",
"AuthCount": "3",
"CreateTime": "2022-11-29T17:25:40.000000000Z",
"Policies": [
{
"Id": "pl-a8jnatl8kjasb***",
"Name": "測試策略123",
"IsDefault": true
}
],
"Timers": [
{
"Id": "t-asdzx0mbjhg***",
"Name": "測試工作123",
"TimerStatus": "",
"BindStatus": ""
}
],
"AppRules": [
{
"Id": "",
"Name": "",
"Type": 0
}
],
"AliyunResourceGroupId": "rg-123456"
}
],
"TotalCount": "7"
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。