Body Required
Query to use for finding workflows.
-
from integer
Starting point of results for paging.
Default value is
0
. -
size integer
Maximum number of results to return (for paging).
-
sort array[object] | null
How the results should be sorted.
-
query object | null
Query in Elastic's Query DSL.
-
post_filter object | null
Optional mechanism to further filter search results. (See Elastic's post filter details.)
POST /api/service/workflows/indexsearch
curl \
-X POST https://tenant.atlan.com/api/service/workflows/indexsearch \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"from":0,"size":20,"sort":[{"metadata.creationTimestamp":{"order":"desc","nested_path":"metadata"}}],"query":{"bool":{"must":[{"nested":{"path":"metadata","query":{"term":{"metadata.annotations.package.argoproj.io/name.keyword":"@atlan/snowflake"}}}}]}},"_source":{"excludes":["spec"]}}'
Request example
{
"from": 0,
"size": 20,
"sort": [
{
"metadata.creationTimestamp": {
"order": "desc",
"nested_path": "metadata"
}
}
],
"query": {
"bool": {
"must": [
{
"nested": {
"path": "metadata",
"query": {
"term": {
"metadata.annotations.package.argoproj.io/name.keyword": "@atlan/snowflake"
}
}
}
}
]
}
},
"_source": {
"excludes": [
"spec"
]
}
}
Response example (200)
{
"took": 21,
"hits": {
"total": {
"value": 31,
"relation": "eq"
},
"hits": [
{
"_index": "atlan_argo_workflow_templates",
"_type": "_doc",
"_id": "atlan-snowflake-default-snowflake-1645488678",
"sort": [
1645488678000
],
"_source": {
"kind": "WorkflowTemplate",
"apiVersion": "argoproj.io/v1alpha1",
"metadata": {
"name": "atlan-snowflake-default-snowflake-1645488678",
"namespace": "default",
"uid": "bdfd3fe3-6a69-42db-b479-95d19de99cb5",
"generation": 1,
"creationTimestamp": "2022-02-22T00:11:18Z",
"labels": {
"orchestration.atlan.com/atlan-ui": "true",
"orchestration.atlan.com/certified": "true",
"orchestration.atlan.com/default-snowflake-1645488678": "true",
"orchestration.atlan.com/source": "snowflake",
"orchestration.atlan.com/sourceCategory": "warehouse",
"orchestration.atlan.com/type": "connector",
"orchestration.atlan.com/verified": "true",
"package.argoproj.io/installer": "argopm",
"package.argoproj.io/name": "a-t-ratlans-l-a-s-hsnowflake",
"package.argoproj.io/parent": "a-t-ratlans-l-a-s-hpackagesa-t-r0.2.189-beta.0",
"package.argoproj.io/registry": "httpsc-o-l-o-ns-l-a-s-hs-l-a-s-hpackages.atlan.com",
"package.argoproj.io/version": "0.3.73",
"workflows.argoproj.io/creator": "a3186db0-2bd2-4cbe-94e4-3c354cdd71e9",
"workflows.argoproj.io/creator-preferred-username": "service-account-apikey-6f7f1591-a247-42bd-a969-11ec2e654678"
},
"annotations": {
"orchestration.atlan.com/allowSchedule": "true",
"orchestration.atlan.com/categories": "warehouse,crawler",
"orchestration.atlan.com/dependentPackage": "",
"orchestration.atlan.com/emoji": "🚀",
"orchestration.atlan.com/icon": "https://docs.snowflake.com/en/_images/logo-snowflake-sans-text.png",
"orchestration.atlan.com/logo": "https://1amiydhcmj36tz3733v94f15-wpengine.netdna-ssl.com/wp-content/themes/snowflake/assets/img/logo-blue.svg",
"orchestration.atlan.com/marketplaceLink": "https://marketplace.atlan.com/-/web/detail/@atlan/snowflake",
"orchestration.atlan.com/name": "Snowflake Assets",
"package.argoproj.io/author": "Atlan",
"package.argoproj.io/description": "Package to crawl snowflake assets and publish to Atlan for discovery",
"package.argoproj.io/homepage": "https://marketplace.atlan.com/-/web/detail/@atlan/snowflake",
"package.argoproj.io/keywords": "[\"snowflake\",\"warehouse\",\"connector\",\"crawler\"]",
"package.argoproj.io/name": "@atlan/snowflake",
"package.argoproj.io/parent": "@atlan/packages@0.2.189-beta.0",
"package.argoproj.io/registry": "https://packages.atlan.com",
"package.argoproj.io/repository": "git+https://github.com/atlanhq/marketplace-packages.git",
"package.argoproj.io/support": "support@atlan.com"
}
},
"spec": {
"templates": [
{
"name": "main",
"inputs": {},
"outputs": {},
"metadata": {},
"dag": {
"tasks": [
{
"name": "run",
"arguments": {
"parameters": [
{
"name": "credential-guid",
"value": "1663274c-37f1-465f-8448-961f6e658009"
},
{
"name": "extract-strategy",
"value": "information-schema"
},
{
"name": "account-usage-database-name",
"value": "SNOWFLAKE"
},
{
"name": "account-usage-schema-name",
"value": "ACCOUNT_USAGE"
},
{
"name": "connection",
"value": "{\"attributes\":{\"name\":\"samples\",\"qualifiedName\": \"default/snowflake/1645488678\",\"adminGroups\": [\"base\"],\"allowQuery\":true,\"allowQueryPreview\": true,\"rowLimit\":\"10000\",\"defaultCredentialGuid\": \"1663274c-37f1-465f-8448-961f6e658009\", \"connectorName\":\"snowflake\",\"sourceLogo\": \"https://docs.snowflake.com/en/_images/logo-snowflake-sans-text.png\", \"isDiscoverable\":true,\"isEditable\":false, \"category\":\"warehouse\"},\"typeName\":\"Connection\"}"
},
{
"name": "include-filter",
"value": "{\"^SNOWFLAKE_SAMPLE_DATA$\":[\"^TPCDS_SF10TCL$\"]}"
},
{
"name": "auto-classification",
"value": "true"
},
{
"name": "attachment-confidence-threshold",
"value": "0.8"
}
]
},
"templateRef": {
"name": "atlan-snowflake",
"template": "main",
"clusterScope": true
}
}
]
}
}
],
"entrypoint": "main",
"arguments": {}
}
}
}
]
}
}