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.

HTTP
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

Shell
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

JSON
{
  "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

code

string

success code.

msg

string

Response information.

data

object

The data returned by this operation.

data.workspace_id

string

The workspace ID to which the object belongs.

data.resource_type

string

Object resource type.

data.resource_id

string

Object resource ID.

data.owner

JSON value

The object’s direct owner and ownership version.

data.owner.role_id

string

Role ID.

data.owner.ownership_version

integer

Ownership version.

data.owner.ownership_status

string

Ownership status. The values are active, deleting, absent

data.owner.ownership_audit_id

string

Association ID.

data.owner.created_by_principal

string

Creator principal ID.

data.owner.created_by_role_id

string

Association ID.

data.capabilities

JSON value

Data source tags contained in the current permissions view.

data.capabilities.owner_included

boolean

Whether to include owner views.

data.capabilities.direct_specific_grants_included

boolean

Whether to include direct object authorization.

data.capabilities.all_scope_grants_included

boolean

Whether full scope authorization is included.

data.capabilities.inherited_grants_included

boolean

Whether to include inherited authorization.

data.capabilities.system_sources_included

boolean

Whether to include system sources.

data.capabilities.matrixone_data_privileges_included

boolean

Whether to include OmniFabric data permissions.

data.capabilities.editable_state_included

boolean

Whether to include editable status.

data.direct_grants

array of object

Authorization that acts directly on this object.

data.direct_grants[].role_id

string

Role ID.

data.direct_grants[].policy_version

integer

Strategy version.

data.direct_grants[].statement_id

string

Association ID.

data.direct_grants[].statement_kind

string

Policy statement type. The values are action, grant_action

data.direct_grants[].action_id

string

Association ID.

data.direct_grants[].resource_type

string

Resource type.

data.direct_grants[].scope_mode

string

Authorization scope mode. The values are all, resources, parent, path_prefix

data.direct_grants[].resource_id

string

Resource ID.

data.direct_grants[].resource_key

string

Resource location key.

data.direct_grants[].grant_index_key

string

Authorization index key.

data.direct_grants[].condition_hash

string

Conditional tag.

data.direct_grants[].target_action_id

string

Association ID.

data.direct_grants[].grant_scope_mode

string

Scope of authorized sub-licensing. The values are empty string, all, resources, parent, path_prefix

data.direct_grants[].grant_delegatable

boolean

Whether to allow continued sublicensing.

data.all_scope_grants

array of object

Covers the full scope of authorization for this object.

data.all_scope_grants[].role_id

string

Role ID.

data.all_scope_grants[].policy_version

integer

Strategy version.

data.all_scope_grants[].statement_id

string

Association ID.

data.all_scope_grants[].statement_kind

string

Policy statement type. The values are action, grant_action

data.all_scope_grants[].action_id

string

Association ID.

data.all_scope_grants[].resource_type

string

Resource type.

data.all_scope_grants[].scope_mode

string

Authorization scope mode. The values are all, resources, parent, path_prefix

data.all_scope_grants[].resource_id

string

Resource ID.

data.all_scope_grants[].resource_key

string

Resource location key.

data.all_scope_grants[].grant_index_key

string

Authorization index key.

data.all_scope_grants[].condition_hash

string

Conditional tag.

data.all_scope_grants[].target_action_id

string

Association ID.

data.all_scope_grants[].grant_scope_mode

string

Scope of authorized sub-licensing. The values are empty string, all, resources, parent, path_prefix

data.all_scope_grants[].grant_delegatable

boolean

Whether to allow continued sublicensing.

data.request_id

string

Request association ID.

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

—。

Common HTTP errors

HTTP status

Error code

Common cause

Recommended action

400

ErrParamInvalid, ErrWorkspaceRequired, ErrIAMExplicitRoleInvalid, ErrIAMScopeInvalid, ErrIAMGrantScopeInvalid, ErrIAMResourcePickerInvalid

Invalid request field, workspace, or operation precondition.

Fix the request parameters and submit again.

401

Unauthorized, ErrUnauthenticated

Missing or invalid authentication credentials.

Check the credential type, expiration, and authentication header.

403

ErrIAMDenied, ErrIAMPolicyDenied, ErrIAMDataPrivilegeDenied, ErrIAMObjectGrantDenied, ErrIAMResourcePickerDenied, ErrForbidden

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

ErrNotFound, ErrIAMResourceNotFound

The target object or required reference was not found.

Verify the object identifier, workspace, and current status.

409

ErrIAMConflict, ErrIAMPolicyConflict, ErrIAMDataPrivilegeConflict, ErrIAMObjectGrantConflict, ErrIAMResourcePickerConflict

Conflict in resource state, request payload, or concurrent modification.

Re-read the current state and version, then handle according to the latest result.

500

ErrServer

Internal processing failed; write operations may have been partially applied.

Retain request and trace details, and verify the current state before retrying.

503

ErrServiceUnavailable, ErrIAMManagementUnavailable, ErrIAMPolicyUnavailable, ErrIAMDataPrivilegeUnavailable, ErrIAMObjectPermissionUnavailable, ErrIAMResourcePickerUnavailable

A business, runtime, or authorization dependency is temporarily unavailable.

After the dependency recovers, check existing results first instead of blindly repeating writes.

Last updated on