All Products
Search
Document Center

ENS:DescribeApplicationResourceSummary

Last Updated:Mar 12, 2024

Queries the total quota of resources and the resource usage in different region levels. You can perform resource scale-out based on this information.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
LevelstringNo

The region level. The value must be of the enumerated data type. Valid values:

  • National (default): Chinese mainland
  • Big: area
  • Middle: province
  • Small: city
  • RegionId: edge node
National
ResourceTypestringNo

The resource type.

Valid value:

  • Ens
BareMetal-Arm

Response parameters

ParameterTypeDescriptionExample
object
ApplicationResourcestring

The statistical information about the resource quota and usage in different regions.

{ "Level":"RegionId", "Summary":[ { "InstanceType":"ens.a6e.large", "SystemDiskMaxSize":20480, "DataDiskMaxSize":0, "BandwidthOutLimit":100, "InstanceTotalMaxCount":0, "InstanceTotalCount":4, "InstanceCountStat":[ { "AreaCode":"330100", "AreaName":"", "IspCode":"cmcc", "RegionIds":[ "cn-hangzhou-cmcc-7" ], "InstanceMaxCount":0, "InstanceCount":4 } ] } ] }
RequestIdstring

The ID of the request.

50373E71-7710-4620-8AAB-133CCE49451C

Examples

Sample success responses

JSONformat

{
  "ApplicationResource": "{\n    \"Level\":\"RegionId\",\n    \"Summary\":[\n        {\n            \"InstanceType\":\"ens.a6e.large\",\n            \"SystemDiskMaxSize\":20480,\n            \"DataDiskMaxSize\":0,\n            \"BandwidthOutLimit\":100,\n            \"InstanceTotalMaxCount\":0,\n            \"InstanceTotalCount\":4,\n            \"InstanceCountStat\":[\n                {\n                    \"AreaCode\":\"330100\",\n                    \"AreaName\":\"\",\n                    \"IspCode\":\"cmcc\",\n                    \"RegionIds\":[\n                        \"cn-hangzhou-cmcc-7\"\n                    ],\n                    \"InstanceMaxCount\":0,\n                    \"InstanceCount\":4\n                }\n            ]\n        }\n    ]\n}",
  "RequestId": "50373E71-7710-4620-8AAB-133CCE49451C"
}

Error codes

HTTP status codeError codeError messageDescription
400MissingParameterThe input parameter that is mandatory for processing this request is not supplied.-
400NoPermissionPermission denied.-
400InvalidParameter.%sThe specified field %s invalid. Please check it again.-
400InvalidParameterThe errorMessage is %s. Please check it again.-
400ens.interface.errorAn error occurred while calling the API.-
400CallInterfaceCall Interface Happen Error.An error occurred when you call the operation.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-12-21API Description Update. The Error code has changedsee changesets
Change itemChange content
API DescriptionAPI Description Update.
Error CodesThe Error code has changed.
    Error Codes 400 change