Skip to main content

Change Subnet

PUT 

https://core-pl.ocplanet.cloud/backend/api/openstack/subnets/:subnet_id

Host: https://core.ocplanet.cloud

Change a specific subnet associated with the user's VPS identified by ID.

Request

Body

    allocation_pools object[]required
  • Array [
  • end stringrequired
    start stringrequired
  • ]
  • cidr stringrequired
    id uuid
    dns_nameservers objects[]
  • Array [
  • ip required
  • ]
  • host_routes array
    network_mask integer
    ipv6_ra_mode nullstring
    ipv6_address_mode nullstring
    enable_dhcp booleanrequired
    gateway_ip stringrequired
    ip_version integerrequired
    name stringrequired
    network_address_source stringrequired
    network_id stringrequired
    setGatewayIp stringrequired

Responses

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
    sync_version integerrequired
    extra stringrequired
    network stringrequired

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: Use 'OpenAPIToken {token}' as the value
curl -L -X PUT 'https://core-pl.ocplanet.cloud/backend/api/openstack/subnets/:subnet_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"allocation_pools": [
{
"end": "string",
"start": "string"
}
],
"cidr": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"dns_nameservers": [
null
],
"host_routes": [
null
],
"network_mask": 0,
"enable_dhcp": true,
"gateway_ip": "string",
"ip_version": 0,
"name": "string",
"network_address_source": "string",
"network_id": "string",
"setGatewayIp": "string"
}'
Request Collapse all
Base URL
https://core-pl.ocplanet.cloud
Auth
Body
{
  "allocation_pools": [
    {
      "end": "string",
      "start": "string"
    }
  ],
  "cidr": "string",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "dns_nameservers": [
    null
  ],
  "host_routes": [
    null
  ],
  "network_mask": 0,
  "enable_dhcp": true,
  "gateway_ip": "string",
  "ip_version": 0,
  "name": "string",
  "network_address_source": "string",
  "network_id": "string",
  "setGatewayIp": "string"
}
ResponseClear

Click the Send API Request button above and see the response here!