Updated on 2025-10-24 GMT+08:00

Querying the Number of Resources in an On-premises IDC

Function

This API is used to query the number of IDC resources.

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:countOtherResources

    List

    -

    -

    -

    -

URI

GET /v1/other-resources/count

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

is_delegated

No

Boolean

Definition:

Whether resources are hosted.

Constraints:

N/A

Value range:

  • true: Resources are hosted.

  • false: Resources are not hosted.

Default value:

N/A

type

No

String

Definition:

Resource type.

Constraints:

N/A

Value range:

vm: indicates virtual machines (VMs)

  • PM: physical machines

  • Middleware: middleware devices

Default value:

N/A

is_delegate_domain

Yes

Boolean

Definition:

Whether it is SRE.

Constraints:

N/A

Value range:

  • true: It is SRE.

  • false: It is nor SRE.

Default value:

N/A

name_list

No

Array of strings

Definition:

Resource name. Fuzzy query is supported.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

region_id

No

String

Definition:

Region ID.

Constraints:

N/A

Value range:

ID of the region with which the region is associated.

Default value:

N/A

create_since

No

String

Definition:

Start date of the creation time. The value is in the ISO 8601 format.

Constraints:

At least one of the start date and end date must exist.

Value range:

N/A

Default value:

N/A

create_until

No

String

Definition:

End date of the creation time. The value is in the ISO8601 format.

Constraints:

At least one of the start date and end date must exist.

Value range:

N/A

Default value:

N/A

ip

No

String

Definition:

Private IP address.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

os_type

No

String

Definition:

OS

Constraints:

N/A

Value range:

  • window: Windows OS

  • linux: Linux OS

Default value:

N/A

os_version_list

No

String

Definition:

OS

Constraints:

N/A

Value range:

N/A

Default value:

N/A

agent_state

No

String

Definition:

Agent status.

Constraints:

N/A

Value range:

  • ONLINE: The UniAgent is running.

  • OFFLINE: The UniAgent is abnormal.

  • INSTALLING: The UniAgent is being installed.

  • FAILED: The UniAgent fails to be installed.

  • UNINSTALLED: The UniAgent is uninstalled.

  • null: The UniAgent is not installed.

Default value:

N/A

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

data

String

Definition:

Total number of resources in on-premises IDCs.

Value range:

N/A

Example Requests

None

Example Responses

Status code: 200

Number of resources in on-premises IDCs is queried.

{
  "data" : 99
}

Status Codes

Status Code

Description

200

Number of resources in on-premises IDCs is queried.

Error Codes

See Error Codes.