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.
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¶
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¶
{
"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 |
|---|---|---|
|
string |
|
|
string |
Descriptive text for request processing. |
|
object |
response data. |
|
string |
Current permissions Schema version. |
|
object |
Permission capability tags contained in the current Schema. |
|
boolean |
Whether to include application permission operation definitions. |
|
boolean |
Whether to include database permission operation definitions. |
|
boolean |
Whether to include permission requirements for product operations. |
|
boolean |
Whether to include the structure definition of row and column permission rules. |
|
boolean |
Whether to provide a transfer contract for changes in data permissions. |
|
boolean |
Whether the permissions granted to the database and tables have passed the proficiency verification. |
|
boolean |
Whether row authority change contracts are available. |
|
boolean |
Whether the actual execution ability of row and column rules has been verified. |
|
array of object |
Resource types and their supported scopes. |
|
string |
Resource type. |
|
string |
Structural version. |
|
array of object |
Scope options for this resource or operation. |
|
string |
Strategy or scope pattern. Values: |
|
boolean |
Whether to enable. |
|
string |
The reason why the scope or role is unavailable. Empty string when available. |
|
array of object |
Action definitions available for policies. |
|
string |
Permission operation ID. |
|
string |
Resource type. |
|
string |
Permission saving target, such as application_policy or matrixone_adapter. |
|
boolean |
Whether granting this action to the role is allowed. |
|
boolean |
Whether it is a transfer authorization operation. |
|
string |
The target operation ID corresponding to the delegated operation. Normal operation is an empty string. |
|
array of object |
Scope options for this resource or operation. |
|
string |
Strategy or scope pattern. Values: |
|
boolean |
Whether to enable. |
|
string |
The reason why the scope or role is unavailable. Empty string when available. |
|
array of string |
Permitted scope of sublicensing. |
|
boolean |
Whether to allow inheritance of this operation permission. |
|
boolean |
Whether the delegation permission allows inheritance. |
|
array of string |
IDs of other operations that this operation overrides. |
|
string |
Description. |
|
object |
Manipulate extended attributes, string key-value mapping. May be null if not set. |
|
boolean |
Whether to provide the corresponding delegation operation definition. |
|
array of object |
The corresponding delegate operation list. |
|
string |
Permission operation ID. |
|
string |
Permission saving target, such as application_policy or matrixone_adapter. |
|
array of string |
Permitted scope of sublicensing. |
|
boolean |
Whether the delegation permission allows inheritance. |
|
array of object |
Product operation and its permission requirements. |
|
string |
Permission operation ID. |
|
string |
Structural version. |
|
array of object |
Permission conditions required to perform this product operation. |
|
string |
The name of the resource parameter referenced by the permission condition. |
|
string |
Resource type. |
|
array of string |
List of permission action IDs required by this condition. May be null. |
|
string |
Strategy or scope pattern. Values: |
|
boolean |
Whether only directly granted permissions should be allowed to satisfy this condition. |
|
object |
Extended options for permission conditions, string mapping. May be null. |
|
string |
Request association ID. |
|
string |
Link tracking ID. |
Error response¶
{
"code": "ErrIAMSchemaInvalid",
"msg": "服务暂时不可用",
"data": null
}
Field |
Type |
Description |
|---|---|---|
code |
string |
error code. |
msg |
string |
error message. |
data |
null |
—。 |