Updated on 2026-09-21 GMT+08:00

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.

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

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

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:

  • cloudservers: Elastic Cloud Servers (ECSs)

  • servers: Bare Metal Servers (BMSs)

  • clusters: Cloud Container Engine (CCE)

  • 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.

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

{
  "data" : "a4c0618e-0b94-4c56-8e14-35b122377340"
}

Status Codes

Status Code

Description

200

Resources are synchronized.

Error Codes

See Error Codes.