UpdateGroup
Updates specific fields of a service group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:UpdateGroup |
update |
*All Resource
|
None | None |
Request syntax
PUT /api/v2/groups/{ClusterId}/{GroupName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The region ID. |
cn-wulanchabu |
| GroupName |
string |
Yes |
The name of the service group. For information about how to obtain the group name, see ListServices. |
foo |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| TrafficMode |
string |
No |
The traffic mode. Valid values: auto and customized. In auto mode, weights are automatically allocated based on the proportion of instances. In customized mode, traffic is distributed based on custom fixed weights. Valid values:
|
auto |
| Network |
object |
No |
The VPC configuration. |
|
| VpcId |
string |
No |
The VPC ID. |
vpc-bp1xxxxxx17e0qrykjr9b |
| VSwitchId |
string |
No |
The vSwitch ID. |
vsw-bp1xxxxxxjeqwbo3z2pux |
| SecurityGroupId |
string |
No |
The security group ID. |
sg-uf6xxxxxxc3lysxabg72i |
| GatewayId |
string |
No |
The dedicated gateway ID. |
gw-rcgxxxxxxzytgq9zrj |
| Labels |
object |
No |
The user-defined labels. |
{"key1":"value1","key2":null} |
|
string |
No |
Specify labels in the {"key":"value"} format. The value can be null or an empty string, which indicates that filtering is performed only by key and the value can be any value. |
{"key1":"value1","key2":null} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response result. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| Message |
string |
The response message. |
Update service group foo successfully |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82****",
"Message": "Update service group foo successfully\n"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.