Help Center/ DataArts Studio/ API Reference/ DataArts Security APIs/ Permission Management/ Query Permissions Available for a Data Source
Updated on 2025-11-17 GMT+08:00

Query Permissions Available for a Data Source

Function

Query the data source configuration permission.

Calling Method

For details, see Calling APIs.

URI

GET /v1/{project_id}/security/permission-sets/datasource/configurations

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain the project ID, see Project ID and Account ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

workspace

Yes

String

Workspace ID. For details about how to obtain the workspace ID, see Instance ID and Workspace ID.

X-Auth-Token

Yes

String

IAM token, which is obtained by calling the IAM API for obtaining a user token (value of X-Subject-Token in the response header). This parameter is mandatory for token authentication.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

configurations

Array of PermissionConfiguration objects

List of data source operation permissions.

Table 4 PermissionConfiguration

Parameter

Type

Description

datasource_type

String

Data source type.

permission_types

Array of strings

Data source operation permission type.

permission_actions

Array of strings

List of permission operations supported by the data source.

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

/v1/0833a5737480d53b2f25c010dc1a7b88/security/permission-sets/datasource/configurations

Example Responses

Status code: 200

OK

{
  "configurations" : [ {
    "datasource_type" : "HIVE",
    "permission_types" : [ "ALLOW" ],
    "permission_actions" : [ "ALL", "SELECT", "UPDATE" ]
  } ]
}

Status Codes

Status Code

Description

200

OK

400

Bad Request