Tüm Ürünler
Search
Belge Merkezi

:ListDatabaseUserPermssions

Son Güncelleme:Oct 01, 2026

Bir veritabanı üzerindeki kullanıcı izinlerini sorgular.

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

dms:ListDatabaseUserPermssions

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Tid

integer

No

Kiracı kimliği.

Not

: Kiracı kimliğini görüntülemek için Veri Yönetimi (DMS) konsolunda oturum açın ve sağ üst köşedeki profil resminin üzerine gelin. Daha fazla bilgi için DMS kiracılarını yönetme konusuna bakın.

-1

PermType

string

Yes

İzin türü. Geçerli değerler:

  • DATABASE: veritabanları üzerindeki izinler

  • TABLE: tablolar üzerindeki izinler

  • COLUMN: sütunlar üzerindeki izinler

DATABASE

DbId

string

Yes

Veritabanı kimliği.

123

Logic

boolean

No

Veritabanının mantıksal bir veritabanı olup olmadığını belirtir.

false

UserName

string

No

Kullanıcının takma adı.

search_user_name

PageNumber

integer

No

Döndürülecek sayfanın numarası.

1

PageSize

integer

No

Her sayfada döndürülecek giriş sayısı.

10

Response elements

Element

Type

Description

Example

object

TotalCount

integer

Döndürülen toplam giriş sayısı.

1

RequestId

string

İstek kimliği.

68075D06-7406-4887-83A7-F558A4D28C13

ErrorCode

string

İstek başarısız olduğunda döndürülen hata kodu.

UnknownError

ErrorMessage

string

İstek başarısız olduğunda döndürülen hata mesajı.

UnknownError

UserPermissions

object

UserPermission

array<object>

Kullanıcı izinlerinin ayrıntıları.

array<object>

DbId

string

Veritabanı kimliği.

1234

TableName

string

Tablo adı.

table_name

UserId

string

Kullanıcı kimliği.

14324

SchemaName

string

Veritabanı adı.

xxx@xxxx:3306

Logic

boolean

Veritabanının mantıksal bir veritabanı olup olmadığını gösterir.

false

UserNickName

string

Kullanıcının takma adı.

user_nick_name

InstanceId

string

Örnek kimliği.

1443

PermDetails

object

PermDetail

array<object>

Kullanıcı izinlerinin ayrıntıları.

object

OriginFrom

string

İzni yetkilendiren varlığın açıklaması.

xxx grant

PermType

string

İzin türü. Geçerli değerler:

  • QUERY: sorgu izinleri

  • EXPORT: dışa aktarma izinleri

  • CORRECT: değişiklik izinleri

QUERY

ExpireDate

string

İzinlerin sona erme zamanı.

2020-12-12 00:00:00

CreateDate

string

İznin oluşturulma zamanı.

2019-12-12 00:00:00

UserAccessId

string

Yetkilendirme kaydı kimliği.

13434

ExtraData

string

Ek bilgiler. Bu parametre ayrılmıştır.

DEFAULT

EnvType

string

Veritabanının ait olduğu ortamın türü.

product

ColumnName

string

Sütun adı.

column_name

DbType

string

Veritabanı motoru türü.

mysql

DsType

string

Kullanıcının izinlere sahip olduğu kaynakların türü.

DATABASE

TableId

string

Tablo kimliği.

42345

SearchName

string

Veritabanını aramak için kullanılan ad.

xxx

Alias

string

Veritabanı örneğinin takma adı.

instance_alias

Success

boolean

İsteğin başarılı olup olmadığını gösterir.

true

Examples

Success response

JSON format

{
  "TotalCount": 1,
  "RequestId": "68075D06-7406-4887-83A7-F558A4D28C13",
  "ErrorCode": "UnknownError",
  "ErrorMessage": "UnknownError",
  "UserPermissions": {
    "UserPermission": [
      {
        "DbId": "1234",
        "TableName": "table_name",
        "UserId": "14324",
        "SchemaName": "xxx@xxxx:3306",
        "Logic": false,
        "UserNickName": "user_nick_name",
        "InstanceId": "1443",
        "PermDetails": {
          "PermDetail": [
            {
              "OriginFrom": "xxx grant",
              "PermType": "QUERY",
              "ExpireDate": "2020-12-12 00:00:00",
              "CreateDate": "2019-12-12 00:00:00",
              "UserAccessId": "13434",
              "ExtraData": "DEFAULT"
            }
          ]
        },
        "EnvType": "product",
        "ColumnName": "column_name",
        "DbType": "mysql",
        "DsType": "DATABASE",
        "TableId": "42345",
        "SearchName": "xxx",
        "Alias": "instance_alias"
      }
    ]
  },
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.