1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
.. -*- rst -*-
=====================================================
Subnet pool prefix operations (subnetpool-prefix-ops)
=====================================================
Add and remove prefixes from a subnet pool prefix list.
Add prefixes
============
.. rest_method:: PUT /v2.0/subnetpools/{subnetpool_id}/add_prefixes
Adds prefixes to a subnet pool.
Normal response codes: 200
Error response codes: 400, 401, 403, 404, 409, 412
Request
-------
.. rest_parameters:: parameters.yaml
- subnetpool_id: subnetpool_id
- prefixes: prefixes
Request Example
---------------
.. literalinclude:: samples/subnets/subnetpool-add-prefixes-request.json
:language: javascript
Response Parameters
-------------------
.. rest_parameters:: parameters.yaml
- prefixes: prefixes-response
Response Example
----------------
.. literalinclude:: samples/subnets/subnetpool-add-prefixes-response.json
:language: javascript
Remove prefixes
===============
.. rest_method:: PUT /v2.0/subnetpools/{subnetpool_id}/remove_prefixes
Remove prefixes from a subnet pool.
Normal response codes: 200
Error response codes: 400, 401, 403, 404, 409, 412
Request
-------
.. rest_parameters:: parameters.yaml
- subnetpool_id: subnetpool_id
- prefixes: prefixes_remove
Request Example
---------------
.. literalinclude:: samples/subnets/subnetpool-remove-prefixes-request.json
:language: javascript
Response Parameters
-------------------
.. rest_parameters:: parameters.yaml
- prefixes: prefixes-response
Response Example
----------------
.. literalinclude:: samples/subnets/subnetpool-remove-prefixes-response.json
:language: javascript
|