View data privilege operation

View the processing progress of a data permission change and the processing results of each resource. A successful request only means that the current status has been read, but does not mean that the authorization has been completed.

HTTP
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/iam/roles/{role_id}/data-privilege-operations/{request_id}

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. From the Perform role data permission change or repair operation, retain the change identifier that needs to be tracked.

Prepare personal access token and target workspace ID with corresponding permissions for the target workspace.

Select changes to track

Use Execute role data permission change or the change ID returned by the repair operation to view the current processing results of the same authorization change.

Request parameters

Shell
curl -X GET "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/iam/roles/$ROLE_ID/data-privilege-operations/$REQUEST_ID" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Parameter

Type

Required

Description

workspace_id

string

Yes

Target workspace ID.

role_id

string

Yes

Target role ID.

request_id

string

Yes

The original request ID submitted when applying data permissions.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "request_id": "req-001",
    "trace_id": "trace-001",
    "operation_id": "operation-001",
    "audit_event_id": "audit-001",
    "state": "succeeded",
    "data_privilege_version": 2,
    "idempotent_replay": false,
    "session_invalidation_status": "new_connections_only",
    "matrixone_fact_version": "fact-v2",
    "resource_results": []
  }
}

Field

Type

Description

code

string

OK when successful.

msg

string

OK when successful.

data.request_id

string

Original data permission request ID.

data.operation_id

string

Operation ID generated by the server.

data.audit_event_id

string

Audit event ID.

data.state

string

Operation status: applying, succeeded, failed, drifted or unknown.

data.data_privilege_version

integer

Current data permission version.

data.session_invalidation_status

string

Session permission refresh status.

data.matrixone_fact_version

string

OmniFabric permissions fact version.

data.resource_results

array of object

Permission enforcement results for each resource.

data.trace_id

string

Link tracking ID.

Error response

JSON
{
  "code": "ErrParamInvalid",
  "msg": "请求参数无效",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

error message.

data

null

—。

Last updated on