All Products
Search
Document Center

Elastic Compute Service:ModifyElasticityAssurance

Last Updated:Jun 12, 2026

Mengubah beberapa informasi tentang elasticity assurance, termasuk nama, deskripsi, dan kapasitas (hanya pengurangan kapasitas yang didukung).

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

ecs:ModifyElasticityAssurance

update

*ElasticityAssurance

acs:ecs:{#regionId}:{#accountId}:elasticityassurance/{#ElasticityAssuranceId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

RegionId

string

Yes

ID wilayah elasticity assurance. Anda dapat memanggil DescribeRegions untuk mengkueri daftar wilayah terbaru.

cn-hangzhou

PrivatePoolOptions.Id

string

Yes

The ID of the elasticity assurance.

eap-bp67acfmxazb4****

PrivatePoolOptions.Name

string

No

The name of the elasticity assurance. The name must be 2 to 128 characters in length. It must start with a letter or a Chinese character and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).

eapTestName

Description

string

No

Deskripsi elasticity assurance. Panjang deskripsi harus 2 hingga 256 karakter dan tidak boleh diawali dengan http:// atau https://.

This is description.

InstanceAmount

integer

No

Jumlah total instans yang perlu dicadangkan oleh elasticity assurance. Nilai valid: jumlah instans yang digunakan hingga 1000. Parameter ini tidak dapat dimodifikasi bersama parameter lain.

10

ClientToken

string

No

Token Klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan Klien untuk menghasilkan nilai ini, tetapi Anda harus memastikan bahwa nilai tersebut unik di antara permintaan yang berbeda. ClientToken hanya dapat berisi karakter ASCII dan panjangnya tidak boleh melebihi 64 karakter. Untuk informasi selengkapnya, lihat Cara memastikan idempotensi.

123e4567-e89b-12d3-a456-426655440000

RecurrenceRules

array<object>

No

Daftar aturan pengulangan untuk elasticity assurance tersegmentasi waktu.

object

No

Aturan pengulangan untuk elasticity assurance tersegmentasi waktu.

Catatan

Aturan pengulangan yang dimodifikasi akan berlaku pada hari berikutnya.

RecurrenceType

string

No

Tipe aturan pengulangan. Nilai valid:

  • Daily: Aturan diulang per hari.

  • Weekly: Aturan diulang per minggu.

  • Monthly: Aturan diulang per bulan.

Catatan

Anda harus menentukan RecurrenceType dan RecurrenceValue secara bersamaan.

Daily

RecurrenceValue

string

No

Nilai aturan pengulangan.

  • Jika RecurrenceType diatur ke Daily, Anda hanya dapat menentukan satu nilai. Nilai valid: 1 hingga 31. Nilai menunjukkan interval eksekusi dalam hari.

  • Jika RecurrenceType diatur ke Weekly, Anda dapat menentukan beberapa nilai yang dipisahkan oleh koma (,). Nilai 0, 1, 2, 3, 4, 5, dan 6 menunjukkan Minggu, Senin, Selasa, Rabu, Kamis, Jumat, dan Sabtu secara berurutan. Misalnya, 1,2 menunjukkan bahwa aturan dieksekusi pada hari Senin dan Selasa.

  • Jika RecurrenceType diatur ke Monthly, formatnya adalah A-B. Nilai valid untuk A dan B: 1 hingga 31. B harus lebih besar atau sama dengan A. Misalnya, 1-5 menunjukkan bahwa aturan dieksekusi pada tanggal 1 hingga tanggal 5 setiap bulannya.

Catatan

Anda harus menentukan RecurrenceType dan RecurrenceValue secara bersamaan.

5

StartHour

integer

No

Waktu mulai elasticity assurance tersegmentasi waktu. Nilai harus berupa jam bulat.

Catatan

Anda harus menentukan StartHour dan EndHour secara bersamaan. Selisih antara kedua nilai harus minimal 4 jam.

4

EndHour

integer

No

Waktu berakhir elasticity assurance tersegmentasi waktu. Nilai harus berupa jam bulat.

10

Elemen respons

Element

Type

Description

Example

object

RequestId

string

ID permintaan.

8455DD10-84F8-43C9-8365-5F448EB169B6

Contoh

Respons sukses

JSONformat

{
  "RequestId": "8455DD10-84F8-43C9-8365-5F448EB169B6"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidRecurrenceRules.CountLimitExceeded The count of RecurrenceRules exceeds the limit.
400 InvalidRecurrenceRules.Unsupported The specified parameter RecurrenceRules does not support for this resource package.
400 InvalidRecurrenceRulesStartHourEndHour.TooShort The recurrence hour between RecurrenceRules.StartHour and RecurrenceRules.EndHour is too short.
400 InvalidParameter.RecurrenceRulesStartHourEndHour The specified parameter RecurrenceRules.StartHour or RecurrenceRules.EndHour is invalid.
400 InvalidParameter.RecurrenceRulesRecurrenceValueMonthly The specified parameter RecurrenceRules.RecurrenceValue for Monthly is invalid.
400 InvalidParameter.RecurrenceRulesRecurrenceValueWeekly The specified parameter RecurrenceRules.RecurrenceValue for Weekly is invalid.
400 InvalidParameter.RecurrenceRulesRecurrenceValueDaily The specified parameter RecurrenceRules.RecurrenceValue for Daily is invalid.
400 InvalidParameter.RecurrenceRulesRecurrenceType The specified parameter RecurrenceRules.RecurrenceType is invalid.
400 InvalidInstanceAmount.ValueNotSupported The specified parameter InstanceAmount is not valid.
400 InvalidDescription.ValueNotSupported The specified Description is invalid.
400 InvalidEndTime.ValueNotSupported The specified EndTime is invalid.
400 InvalidStartTime.ValueNotSupported The specified StartTime is invalid.
400 InvalidParameter.PrivatePoolOptions.Name The parameter PrivatePoolOptions.Name is invalid.
400 InvalidParameter.ClientToken The parameter ClientToken is invalid.
400 InvalidParameter.Description The parameter Description is invalid.
401 InvalidUser.Unauthorized The user is not authorized.
500 InternalError The request processing has failed due to some unknown error.
403 InvalidOperation.ModifyTotalActiveTimeUnsupported Not support to modify the total active time of resource package.
403 IncorrectPrivatePoolStatus The current status of the private pool does not support this operation.
403 OperationDenied.NoStock The requested resource is sold out in the specified zone; try other types of resources or other regions and zones.
403 InvalidPrivatePoolOptionsName.ValueNotSupported The specified PrivatePoolOptions.Name is invalid.
403 InvalidPlatform.ValueNotSupported The specified Platform is invalid.
403 OperationDenied.PlatformNotSupported The specified private pool does not support this operation.
403 OperationDenied.EndTimeTypeNotSupported The specified private pool does not support this operation.
403 OperationDenied.StartTimeNotSupported The specified private pool does not support this operation.
403 OperationDenied.InstanceAmountNotSupported The specified private pool does not support this operation.
403 InvalidInstanceAmount.ValueNotSupported The specified InstanceAmount is invalid.
403 InvalidPrivatePoolOptions.Id The specified private pool does not support this operation.
403 InvalidInstanceAmount.LessThanUsedAmount The specified parameter InstanceAmount is less than UsedAmount.
403 InvalidOperation.InstanceAmountAndOtherAttributesUnsupported Modify InstanceAmount and other attributes simultaneously is not supported.
403 QuotaExceed.ElasticityAssuranceCapacity ElasticityAssurance Capacity quota exceeded.
404 InvalidPrivatePoolId.NotFound The specified private pool does not exist.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.