Creates an edge service.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:CreateEnsService |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| EnsServiceId |
string |
Yes |
The ID of the resource that you want to obtain. You can specify only one ID in a request. |
ens-20190806**** |
| OrderType |
string |
Yes |
The operation to perform after you preview the created edge service. Valid values:
|
Buy |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The service code. 0 is returned for a successful request. An error code is returned for a failed request. |
0 |
| RequestId |
string |
The request ID. |
9AF02B43-2D08-49D3-8AAF-65B9C792ED14 |
Examples
Success response
JSON format
{
"Code": 0,
"RequestId": "9AF02B43-2D08-49D3-8AAF-65B9C792ED14"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameter domainName that is mandatory for processing this request is not supplied. | |
| 400 | InstanceIdNotFound | The input parameter instancdId that is not found. | The specified instance ID does not exist. |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | CallInterface | Call Interface Happen Error. | An error occurred when you call the operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.