CreateService
Creates a service.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gemp:CreateService |
create |
*All Resource
|
None | None |
Request syntax
POST /services/save HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| serviceDescription |
string |
No |
The service description. |
Service description |
| serviceName |
string |
Yes |
The service name. |
Service name |
| clientToken |
string |
No |
The idempotency token. |
C4BE3837-1A13-413B-A225-2C88188E8A43 |
| escalationPlanId |
integer |
No |
The escalation plan ID. |
345 |
| serviceGroupIdList |
array |
No |
The service group IDs. |
|
|
integer |
No |
The service group IDs. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| requestId |
string |
The request ID. |
C4BE3837-1A13-413B-A225-2C88188E8A43 |
| data |
object |
The service ID. |
{"serviceId":1} |
| serviceId |
integer |
The service ID. |
1 |
Examples
Success response
JSON format
{
"requestId": "C4BE3837-1A13-413B-A225-2C88188E8A43",
"data": {
"serviceId": 1
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | AddServiceFail | Failed to add the service. | |
| 400 | ServiceNameAlreadyExisted | The service name is already in use. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.