ENDPOINT_NOT_FOUND error coming for /2.0/clusters/list-zones API on Databricks running over GCP

hokam
New Contributor II

Hi,

I am trying to build the ETL data pipelines on databricks workspace that is running over GCP.

For automated cluster creation, when I´m trying to access list availability zones REST API of cluster creation, then it is failing with end point not found error response.

Below are the details of the call that I am making.

URL: https://xxxxxx.gcp.databricks.com/api/2.0/clusters/list-zones

Method Type: GET

Response:
{
  "error_code": "ENDPOINT_NOT_FOUND",
  "message": "Could not handle RPC class com.databricks.api.proto.cluster.ListAvailableZones."
}

Any help, on how to fix it?

hokam
New Contributor II

Hi @Retired_mod , I tried the region based gcp databricks url as well and this is also failing with invalid URL error. 

URLhttps://us-east4.gcp.databricks.com/api/2.0/clusters/list-zones

Response:

{
  "error_code": "400",
  "message": "Invalid URL. Please use the per-workspace URL and try again."
}

Also I have checked all the necessary permissions for SA and it is already available.

One more thing - on GCP workspace URL, list-node-types REST call is working fine and giving the expected result, but list-zones is failing.

Thanks