CreateOrUpdateAssetGroup
Description
Call the CreateOrUpdateAssetGroup interface to modify the relationship between assets and asset groupings, that is, modify the grouping to which the asset belongs, or the asset list item under an asset grouping.
Request Method
POST
Request Path
/apsara/route/Sas/CreateOrUpdateAssetGroup
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
GroupName | BODY | string | No | test | asset group name. description when modifying the relationship between assets and asset groups, you need to provide the name of the asset group to be modified, which can be obtained by using the DescribeAllGroups interface. If no GroupId is entered in the request parameter, the GroupName must be filled in the request parameter. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
Uuids | BODY | string | No | aq12-***,s23*** | unique identification ID list information of the asset instance. description when modifying the asset and asset grouping relationship, you need to provide the unique identification ID of the asset instance to be modified, which can be obtained by using the DescribeCloudCenterInstances interface. |
version | BODY | string | No | 2016-01-01 | version of api |
GroupId | BODY | long | No | 111111 | asset group ID. description when modifying the relationship between assets and asset grouping, you need to provide the ID of the asset grouping to be modified, which can be obtained by using the DescribeAllGroups interface. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestId | string | 7E0618A9-D5EF-4220-9471-C42B5E92719F | request ID. |
Example
Successful Response example
{
"RequestId":"7E0618A9-D5EF-4220-9471-C42B5E92719F"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}