Menambahkan label gerbang atau memperbarui label yang sudah ada.
Deskripsi operasi
Before you call this operation, make sure that you understand the billing methods and pricing of Elastic Algorithm Service (EAS).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:UpdateGatewayLabel |
update |
*Service
|
None | None |
Sintaks permintaan
PUT /api/v2/gateways/{ClusterId}/{GatewayId}/label HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
Wilayah tempat gerbang berada. |
cn-shanghai |
| GatewayId |
string |
Yes |
ID gerbang. |
gw-1uhcqmsc7x22****** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Badan permintaan. |
|
| Labels |
object |
Yes |
The custom gateway labels. |
|
|
string |
No |
A user-defined label. |
{"key":"value"} |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| Message |
string |
The returned message. |
Succeed to update gateway gw-1uhcqmsc7x22****** labels. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82****",
"Message": "Succeed to update gateway gw-1uhcqmsc7x22****** labels."
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.