Updated on 2025-12-05 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.

URI

GET /v1/other-resources/count

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

is_delegated

No

Boolean

Definition

Whether the resource is managed.

Constraints

N/A

Range

  • true: The resource is managed.

  • false: The resource is not managed.

Default value

N/A

type

No

String

Definition

Resource type.

Constraints

N/A

Range

vm: VMs

  • PM: physical machines

  • Middleware: middleware devices

Default value

N/A

is_delegate_domain

Yes

Boolean

Definition

Whether the resource is an SRE.

Constraints

N/A

Range

  • true: SRE

  • false: non-SRE

Default value

N/A

name_list

No

Array of strings

Definition

Resource name. Fuzzy query is supported.

Constraints

N/A

Range

N/A

Default value

N/A

region_id

No

String

Definition

Region ID.

Constraints

N/A

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.

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.

Range

N/A

Default value

N/A

ip

No

String

Definition

Private IP address.

Constraints

N/A

Range

N/A

Default value

N/A

os_type

No

String

Definition

OS.

Constraints

N/A

Range

  • windows: Windows OS.

  • linux: Linux OS.

Default value

N/A

os_version_list

No

String

Definition

OS version.

Constraints

N/A

Range

N/A

Default value

N/A

agent_state

No

String

Definition

Agent status.

Constraints

N/A

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.

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.