Creating a Group Resource Association Relationship
Function
This API is used to bind resources to an environment created for the corresponding group. Then, you can monitor the resource usage in real time through application monitoring.
URI
POST /v1/group-resource-relations
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
group_id |
Yes |
String |
Definition UUID of the group allocated by CloudCMDB. Range N/A |
|
cmdb_resource_id_list |
Yes |
Array of strings |
Definition UUID list of the RMS resource allocated by CloudCMDB. Range N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
data |
String |
Definition UUID allocated by COC-CMDB. Range N/A |
Example Requests
Create a group resource association relationship.
POST https://{endpoint}/v1/group-resource-relations
{
"group_id" : "6811e1855a774958c43bab99",
"cmdb_resource_id_list" : [ "686f4abb38514867b8853970" ]
}
Example Responses
Status code: 200
The group resource association is created.
{
"data" : [ "687e0526705dd42025d328d8" ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
The group resource association is created. |
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