コンテンツにスキップ

ログインデックスリストの取得



GET /api/v1/metric_info/log/indexes

概要

すべてのログインデックスのリストを取得します

Query リクエストパラメータ

パラメータ名 必須 説明
limit integer 返却結果数の制限、デフォルト100
空を許可: True
$default: 100
offset integer オフセット、ページネーションに使用、デフォルト0
空を許可: True
$default: 0

パラメータ補足説明

ログインデックスリストを取得します。ページネーションに対応しています。

  • インターフェース内部で log_index_cfg.list のインデックスフィルタリングロジックを再利用します
  • 固定フィルタ条件:isBindCustomStore=false
  • 固定フィルタ条件:queryType=logging,standard
  • 返却結果にはログインデックスオブジェクトの name フィールドのみ保持します

リクエスト例

curl -k 'https://openapi.guance.com/api/v1/metric_info/log/indexes?limit=10&offset=0' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--compressed

レスポンス

{
    "code": 200,
    "content": {
        "data": [
            {
                "name": "a-123"
            },
            {
                "name": "aus7"
            },
            {
                "name": "dbindex"
            },
            {
                "name": "front_backend"
            },
            {
                "name": "gary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary-testgary"
            },
            {
                "name": "hdt_0121_12321-------"
            },
            {
                "name": "hdt_0325_2_no_key"
            },
            {
                "name": "hdt_0625_s_index_1"
            },
            {
                "name": "hdt_0722_i2_off"
            },
            {
                "name": "hdt_0723_cn1_index_1"
            }
        ],
        "declaration": {
            "business": "",
            "organization": "663dbba102482200070bbb02"
        }
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "69ba6c7800000000519924e2a972444f"
} 

フィードバック

このページは役に立ちましたか?