query_objects
async
¶
query_objects(
pipeline_id: id,
sphere: string,
*,
config_overrides: Optional[AsyncDataPipelineClientConfig] = None,
query: Optional[Query] = None,
marker: Optional[string] = None,
limit: Optional[int] = None,
) -> QueryObjectsOutput
Queries the specified pipeline for the names of objects that match the specified set of conditions.
Parameters:
-
pipeline_id(id) –The ID of the pipeline.
-
query(Optional[Query], default:None) –The query that defines the objects to be returned. The
Queryobject can contain a maximum of ten selectors. The conditions in the query are limited to top-level String fields in the object. These filters can be applied to components, instances, and attempts. -
sphere(string) –Indicates whether the query applies to components or instances. The possible values are:
COMPONENT,INSTANCE, andATTEMPT. -
marker(Optional[string], default:None) –The starting point for the results to be returned. For the first call, this value should be empty. As long as there are more results, continue to call
QueryObjectswith the marker value from the previous call to retrieve the next set of results. -
limit(Optional[int], default:None) –The maximum number of object names that
QueryObjectswill return in a single call. The default value is 100.
Raises:
-
InternalServiceError–An internal service error occurred.
-
InvalidRequestException–The request was not valid. Verify that your request was properly formatted, that the signature was generated with the correct credentials, and that you haven't exceeded any of the service limits for your account.
-
PipelineDeletedException–The specified pipeline has been deleted.
-
PipelineNotFoundException–The specified pipeline was not found. Verify that you used the correct user and account identifiers.
-
UnknownServiceError–The service returned an error code this client does not model.