Atualiza os índices de um Logstore.
Descrição da operação
Notas de uso
Host consiste em um nome de projeto e um endpoint do Log Service. Você deve especificar um projeto em Host.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
log:UpdateIndex |
update |
*LogStore
|
|
Nenhuma |
Sintaxe da solicitação
PUT /logstores/{logstore}/index HTTP/1.1
Parâmetros de caminho
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| logstore |
string |
Sim |
O nome do Logstore. |
test-logstore |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| project |
string |
Sim |
O nome do projeto. |
ali-test-project |
| body |
object |
Não |
O corpo da solicitação. |
|
| keys |
object |
Não |
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 |
Sim |
The index configuration of the field. |
||
| caseSensitive |
boolean |
Não |
Specifies whether to enable case sensitivity. Valid values:
|
|
| chn |
boolean |
Não |
Specifies whether to include Chinese characters. This parameter is required only when type is set to text. Valid values:
|
|
| type |
string |
Não |
The data type of the field value. Valid values: text, json, double, and long. Valores válidos:
|
|
| alias |
string |
Não |
The alias of the field. |
|
| token |
array |
Sim |
The delimiters that are used to split text. This parameter is required only when type is set to text. |
|
|
string |
Não |
The delimiter that is used to split text. |
||
| doc_value |
boolean |
Não |
Specifies whether to turn on Enable Analytics for the field. |
|
| line |
object |
Não |
The configuration of full-text indexes. |
|
| chn |
boolean |
Não |
Specifies whether to include Chinese characters. Valid values:
|
|
| caseSensitive |
boolean |
Não |
Specifies whether to enable case sensitivity. Valid values:
|
|
| token |
array |
Sim |
The delimiters that are used to split text. |
|
|
string |
Não |
The delimiter that is used to split text. |
||
| include_keys |
array |
Não |
The included fields. You cannot specify both include_keys and exclude_keys. |
|
|
string |
Não |
The included field. |
||
| exclude_keys |
array |
Não |
The excluded fields. You cannot specify both include_keys and exclude_keys. |
|
|
string |
Não |
The excluded field. |
||
| ttl |
integer |
Não |
The retention period of data. Unit: days. Valid values: 7, 30, and 90. |
|
| max_text_len |
integer |
Não |
The maximum length of a field value that can be retained. |
|
| log_reduce |
boolean |
Não |
Specifies whether to turn on LogReduce. If you turn on LogReduce, only one of |
|
| log_reduce_white_list |
array |
Não |
The fields in the whitelist that you want to use to cluster logs. |
|
|
string |
Não |
The field in the whitelist. |
||
| log_reduce_black_list |
array |
Não |
The fields in the blacklist that you want to use to cluster logs. |
|
|
string |
Não |
The field in the blacklist. |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
Nenhum definido.
Exemplos
Resposta de sucesso
JSON formato
{}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.