2016-04-12 09:03:46 -04:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
============================
|
|
|
|
Servers IPs (servers, ips)
|
|
|
|
============================
|
|
|
|
|
|
|
|
Lists the IP addresses for an instance and shows details for an IP
|
|
|
|
address.
|
|
|
|
|
|
|
|
List Ips
|
|
|
|
========
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: GET /servers/{server_id}/ips
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Lists IP addresses that are assigned to an instance.
|
|
|
|
|
2016-05-11 16:01:02 -05: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
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-04-25 11:29:25 +08:00
|
|
|
Error response codes: 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
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-09 15:55:12 -07:00
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-09-13 13:48:17 +09:00
|
|
|
- addresses: addresses_obj
|
2016-05-09 15:55:12 -07:00
|
|
|
- network_label: network_label_body
|
|
|
|
- addr: ip_address
|
2016-09-13 13:48:17 +09:00
|
|
|
- version: version_ip
|
2016-05-09 15:55:12 -07:00
|
|
|
|
2016-10-10 14:50:17 -04:00
|
|
|
**Example List Ips**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-19 19:32:48 +09:00
|
|
|
.. literalinclude:: ../../doc/api_samples/server-ips/server-ips-resp.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Show Ip Details
|
|
|
|
===============
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: GET /servers/{server_id}/ips/{network_label}
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Shows IP addresses details for a network label of a server instance.
|
|
|
|
|
2016-05-11 16:01:02 -05: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
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
2016-04-25 11:29:25 +08:00
|
|
|
Error response codes: 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
|
|
|
- network_label: network_label
|
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-09 15:55:12 -07:00
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- network_label: network_label_body
|
|
|
|
- addr: ip_address
|
2016-09-13 13:48:17 +09:00
|
|
|
- version: version_ip
|
2016-05-09 15:55:12 -07:00
|
|
|
|
2016-10-10 14:50:17 -04:00
|
|
|
**Example Show Ip Details**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-19 19:32:48 +09:00
|
|
|
.. literalinclude:: ../../doc/api_samples/server-ips/server-ips-network-resp.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|