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
|
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
|
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot