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 resources are hosted. Constraints: N/A Value range: Default value: N/A |
|
type |
No |
String |
Definition: Resource type. Constraints: N/A Value range: vm: indicates virtual machines (VMs) Default value: N/A |
|
is_delegate_domain |
Yes |
Boolean |
Definition: Whether it is SRE. Constraints: N/A Value range: 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: 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: 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. 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.
Feedback
Was this page helpful?
Provide feedbackThank 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