Intelligently Synchronizing Resource by group
Function
Group (intelligently associated with resources) used for intelligently synchronizing resources.
You can associate resource instances with the same tag in an enterprise project with the same resource group for management.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
coc:application:syncGroupResource
Write
application *
-
-
-
URI
POST /v1/groups/{id}/sync
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
id |
Yes |
String |
Definition: Group ID. Constraints: N/A Value 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 Value 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 Value 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 Value range: The value ranges from 0 to 65,535. |
Example Requests
After resources are intelligently 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