UpdateQuota

Updated at:

Updates the information of a resource quota.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

PUT /api/v1/quotas/{QuotaId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

QuotaId

string

No

The quota ID.

quota-20210126170216-mtl37ge7gkvdz

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body.

Description

string

No

The description of the resource quota.

this is a test quota

Labels

array

No

The list of user-defined labels. This is a full update.

Label

No

The user-defined label.

QueueStrategy

string

No

The queuing strategy for tasks in the quota.

PaiStrategyIntelligent

QuotaConfig QuotaConfig

No

The resource quota configuration.

QuotaName

string

No

The name of the resource quota.

test

PropagateDefaultGPUDriver

boolean

No

Specifies whether to propagate the default GPU driver configuration to child quotas.

ClusterSpec

object

No

The configuration of the compute cluster (RNQ Ray cluster) bound to the quota. This parameter is only available for RNQ quotas and will be rejected for common quotas. Modifications are allowed only when no operations are in progress on the quota. Unprovided subfields retain their currently effective configurations.

ClusterType

string

No

The cluster type. Currently, only RayCluster is supported.

RayCluster

Image

string

No

The container image used by the Ray cluster. If explicitly provided, the cluster switches to this image. If left empty and the data source remains unchanged, and if GetQuota returns UpgradeAvailable=true, this update is considered an upgrade to the platform default image. To keep the current image, explicitly pass the current value.

dsw-registry-vpc.ap-southeast-1.cr.aliyuncs.com/pai-common/ray-runtime

DataSources

array

No

The list of data sources mounted to the cluster. This parameter uses full replacement semantics: omitting it keeps the current state, while passing an empty array clears the list. Each element is a JSON object string containing either DataSourceId or Uri (one is required and they are mutually exclusive) and an optional MountPath.

string

No

The datasource config for the cluster specification.

[]

EnableGracefulUpgrade

boolean

No

Specifies whether to execute the current ClusterSpec change as a rolling upgrade (draining and migrating nodes one by one to the new cluster) instead of the default stop-and-rebuild approach.

true

GracefulUpgradeConfig

object

No

The tuning parameters for the migration process. These parameters are allowed only when EnableGracefulUpgrade is set to true.

MaxUnavailable

string

No

The migration window width, which is the maximum number of workers in the old cluster that can be in an unavailable state (draining or drained and pending removal) simultaneously. This represents the number of nodes migrated in parallel.

25%

TaskDrainReserveWorkers

integer

No

The number of workers in the old cluster kept in a schedulable state while waiting for residual Ray tasks in the old cluster to complete.

5

DrainTimeoutSeconds

integer

No

The maximum timeout for draining a single Ray node. After the timeout, the node is directly scaled down, which does not cause the upgrade to fail.

3600

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

96496E6E-00B4-5F55-80F6-1844FA9E92DC

QuotaId

string

The quota ID.

quota-20210126170216-mtl37ge7gkvdz

Examples

Success response

JSON format

{
  "RequestId": "96496E6E-00B4-5F55-80F6-1844FA9E92DC",
  "QuotaId": "quota-20210126170216-mtl37ge7gkvdz"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.