Create Subnet
Create a Subnet for the org.
Org must have a Tenant entity. User must have authorization role with TENANT_ADMIN suffix.
At least one IPv4 IP block or one IPv6 IP block must be specified.
Authentication
AuthorizationBearer
```
export JWT_BEARER_TOKEN="<jwt-bearer-token>"
# Example org name: "acme-inc
export ORG_NAME=<org-name>
# Use the JWT bearer token in your API request auth header:
curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current
```
Path parameters
org
Name of the Org
Request
This endpoint expects an object.
name
Name of the Subnet
vpcId
ID of the VPC containing the Subnet
prefixLength
Length of the prefix
description
Description of the Subnet
ipv4BlockId
ID of the derived Tenant IPv4 Block from an Allocation
ipv6BlockId
ID of the derived Tenant IPv6 Block from an Allocation
Response
Created
id
Unique UUID v4 identifier for the Subnet
name
Name of the Subnet
description
Description of the Subnet
siteId
ID of the Site containing the Subnet
vpcId
ID of the VPC containing the Subnet
controllerNetworkSegmentId
ID of the Site Controller network segment corresponding to the Subnet
ipv4Prefix
The prefix that gets assigned to the subnet if ipv4 block is chosen
ipv4BlockId
ID of the derived Tenant IPv4 Block from an Allocation
ipv4Gateway
Address of the IPv4 gateway in the Subnet
ipv6Prefix
Prefix of the network in CIDR notation
ipv6BlockId
ID of the derived Tenant IPv6 Block from an Allocation
ipv6Gateway
Address of the IPv6 gateway in the Subnet
mtu
Maximum Transmission Unit size in bytes. This property is system-determined and read-only.
prefixLength
Max value depends on prefix length of parent IP Block
routingType
Routing type of the Subnet
status
Status of the Subnet
usageStats
Present when query parameter includeUsageStats=true. Prefix and IP usage data is derived by evaluating associated Ethernet interfaces. Each Interface associated with a Subnet consumes a single IP. In addition, one gateway and one broadcast IP address are reserved per Subnet.
statusHistory
Chronological status history for the Subnet
created
Date/time when the Subnet was created
updated
Date/time when the Subnet was last updated
Errors
400
Bad Request Error
403
Forbidden Error