Skip to content

Commit 010d5d1

Browse files
committed
Document network resource query filters used by OSC
Document the network resource query filters used by the OpenStackClient commands. Change-Id: I42e0c4623af6260f323db8113e4b969584bf9ee1 Partially-Implements: blueprint network-command-sdk-support
1 parent 15d7c4e commit 010d5d1

File tree

1 file changed

+48
-16
lines changed

1 file changed

+48
-16
lines changed

openstack/network/v2/_proxy.py

Lines changed: 48 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,14 @@ def networks(self, **query):
802802
"""Return a generator of networks
803803
804804
:param kwargs \*\*query: Optional query parameters to be sent to limit
805-
the resources being returned.
805+
the resources being returned. Available parameters include:
806+
807+
* ``admin_state_up``: Network administrative state is up (boolean)
808+
* ``name``: Network name
809+
* ``router:external``: Network is external (boolean)
810+
* ``shared``: Network is shared (boolean)
811+
* ``status``: Network status
812+
* ``tenant_id``: Owner tenant ID
806813
807814
:returns: A generator of network objects
808815
:rtype: :class:`~openstack.network.v2.network.Network`
@@ -938,7 +945,10 @@ def network_ip_availabilities(self, **query):
938945
"""Return a generator of network ip availabilities
939946
940947
:param kwargs \*\*query: Optional query parameters to be sent to limit
941-
the resources being returned.
948+
the resources being returned. Available parameters include:
949+
950+
* ``ip_version``: IP version of the network
951+
* ``tenant_id``: Owner tenant ID
942952
943953
:returns: A generator of network ip availability objects
944954
:rtype: :class:`~openstack.network.v2.network_ip_availability.
@@ -1195,7 +1205,11 @@ def ports(self, **query):
11951205
"""Return a generator of ports
11961206
11971207
:param kwargs \*\*query: Optional query parameters to be sent to limit
1198-
the resources being returned.
1208+
the resources being returned. Available parameters include:
1209+
1210+
* ``device_id``: Port device ID
1211+
* ``device_owner``: Port device owner (e.g. ``network:dhcp``)
1212+
* ``network_id``: ID of network that owns the ports
11991213
12001214
:returns: A generator of port objects
12011215
:rtype: :class:`~openstack.network.v2.port.Port`
@@ -1834,11 +1848,10 @@ def rbac_policies(self, **query):
18341848
:param kwargs \*\*query: Optional query parameters to be sent to limit
18351849
the resources being returned. Available parameters include:
18361850
1837-
* tenant_id: The owner tenant ID.
1838-
* target_tenant: ID of the tenant to which the RBAC policy
1839-
will be enforced.
1840-
* object_type: Type of the object that RBAC policy affects.
1841-
* action: Action for the RBAC policy.
1851+
* ``action``: RBAC policy action
1852+
* ``object_type``: Type of the object that the RBAC policy affects
1853+
* ``target_tenant``: ID of the tenant that the RBAC policy affects
1854+
* ``tenant_id``: Owner tenant ID
18421855
18431856
:returns: A generator of rbac objects
18441857
:rtype: :class:`~openstack.network.v2.rbac_policy.RBACPolicy`
@@ -2171,7 +2184,11 @@ def security_group_rules(self, **query):
21712184
"""Return a generator of security group rules
21722185
21732186
:param kwargs \*\*query: Optional query parameters to be sent to limit
2174-
the resources being returned.
2187+
the resources being returned. Available parameters include:
2188+
2189+
* ``direction``: Security group rule direction
2190+
* ``protocol``: Security group rule protocol
2191+
* ``security_group_id``: ID of security group that owns the rules
21752192
21762193
:returns: A generator of security group rule objects
21772194
:rtype: :class:`~openstack.network.v2.security_group_rule.
@@ -2241,11 +2258,11 @@ def segments(self, **query):
22412258
:param kwargs \*\*query: Optional query parameters to be sent to limit
22422259
the resources being returned. Available parameters include:
22432260
2244-
* name: Name of the segments
2245-
* network_id: ID of the network that owns the segments
2246-
* network_type: Network type for the segments
2247-
* physical_network: Physical network name for the segments
2248-
* segmentation_id: Segmentation ID for the segments
2261+
* ``name``: Name of the segments
2262+
* ``network_id``: ID of the network that owns the segments
2263+
* ``network_type``: Network type for the segments
2264+
* ``physical_network``: Physical network name for the segments
2265+
* ``segmentation_id``: Segmentation ID for the segments
22492266
22502267
:returns: A generator of segment objects
22512268
:rtype: :class:`~openstack.network.v2.segment.Segment`
@@ -2323,7 +2340,16 @@ def subnets(self, **query):
23232340
"""Return a generator of subnets
23242341
23252342
:param kwargs \*\*query: Optional query parameters to be sent to limit
2326-
the resources being returned.
2343+
the resources being returned. Available parameters include:
2344+
2345+
* ``cidr``: Subnet CIDR
2346+
* ``enable_dhcp``: Subnet has DHCP enabled (boolean)
2347+
* ``gateway_ip``: Subnet gateway IP address
2348+
* ``ip_version``: Subnet IP address version
2349+
* ``name``: Subnet name
2350+
* ``network_id``: ID of network that owns the subnets
2351+
* ``service_types``: Subnet service types
2352+
* ``tenant_id``: Owner tenant ID
23272353
23282354
:returns: A generator of subnet objects
23292355
:rtype: :class:`~openstack.network.v2.subnet.Subnet`
@@ -2402,7 +2428,13 @@ def subnet_pools(self, **query):
24022428
"""Return a generator of subnet pools
24032429
24042430
:param kwargs \*\*query: Optional query parameters to be sent to limit
2405-
the resources being returned.
2431+
the resources being returned. Available parameters include:
2432+
2433+
* ``address_scope_id``: Subnet pool address scope ID
2434+
* ``is_default``: Subnet pool is the default (boolean)
2435+
* ``name``: Subnet pool name
2436+
* ``shared``: Subnet pool is shared (boolean)
2437+
* ``tenant_id``: Owner tenant ID
24062438
24072439
:returns: A generator of subnet pool objects
24082440
:rtype: :class:`~openstack.network.v2.subnet_pool.SubnetPool`

0 commit comments

Comments
 (0)