SetWorkspaceQuota

Updated at:

Sets the quota for a workspace.

Operation description

Sets the quota for a specific workspace.

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 parameters

Parameter

Type

Required

Description

Example

WorkspaceId

string

Yes

The ID of the Data Management Service (DMS) workspace.

20923*****7291

CuQuota

integer

Yes

The compute unit (CU) quota for the workspace.

200

Region

string

Yes

The ID of the region.

cn-hangzhou

AutoPay

boolean

No

Specifies whether to enable auto-payment for the order.

false

ClientToken

string

No

A unique, client-generated token to ensure request idempotence. The token can contain only ASCII characters and must be no longer than 64 characters. For more information, see How to ensure idempotence.

acdxxx

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

67E910F2-4B62-5B0C-ACA3-7547695C****

AccessDeniedDetail

string

Details of the access denial.

NOT_FOUND

Data

object

The returned data.

WorkspaceId

string

The ID of the workspace.

20923*****7291

InstanceId

string

The ID of the billing instance.

i-2zehld3y1tphzctyyq7o

CuQuota

integer

The compute unit (CU) quota.

200

CuQuotaUsage

integer

The amount of compute unit (CU) quota used.

20

Status

string

The status of the instance.

Success

OrderId

string

The order ID.

263013787210103

State

string

The status of the order.

Catched

Message

string

A human-readable message about the request's outcome.

This record is being collected, please wait for a moment.

HttpStatusCode

integer

The HTTP status code.

200

ErrorCode

string

The error code.

UnknownError

Success

boolean

Indicates whether the request was successful.

true

Examples

Success response

JSON format

{
  "RequestId": "67E910F2-4B62-5B0C-ACA3-7547695C****",
  "AccessDeniedDetail": "NOT_FOUND",
  "Data": {
    "WorkspaceId": "20923*****7291",
    "InstanceId": "i-2zehld3y1tphzctyyq7o",
    "CuQuota": 200,
    "CuQuotaUsage": 20,
    "Status": "Success",
    "OrderId": "263013787210103",
    "State": "Catched"
  },
  "Message": "This record is being collected, please wait for a moment.",
  "HttpStatusCode": 200,
  "ErrorCode": "UnknownError",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.