osc network subnet list
Lists subnets that the project has access to.
Default policy settings return only subnets owned by the project of the user submitting the request, unless the user has administrative role. You can control which attributes are returned by using the fields query parameter. You can filter results by using query string parameters.
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 subnet list [OPTIONS]
Options:
-
--cidr <CIDR>
— cidr query parameter for /v2.0/subnets API -
--description <DESCRIPTION>
— description query parameter for /v2.0/subnets API -
--enable-dhcp <ENABLE_DHCP>
— enable_dhcp query parameter for /v2.0/subnets APIPossible values:
true
,false
-
--gateway-ip <GATEWAY_IP>
— gateway_ip query parameter for /v2.0/subnets API -
--id <ID>
— id query parameter for /v2.0/subnets API -
--ip-version <IP_VERSION>
— ip_version query parameter for /v2.0/subnets API -
--ipv6-address-mode <IPV6_ADDRESS_MODE>
— ipv6_address_mode query parameter for /v2.0/subnets APIPossible values:
dhcpv6-stateful
,dhcpv6-stateless
,slaac
-
--ipv6-ra-mode <IPV6_RA_MODE>
— ipv6_ra_mode query parameter for /v2.0/subnets APIPossible values:
dhcpv6-stateful
,dhcpv6-stateless
,slaac
-
--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/subnets API -
--network-id <NETWORK_ID>
— network_id query parameter for /v2.0/subnets API -
--not-tags <NOT_TAGS>
— not-tags query parameter for /v2.0/subnets API -
--not-tags-any <NOT_TAGS_ANY>
— not-tags-any query parameter for /v2.0/subnets API -
--page-reverse <PAGE_REVERSE>
— Reverse the page directionPossible values:
true
,false
-
--revision-number <REVISION_NUMBER>
— revision_number query parameter for /v2.0/subnets API -
--router-external <ROUTER_EXTERNAL>
— The membership of a subnet to an external networkPossible values:
true
,false
-
--segment-id <SEGMENT_ID>
— segment_id query parameter for /v2.0/subnets API -
--shared <SHARED>
— shared query parameter for /v2.0/subnets APIPossible 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 -
--subnetpool-id <SUBNETPOOL_ID>
— subnetpool_id query parameter for /v2.0/subnets API -
--tags <TAGS>
— tags query parameter for /v2.0/subnets API -
--tags-any <TAGS_ANY>
— tags-any query parameter for /v2.0/subnets API -
--tenant-id <TENANT_ID>
— tenant_id query parameter for /v2.0/subnets API -
--max-items <MAX_ITEMS>
— Total limit of entities count to return. Use this when there are too many entriesDefault value:
10000