UpdateGatewayLabel
Adds a gateway tag or updates an existing gateway tag.
Operation description
Make sure that you fully understand the billing methods and pricing of EAS before you call this operation.
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 deployed. |
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 tags. |
{"key":"value"} |
|
string |
No |
The user-defined tag. |
{"key":"value"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| Message |
string |
The response 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.