Menerapkan templat pemeriksaan kesehatan ke server group.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alb:ApplyHealthCheckTemplateToServerGroup |
update |
*HealthCheckTemplate
*ServerGroup
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| HealthCheckTemplateId |
string |
Yes |
ID templat. |
hct-bp1qjwo61pqz3ahltv**** |
| ServerGroupId |
string |
Yes |
ID server group. |
sgp-n80wyad08u0tox**** |
| ClientToken |
string |
No |
Token client yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan client untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Token hanya boleh berisi karakter ASCII dan panjangnya tidak boleh melebihi 64 karakter. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan request ID sebagai client token. Request ID mungkin berbeda untuk setiap permintaan. |
123e4567-e89b-12d3-a456-426655440000 |
| DryRun |
boolean |
No |
Menentukan apakah hanya menjalankan dry run tanpa melakukan permintaan sebenarnya. Nilai yang valid:
|
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Server group tempat templat diterapkan. |
||
| JobId |
string |
ID tugas asinkron. |
72dcd26b-f12d-4c27-b3af-18f6aed5**** |
| RequestId |
string |
ID permintaan. |
365F4154-92F6-4AE4-92F8-7FF34B540710 |
Contoh
Respons sukses
JSONformat
{
"JobId": "72dcd26b-f12d-4c27-b3af-18f6aed5****",
"RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus.HealthCheckTemplate | The status of %s [%s] is incorrect. | The status of %s [%s] is incorrect. |
| 400 | IncorrectStatus.ServerGroup | The status of %s [%s] is incorrect. | The status of %s [%s] is incorrect. |
| 403 | Forbidden.ServerGroup | Authentication has failed for ServerGroup. | |
| 404 | ResourceNotFound.HealthCheckTemplate | The specified resource %s is not found. | The specified resource %s is not found. |
| 404 | ResourceNotFound.ServerGroup | The specified resource %s is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.