View permission schema

View the permission resources, operations, and authorization scopes supported by the current workspace, and provide options for configuring permission policies or object authorization.

HTTP
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/iam/permissions/schema

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. Prepare personal access token and target workspace ID that can access the target workspace.

Request parameters

Shell
curl -X GET "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/iam/permissions/schema" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Parameter

Type

Required

Description

workspace_id

string

Yes

Target workspace ID.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "schema_version": "schema-v1",
    "capabilities": {
      "application_policy_actions_included": true,
      "matrixone_actions_included": true,
      "operation_requirements_included": true,
      "row_column_rule_schema_included": true,
      "data_privilege_transport_ready": true,
      "database_table_dcl_verified": false,
      "row_column_contract_ready": true,
      "row_column_enforcement_verified": false
    },
    "resources": [],
    "actions": [],
    "operations": [],
    "request_id": "req-001",
    "trace_id": "trace-001"
  }
}

Field

Type

Description

code

string

OK when the request is processed successfully.

msg

string

Descriptive text for request processing.

data

object

response data.

data.schema_version

string

Current permissions Schema version.

data.capabilities

object

Permission capability tags contained in the current Schema.

data.capabilities.application_policy_actions_included

boolean

Whether to include application permission operation definitions.

data.capabilities.matrixone_actions_included

boolean

Whether to include database permission operation definitions.

data.capabilities.operation_requirements_included

boolean

Whether to include permission requirements for product operations.

data.capabilities.row_column_rule_schema_included

boolean

Whether to include the structure definition of row and column permission rules.

data.capabilities.data_privilege_transport_ready

boolean

Whether to provide a transfer contract for changes in data permissions.

data.capabilities.database_table_dcl_verified

boolean

Whether the permissions granted to the database and tables have passed the proficiency verification.

data.capabilities.row_column_contract_ready

boolean

Whether row authority change contracts are available.

data.capabilities.row_column_enforcement_verified

boolean

Whether the actual execution ability of row and column rules has been verified.

data.resources

array of object

Resource types and their supported scopes.

data.resources[].resource_type

string

Resource type.

data.resources[].schema_version

string

Structural version.

data.resources[].scope_options

array of object

Scope options for this resource or operation.

data.resources[].scope_options[].mode

string

Strategy or scope pattern. Values: all, resources, parent, path_prefix.

data.resources[].scope_options[].enabled

boolean

Whether to enable.

data.resources[].scope_options[].disabled_reason

string

The reason why the scope or role is unavailable. Empty string when available.

data.actions

array of object

Action definitions available for policies.

data.actions[].action_id

string

Permission operation ID.

data.actions[].resource_type

string

Resource type.

data.actions[].persistence_target

string

Permission saving target, such as application_policy or matrixone_adapter.

data.actions[].grantable

boolean

Whether granting this action to the role is allowed.

data.actions[].grant_action

boolean

Whether it is a transfer authorization operation.

data.actions[].grant_target_action_id

string

The target operation ID corresponding to the delegated operation. Normal operation is an empty string.

data.actions[].scope_options

array of object

Scope options for this resource or operation.

data.actions[].scope_options[].mode

string

Strategy or scope pattern. Values: all, resources, parent, path_prefix.

data.actions[].scope_options[].enabled

boolean

Whether to enable.

data.actions[].scope_options[].disabled_reason

string

The reason why the scope or role is unavailable. Empty string when available.

data.actions[].grant_scope_modes

array of string

Permitted scope of sublicensing.

data.actions[].inheritable

boolean

Whether to allow inheritance of this operation permission.

data.actions[].grant_inheritable

boolean

Whether the delegation permission allows inheritance.

data.actions[].covering_action_ids

array of string

IDs of other operations that this operation overrides.

data.actions[].description

string

Description.

data.actions[].attributes

object

Manipulate extended attributes, string key-value mapping. May be null if not set.

data.actions[].grant_supported

boolean

Whether to provide the corresponding delegation operation definition.

data.actions[].grant_actions

array of object

The corresponding delegate operation list.

data.actions[].grant_actions[].action_id

string

Permission operation ID.

data.actions[].grant_actions[].persistence_target

string

Permission saving target, such as application_policy or matrixone_adapter.

data.actions[].grant_actions[].grant_scope_modes

array of string

Permitted scope of sublicensing.

data.actions[].grant_actions[].grant_inheritable

boolean

Whether the delegation permission allows inheritance.

data.operations

array of object

Product operation and its permission requirements.

data.operations[].action_id

string

Permission operation ID.

data.operations[].schema_version

string

Structural version.

data.operations[].requirements

array of object

Permission conditions required to perform this product operation.

data.operations[].requirements[].resource_name

string

The name of the resource parameter referenced by the permission condition.

data.operations[].requirements[].resource_type

string

Resource type.

data.operations[].requirements[].action_ids

array of string

List of permission action IDs required by this condition. May be null.

data.operations[].requirements[].mode

string

Strategy or scope pattern. Values: read, write, manage, grant.

data.operations[].requirements[].direct_only

boolean

Whether only directly granted permissions should be allowed to satisfy this condition.

data.operations[].requirements[].options

object

Extended options for permission conditions, string mapping. May be null.

data.request_id

string

Request association ID.

data.trace_id

string

Link tracking ID.

Error response

JSON
{
  "code": "ErrIAMSchemaInvalid",
  "msg": "服务暂时不可用",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

error message.

data

null

—。

Last updated on