doc-exports/docs/modelarts/api-ref/ShowOsQuota.html
Wuwan, Qi f81ead2467 ModelArts API 24.3.0 20241128 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
2024-11-29 09:04:54 +00:00

8.7 KiB

Obtaining OS Quotas

Function

This API is used to obtain the quotas of some ModelArts OS resources, such as the quotas for resource pools and networks.

URI

GET /v1/{project_id}/quotas

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details, see Obtaining a Project ID and Name.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

quotas

quotas object

Resource quotas

Table 3 quotas

Parameter

Type

Description

resources

Array of resources objects

Resource quota information

Table 4 resources

Parameter

Type

Description

type

String

Resource type

quota

Integer

Upper limit of the resource quota

used

Integer

Used quota

Status code: 404

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code

Minimum: 8

Maximum: 36

error_msg

String

Error message

Minimum: 2

Maximum: 512

Example Requests

None

Example Responses

Status code: 200

OK

{
  "quotas" : {
    "resources" : [ {
      "type" : "pool",
      "quota" : 15,
      "used" : 10
    }, {
      "type" : "network",
      "quota" : 15,
      "used" : 10
    } ]
  }
}

Status Codes

Status Code

Description

200

OK

404

Not found

Error Codes

See Error Codes.