Memperbarui properti ruang kerja.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
emr-serverless-spark:UpdateWorkspace |
update |
*全部资源
|
None | None |
Sintaks permintaan
POST /api/v1/workspaces/update HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Badan permintaan. |
|
| workspaceId |
string |
No |
The workspace ID. |
w-975bcfda9625**** |
| workspaceName |
string |
No |
The workspace name. |
default |
| cu |
integer |
No |
The resource cap for the workspace. |
5000 |
| subscription |
object |
No |
Details for converting a pay-as-you-go workspace to a subscription plan. |
|
| queue |
array |
No |
The queues to convert to the subscription plan. |
|
|
string |
No |
A queue to convert to the subscription plan. |
dev_queue |
|
| paymentDurationUnit |
string |
No |
The unit of the subscription period. |
MONTH |
| duration |
string |
No |
The subscription duration. This parameter is required for subscription plans. |
1799 |
| autoRenew |
string |
No |
Indicates whether to enable auto-renewal. Required for subscription plans. |
true |
| autoRenewPeriod |
string |
No |
The auto-renewal duration. Required for subscription plans. |
1 |
| autoRenewPeriodUnit |
string |
No |
The unit for the auto-renewal duration. Required for subscription plans. |
MONTH |
| clientToken |
string |
No |
A unique, case-sensitive token to ensure request idempotence. |
my-token-asxkxxxxxxx |
| resourceGroupId |
string |
No |
The resource group ID. |
rg-acfmwpi66knkxny |
| gpu |
integer |
No |
The number of GPUs. |
100 |
| gpuSpec |
array |
No |
The GPU specifications. |
|
|
string |
No |
The GPU specification. |
ecs-gpu-8x-large |
|
| ipWhiteList |
array |
No |
||
|
string |
No |
0.0.0.1 |
||
| regionId |
string |
No |
ID wilayah. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| requestId |
string |
The unique ID of the request. |
DD6B1B2A-5837-5237-ABE4-FF0C8944**** |
| data |
object |
The returned data. |
|
| orderId |
string |
The ID of the order. |
1005565802416783361 |
| orderId |
string |
The ID of the order. |
979071171373334529 |
Contoh
Respons sukses
JSONformat
{
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****",
"data": {
"orderId": "1005565802416783361"
},
"orderId": "979071171373334529"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.