Tüm Ürünler
Search
Belge Merkezi

:GetPhysicalDatabase

Son Güncelleme:Oct 01, 2026

Fiziksel bir veritabanının ayrıntılarını 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:GetPhysicalDatabase

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

DbId

integer

Yes

Fiziksel veritabanının kimliği. Kimliği almak için SearchDatabase işlemini çağırabilirsiniz.

43153

Tid

integer

No

Kiracının kimliği. Kiracının kimliğini sorgulamak için GetUserActiveTenant işlemini çağırabilirsiniz.

1

Response elements

Element

Type

Description

Example

object

Döndürülen veriler.

RequestId

string

İsteğin kimliği.

7FAD400F-7A5C-4193-8F9A-39D86C4F0231

Database

object

Fiziksel veritabanı hakkındaki bilgiler.

DatabaseId

string

Fiziksel veritabanının kimliği.

43125312

Host

string

Veritabanına bağlanmak için kullanılan uç nokta.

rm-xxxab3r272.mysql.rds.aliyuncs.com

CatalogName

string

Veritabanının ait olduğu kataloğun adı.

Not

: Veritabanı bir PostgreSQL veritabanıysa, veritabanının adı görüntülenir.

def

DbaName

string

Hedef veritabanındaki veritabanı yöneticisinin (DBA) takma adı.

dmstest

State

string

Veritabanının durumu. Geçerli değerler:

  • NORMAL: Veritabanı normal durumdadır.

  • DISABLE: Veritabanı devre dışıdır.

  • OFFLINE: Veritabanı yayımlanmamıştır.

  • NOT_EXIST: Veritabanı mevcut değildir.

NORMAL

DbaId

string

Hedef veritabanındaki DBA kullanıcı kimliği.

43253

SchemaName

string

Veritabanının adı.

Not

: Veritabanı bir PostgreSQL veritabanıysa, şemanın adı görüntülenir.

dmstest

InstanceId

string

Hedef veritabanının örnek kimliği.

43215325

Port

integer

Veritabanına bağlanmak için kullanılan bağlantı noktası.

3306

EnvType

string

Veritabanının ait olduğu ortamın türü. Daha fazla bilgi için Bir örneğin ortam türünü değiştirme konusuna bakın.

product

Sid

string

Veritabanının sistem kimliği (SID).

Not

: Parametrenin değeri yalnızca Oracle veritabanları için döndürülür.

def

OwnerIdList

object

OwnerIds

array

Veritabanı sahiplerinin kullanıcı kimlikleri.

string

Veritabanı sahibinin kullanıcı kimliği.

43215325

Encoding

string

Veritabanının kodlama biçimi.

utf8mb4

DbType

string

Veritabanı motorunun türü.

mysql

OwnerNameList

object

OwnerNames

array

Veritabanı sahiplerinin takma adları.

string

Veritabanı sahibinin takma adı.

dmstest

SearchName

string

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

dmstest@rm-xxxab3r272.mysql.rds.aliyuncs.com:3306

InstanceAlias

string

Veritabanı örneğinin diğer adı.

test

ErrorCode

string

İsteğin başarısız olması durumunda döndürülen hata kodu.

UnknownError

ErrorMessage

string

İsteğin başarısız olması durumunda döndürülen hata mesajı.

UnknownError

Success

boolean

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

true

Examples

Success response

JSON format

{
  "RequestId": "7FAD400F-7A5C-4193-8F9A-39D86C4F0231",
  "Database": {
    "DatabaseId": "43125312",
    "Host": "rm-xxxab3r272.mysql.rds.aliyuncs.com",
    "CatalogName": "def",
    "DbaName": "dmstest",
    "State": "NORMAL",
    "DbaId": "43253",
    "SchemaName": "dmstest",
    "InstanceId": "43215325",
    "Port": 3306,
    "EnvType": "product",
    "Sid": "def",
    "OwnerIdList": {
      "OwnerIds": [
        "43215325"
      ]
    },
    "Encoding": "utf8mb4",
    "DbType": "mysql",
    "OwnerNameList": {
      "OwnerNames": [
        "dmstest"
      ]
    },
    "SearchName": "dmstest@rm-xxxab3r272.mysql.rds.aliyuncs.com:3306",
    "InstanceAlias": "test"
  },
  "ErrorCode": "UnknownError",
  "ErrorMessage": "UnknownError",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.