This API is used to create a VPC.
Name |
Mandatory |
Type |
Description |
---|---|---|---|
vpc |
Yes |
vpc object |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
name |
No |
String |
|
description |
No |
String |
|
cidr |
No |
String |
|
enterprise_project_id |
No |
String |
NOTE:
This parameter is unsupported. Do not use it. |
POST https://{Endpoint}/v1/{project_id}/vpcs { "vpc": { "name": "vpc", "description": "test", "cidr": "192.168.0.0/16", "enterprise_project_id": "0aad99bc-f5f6-4f78-8404-c598d76b0ed2" } }
Name |
Type |
Description |
---|---|---|
vpc |
vpc object |
Name |
Type |
Description |
---|---|---|
id |
String |
Specifies a resource ID in UUID format. |
name |
String |
|
description |
String |
|
cidr |
String |
|
status |
String |
|
routes |
Array of route objects |
|
enable_shared_snat |
Boolean |
Specifies whether the shared SNAT function is enabled. The value true indicates that the function is enabled, and the value false indicates that the function is not enabled. |
enterprise_project_id |
String |
NOTE:
This parameter is unsupported. Do not use it. |
Name |
Type |
Description |
---|---|---|
destination |
String |
|
nexthop |
String |
|
{ "vpc": { "id": "99d9d709-8478-4b46-9f3f-2206b1023fd3", "name": "vpc", "description": "test", "cidr": "192.168.0.0/16", "status": "CREATING", "enterprise_project_id": "0aad99bc-f5f6-4f78-8404-c598d76b0ed2", "routes": [] } }
See Status Codes.
See Error Codes.