nova/api-ref/source/server-security-groups.inc
ghanshyam 49cade591f Fix 'server' and 'instance' occurrence in api-ref
some api-ref have sentence like '..for a server instance'
which is inconsistent and confusing as we use server for VM terminology.
I think here 'instance' word is being considered object of server which
is wrong.

We should always mention server only.

part of bp:api-ref-in-rst-pike

Change-Id: I32afe56cfc66b34b76d1f7e1b507d3d5e722e6a1
2017-03-28 02:54:11 +00:00

44 lines
937 B
ReStructuredText

.. -*- rst -*-
======================================================
Servers Security Groups (servers, os-security-groups)
======================================================
Lists Security Groups for a server.
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
- server_id: server_id_path
Response
--------
.. rest_parameters:: parameters.yaml
- security_groups: security_groups
- description: description
- id: id
- name: name
- rules: rules
- tenant_id: tenant_id_body
**Example List security groups by server**
.. literalinclude:: ../../doc/api_samples/os-security-groups/server-security-groups-list-resp.json
:language: javascript