osc network security-group list

Lists OpenStack Networking security groups to which the project has access.

The response is an array of security_group objects which contains a list of security_group_rules objects.

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 list [OPTIONS]

Options:

  • --description <DESCRIPTION> — description query parameter for /v2.0/security-groups API

  • --id <ID> — id query parameter for /v2.0/security-groups 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

  • --name <NAME> — name query parameter for /v2.0/security-groups API

  • --not-tags <NOT_TAGS> — not-tags query parameter for /v2.0/security-groups API

  • --not-tags-any <NOT_TAGS_ANY> — not-tags-any query parameter for /v2.0/security-groups API

  • --page-reverse <PAGE_REVERSE> — Reverse the page direction

    Possible values: true, false

  • --revision-number <REVISION_NUMBER> — revision_number query parameter for /v2.0/security-groups API

  • --shared <SHARED> — shared query parameter for /v2.0/security-groups API

    Possible values: true, false

  • --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

  • --tags <TAGS> — tags query parameter for /v2.0/security-groups API

  • --tags-any <TAGS_ANY> — tags-any query parameter for /v2.0/security-groups API

  • --tenant-id <TENANT_ID> — tenant_id query parameter for /v2.0/security-groups API

  • --max-items <MAX_ITEMS> — Total limit of entities count to return. Use this when there are too many entries

    Default value: 10000