Updated on 2025-12-05 GMT+08:00

Transferring Resources

Function

This API is used to move the resources from a group to another group for management.

URI

PUT /v1/group-resource-relations

Request Parameters

Table 1 Request body parameters

Parameter

Mandatory

Type

Description

id_list

Yes

Array of strings

Definition

List of UUIDs associated with resources.

Constraints

N/A

Range

The list contains 0 to 100 items.

Default value

N/A

group_id

Yes

String

Definition

ID of the group to which the resource to be transferred belongs.

Constraints

N/A

Range

The value is a string. It contains 24 characters.

Default value

N/A

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

data

String

Definition

ID of the group resource allocated by CloudCMDB.

Range

N/A

Example Requests

Transfer resources.

PUT https://{endpoint}/v1/group-resource-relations

{
  "id_list" : [ "687df406705dd42025d32667" ],
  "group_id" : "6811e1855a774958c43bab99"
}

Example Responses

Status code: 200

Resources are transferred.

{
  "data" : [ "687df406705dd42025d32667" ]
}

Status Codes

Status Code

Description

200

Resources are transferred.

Error Codes

See Error Codes.