All Products
Search
Document Center

E-MapReduce:UpdateWorkspace

Last Updated:Jun 11, 2026

Memperbarui properti ruang kerja.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

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.