2016-04-12 09:03:46 -04:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
2017-04-17 15:45:17 +08:00
|
|
|
Add (Associate) Fixed Ip (addFixedIp Action) (DEPRECATED)
|
|
|
|
==========================================================
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2017-04-17 15:45:17 +08:00
|
|
|
.. warning:: This API is deprecated and will fail with a 404 starting
|
|
|
|
from microversion 2.44. This is replaced with using the
|
|
|
|
Neutron networking service API.
|
2016-07-06 16:39:11 -07:00
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: POST /servers/{server_id}/action
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-10 19:56:35 +00:00
|
|
|
Adds a fixed IP address to a server instance, which associates that
|
|
|
|
address with the server. The fixed IP address is retrieved from the
|
|
|
|
network that you specify in the request.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Specify the ``addFixedIp`` action and the network ID in the request body.
|
|
|
|
|
2016-05-10 19:56:35 +00:00
|
|
|
Policy defaults enable only users with the administrative role or
|
|
|
|
the owner of the server to perform this operation. Cloud providers
|
|
|
|
can change these permissions through the ``policy.json`` file.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-18 16:41:58 -07:00
|
|
|
Normal response codes: 202
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-07-06 16:39:11 -07:00
|
|
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
|
|
|
itemNotFound(404)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Request
|
2016-04-14 13:10:59 -04:00
|
|
|
-------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-10-10 14:50:17 -04:00
|
|
|
- server_id: server_id_path
|
2016-04-12 09:03:46 -04:00
|
|
|
- addFixedIp: addFixedIp
|
2016-07-06 16:39:11 -07:00
|
|
|
- networkId: net_id_resp
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-07-06 16:39:11 -07:00
|
|
|
**Example Add (Associate) Fixed Ip (addFixedIp Action)**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-20 16:56:47 +09:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-multinic/multinic-add-fixed-ip-req.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-07-06 16:39:11 -07:00
|
|
|
No response body is returned after a successful addFixedIp action.
|
|
|
|
|
2016-10-10 14:50:17 -04:00
|
|
|
|
2017-04-17 15:45:17 +08:00
|
|
|
Remove (Disassociate) Fixed Ip (removeFixedIp Action) (DEPRECATED)
|
|
|
|
===================================================================
|
2016-07-06 16:39:11 -07:00
|
|
|
|
2017-04-17 15:45:17 +08:00
|
|
|
.. warning:: This API is deprecated and will fail with a 404 starting
|
|
|
|
from microversion 2.44. This is replaced with using the
|
|
|
|
Neutron networking service API.
|
2016-07-06 16:39:11 -07:00
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: POST /servers/{server_id}/action
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Removes, or disassociates, a fixed IP address from a server.
|
|
|
|
|
|
|
|
Specify the ``removeFixedIp`` action in the request body.
|
|
|
|
|
2016-05-10 19:56:35 +00:00
|
|
|
Policy defaults enable only users with the administrative role or
|
|
|
|
the owner of the server to perform this operation. Cloud providers
|
|
|
|
can change these permissions through the ``policy.json`` file.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-18 16:41:58 -07:00
|
|
|
Normal response codes: 202
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-07-06 16:39:11 -07:00
|
|
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
|
|
|
itemNotFound(404)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Request
|
2016-04-14 13:10:59 -04:00
|
|
|
-------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
|
2016-10-10 14:50:17 -04:00
|
|
|
- server_id: server_id_path
|
2016-04-12 09:03:46 -04:00
|
|
|
- removeFixedIp: removeFixedIp
|
2016-07-06 16:39:11 -07:00
|
|
|
- address: ip_address
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-07-06 16:39:11 -07:00
|
|
|
**Example Remove (Disassociate) Fixed Ip (removeFixedIp Action)**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-20 16:56:47 +09:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-multinic/multinic-remove-fixed-ip-req.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-07-06 16:39:11 -07:00
|
|
|
No response body is returned after a successful removeFixedIp action.
|