Create Subnets
POST/backend/api/openstack/subnets
Host: https://core.ocplanet.cloud
Retrieve a list of subnets associated with the user's account. You may not have services or there may not be funds on your balance to complete this operation.
Request
- application/json
Body
allocation_pools arrayrequired
dns_nameservers arrayrequired
cidr stringrequired
enable_dhcp booleanrequired
ip_version integerrequired
ipv6_address_mode nullstring
ipv6_ra_mode null
name stringrequired
network_address_source stringrequired
network_id uuidrequired
network_mask integerstring
setGatewayIp booleanstring
host_routes array
Responses
- 201
- 400
- application/json
- Schema
- Example (from schema)
Schema
id uuidrequired
allocation_pools arrayrequired
cidr stringrequired
dns_nameservers arrayrequired
host_routes arrayrequired
gateway_ip nullrequired
name stringrequired
description nullrequired
subnetpool_id nullrequired
ip_version integerrequired
enable_dhcp booleanrequired
created_at nullrequired
updated_at nullrequired
project uuidrequired
ipv6_ra_mode nullstringrequired
ipv6_address_mode nullstringrequired
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"allocation_pools": [
null
],
"cidr": "string",
"dns_nameservers": [
null
],
"host_routes": [
null
],
"name": "string",
"ip_version": 0,
"enable_dhcp": true,
"project": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
- application/json
- Schema
- Example (from schema)
- Example
Schema
cidr string[]
detail string
{
"cidr": [
"string"
],
"detail": "string"
}
{
"detail": "Unable to create subnet: Failed to allocate subnet: Cannot allocate requested subnet from the available set of prefixes."
}
Loading...