ListAuthConfigByResource

Updated at:

Queries the list of collaborative authorization records for a resource.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

quickbi-public:ListAuthConfigByResource

get

*All Resource

*

None None

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

ResourceId

string

Yes

The ID of the resource to be authorized.

al*************7ufv

WorksType

string

Yes

The resource type. Valid values:

  • dashboard: Dashboard.

  • screen: Data screen.

  • report: Workbook.

  • ANALYSIS: Ad hoc analysis.

  • dashboardOfflineQuery: Self-service data retrieval.

  • dataForm: Data entry.

  • cube: Dataset.

  • datasource: Data source.

REPORT

ShareToType

integer

Yes

The query granularity. Valid values:

  • 0: User.

  • 1: User group.

Important Authorization records for organizations and workspaces are returned at the user granularity. Datasets and data sources can only be authorized to users.

0

HasAuth

boolean

Yes

Specifies whether to query only the records that have permissions.

true

Keyword

string

No

The search keyword for the authorized object.

test

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

019FA14C-ED6B-5F39-8563-855676470C47

Result

array<object>

The collection of authorization details.

object

The authorization detail.

ResourceId

string

The resource ID.

123123**dfsd

AuthorizedId

string

The ID of the authorized user.

123123**dfsd

AuthorizedName

string

The name of the authorized user.

sss

Scope

integer

The authorization scope. Valid values:

  • 0: User.

  • 1: User group.

  • 2: Organization.

  • 3: Workspace.

0

ExpireDate

string

The expiration time. The value is a UNIX timestamp in milliseconds.

1788969600000

Authorities

array

The array of owned permissions.

string

The owned permission. Valid values:

  • READ: Read.

  • EXPORT: Export.

  • EDITE: Edit.

READ

ResourceType

string

The resource type. Valid values:

  • dashboard: Dashboard.

  • screen: Data screen.

  • report: Workbook.

  • ANALYSIS: Ad hoc analysis.

  • dashboardOfflineQuery: Self-service data retrieval.

  • dataForm: Data entry.

  • cube: Dataset.

  • datasource: Data source.

cube

GmtCreate

string

The creation time of the permission record. The format is yyyy-MM-dd mm:hh:ss.

2024-04-16 13:17:39

Success

boolean

Indicates whether the request is successful.

true

Examples

Success response

JSON format

{
  "RequestId": "019FA14C-ED6B-5F39-8563-855676470C47",
  "Result": [
    {
      "ResourceId": "123123**dfsd",
      "AuthorizedId": "123123**dfsd",
      "AuthorizedName": "sss",
      "Scope": 0,
      "ExpireDate": "1788969600000",
      "Authorities": [
        "READ"
      ],
      "ResourceType": "cube",
      "GmtCreate": "2024-04-16 13:17:39"
    }
  ],
  "Success": true
}

Error codes

HTTP status code

Error code

Error message

Description

400 Internal.System.Error An internal system error occurred. An internal system error occurred.
400 Invalid.Parameter.Error The parameter is invalid:%s. invalid parameter: ${0}.
400 Cube.Not.Exist The Cube does not exist. The Cube does not exist.
400 Datasource.NotFound.Error The specified data source does not exist: %s. The specified data source does not exist: %s.
400 Work.Not.Exist The work does not exist. The work does not exist.
500 Authorize3Rd.Page.Org.Illegal The report does not match the organization. The report does not match the organization.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.