Menghapus kode aktivasi yang tidak digunakan.
Deskripsi operasi
Deskripsi operasi
Kode aktivasi harus tidak digunakan. Artinya, jumlah instans terkelola yang didaftarkan menggunakan kode aktivasi harus 0.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DeleteActivation |
update |
*activation
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah. Wilayah yang didukung: China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu), Hong Kong (China), Singapore, Japan (Tokyo), US (Silicon Valley), dan US (Virginia). Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID wilayah dan informasi lainnya. |
cn-hangzhou |
| ActivationId |
string |
Yes |
ID kode aktivasi yang tidak digunakan. |
4ECEEE12-56F1-4FBC-9AB1-890F1234**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
4ECEEE12-56F1-4FBC-9AB1-890F74942176 |
| Activation |
object |
Kode aktivasi dan informasi penggunaannya. |
|
| CreationTime |
string |
Pengatur waktu pembuatan. Pengatur waktu diformat dalam ISO 8601 dan zona waktu UTC. |
2021-01-20T06:00:00Z |
| DeregisteredCount |
integer |
Jumlah instans yang tidak terdaftar. |
0 |
| InstanceCount |
integer |
Jumlah maksimum kali kode aktivasi dapat digunakan untuk mendaftarkan instans terkelola. |
1 |
| Description |
string |
Deskripsi kode aktivasi. |
This is description. |
| RegisteredCount |
integer |
Jumlah instans terdaftar. |
0 |
| InstanceName |
string |
Awalan nama instans default. |
test-InstanceName |
| IpAddressRange |
string |
Alamat IP host yang diizinkan menggunakan kode aktivasi. |
0.0.0.0/0 |
| TimeToLiveInHours |
integer |
Periode validitas kode aktivasi. Unit: jam. |
4 |
| ActivationId |
string |
ID kode aktivasi. |
4ECEEE12-56F1-4FBC-9AB1-890F1234**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "4ECEEE12-56F1-4FBC-9AB1-890F74942176",
"Activation": {
"CreationTime": "2021-01-20T06:00:00Z",
"DeregisteredCount": 0,
"InstanceCount": 1,
"Description": "Ini adalah deskripsi",
"RegisteredCount": 0,
"InstanceName": "test-InstanceName",
"IpAddressRange": "0.0.0.0/0",
"TimeToLiveInHours": 4,
"ActivationId": "4ECEEE12-56F1-4FBC-9AB1-890F1234****"
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | RegionId.ApiNotSupported | The api is not supported in this region. | Pemanggilan API tidak didukung di wilayah yang ditentukan. Periksa apakah nilai parameter RegionId sudah benar. |
| 500 | InternalError.Dispatch | An error occurred when you dispatched the request. | Terjadi kesalahan saat mengirim permintaan. Coba lagi nanti. |
| 403 | InvalidParameterCharacter | The specified parameter %s contains illegal characters. | |
| 403 | ActivationId.InUse | The specified activation id is in use. | Kode aktivasi yang ditentukan masih digunakan. |
| 403 | Operation.Forbidden | The operation is not permitted. | Operasi tidak diizinkan. |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | RegionId yang ditentukan tidak ada. Periksa apakah produk ini tersedia di wilayah yang ditentukan. |
| 404 | ActivationId.NotFound | The specified activation id does not exist. | Kode aktivasi yang ditentukan tidak ada. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.