ConfigResourceGroupModelTemplate
Configures the model group for a resource group.
Operation description
You can assign a model group to the resource group to which agent runtimes such as JVS Computer, OpenClaw, and Hermes Agent in the WUYING Agent Management Center belong. The assigned model group serves as the inference engine for agents in the resource group to execute tasks.
If an agent runtime is configured with a model group and its resource group is also configured with a model group, the model group bound to the resource group takes effect. That is, the resource group settings take precedence over the agent runtime settings.
Before you begin
The ResourceGroupId parameter in this operation specifically refers to the WUYING Enterprise Edition resource group ID, which starts with rg-. This resource group is managed by the WUYING Enterprise Edition control service and must be created before you deploy agent runtimes such as JVS Computer, OpenClaw, and Hermes Agent. You do not need to and cannot create it by using the API of this service. Although the account-level resource group ID in Alibaba Cloud Resource Manager also starts with rg-, it does not belong to WUYING resource groups and cannot be passed as this parameter.
- Before you call this operation, obtain an existing WUYING resource group ID by using one of the following methods:
Call the DescribeResourceGroups operation of WUYING Cloud Desktop eds-user (API version 2021-03-08). The ResourceGroup[].ResourceGroupId field in the response is the resource group ID required for this parameter. You can set the ResourceClassification request parameter to DesktopAgent and filter agent resource groups by AgentType (JVSClaw or HermesAgent). The AliyunResourceGroupId field in the response is the resource group ID of Alibaba Cloud Resource Manager and cannot be used in this operation.
Call the GetRuntimeModelConfig operation of this service. The Data.ResourceGroupId field in the response is the WUYING resource group ID to which the specified agent runtime currently belongs. If the runtime does not belong to any resource group, this field is null.
When you call the ListDesktopAgentRuntime operation of this service, you can use the ResourceGroupId request parameter to filter agent runtimes by resource group to confirm which runtimes are included in a specific resource group.
The ListModelTemplateResourceGroup operation returns only the resource groups that have been authorized for a specified model group. It cannot be used to discover resource groups that have not been authorized for any model group.
Make sure that you are fully familiar with the operations and usage of the WUYING Agent Management Center before you use this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:ConfigResourceGroupModelTemplate |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
Yes |
The WUYING resource group ID, which starts with rg-. This resource group is managed by the WUYING Enterprise Edition control service, and automatic creation by the system occurs after the deployment of agent runtimes such as JVS Computer, OpenClaw, and Hermes Agent. You can obtain it from the ResourceGroup[].ResourceGroupId field in the response of the DescribeResourceGroups operation of WUYING Cloud Desktop eds-user (API version 2021-03-08), or from the Data.ResourceGroupId field in the response of the GetRuntimeModelConfig operation of this service. Note
Other IDs such as the account-level resource group ID in Alibaba Cloud Resource Manager and node pool IDs cannot be passed as this parameter. Only WUYING resource group IDs are valid. |
rg-xxxxx |
| ModelTemplateId |
string |
Yes |
The model group ID. |
mt-xxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request result. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceGroupNotExist | ResourceGroup not exist. | The ResourceGroupId provided by the caller does not belong to a resource group within the Agent management center domain, such as an account-level Resource Manager resource group, a NodePool ID, or a placeholder string. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.