I have a doubt regarding how to tag the cluster of the job cluster in databricks via api.
I know that I can already tag a cluster and the job, but I wanted to tag the cluster of the cluster job, is this possible?
I tried to use the "jobs/update" endpoint to insert the tag in the job cluster and even inserting these fields it still gets the same error:
Example of request:
curl --location --request POST 'https://databricks.com/api/2.0/jobs/update' \
--header 'Authorization: Bearer token' \
--header 'Content-Type: application/json' \
--data-raw '{
"job_id": 123456789,
"new_settings": {
"job_clusters": [
{
"job_cluster_key": "test",
"new_cluster": {
"custom_tags": {"test": "123"}
}
}
]
}
}'
I want to tag the resource (cluster) within the cluster job, is it possible via api? Has anyone performed this action?