• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Neutron
  5. Subnet Pool
  6. Updating a Subnet Pool

Updating a Subnet Pool

Function

This interface is used to update a subnet pool.

URI

PUT /v2.0/subnetpools/{subnetpool_id}

Request Message

Table 1 Request parameter

Parameter

Type

Mandatory

Description

subnetpool

dict

Yes

Specifies the subnet pool object list. For details, see Table 1.

This parameter has no mandatory fields. You must specify at least one attribute when updating the security group.

Response Message

Table 2 Response parameter

Parameter

Type

Description

subnetpool

dict

Specifies the subnet pool object list. For details, see Table 1.

Example:

Example request

PUT /v2.0/subnetpools/03f761e6-eee0-43fc-a921-8acf64c14988
{
    "subnetpool": {
        "name": "my-new-subnetpool-name",
        "prefixes": [
            "2001:db8::/64",
            "2001:db8:0:1::/64",
            "2001:db8:0:2::/64"
        ],
        "min_prefixlen": 64,
        "default_prefixlen": 64,
        "max_prefixlen": 64
    }
}

Example response

{
    "subnetpool": {
        "name": "my-new-subnetpool-name",
        "default_quota": null,
        "is_default": false,
        "project_id": "9fadcee8aa7c40cdb2114fff7d569c08",
        "tenant_id": "9fadcee8aa7c40cdb2114fff7d569c08",
        "prefixes": [
            "2001:db8::/63",
            "2001:db8:0:2::/64"
        ],
        "min_prefixlen": 64,
        "address_scope_id": null,
        "ip_version": 6,
        "shared": false,
        "default_prefixlen": 64,
        "id": "03f761e6-eee0-43fc-a921-8acf64c14988",
        "max_prefixlen": 64,
        "description": "",
        "revision_number": 2,
        "created_at": "2018-09-20T02:15:34",
        "updated_at": "2018-09-20T02:15:34"
    }
}

Status Codes

For details, see section Status Codes.