168a500570
- Update server_id params to be of type path. - Cleaned up os-getConsoleOutput action string. - Made empty response body description more consistent. Review and change as needed. Implements: bp/api-ref-in-rst-ocata Change-Id: Ie1e299d2b93188240b18138eba9f5b908a1078a4
44 lines
946 B
ReStructuredText
44 lines
946 B
ReStructuredText
.. -*- rst -*-
|
|
|
|
======================================================
|
|
Servers Security Groups (servers, os-security-groups)
|
|
======================================================
|
|
|
|
Lists Security Groups for a server instance.
|
|
|
|
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
|