View Information for a QDS Account using API version 2

GET /api/v2/accounts/

Use this API to view the details of the current account. This API displays the Role ARN and External ID for an IAM Roles-based Qubole account.

Required Role

The following users can make this API call:

  • Users who belong to the system-user/system-admin groups can call this API request.

  • Users who belong to a group associated with a role that allows viewing an account’s details. See Managing Groups and Managing Roles for more information.

Parameters

None.

Request API Syntax

curl -X GET -H "X-AUTH-TOKEN:<AUTH-TOKEN>" -H "Content-Type: application/json" -H "Accept: application/json" \
"https://api.qubole.com/api/v2/accounts/"

Note

Qubole provides other endpoints to access QDS that are described in Supported Qubole Endpoints on Different Cloud Providers.

Sample Request

curl -X GET -H "X-AUTH-TOKEN:<AUTH-TOKEN>" -H "Content-Type: application/json" -H "Accept: application/json"
"https://api.qubole.com/api/v2/accounts/"

Sample Response

{
  "id": 8,
  "name": “account-data-analyst”,
  "storage_type": "CUSTOMER_MANAGED",
  "compute_type": "CUSTOMER_MANAGED",
  "storage_validated": true,
  "compute_validated": true,
  "is_aws_role_enabled": false,
  "idle_session_timeout": null,
  "storage_access_key": "$STORAGE_ACCESS_KEY",
  "storage_secret_key": "$STORAGE_SECRET_KEY",
  "storage_location": "data.com/logs/production",
  "authorized_ssh_key": null,
  "compute_access_key": "$COMPUTE_ACCESS_KEY",
  "compute_secret_key": "$COMPUTE_SECRET_KEY",
  "storage_external_id": "$STORAGE_EXTERNAL_ID"
}