Help Center/ Cloud Operations Center/ API Reference/ API/ Application Resource Management/ Groups/ Intelligently Synchronizing Resource by Group
Updated on 2025-12-05 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.

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

Resources are synchronized.

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

Status Codes

Status Code

Description

200

Resources are synchronized.

Error Codes

See Error Codes.