Tüm Ürünler
Search
Belge Merkezi

Simple Log Service:get_index_config

Son Güncelleme:Sep 30, 2026

Belirtilen bir Logstore içindeki dizinleri sorgular.

İstek sözdizimi

aliyunlog log get_index_config --project_name=<value> --logstore_name=<value> [--access-id=<value>] [--access-key=<value>] [--sts-token=<value>] [--region-endpoint=<value>] [--client-name=<value>] [--jmes-filter=<value>] [--format-output=<value>] [--decode-output=<value>]

İstek parametreleri

Aşağıdaki tabloda get_index_config komutunun gerekli ve özel parametreleri açıklanmaktadır.


Parametre


Tür


Gerekli


Örnek


Açıklama


--project_name


Dize


Evet


aliyun-test-project


Projenin adı.


--logstore_name


Dize


Evet


logstroe-a


Logstore'un adı.

Log Service komut satırı arabiriminin (CLI) genel parametreleri hakkında bilgi için bkz. Genel parametreler.

Örnekler

  • Örnek istekler

    Varsayılan hesabı kullanarak logstore-a adlı bir Logstore'un dizinlerini alın.

    aliyunlog log get_index_config --project_name="aliyun-test-project" --logstore_name="logstore-a"

    Dizinleri belirtilen bir dosyaya kaydetmek için aşağıdaki komutu çalıştırın:

    aliyunlog log get_index_config --project_name="aliyun-test-project" --logstore_name="logstore-a" >>export_index_config.json
  • Örnek yanıtlar

    {
      "index_mode": "v2",
      "keys": {
        "key1": {
          "caseSensitive": false,
          "doc_value": true,
          "token": [
            ",",
            " ",
            "'",
            "\"",
            ";",
            "=",
            "(",
            ")",
            "[",
            "]",
            "{",
            "}",
            "?",
            "@",
            "&",
            "<",
            ">",
            "/",
            ":",
            "\n",
            "\t"
          ],
          "type": "text"
        },
        "key2": {
          "caseSensitive": false,
          "doc_value": true,
          "token": [
            ",",
            " ",
            "'",
            "\"",
            ";",
            "=",
            "(",
            ")",
            "[",
            "]",
            "{",
            "}",
            "?",
            "@",
            "&",
            "<",
            ">",
            "/",
            ":",
            "\n",
            "\t"
          ],
          "type": "text"
        },
        "key3": {
          "caseSensitive": false,
          "doc_value": true,
          "token": [
            ",",
            " ",
            "'",
            "\"",
            ";",
            "=",
            "(",
            ")",
            "[",
            "]",
            "{",
            "}",
            "?",
            "@",
            "&",
            "<",
            ">",
            "/",
            ":",
            "\n",
            "\t"
          ],
          "type": "text"
        },
        "key4": {
          "caseSensitive": false,
          "doc_value": true,
          "token": [
            ",",
            " ",
            "'",
            "\"",
            ";",
            "=",
            "(",
            ")",
            "[",
            "]",
            "{",
            "}",
            "?",
            "@",
            "&",
            "<",
            ">",
            "/",
            ":",
            "\n",
            "\t"
          ],
          "type": "text"
        }
      },
      "lastModifyTime": 0,
      "line": {
        "caseSensitive": false,
        "chn": false,
        "token": [
          ",",
          " ",
          "'",
          "\"",
          ";",
          "=",
          "(",
          ")",
          "[",
          "]",
          "{",
          "}",
          "?",
          "@",
          "&",
          "<",
          ">",
          "/",
          ":",
          "\n",
          "\t"
        ]
      },
      "storage": "pg",
      "ttl": 30
    }

Hata kodları

Bir hata mesajı döndürülürse ilgili API işleminin hata kodlarına göre hatayı giderin. Daha fazla bilgi için bkz. Hata kodları.

API başvurusu

GetIndex