Help Center/ Organizations/ API Reference/ APIs/ Others/ Listing Organizations Quotas
Updated on 2024-10-21 GMT+08:00

Listing Organizations Quotas

Function

This API is used to list Organizations quotas. It can be called only from the management account or a delegated administrator account.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

URI

GET https://{endpoint}/v1/organizations/quotas

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Security-Token

No

String

Security token (session token) of your temporary security credentials. If a temporary security credential is used, this header is required.

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

quotas

QuotasResourcesDto object

Response body of the organization quotas.

Table 3 QuotasResourcesDto

Parameter

Type

Description

resources

Array of QuotaDto objects

Quota information.

Table 4 QuotaDto

Parameter

Type

Description

type

String

Quota type. It can be account, organizational_unit, or policy.

quota

Integer

Number of quotas.

min

Integer

Minimum quota.

max

Integer

Maximum quota.

used

Integer

Used quantity.

Example Requests

Listing Organizations quotas

GET https://{endpoint}/v1/organizations/quotas

Example Responses

Status code: 200

Successful.

{
  "quotas" : {
    "resources" : [ {
      "type" : "string",
      "quota" : 0,
      "min" : 0,
      "max" : 1,
      "used" : 0
    } ]
  }
}

Status Codes

Status Code

Description

200

Successful.

Error Codes

See Error Codes.