View object permission view¶
View an object’s owner, direct authorization, and full scope authorization sources. This entry does not select a single character, nor does it return to editable status.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/iam/permissions/objects/{resource_type}/{resource_id}/permission-view
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. Start by selecting the object you want to view.
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/objects/$RESOURCE_TYPE/$RESOURCE_ID/permission-view" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
workspace_id |
string |
Yes |
Target workspace ID. |
resource_type |
string |
Yes |
Target resource type. |
resource_id |
string |
Yes |
Target resource ID. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"workspace_id": "workspace-001",
"resource_type": "workflow",
"resource_id": "workflow-001",
"owner": {
"role_id": "role-owner",
"ownership_version": 0,
"ownership_status": "active",
"ownership_audit_id": "",
"created_by_principal": "",
"created_by_role_id": ""
},
"capabilities": {
"owner_included": true,
"direct_specific_grants_included": true,
"all_scope_grants_included": true,
"inherited_grants_included": false,
"system_sources_included": false,
"matrixone_data_privileges_included": false,
"editable_state_included": false
},
"direct_grants": [],
"all_scope_grants": [],
"request_id": "req-001",
"trace_id": "trace-001"
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
success code. |
|
string |
Response information. |
|
object |
The data returned by this operation. |
|
string |
The workspace ID to which the object belongs. |
|
string |
Object resource type. |
|
string |
Object resource ID. |
|
JSON value |
The object’s direct owner and ownership version. |
|
string |
Role ID. |
|
integer |
Ownership version. |
|
string |
Ownership status. The values are |
|
string |
Association ID. |
|
string |
Creator principal ID. |
|
string |
Association ID. |
|
JSON value |
Data source tags contained in the current permissions view. |
|
boolean |
Whether to include owner views. |
|
boolean |
Whether to include direct object authorization. |
|
boolean |
Whether full scope authorization is included. |
|
boolean |
Whether to include inherited authorization. |
|
boolean |
Whether to include system sources. |
|
boolean |
Whether to include OmniFabric data permissions. |
|
boolean |
Whether to include editable status. |
|
array of object |
Authorization that acts directly on this object. |
|
string |
Role ID. |
|
integer |
Strategy version. |
|
string |
Association ID. |
|
string |
Policy statement type. The values are |
|
string |
Association ID. |
|
string |
Resource type. |
|
string |
Authorization scope mode. The values are |
|
string |
Resource ID. |
|
string |
Resource location key. |
|
string |
Authorization index key. |
|
string |
Conditional tag. |
|
string |
Association ID. |
|
string |
Scope of authorized sub-licensing. The values are empty string, |
|
boolean |
Whether to allow continued sublicensing. |
|
array of object |
Covers the full scope of authorization for this object. |
|
string |
Role ID. |
|
integer |
Strategy version. |
|
string |
Association ID. |
|
string |
Policy statement type. The values are |
|
string |
Association ID. |
|
string |
Resource type. |
|
string |
Authorization scope mode. The values are |
|
string |
Resource ID. |
|
string |
Resource location key. |
|
string |
Authorization index key. |
|
string |
Conditional tag. |
|
string |
Association ID. |
|
string |
Scope of authorized sub-licensing. The values are empty string, |
|
boolean |
Whether to allow continued sublicensing. |
|
string |
Request association ID. |
|
string |
Link tracking ID. |
Error response¶
{
"code": "ErrParamInvalid",
"msg": "请求参数无效",
"data": null
}
Field |
Type |
Description |
|---|---|---|
code |
string |
error code. |
msg |
string |
error message. |
data |
null |
—。 |
Common HTTP errors¶
HTTP status |
Error code |
Common cause |
Recommended action |
|---|---|---|---|
400 |
|
Invalid request field, workspace, or operation precondition. |
Fix the request parameters and submit again. |
401 |
|
Missing or invalid authentication credentials. |
Check the credential type, expiration, and authentication header. |
403 |
|
The current identity or active role does not have permission for this operation. |
Use an authorized identity or contact an administrator to grant access. |
404 |
|
The target object or required reference was not found. |
Verify the object identifier, workspace, and current status. |
409 |
|
Conflict in resource state, request payload, or concurrent modification. |
Re-read the current state and version, then handle according to the latest result. |
500 |
|
Internal processing failed; write operations may have been partially applied. |
Retain request and trace details, and verify the current state before retrying. |
503 |
|
A business, runtime, or authorization dependency is temporarily unavailable. |
After the dependency recovers, check existing results first instead of blindly repeating writes. |