osc network security-group-rule list
Lists a summary of all OpenStack Networking security group rules that the project can access.
The list provides the ID for each security group rule.
Standard query parameters are supported on the URI. For more information, see Filtering and Column Selection.
Use the fields
query parameter to control which fields are returned in the response body. For more information, see Fields.
Pagination query parameters are supported if Neutron configuration supports it by overriding allow_pagination=false
. For more information, see Pagination.
Sorting query parameters are supported if Neutron configuration supports it with allow_sorting=true
. For more information, see Sorting.
Normal response codes: 200
Error response codes: 401
Usage: osc network security-group-rule list [OPTIONS]
Options:
-
--belongs-to-default-sg <BELONGS_TO_DEFAULT_SG>
— belongs_to_default_sg query parameter for /v2.0/security-group-rules APIPossible values:
true
,false
-
--description <DESCRIPTION>
— description query parameter for /v2.0/security-group-rules API -
--direction <DIRECTION>
— direction query parameter for /v2.0/security-group-rules APIPossible values:
egress
,ingress
-
--ethertype <ETHERTYPE>
— ethertype query parameter for /v2.0/security-group-rules APIPossible values:
IPv4
,IPv6
-
--id <ID>
— id query parameter for /v2.0/security-group-rules API -
--limit <LIMIT>
— Requests a page size of items. Returns a number of items up to a limit value. Use the limit parameter to make an initial limited request and use the ID of the last-seen item from the response as the marker parameter value in a subsequent limited request -
--marker <MARKER>
— The ID of the last-seen item. Use the limit parameter to make an initial limited request and use the ID of the last-seen item from the response as the marker parameter value in a subsequent limited request -
--normalized-cidr <NORMALIZED_CIDR>
— normalized_cidr query parameter for /v2.0/security-group-rules API -
--page-reverse <PAGE_REVERSE>
— Reverse the page directionPossible values:
true
,false
-
--port-range-max <PORT_RANGE_MAX>
— port_range_max query parameter for /v2.0/security-group-rules API -
--port-range-min <PORT_RANGE_MIN>
— port_range_min query parameter for /v2.0/security-group-rules API -
--protocol <PROTOCOL>
— protocol query parameter for /v2.0/security-group-rules API -
--remote-address-group-id <REMOTE_ADDRESS_GROUP_ID>
— remote_address_group_id query parameter for /v2.0/security-group-rules API -
--remote-group-id <REMOTE_GROUP_ID>
— remote_group_id query parameter for /v2.0/security-group-rules API -
--remote-ip-prefix <REMOTE_IP_PREFIX>
— remote_ip_prefix query parameter for /v2.0/security-group-rules API -
--revision-number <REVISION_NUMBER>
— revision_number query parameter for /v2.0/security-group-rules API -
--security-group-id <SECURITY_GROUP_ID>
— security_group_id query parameter for /v2.0/security-group-rules API -
--sort-dir <SORT_DIR>
— Sort direction. This is an optional feature and may be silently ignored by the server -
--sort-key <SORT_KEY>
— Sort results by the attribute. This is an optional feature and may be silently ignored by the server -
--tenant-id <TENANT_ID>
— tenant_id query parameter for /v2.0/security-group-rules API -
--max-items <MAX_ITEMS>
— Total limit of entities count to return. Use this when there are too many entriesDefault value:
10000