View data privileges¶
View the current data access permissions, permission sources, and editable status of the specified role. When table_id is passed in, the column and row-level permission details of the table are returned. If not passed, return to the role permissions overview.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/iam/roles/{role_id}/data-privileges
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First select the character.
Prepare personal access token and target workspace ID that can access the target workspace.
Request parameters¶
Replace $WORKSPACE_ID, $ROLE_ID, $CLOUDSIGMA_API_KEY in the example with actual values.
curl -X GET "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/iam/roles/$ROLE_ID/data-privileges" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Target workspace ID. |
|
string |
Yes |
Target role ID. |
Query parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Catalog table ID to view details of. Returns column and row level permission details for the table when passed in. If not passed, return to the role permissions overview. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"target_role_id": "role-001",
"data_privilege_version": 2,
"matrixone_fact_version": "fact-v2",
"items": [],
"request_id": "req-001",
"trace_id": "trace-001"
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
The role ID being viewed. |
|
integer |
The current data permission version, submitted as the expected version when updating. |
|
string |
OmniFabric permissions fact version. |
|
array of object |
The data permission items of the role. |
|
string |
Resource type. Value: |
|
string |
Resource ID. |
|
string |
Display name. |
|
string |
Permission actions. |
|
string |
MatrixOne permissions. Values: |
|
boolean |
Omit this field or send false. true is currently rejected. |
|
string |
Source. Value: |
|
string |
Permission drift status. Values: |
|
object or null |
Row and column configuration snapshot. |
|
array of string |
A set of prohibited columns. |
|
array of object |
Row filtering rules. |
|
string |
Column name. |
|
string |
Conditional connection relationship. Value: |
|
array of object |
SQL expression rules. |
|
string |
Comparison operators. Values: |
|
array of string or null |
List of conditional values. |
|
string |
Value matching type. Values: empty string, |
|
array of object |
Column definition. |
|
string |
Name. |
|
string |
type. |
|
string |
Table structure version. |
|
string |
Principal attribute version. |
|
string |
Rule fingerprint. |
|
boolean |
Whether it is editable. |
|
string |
Reason for deactivation. Values: empty string, |
|
string |
Request association ID. |
|
string |
Link tracking ID. |
Confirm current data permissions
Before verifying or performing data permission changes, confirm the role’s current data access permissions. Prepare for changes according to the authorization status returned on this page.
Error response¶
{
"code": "ErrParamInvalid",
"msg": "请求参数无效",
"data": null
}
Field |
Type |
Description |
|---|---|---|
code |
string |
error code. |
msg |
string |
error message. |
data |
null |
—。 |