Query Accounts with Target Data Source Permissions
Specify a data source to view all accounts with permissions for that data source.
Request URL: /openapi/v1/datasource/account/list
Request Method: GET
Request Parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
datasourceId | String | Yes | Data source ID. | ds-abc123 |
action | String | Yes | Permission name. Options:
| Readonly |
current | Integer | No | Current page number. | 1 |
pageSize | Integer | No | Page size. | 10 |
Response Parameters
Parameter | Type | Description | Example |
---|---|---|---|
success | Boolean | Whether the request was successful. | true |
requestId | String | Request ID. | Mi6y0FCN-BHEEaHAnCFFp9DFdAAk0OUZ |
data | Array | Account list, including the following fields:
| { "accountId": "1708516390626159", "accountName": "NineData" }, { "accountId": "1407870493740136", "accountName": "Monty" } |
current | Integer | Current page number. | 1 |
pageSize | Integer | Page size. | 10 |
total | Integer | Total number of records. | 2 |
Successful Invocation Example
{
"success": true,
"requestId": "Fe2h0XSL-BHFEnMXnIHHg0QVdJAn1ZVU",
"data": [{
"accountId": "1708516390626159",
"accountName": "NineData"
}, {
"accountId": "1407870493740136",
"accountName": "Monty"
}],
"current": 1,
"pageSize": 10,
"total": 2
}