Complete the api-ref of security group rule
Adding the correct path of examples in security group rules api-ref. Change-Id: I9b7ee5d6da7837901089861d0252f9792a817ce4
This commit is contained in:
parent
34956bea4b
commit
917d8a41a2
@ -1,6 +1,4 @@
|
|||||||
.. -*- rst -*-
|
.. -*- rst -*-
|
||||||
.. needs:example_verification
|
|
||||||
.. needs:body_verification
|
|
||||||
|
|
||||||
================================================================
|
================================================================
|
||||||
Rules for security group (os-security-group-rules) (DEPRECATED)
|
Rules for security group (os-security-group-rules) (DEPRECATED)
|
||||||
@ -46,11 +44,10 @@ Request
|
|||||||
- cidr: secgroup_rule_cidr
|
- cidr: secgroup_rule_cidr
|
||||||
- group_id: group_id
|
- group_id: group_id
|
||||||
|
|
||||||
.. TODO(sdague): we currently have no samples here
|
**Example Create security group rule: JSON request**
|
||||||
**Example Create security group rule: JSON request**
|
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/os-security-group-rules/security-group-rule-create-req.json
|
.. literalinclude:: ../../doc/api_samples/os-security-groups/security-group-rules-post-req.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
@ -66,18 +63,17 @@ The ``ip_range`` is empty if ``cidr`` was not provided on the request.
|
|||||||
- from_port: from_port
|
- from_port: from_port
|
||||||
- to_port: to_port
|
- to_port: to_port
|
||||||
- ip_range: secgroup_rule_ip_range
|
- ip_range: secgroup_rule_ip_range
|
||||||
- cidr: secgroup_rule_cidr
|
- ip_range.cidr: secgroup_rule_cidr
|
||||||
- id: secgroup_rule_id
|
- id: secgroup_rule_id
|
||||||
- group: group
|
|
||||||
- parent_group_id: parent_group_id
|
- parent_group_id: parent_group_id
|
||||||
- name: name
|
- group: group
|
||||||
- tenant_id: secgroup_tenant_id_body
|
- group.name: name_sec_group_optional
|
||||||
|
- group.tenant_id: secgroup_tenant_id_body
|
||||||
|
|
||||||
.. TODO(sdague): we currently have no samples here
|
**Example Create security group rule: JSON response**
|
||||||
**Example Create security group rule: JSON response**
|
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/os-security-group-rules/security-group-rule-create-resp.json
|
.. literalinclude:: ../../doc/api_samples/os-security-groups/security-group-rules-post-resp.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
Delete Security Group Rule
|
Delete Security Group Rule
|
||||||
==========================
|
==========================
|
||||||
|
@ -4467,6 +4467,12 @@ name:
|
|||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
name_sec_group_optional:
|
||||||
|
description: |
|
||||||
|
The security group name.
|
||||||
|
in: body
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
name_server_group:
|
name_server_group:
|
||||||
description: |
|
description: |
|
||||||
The name of the server group.
|
The name of the server group.
|
||||||
@ -5463,7 +5469,7 @@ secgroup_tenant_id_body:
|
|||||||
description: |
|
description: |
|
||||||
The UUID of the tenant that owns this security group.
|
The UUID of the tenant that owns this security group.
|
||||||
in: body
|
in: body
|
||||||
required: true
|
required: false
|
||||||
type: string
|
type: string
|
||||||
security_group:
|
security_group:
|
||||||
description: |
|
description: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user