osc network metering metering-label-rule list

Lists a summary of all L3 metering label rules that belong to the project.

The list shows the ID for each metering label 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 metering metering-label-rule list [OPTIONS]

Options:

  • --destination-ip-prefix <DESTINATION_IP_PREFIX> — The destination IP prefix that the metering rule is associated with; in this context, destination IP prefix represents the destination IP of the network packet. Therefore, for an ingress rule, the destination IP is the internal IP associated with some OpenStack VM. On the other hand, for an egress rule, the destination IP prefix is the IP of some external system that an application running inside some OpenStack virtual machine is trying to access. Moreover, instead of an IP, one can also use a CIDR as the destination IP prefix

  • --direction <DIRECTION> — direction query parameter for /v2.0/metering/metering-label-rules API

    Possible values: egress, ingress

  • --excluded <EXCLUDED> — excluded query parameter for /v2.0/metering/metering-label-rules API

    Possible values: true, false

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

  • --metering-label-id <METERING_LABEL_ID> — metering_label_id query parameter for /v2.0/metering/metering-label-rules API

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

    Possible values: true, false

  • --remote-ip-prefix <REMOTE_IP_PREFIX> — remote_ip_prefix query parameter for /v2.0/metering/metering-label-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

  • --source-ip-prefix <SOURCE_IP_PREFIX> — The source IP prefix that the metering rule is associated with; in this context, source IP prefix represents the source IP of the network packet. Therefore, for an ingress rule, the source IP is the IP of the system accessing something inside OpenStack. On the other hand, for an egress rule, the source IP is the internal IP associated with some OpenStack VM. Moreover, instead of an IP, one can also use a CIDR as the source IP prefix

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

    Default value: 10000