Create Network
Provision a new network based on the passed in constraints. The network should be destroyed after the machine is destroyed to free up resources.
The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
Network Specification instance
Show optional properties
{
"name": "string",
"projectId": "e058"
}
{
"name": "string",
"projectId": "e058",
"deploymentId": "123e4567-e89b-12d3-a456-426655440000",
"customProperties": {
"customProperties": "string"
},
"description": "string",
"constraints": [
{
"mandatory": false,
"expression": "ha:strong"
}
],
"tags": [
{
"key": "vmware.enumeration.type",
"value": "nec2_vpc"
}
],
"outboundAccess": true,
"createGateway": true
}
A human-friendly name used as an identifier in APIs that support this option.
The id of the project the current user belongs to.
The id of the deployment that is associated with this resource
Additional custom properties that may be used to extend this resource.
A human-friendly description.
Constraints that are used to drive placement policies for the network that is produced from this specification, related with the network profile. Constraint expressions are matched against tags on existing placement targets.
A set of tag keys and optional values that should be set on any resource that is produced from this specification.
Flag to indicate if the network needs to have outbound access or not. Default is true. This field will be ignored if there is proper input for networkType customProperty
Flag to indicate if the network creation should create a gateway. Default is true.
Accepted
"RequestTracker Object"
Progress of the request as percentage.
Status message of the request.
Status of the request.
Collection of resources.
Name of the operation.
ID of this request.
Self link of this request.
ID of the deployment, this request is connected to.
Invalid request - bad data
"ServiceErrorResponse Object"
message
messageId
stackTrace
statusCode
errorCode
details
serverErrorId
documentKind
internalErrorCode
Forbidden
"ServiceErrorResponse Object"
message
messageId
stackTrace
statusCode
errorCode
details
serverErrorId
documentKind
internalErrorCode
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string","projectId:"string"}' https://{api_host}/iaas/api/networks