Help Center/ Cloud Operations Center/ API Reference/ API/ Application Resource Management/ Resource Information/ Synchronizing Agent Information about Huawei Cloud Resources
Updated on 2025-10-24 GMT+08:00

Synchronizing Agent Information about Huawei Cloud Resources

Function

If the Agent information of Huawei Cloud resources is not properly displayed, you can manually update the resource data through status synchronization to ensure data timeliness and reliability.

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:instance:syncResources

    Write

    -

    -

    -

    -

URI

POST /v1/resources/uniagent/sync

Request Parameters

Table 1 Request body parameters

Parameter

Mandatory

Type

Description

resource_infos

No

Array of resource_infos objects

Definition:

Select the resource information corresponding to the resource to be synchronized.

Constraints:

N/A

Value range:

The list contains 1 to 100 items.

Default value:

N/A

vendor

No

String

Definition:

Cloud vendor.

Constraints:

N/A

Value range:

  • When Huawei Cloud resources are synchronized, this parameter can be left blank.

  • When Alibaba Cloud resources are synchronized, ALI is used.

Default value:

The value is a string. It contains 1 to 64 characters.

Table 2 resource_infos

Parameter

Mandatory

Type

Description

region_id

No

String

Definition:

ID of the region to which the resource belongs.

Constraints:

N/A

Value range:

The value is a string. It contains 0 to 64 characters.

Default value:

N/A

resource_id

No

String

Definition:

ID of the resource selected by the user.

Constraints:

N/A

Value range:

The value is a string. It contains 36 characters.

Default value:

N/A

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

data

String

Definition:

Task ID.

Value range:

N/A

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Definition:

Error code.

Value range:

The value contains 8 to 36 characters.

error_msg

String

Definition:

Error description.

Value range:

The value contains 2 to 512 characters.

Example Requests

Synchronize Agent information of Huawei Cloud resources

POST https://{endpoint}/v1/resources/uniagent/sync

{
  "resource_infos" : [ {
    "region_id" : "string",
    "resource_id" : "85709555-8c07-48ee-a024-dd965d63d498",
    "id" : "686cc982101fbf1cdab41123"
  } ]
}

Example Responses

Status code: 200

Agent information of Huawei Cloud resources is synchronized.

{
  "data" : "9fee1b42-fb41-4152-b4bc-545ecec77e20"
}

Status Codes

Status Code

Description

200

Agent information of Huawei Cloud resources is synchronized.

400

Failed to synchronize Huawei Cloud resource agent information.

Error Codes

See Error Codes.