Menonaktifkan kode aktivasi tertentu.
Deskripsi operasi
Deskripsi operasi
Jika Anda khawatir kode aktivasi yang dibuat mungkin bocor, Anda dapat memanggil operasi ini untuk menonaktifkan kode aktivasi tersebut. Setelah kode aktivasi dinonaktifkan, kode tersebut tidak dapat lagi digunakan untuk mendaftarkan instans terkelola baru. Namun, instans terkelola yang sudah terdaftar tidak terpengaruh.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DisableActivation |
update |
*Activation.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah. Wilayah berikut 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 DescribeRegions untuk mengkueri ID wilayah dan informasi lainnya. |
cn-hangzhou |
| ActivationId |
string |
Yes |
ID kode aktivasi. |
4ECEEE12-56F1-4FBC-9AB1-890F1234**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Activation |
object |
Informasi tentang kode aktivasi dan penggunaannya. |
|
| ActivationId |
string |
ID kode aktivasi. |
4ECEEE12-56F1-4FBC-9AB1-890F1234**** |
| CreationTime |
string |
Waktu ketika kode aktivasi dibuat. Waktu ditampilkan dalam format ISO 8601 di UTC. |
2021-01-20T06:00:00Z |
| DeregisteredCount |
integer |
Jumlah instans yang dibatalkan pendaftarannya. |
1 |
| Description |
string |
Deskripsi kode aktivasi. |
Ini adalah deskripsi |
| Disabled |
boolean |
Apakah kode aktivasi dinonaktifkan. |
false |
| InstanceCount |
integer |
Jumlah maksimum kali kode aktivasi dapat digunakan untuk mendaftarkan instans terkelola. |
1 |
| InstanceName |
string |
Awalan nama instans default. |
test-InstanceName |
| IpAddressRange |
string |
Alamat IP host yang diizinkan menggunakan kode aktivasi. |
0.0.0.0/0 |
| RegisteredCount |
integer |
Jumlah instans yang terdaftar. |
1 |
| TimeToLiveInHours |
integer |
Periode validitas kode aktivasi. Unit: hours. |
4 |
| RequestId |
string |
ID permintaan. |
4ECEEE12-56F1-4FBC-9AB1-890F74942176 |
Contoh
Respons sukses
JSONformat
{
"Activation": {
"ActivationId": "4ECEEE12-56F1-4FBC-9AB1-890F1234****",
"CreationTime": "2021-01-20T06:00:00Z",
"DeregisteredCount": 1,
"Description": "Ini adalah deskripsi",
"Disabled": false,
"InstanceCount": 1,
"InstanceName": "test-InstanceName",
"IpAddressRange": "0.0.0.0/0",
"RegisteredCount": 1,
"TimeToLiveInHours": 4
},
"RequestId": "4ECEEE12-56F1-4FBC-9AB1-890F74942176"
}
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 tertentu. Periksa apakah nilai parameter RegionId 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 | 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 tersedia di wilayah ini. |
| 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.