All Products
Search
Document Center

:Query resource quotas

更新时间:Nov 13, 2023

You can call the DescribeUserQuota operation to query cluster and node quotas.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only common request headers. For more information, see Common request headers.

Request syntax

GET /quota HTTP/1.1

Request parameters

None.

Response parameters

Parameter

Type

Example

Description

amk_cluster_quota Long 20

The quota of Container Service for Kubernetes (ACK) managed clusters. Default value: 20. If the default quota limit is reached, submit an application in the Quota Center console to increase the quota.

ask_cluster_quota Long 3

The quota of ACK Serverless clusters. Default value: 20. If the default quota limit is reached, submit an application in the Quota Center console to increase the quota.

cluster_nodepool_quota Long 10

The quota of node pools in an ACK cluster. Default value: 20. If the default quota limit is reached, submit an application in the Quota Center console to increase the quota.

cluster_quota Long 50

The quota of clusters that belong to an Alibaba Cloud account. Default value: 50. If the default quota limit is reached, submit an application in the Quota Center console to increase the quota.

node_quota Long 100

The quota of nodes in an ACK cluster. Default value: 100. If the default quota limit is reached, submit an application in the Quota Center console to increase the quota.

edge_improved_nodepool_quota Object

The quota of enhanced edge node pools.

bandwidth Integer 10

The maximum bandwidth of each enhanced node pool. Unit: Mbit/s.

count Integer 3

The quota of enhanced edge node pools that belong to an Alibaba Cloud account.

period Integer 3

The maximum subscription duration of an enhanced edge node pool. Unit: months.

Note Enhanced node pools use the pay-as-you-go billing method. Therefore, this parameter is not required.
quotas Map

Information about the new quota.

Object

The new quota.

quota String 1

The value of the quota. If the quota limit is reached, submit an application in the Quota Center console to increase the quota.

operation_code String q_Kubernetes_Cluster

The quota code.

adjustable Boolean true

Indicates whether the quota is adjustable.

unit String Cluster

The unit.

Examples

Sample requests

GET /quota HTTP/1.1
Host:cs.aliyuncs.com
Content-Type:application/json

Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeUserQuotaResponse>
    <amk_cluster_quota>20</amk_cluster_quota>
    <ask_cluster_quota>3</ask_cluster_quota>
    <cluster_nodepool_quota>10</cluster_nodepool_quota>
    <cluster_quota>50</cluster_quota>
    <node_quota>100</node_quota>
    <edge_improved_nodepool_quota>
        <bandwidth>10</bandwidth>
        <count>3</count>
        <period>3</period>
    </edge_improved_nodepool_quota>
    <quotas>
        <key>
            <quota>1</quota>
            <operation_code>q_Kubernetes_Cluster</operation_code>
            <adjustable>true</adjustable>
            <unit>Cluster</unit>
        </key>
    </quotas>
</DescribeUserQuotaResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "amk_cluster_quota" : 20,
  "ask_cluster_quota" : 3,
  "cluster_nodepool_quota" : 10,
  "cluster_quota" : 50,
  "node_quota" : 100,
  "edge_improved_nodepool_quota" : {
    "bandwidth" : 10,
    "count" : 3,
    "period" : 3
  },
  "quotas" : {
    "key" : {
      "quota" : "1",
      "operation_code" : "q_Kubernetes_Cluster",
      "adjustable" : true,
      "unit" : "Cluster"
    }
  }
}

Error codes

For a list of error codes, see Service error codes.