UpdateService
Updates a service.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gemp:UpdateService |
update |
*All Resource
|
None | None |
Request syntax
POST /services/update HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| serviceDescription |
string |
No |
The description of the service. |
服务描述 |
| serviceName |
string |
No |
The name of the service. |
服务A |
| serviceId |
integer |
No |
The service ID. |
10002000 |
| clientToken |
string |
No |
The idempotence token. |
C4BE3837-1A13-413B-A225-2C88188E8A43 |
| escalationPlanId |
integer |
No |
The ID of the escalation policy. |
234534 |
| serviceGroupIdList |
array |
No |
The ID of the service group. |
|
|
integer |
No |
The ID of the service group. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| requestId |
string |
The request ID. |
C4BE3837-1A13-413B-A225-2C88188E8A43 |
| data |
integer |
The returned data. |
null |
Examples
Success response
JSON format
{
"requestId": "C4BE3837-1A13-413B-A225-2C88188E8A43",
"data": 0
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EditServiceFail | Failed to edit the service. | |
| 404 | ServiceNotExisted | The service does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.