Creates a network service.
Try it now
Test
RAM authorization
Request syntax
POST /api/v1/workspaces/{workspaceId}/networkServices HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspaceId |
string |
No |
The ID of the workspace. |
w-d2d82aa09155**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| name |
string |
No |
The name of the network service. |
test |
| type |
string |
No |
The type of the network service. |
type |
| vpcId |
string |
No |
The ID of the VPC. |
vpc-bp1g14f566kbk8jex**** |
| vswitchIds |
array |
No |
A list of vSwitch IDs. |
|
|
string |
No |
The vSwitch ID. |
vsw-bp1j94qrn5meu5ft0**** |
|
| securityGroupId |
string |
No |
The ID of the security group. |
securityGroupId |
| clientToken |
string |
No |
A token to ensure the idempotency of the request. |
acaf8f54-d40e-4c33-a900-f6c1b345cb47 |
| regionId |
string |
No |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| operationId |
string |
The operation ID. |
w-****** |
| requestId |
string |
The request ID. |
DD6B1B2A-5837-5237-ABE4-FF0C8944**** |
Examples
Success response
JSON format
{
"operationId": "w-******",
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.