All Products
Search
Document Center

Simple Log Service:GetLogStoreConfig

Last Updated:Jun 11, 2026

Mengambil konfigurasi penyimpanan log.

Deskripsi operasi

  • The Host in the request syntax consists of the Project name and the Log Service endpoint.

  • An AccessKey pair is available. For more information, see AccessKey.

The AccessKey of an Alibaba Cloud account has full permissions on all APIs and poses a high security risk. Use a RAM user to make API calls or perform routine operations. Grant the RAM user the required permissions to access Log Service resources. For more information, see Create a RAM user and grant permissions.

Authorization

To grant a RAM user or RAM role the permission to call this operation, add the following Action to a RAM permission policy.

ActionResource
log:GetLogStoreConfigacs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/{#LogstoreName}

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.

Sintaks permintaan

GET /logstores/{logstore}/config HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

logstore

string

Yes

Nama penyimpanan log.

ali-test-logstore

Parameter permintaan

Parameter

Type

Required

Description

Example

project

string

Yes

Nama Proyek.

ali-test-project

Elemen respons

Element

Type

Description

Example

object

clientIpHeaders

array

An array of header keys used to extract the client IP address when data is written to the Logstore. The keys are case-insensitive, but their order in the array is significant. For this feature to work, enable the appendMeta option on the Logstore. Log Service searches the request headers for these keys in the specified order and adds the first valid IP address it finds as a log tag.

string

A case-insensitive header key, such as X-Forwarded-For.

X-Forwarded-For

Contoh

Respons sukses

JSONformat

{
  "clientIpHeaders": [
    "X-Forwarded-For"
  ]
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.