Help Center/ Cloud Operations Center/ API Reference/ API/ Application Resource Management/ Groups/ Intelligently Synchronizing Resource by group
Updated on 2025-10-24 GMT+08:00

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

Table 1 Path Parameters

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

Table 2 Request body 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:

  • cloudservers: Elastic Cloud Servers (ECSs)

  • servers: bare metal server (BMSs)

  • clusters: Cloud Container Engine (CCE) instances

  • instances: cloud database instances

Default value:

N/A

Response Parameters

Status code: 200

Table 3 Response body parameters

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.