Intelligently Synchronizing Resource by Group
Function
Group (automatically associated with resources) used for auto-synchronizing resources.
You can associate resource instances with the same tag in an enterprise project with the same resource group for management.
URI
POST /v1/groups/{id}/sync
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
id |
Yes |
String |
Definition Group ID. Constraints N/A Range The value is a string. It contains 24 characters. Default value N/A |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
provider |
No |
String |
Definition Resource provider. Constraints N/A Range The value is a string. The value can be ecs, cce, or rds. Default value N/A |
|
type |
No |
String |
Definition Resource type. Constraints N/A Range There are many resource types. Select a resource type based on the actual service. The common resource types are as follows:
Default value N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
data |
Long |
Definition Synchronize resources. Range The value range is 0 to 65,535. |
Example Requests
After resources are automatically associated, wait for the association task to be executed. The association time depends on the total amount of resource data to be associated.
POST https://{Endpoint}/v1/groups/{id}/sync
Example Responses
Status code: 200
Resources are synchronized.
{
"data" : "a4c0618e-0b94-4c56-8e14-35b122377340"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Resources are synchronized. |
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