Govern Artifact Search#
The artifact search handler is used to search among artifacts.
Search for all the Govern Project artifacts#
import dataikuapi
from dataikuapi.govern.artifact_search import GovernArtifactSearchQuery, GovernArtifactFilterBlueprints
host = "http(s)://GOVERN_HOST:GOVERN_PORT"
apiKey = "Your API key secret"
client = dataikuapi.GovernClient(host, apiKey)
# build a query
govern_projects_query = GovernArtifactSearchQuery(artifact_filters=[GovernArtifactFilterBlueprints(blueprint_ids=['bp.system.govern_project'])])
# build a request
request = client.new_artifact_search_request(govern_projects_query)
# perform the search (first batch)
result_1 = request.fetch_next_batch()
# continue the search (next batch)...
result_2 = request.fetch_next_batch()
Reference documentation#
|
A search request object. |
|
A search request response for a single batch. |
|
A search request response. |
|
A definition of an artifact query. |
|
An abstract class to represent the different search source. |
|
A generic search source definition. |
|
An abstract class to represent the different search sort. |
|
An artifact sort definition based on their names. |
|
An artifact sort defintion based on their workflow. |
|
An artifact sort definition based on a list of fields. |
|
A field sort definition builder to use in a search query in order to sort on a field of a blueprint. |
An abstract class to represent artifact filters. |
|
|
An artifact filter definition based on a list of specific blueprints. |
|
An artifact filter definition based on a list of specific blueprint versions. |
|
An artifact filter definition based on a list of specific artifacts. |
|
An artifact filter definition based on specific fields value. |
|
An artifact filter definition based on the archived status. |