Separate api-ref for list security groups by server
All proxy APIs are now deprecated which includes sec grp APIs also. But list sec grps by server API- (/servers/{server_id}/os-security-groups) is not deprecated so this should be separated from deprecated sec grp APIs in api-ref. Partially implements blueprint deprecate-api-proxies Change-Id: I9f9e2cf5f8e390cecd9e1794a0af1a3fcc24f149
This commit is contained in:
parent
eec3a2b9e8
commit
bceeecc296
@ -18,6 +18,7 @@
|
|||||||
.. include:: servers-action-shelve.inc
|
.. include:: servers-action-shelve.inc
|
||||||
.. include:: servers-action-crash-dump.inc
|
.. include:: servers-action-crash-dump.inc
|
||||||
.. include:: servers-admin-action.inc
|
.. include:: servers-admin-action.inc
|
||||||
|
.. include:: server-security-groups.inc
|
||||||
.. include:: diagnostics.inc
|
.. include:: diagnostics.inc
|
||||||
.. include:: ips.inc
|
.. include:: ips.inc
|
||||||
.. include:: metadata.inc
|
.. include:: metadata.inc
|
||||||
|
@ -190,39 +190,3 @@ Response
|
|||||||
--------
|
--------
|
||||||
|
|
||||||
There is no body content for the response of a successful DELETE query.
|
There is no body content for the response of a successful DELETE query.
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
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: JSON response**
|
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/os-security-groups/server-security-groups-list-resp.json
|
|
||||||
:language: javascript
|
|
||||||
|
43
api-ref/source/server-security-groups.inc
Normal file
43
api-ref/source/server-security-groups.inc
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
.. -*- 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
|
||||||
|
|
||||||
|
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: JSON response**
|
||||||
|
|
||||||
|
.. literalinclude:: ../../doc/api_samples/os-security-groups/server-security-groups-list-resp.json
|
||||||
|
:language: javascript
|
Loading…
x
Reference in New Issue
Block a user