Adds a gateway label or updates an existing one.
Operation description
Before you call this operation, make sure that you understand the billing methods and pricing of Elastic Algorithm Service (EAS).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:UpdateGatewayLabel |
update |
*Service
|
None | None |
Request syntax
PUT /api/v2/gateways/{ClusterId}/{GatewayId}/label HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The region where the gateway is located. |
cn-shanghai |
| GatewayId |
string |
Yes |
The gateway ID. |
gw-1uhcqmsc7x22****** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| Labels |
object |
Yes |
The custom gateway labels. |
|
|
string |
No |
A user-defined label. |
{"key":"value"} |
Response elements
|
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. |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82****",
"Message": "Succeed to update gateway gw-1uhcqmsc7x22****** labels."
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.