2016-04-12 09:03:46 -04:00
|
|
|
.. -*- rst -*-
|
2016-09-07 20:08:46 +09:00
|
|
|
|
2016-04-20 16:10:51 -04:00
|
|
|
.. needs:body_verification
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-06-14 15:31:18 +09:00
|
|
|
================================================================================
|
|
|
|
Rules for default security group (os-security-group-default-rules) (DEPRECATED)
|
|
|
|
================================================================================
|
|
|
|
|
|
|
|
.. warning::
|
|
|
|
|
|
|
|
This API only available with ``nova-network`` which is
|
|
|
|
deprecated. It should be avoided in any new applications.
|
2016-12-10 15:57:14 +08:00
|
|
|
These will fail with a 404 starting from microversion 2.36.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Lists, shows information for, and creates default security group rules.
|
|
|
|
|
|
|
|
List Default Security Group Rules
|
|
|
|
=================================
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: GET /os-security-group-default-rules
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Lists default security group rules.
|
|
|
|
|
2016-04-18 16:41:58 -07:00
|
|
|
Normal response codes: 200
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-11 21:07:54 +00:00
|
|
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404), notImplemented(501)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-09-07 20:08:46 +09:00
|
|
|
- security_group_default_rules: security_group_default_rules
|
2016-04-12 09:03:46 -04:00
|
|
|
- from_port: from_port
|
2016-09-07 20:08:46 +09:00
|
|
|
- id: secgroup_default_rule_id
|
2016-04-12 09:03:46 -04:00
|
|
|
- ip_protocol: ip_protocol
|
2016-09-07 20:08:46 +09:00
|
|
|
- ip_range: secgroup_rule_ip_range
|
|
|
|
- ip_range.cidr: secgroup_rule_cidr
|
2016-04-12 09:03:46 -04:00
|
|
|
- to_port: to_port
|
|
|
|
|
|
|
|
**Example List default security group rules: JSON response**
|
|
|
|
|
|
|
|
.. literalinclude:: ../../doc/api_samples/os-security-group-default-rules/security-group-default-rules-list-resp.json
|
|
|
|
:language: javascript
|
|
|
|
|
2016-05-11 21:07:54 +00:00
|
|
|
Show Default Security Group Rule Details
|
|
|
|
========================================
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: GET /os-security-group-default-rules/{security_group_default_rule_id}
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-11 21:07:54 +00:00
|
|
|
Shows details for a security group rule.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-18 16:41:58 -07:00
|
|
|
Normal response codes: 200
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-11 21:07:54 +00:00
|
|
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404), notImplemented(501)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Request
|
2016-04-14 13:10:59 -04:00
|
|
|
-------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-05-11 21:07:54 +00:00
|
|
|
- security_group_default_rule_id: security_group_default_rule_id
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-09-07 20:08:46 +09:00
|
|
|
- security_group_default_rule: security_group_default_rule
|
2016-04-12 09:03:46 -04:00
|
|
|
- from_port: from_port
|
2016-09-07 20:08:46 +09:00
|
|
|
- id: secgroup_default_rule_id
|
2016-04-12 09:03:46 -04:00
|
|
|
- ip_protocol: ip_protocol
|
2016-09-07 20:08:46 +09:00
|
|
|
- ip_range: secgroup_rule_ip_range
|
|
|
|
- ip_range.cidr: secgroup_rule_cidr
|
2016-04-12 09:03:46 -04:00
|
|
|
- to_port: to_port
|
|
|
|
|
2016-05-11 21:07:54 +00:00
|
|
|
**Example Show default security group rule: JSON response**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-11 21:07:54 +00:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-security-group-default-rules/security-group-default-rules-show-resp.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|
|
|
|
|
2016-05-11 21:07:54 +00:00
|
|
|
Create Default Security Group Rule
|
|
|
|
==================================
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: POST /os-security-group-default-rules
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-11 21:07:54 +00:00
|
|
|
Creates a default security group rule.
|
|
|
|
|
|
|
|
If you specify a source port ( ``from_port`` ) or destination port ( ``to_port`` ) value, you must specify an
|
|
|
|
IP protocol ( ``ip_protocol`` ) value. Otherwise, the operation returns the ``Bad Request (400)`` response code.
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-04-18 16:41:58 -07:00
|
|
|
Normal response codes: 200
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-11 21:07:54 +00:00
|
|
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403), conflict(409), notImplemented(501)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Request
|
2016-04-14 13:10:59 -04:00
|
|
|
-------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-09-07 20:08:46 +09:00
|
|
|
- security_group_default_rule: security_group_default_rule
|
2016-05-11 21:07:54 +00:00
|
|
|
- ip_protocol: ip_protocol
|
|
|
|
- from_port: from_port
|
|
|
|
- to_port: to_port
|
2016-09-07 20:08:46 +09:00
|
|
|
- cidr: secgroup_rule_cidr
|
2016-05-11 21:07:54 +00:00
|
|
|
|
|
|
|
**Example Create default security group rule: JSON request**
|
|
|
|
|
|
|
|
.. literalinclude:: ../../doc/api_samples/os-security-group-default-rules/security-group-default-rules-create-req.json
|
|
|
|
:language: javascript
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-09-07 20:08:46 +09:00
|
|
|
- security_group_default_rule: security_group_default_rule
|
2016-04-12 09:03:46 -04:00
|
|
|
- from_port: from_port
|
2016-09-07 20:08:46 +09:00
|
|
|
- id: secgroup_default_rule_id
|
2016-04-12 09:03:46 -04:00
|
|
|
- ip_protocol: ip_protocol
|
2016-09-07 20:08:46 +09:00
|
|
|
- ip_range: secgroup_rule_ip_range
|
|
|
|
- ip_range.cidr: secgroup_rule_cidr
|
2016-04-12 09:03:46 -04:00
|
|
|
- to_port: to_port
|
|
|
|
|
2016-05-11 21:07:54 +00:00
|
|
|
**Example Create default security group rule: JSON response**
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-11 21:07:54 +00:00
|
|
|
.. literalinclude:: ../../doc/api_samples/os-security-group-default-rules/security-group-default-rules-create-resp.json
|
2016-04-12 09:03:46 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Delete Default Security Group Rule
|
|
|
|
==================================
|
|
|
|
|
2016-06-02 08:50:03 -04:00
|
|
|
.. rest_method:: DELETE /os-security-group-default-rules/{security_group_default_rule_id}
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Deletes a security group rule.
|
|
|
|
|
2016-04-18 16:41:58 -07:00
|
|
|
Normal response codes: 204
|
2016-04-12 09:03:46 -04:00
|
|
|
|
2016-05-11 21:07:54 +00:00
|
|
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404), notImplemented(501)
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
Request
|
2016-04-14 13:10:59 -04:00
|
|
|
-------
|
2016-04-12 09:03:46 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- security_group_default_rule_id: security_group_default_rule_id
|
|
|
|
|
|
|
|
Response
|
2016-04-14 13:10:59 -04:00
|
|
|
--------
|