Lists Contexts on the MetadataStore.
Arguments
Parameters | |
---|---|
parent |
Required. The MetadataStore whose Contexts should be listed. Format: |
filter |
Filter specifying the boolean condition for the Contexts to satisfy in order to be part of the result set. The syntax to define filter query is based on https://google.aip.dev/160. Following are the supported set of filters: * Attribute filtering: For example: |
orderBy |
How the list of messages is ordered. Specify the values to order by and an ordering operation. The default sorting order is ascending. To specify descending order for a field, users append a " desc" suffix; for example: "foo desc, bar". Subfields are specified with a |
pageSize |
The maximum number of Contexts to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100. |
pageToken |
A page token, received from a previous MetadataService.ListContexts call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.) |
region |
Required. Region of the HTTP endpoint. For example, if region is set to |
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 GoogleCloudAiplatformV1ListContextsResponse
.
Subworkflow snippet
Some fields might be optional or required. To identify required fields, refer to the API documentation.
YAML
- list: call: googleapis.aiplatform.v1.projects.locations.metadataStores.contexts.list args: parent: ... filter: ... orderBy: ... pageSize: ... pageToken: ... region: ... result: listResult
JSON
[ { "list": { "call": "googleapis.aiplatform.v1.projects.locations.metadataStores.contexts.list", "args": { "parent": "...", "filter": "...", "orderBy": "...", "pageSize": "...", "pageToken": "...", "region": "..." }, "result": "listResult" } } ]