View a Cluster on Google Cloud Platform¶
-
GET
/api/v2/clusters/<cluster ID>
¶
Use this API to view a specific cluster’s information/configuration.
Required Role¶
The following users can make this API call:
- Users who belong to the system-admin or system-user group.
- Users who belong to a group associated with a role that allows creating a cluster. See Managing Groups and Managing Roles for more information.
Parameters¶
None
Request API Syntax¶
curl -X GET -H "X-AUTH-TOKEN:$X_AUTH_TOKEN" -H "Content-Type:application/json" -H "Accept: application/json" \
"https://gcp.qubole.com/api/v2/clusters/<cluster-ID>"
Sample API Request¶
Here is a sample request to view the cluster configuration that has 302 as its ID.
curl -X GET -H "X-AUTH-TOKEN:$X_AUTH_TOKEN" -H "Content-Type:application/json" -H "Accept: application/json" \
"https://gcp.qubole.com/api/v2/clusters/302"