2016-07-21 16:42:57 +09:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
======================================================
|
|
|
|
Servers Security Groups (servers, os-security-groups)
|
|
|
|
======================================================
|
|
|
|
|
2017-03-27 09:22:10 +00:00
|
|
|
Lists Security Groups for a server.
|
2016-07-21 16:42:57 +09:00
|
|
|
|
|
|
|
List Security Groups By Server
|
|
|
|
==============================
|
|
|
|
|
|
|
|
.. rest_method:: GET /servers/{server_id}/os-security-groups
|
|
|
|
|
|
|
|
Lists security groups for a server.
|
|
|
|
|
|
|
|
Normal response codes: 200
|
|
|
|
|
|
|
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-10-10 14:50:17 -04:00
|
|
|
- server_id: server_id_path
|
2016-07-21 16:42:57 +09:00
|
|
|
|
|
|
|
Response
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-06-22 17:40:47 +09:00
|
|
|
- security_groups: security_groups_obj
|
2016-07-21 16:42:57 +09:00
|
|
|
- description: description
|
2017-06-22 17:40:47 +09:00
|
|
|
- id: security_group_id_body
|
2016-07-21 16:42:57 +09:00
|
|
|
- name: name
|
|
|
|
- rules: rules
|
|
|
|
- tenant_id: tenant_id_body
|
|
|
|
|
|
|
|
|
2016-10-10 14:50:17 -04:00
|
|
|
**Example List security groups by server**
|
2016-07-21 16:42:57 +09:00
|
|
|
|
|
|
|
.. literalinclude:: ../../doc/api_samples/os-security-groups/server-security-groups-list-resp.json
|
|
|
|
:language: javascript
|