Queries the list of resource groups associated with a model group.
Operation description
You can call this operation to query the list of resource groups authorized by a model group in the Wuying Agent Management Center.
Before you call this operation, make sure that you are familiar with the operations and usage of the Wuying Agent Management Center.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ModelTemplateId |
string |
Yes |
The ID of the model group. |
mt-xxxxx |
| ResourceGroupIds |
array |
No |
The list of resource group IDs. |
|
|
string |
No |
The list of resource group IDs used as filter conditions for the query. You can specify up to 100 resource group IDs. |
rg-xxxxx |
|
| PageSize |
integer |
No |
The number of entries per page. |
20 |
| PageNumber |
integer |
No |
The page number. Pages start from page 1. Both 0 and 1 return the same result. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The query result. |
||
| PageSize |
integer |
The number of entries per page. |
20 |
| PageNumber |
integer |
The page number. |
1 |
| Data |
array<object> |
The returned results. |
|
|
object |
The returned data object. |
||
| ResourceGroupId |
string |
The resource group ID. |
rg-xxxxx |
| TotalCount |
integer |
The total number of entries. |
15 |
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Examples
Success response
JSON format
{
"PageSize": 20,
"PageNumber": 1,
"Data": [
{
"ResourceGroupId": "rg-xxxxx"
}
],
"TotalCount": 15,
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.