Adjusts the traffic weight or state of a service.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:ReleaseService |
update |
*Service
|
None | None |
Request syntax
PUT /api/v2/services/{ClusterId}/{ServiceName}/release HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The region ID of the service. |
cn-shanghai |
| ServiceName |
string |
Yes |
The service name. Call ListServices to query available names. |
foo |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| Weight |
integer |
No |
The service weight. Valid values: [-1, 1000]. |
100 |
| TrafficState |
string |
No |
The traffic state. Valid values:
Valid values:
|
grouping |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| Message |
string |
The response message. |
Releasing service [foo] in region [cn-shanghai] with weight [40], service status: [Running] |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82****",
"Message": "Releasing service [foo] in region [cn-shanghai] with weight [40], service status: [Running]"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.