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
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| is_delegated | No | Boolean | Definition Whether the resource is managed. Constraints N/A Range Default value N/A |
| type | No | String | Definition Resource type. Constraints N/A Range vm: VMs Default value N/A |
| is_delegate_domain | Yes | Boolean | Definition Whether the resource is an SRE. Constraints N/A Range 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 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 Default value N/A |
Request Parameters
None
Response Parameters
Status code: 200
| 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
{
"data" : 99
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Number of resources in on-premises IDCs is queried. |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot