All Products
Search
Document Center

Simple Log Service:UpdateIndex

Last Updated:Sep 15, 2026

Memperbarui informasi indeks penyimpanan log.

Deskripsi operasi

Deskripsi operasi

Host terdiri dari nama proyek dan titik akhir Simple Log Service. Anda harus menentukan proyek di 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

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

log:UpdateIndex

update

*LogStore.

acs:log:{#regionId}:{#accountId}:project/{#project}/logstore/{#logstore}

  • log:TLSVersion
None

Sintaks permintaan

PUT /logstores/{logstore}/index HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

logstore

string

Yes

Nama penyimpanan log.

test-logstore

Parameter permintaan

Parameter

Type

Required

Description

Example

project

string

Yes

Nama proyek.

ali-test-proyek

body

object

No

Badan permintaan.

keys

object

No

The configuration of field indexes. A field index is a key-value pair in which the key specifies the name of the field and the value specifies the index configuration of the field.

object

Yes

The index configuration of the field.

caseSensitive

boolean

No

Specifies whether to enable case sensitivity. Valid values:

  • true

  • false

chn

boolean

No

Specifies whether to include Chinese characters. This parameter is required only when type is set to text. Valid values:

  • true

  • false

type

string

No

The data type of the field value. Valid values: text, json, double, and long.

Valid values:

  • double :

    double

  • json :

    json

  • text :

    text

  • long :

    long

alias

string

No

The alias of the field.

token

array

Yes

The delimiters that are used to split text. This parameter is required only when type is set to text.

string

No

The delimiter that is used to split text.

doc_value

boolean

No

Specifies whether to turn on Enable Analytics for the field.

line

object

No

The configuration of full-text indexes.

chn

boolean

No

Specifies whether to include Chinese characters. Valid values:

  • true

  • false

caseSensitive

boolean

No

Specifies whether to enable case sensitivity. Valid values:

  • true

  • false

token

array

Yes

The delimiters that are used to split text.

string

No

The delimiter that is used to split text.

include_keys

array

No

The included fields. You cannot specify both include_keys and exclude_keys.

string

No

The included field.

exclude_keys

array

No

The excluded fields. You cannot specify both include_keys and exclude_keys.

string

No

The excluded field.

ttl

integer

No

The retention period of data. Unit: days. Valid values: 7, 30, and 90.

max_text_len

integer

No

The maximum length of a field value that can be retained.

log_reduce

boolean

No

Specifies whether to turn on LogReduce. If you turn on LogReduce, only one of log_reduce_white_list and log_reduce_black_list takes effect.

log_reduce_white_list

array

No

The fields in the whitelist that you want to use to cluster logs.

string

No

The field in the whitelist.

log_reduce_black_list

array

No

The fields in the blacklist that you want to use to cluster logs.

string

No

The field in the blacklist.

Elemen respons

Element

Type

Description

Example

Tidak ada yang didefinisikan.

Contoh

Respons sukses

JSONformat

{}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.