Skip to main content

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

NameLocationTypeRequiredSample valueDescription
GroupNameBODYstringNotestasset 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.
regionIdBODYstringYesNo sample value for this parameter.region id
UuidsBODYstringNoaq12-***,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.
versionBODYstringNo2016-01-01version of api
GroupIdBODYlongNo111111asset 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

NameTypeSample valueDescription
RequestIdstring7E0618A9-D5EF-4220-9471-C42B5E92719Frequest ID.

Example

Successful Response example

{
"RequestId":"7E0618A9-D5EF-4220-9471-C42B5E92719F"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}