Lists subnetworks that can be used for creating clusters in a project.
Arguments
Parameters | |
---|---|
parent |
Required. The parent project where subnetworks are usable. Specified in the format
|
filter |
Filtering currently only supports equality on the networkProjectId and must be in the form: "networkProjectId=[PROJECTID]", where
|
pageSize |
The max number of results per page that should be returned. If the number of available results is larger than
|
pageToken |
Specifies a page token to use. Set this to the nextPageToken returned by previous list requests to get the next page of results.
|
Raised exceptions
Exceptions | |
---|---|
ConnectionError |
In case of a network problem (such as DNS failure or refused connection). |
HttpError |
If the response status is >= 400 (excluding 429 and 503). |
TimeoutError |
If a long-running operation takes longer to finish than the specified timeout limit. |
TypeError |
If an operation or function receives an argument of the wrong type. |
ValueError |
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout. |
Response
If successful, the response contains an instance of ListUsableSubnetworksResponse
.
Subworkflow snippet
Some fields might be optional or required. To identify required fields, refer to the API documentation.
YAML
- list: call: googleapis.container.v1beta1.projects.aggregated.usableSubnetworks.list args: parent: ... filter: ... pageSize: ... pageToken: ... result: listResult
JSON
[ { "list": { "call": "googleapis.container.v1beta1.projects.aggregated.usableSubnetworks.list", "args": { "parent": "...", "filter": "...", "pageSize": "...", "pageToken": "..." }, "result": "listResult" } } ]