All Products
Search
Document Center

Bastionhost:GetInstanceLDAPAuthServer

Last Updated:Jun 10, 2026

Mengkueri pengaturan otentikasi Lightweight Directory Access Protocol (LDAP) pada bastion host.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

ID bastion host.

Catatan

Anda dapat memanggil operasi DescribeInstances untuk mengkueri ID bastion host.

bastionhost-cn-st220aw****

RegionId

string

No

ID Wilayah bastion host.

Catatan

Untuk informasi lebih lanjut tentang Pemetaan antara ID Wilayah dan nama Wilayah, lihat Wilayah dan zona.

cn-hangzhou

Elemen respons

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The ID of the request, which is used to locate and troubleshoot issues.

1C60E741-102D-5E8F-9710-B06D3F0183FE

LDAP

object

The settings of LDAP authentication.

Account

string

The account of the LDAP server.

cn=Manager,dc=test,dc=com

BaseDN

string

The Base distinguished name (DN).

dc=test,dc=com

EmailMapping

string

The field that is used to indicate the email address of a user on the LDAP server.

emailAttr

Filter

string

The condition that is used to filter users.

(&(objectClass=top))

IsSSL

boolean

Indicates whether SSL is supported. Valid values:

  • true: supported

  • false: not supported

true

LoginNameMapping

string

The field that is used to indicate the logon name of a user on the LDAP server.

userNameAttr

MobileMapping

string

The field that is used to indicate the mobile phone number of a user on the LDAP server.

mobileAttr

NameMapping

string

The field that is used to indicate the name of a user on the LDAP server.

nameAttr

HasPassword

string

Indicates whether passwords are required. Valid values:

  • true: required

  • false: not required

true

Port

integer

The port that is used to access the LDAP server.

389

Server

string

The address of the LDAP server.

192.168.XX.XX

StandbyServer

string

The address of the secondary LDAP server.

192.168.XX.XX

Contoh

Respons sukses

JSONformat

{
  "RequestId": "1C60E741-102D-5E8F-9710-B06D3F0183FE",
  "LDAP": {
    "Account": "cn=Manager,dc=test,dc=com",
    "BaseDN": "dc=test,dc=com",
    "EmailMapping": "emailAttr",
    "Filter": "(&(objectClass=top))",
    "IsSSL": true,
    "LoginNameMapping": "userNameAttr",
    "MobileMapping": "mobileAttr",
    "NameMapping": "nameAttr",
    "HasPassword": "true",
    "Port": 389,
    "Server": "192.168.XX.XX",
    "StandbyServer": "192.168.XX.XX"
  }
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidParameter The argument is invalid.
500 InternalError An unknown error occurred.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.