調用ListDeprecatedTemplates,查看歷史索引模板列表。

詳細信息請參見通過OpenStore實現海量數據存儲

調試

您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。

請求頭

該接口使用公共請求頭,無特殊請求頭。請參見公共請求參數文檔。

請求語法

GET /openapi/instances/{InstanceId}/deprecated-templates HTTP/1.1

請求參數

名稱 類型 位置 是否必選 示例值 描述
InstanceId String Path es-cn-t57p81n7ai89v****

實例ID。

name String Query component-openstore-index-template

索引模板名稱。

page Integer Query 5

分頁查詢時設置的頁數。

size Integer Query 10

分頁查詢時設置的每頁條數。

返回數據

名稱 類型 示例值 描述
RequestId String F99407AB-2FA9-489E-A259-40CF6DCC47D9

請求ID。

Headers Object

返回頭信息。

X-Total-Count Long 5

返回結果條數。

Result Array of Result

返回結果信息。

dataStream Boolean false

是否匹配數據流:

  • true:匹配
  • false:不匹配
indexPatterns Array of String ["schema1*","schema2*"]

索引模式列表。

indexTemplate String openstore-index-template

索引模版名稱。

order Long 100

優先級。

template Object

索引模板配置信息。

aliases String "{}"

模板別名配置。

mappings String "{\"properties\":{\"created_at\":{\"format\":\"EEE MMM dd HH:mm:ss Z yyyy\",\"type\":\"date\"},\"host_name\":{\"type\":\"keyword\"}}}"

模板的mappings配置。

settings String "{\"index.number_of_shards\":\"1\"}"

模板的settings配置。

version String 70000

索引模板的版本。

示例

請求示例

GET /openapi/instances/es-cn-t57p81n7ai89v****/deprecated-templates?name=component-openstore-index-template&page=5&size=10 HTTP/1.1
Host:elasticsearch.aliyuncs.com
Content-Type:application/json

正常返回示例

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Result" : [ {
    "indexTemplate" : ".monitoring-es",
    "indexPatterns" : [ ".monitoring-es-7-*" ],
    "dataStream" : false,
    "template" : {
      "settings" : "{\"index.number_of_replicas\":\"0\",\"index.number_of_shards\":\"1\",\"index.auto_expand_replicas\":\"0-1\",\"index.format\":\"7\"}",
      "mappings" : "{\"date_detection\":false,\"dynamic\":false,\"properties\":{\"cluster_uuid\":{\"type\":\"keyword\"},\"state_uuid\":{\"type\":\"keyword\"},\"timestamp\":{\"type\":\"date\",\"format\":\"date_time\"},\"interval_ms\":{\"type\":\"long\"},\"type\":{\"type\":\"keyword\"},\"source_node\":{\"properties\":{\"uuid\":{\"type\":\"keyword\"},\"host\":{\"type\":\"keyword\"},\"transport_address\":{\"type\":\"keyword\"},\"ip\":{\"type\":\"keyword\"},\"name\":{\"type\":\"keyword\"},\"timestamp\":{\"type\":\"date\",\"format\":\"date_time\"}}},\"indices_stats\":{\"properties\":{\"_all\":{\"properties\":{\"primaries\":{\"properties\":{\"docs\":{\"properties\":{\"count\":{\"type\":\"long\"}}},\"indexing\":{\"properties\":{\"index_total\":{\"type\":\"long\"},\"index_time_in_millis\":{\"type\":\"long\"}}},\"search\":{\"properties\":{\"query_total\":{\"type\":\"long\"},\"query_time_in_millis\":{\"type\":\"long\"}}}}},\"total\":{\"properties\":{\"docs\":{\"properties\":{\"count\":{\"type\":\"long\"}}},\"indexing\":{\"properties\":{\"index_total\":{\"type\":\"long\"},\"index_time_in_millis\":{\"type\":\"long\"}}},\"search\":{\"properties\":{\"query_total\":{\"type\":\"long\"},\"query_time_in_millis\":{\"type\":\"long\"}}}}}}}}},\"index_stats\":{\"properties\":{\"index\":{\"type\":\"keyword\"},\"primaries\":{\"properties\":{\"docs\":{\"properties\":{\"count\":{\"type\":\"long\"}}},\"fielddata\":{\"properties\":{\"memory_size_in_bytes\":{\"type\":\"long\"},\"evictions\":{\"type\":\"long\"}}},\"store\":{\"properties\":{\"size_in_bytes\":{\"type\":\"long\"}}},\"indexing\":{\"properties\":{\"index_total\":{\"type\":\"long\"},\"index_time_in_millis\":{\"type\":\"long\"},\"throttle_time_in_millis\":{\"type\":\"long\"}}},\"merges\":{\"properties\":{\"total_size_in_bytes\":{\"type\":\"long\"}}},\"query_cache\":{\"properties\":{\"memory_size_in_bytes\":{\"type\":\"long\"},\"evictions\":{\"type\":\"long\"},\"hit_count\":{\"type\":\"long\"},\"miss_count\":{\"type\":\"long\"}}},\"request_cache\":{\"properties\":{\"memory_size_in_bytes\":{\"type\":\"long\"},\"evictions\":{\"type\":\"long\"},\"hit_count\":{\"type\":\"long\"},\"miss_count\":{\"type\":\"long\"}}},\"search\":{\"properties\":{\"query_total\":{\"type\":\"long\"},\"query_time_in_millis\":{\"type\":\"long\"}}},\"segments\":{\"properties\":{\"count\":{\"type\":\"integer\"},\"memory_in_bytes\":{\"type\":\"long\"},\"terms_memory_in_bytes\":{\"type\":\"long\"},\"points_memory_in_bytes\":{\"type\":\"long\"},\"stored_fields_memory_in_bytes\":{\"type\":\"long\"},\"term_vectors_memory_in_bytes\":{\"type\":\"long\"},\"norms_memory_in_bytes\":{\"type\":\"long\"},\"doc_values_memory_in_bytes\":{\"type\":\"long\"},\"index_writer_memory_in_bytes\":{\"type\":\"long\"},\"version_map_memory_in_bytes\":{\"type\":\"long\"},\"fixed_bit_set_memory_in_bytes\":{\"type\":\"long\"}}},\"refresh\":{\"properties\":{\"total_time_in_millis\":{\"type\":\"long\"}}}}},\"total\":{\"properties\":{\"docs\":{\"properties\":{\"count\":{\"type\":\"long\"}}},\"fielddata\":{\"properties\":{\"memory_size_in_bytes\":{\"type\":\"long\"},\"evictions\":{\"type\":\"long\"}}},\"store\":{\"properties\":{\"size_in_bytes\":{\"type\":\"long\"}}},\"indexing\":{\"properties\":{\"index_total\":{\"type\":\"long\"},\"index_time_in_millis\":{\"type\":\"long\"},\"throttle_time_in_millis\":{\"type\":\"long\"}}},\"merges\":{\"properties\":{\"total_size_in_bytes\":{\"type\":\"long\"}}},\"query_cache\":{\"properties\":{\"memory_size_in_bytes\":{\"type\":\"long\"},\"evictions\":{\"type\":\"long\"},\"hit_count\":{\"type\":\"long\"},\"miss_count\":{\"type\":\"long\"}}},\"request_cache\":{\"properties\":{\"memory_size_in_bytes\":{\"type\":\"long\"},\"evictions\":{\"type\":\"long\"},\"hit_count\":{\"type\":\"long\"},\"miss_count\":{\"type\":\"long\"}}},\"search\":{\"properties\":{\"query_total\":{\"type\":\"long\"},\"query_time_in_millis\":{\"type\":\"long\"}}},\"segments\":{\"properties\":{\"count\":{\"type\":\"integer\"},\"memory_in_bytes\":{\"type\":\"long\"},\"terms_memory_in_bytes\":{\"type\":\"long\"},\"points_memory_in_bytes\":{\"type\":\"long\"},\"stored_fields_memory_in_bytes\":{\"type\":\"long\"},\"term_vectors_memory_in_bytes\":{\"type\":\"long\"},\"norms_memory_in_bytes\":{\"type\":\"long\"},\"doc_values_memory_in_bytes\":{\"type\":\"long\"},\"index_writer_memory_in_bytes\":{\"type\":\"long\"},\"version_map_memory_in_bytes\":{\"type\":\"long\"},\"fixed_bit_set_memory_in_bytes\":{\"type\":\"long\"}}},\"refresh\":{\"properties\":{\"total_time_in_millis\":{\"type\":\"long\"}}}}}}},\"cluster_stats\":{\"properties\":{\"nodes\":{\"type\":\"object\"},\"indices\":{\"type\":\"object\"}}},\"cluster_state\":{\"properties\":{\"version\":{\"type\":\"long\"},\"nodes_hash\":{\"type\":\"integer\"},\"master_node\":{\"type\":\"keyword\"},\"state_uuid\":{\"type\":\"keyword\"},\"status\":{\"type\":\"keyword\"},\"nodes\":{\"type\":\"object\"},\"shards\":{\"type\":\"object\"}}},\"node_stats\":{\"properties\":{\"node_id\":{\"type\":\"keyword\"},\"node_master\":{\"type\":\"boolean\"},\"mlockall\":{\"type\":\"boolean\"},\"indices\":{\"properties\":{\"docs\":{\"properties\":{\"count\":{\"type\":\"long\"}}},\"fielddata\":{\"properties\":{\"memory_size_in_bytes\":{\"type\":\"long\"},\"evictions\":{\"type\":\"long\"}}},\"indexing\":{\"properties\":{\"index_time_in_millis\":{\"type\":\"long\"},\"index_total\":{\"type\":\"long\"},\"throttle_time_in_millis\":{\"type\":\"long\"}}},\"query_cache\":{\"properties\":{\"memory_size_in_bytes\":{\"type\":\"long\"},\"evictions\":{\"type\":\"long\"},\"hit_count\":{\"type\":\"long\"},\"miss_count\":{\"type\":\"long\"}}},\"request_cache\":{\"properties\":{\"memory_size_in_bytes\":{\"type\":\"long\"},\"evictions\":{\"type\":\"long\"},\"hit_count\":{\"type\":\"long\"},\"miss_count\":{\"type\":\"long\"}}},\"search\":{\"properties\":{\"query_time_in_millis\":{\"type\":\"long\"},\"query_total\":{\"type\":\"long\"}}},\"segments\":{\"properties\":{\"count\":{\"type\":\"integer\"},\"memory_in_bytes\":{\"type\":\"long\"},\"terms_memory_in_bytes\":{\"type\":\"long\"},\"points_memory_in_bytes\":{\"type\":\"long\"},\"stored_fields_memory_in_bytes\":{\"type\":\"long\"},\"term_vectors_memory_in_bytes\":{\"type\":\"long\"},\"norms_memory_in_bytes\":{\"type\":\"long\"},\"doc_values_memory_in_bytes\":{\"type\":\"long\"},\"index_writer_memory_in_bytes\":{\"type\":\"long\"},\"version_map_memory_in_bytes\":{\"type\":\"long\"},\"fixed_bit_set_memory_in_bytes\":{\"type\":\"long\"}}},\"store\":{\"properties\":{\"size_in_bytes\":{\"type\":\"long\"}}}}},\"fs\":{\"properties\":{\"total\":{\"properties\":{\"total_in_bytes\":{\"type\":\"long\"},\"free_in_bytes\":{\"type\":\"long\"},\"available_in_bytes\":{\"type\":\"long\"}}},\"data\":{\"properties\":{\"spins\":{\"type\":\"boolean\"}}},\"io_stats\":{\"properties\":{\"total\":{\"properties\":{\"operations\":{\"type\":\"long\"},\"read_operations\":{\"type\":\"long\"},\"write_operations\":{\"type\":\"long\"},\"read_kilobytes\":{\"type\":\"long\"},\"write_kilobytes\":{\"type\":\"long\"}}}}}}},\"os\":{\"properties\":{\"cgroup\":{\"properties\":{\"cpuacct\":{\"properties\":{\"control_group\":{\"type\":\"keyword\"},\"usage_nanos\":{\"type\":\"long\"}}},\"cpu\":{\"properties\":{\"cfs_quota_micros\":{\"type\":\"long\"},\"control_group\":{\"type\":\"keyword\"},\"stat\":{\"properties\":{\"number_of_elapsed_periods\":{\"type\":\"long\"},\"number_of_times_throttled\":{\"type\":\"long\"},\"time_throttled_nanos\":{\"type\":\"long\"}}}}},\"memory\":{\"properties\":{\"control_group\":{\"type\":\"keyword\"},\"limit_in_bytes\":{\"type\":\"keyword\"},\"usage_in_bytes\":{\"type\":\"keyword\"}}}}},\"cpu\":{\"properties\":{\"load_average\":{\"properties\":{\"1m\":{\"type\":\"half_float\"},\"5m\":{\"type\":\"half_float\"},\"15m\":{\"type\":\"half_float\"}}}}}}},\"process\":{\"properties\":{\"open_file_descriptors\":{\"type\":\"long\"},\"max_file_descriptors\":{\"type\":\"long\"},\"cpu\":{\"properties\":{\"percent\":{\"type\":\"half_float\"}}}}},\"jvm\":{\"properties\":{\"mem\":{\"properties\":{\"heap_used_in_bytes\":{\"type\":\"long\"},\"heap_used_percent\":{\"type\":\"half_float\"},\"heap_max_in_bytes\":{\"type\":\"long\"}}},\"gc\":{\"properties\":{\"collectors\":{\"properties\":{\"young\":{\"properties\":{\"collection_count\":{\"type\":\"long\"},\"collection_time_in_millis\":{\"type\":\"long\"}}},\"old\":{\"properties\":{\"collection_count\":{\"type\":\"long\"},\"collection_time_in_millis\":{\"type\":\"long\"}}}}}}}}},\"thread_pool\":{\"properties\":{\"bulk\":{\"properties\":{\"threads\":{\"type\":\"integer\"},\"queue\":{\"type\":\"integer\"},\"rejected\":{\"type\":\"long\"}}},\"generic\":{\"properties\":{\"threads\":{\"type\":\"integer\"},\"queue\":{\"type\":\"integer\"},\"rejected\":{\"type\":\"long\"}}},\"get\":{\"properties\":{\"threads\":{\"type\":\"integer\"},\"queue\":{\"type\":\"integer\"},\"rejected\":{\"type\":\"long\"}}},\"index\":{\"properties\":{\"threads\":{\"type\":\"integer\"},\"queue\":{\"type\":\"integer\"},\"rejected\":{\"type\":\"long\"}}},\"management\":{\"properties\":{\"threads\":{\"type\":\"integer\"},\"queue\":{\"type\":\"integer\"},\"rejected\":{\"type\":\"long\"}}},\"search\":{\"properties\":{\"threads\":{\"type\":\"integer\"},\"queue\":{\"type\":\"integer\"},\"rejected\":{\"type\":\"long\"}}},\"watcher\":{\"properties\":{\"threads\":{\"type\":\"integer\"},\"queue\":{\"type\":\"integer\"},\"rejected\":{\"type\":\"long\"}}},\"write\":{\"properties\":{\"queue\":{\"type\":\"integer\"},\"rejected\":{\"type\":\"long\"}}}}}}},\"index_recovery\":{\"type\":\"object\"},\"shard\":{\"properties\":{\"state\":{\"type\":\"keyword\"},\"primary\":{\"type\":\"boolean\"},\"index\":{\"type\":\"keyword\"},\"relocating_node\":{\"type\":\"keyword\"},\"shard\":{\"type\":\"long\"},\"node\":{\"type\":\"keyword\"}}},\"job_stats\":{\"properties\":{\"job_id\":{\"type\":\"keyword\"},\"state\":{\"type\":\"keyword\"},\"data_counts\":{\"properties\":{\"input_bytes\":{\"type\":\"long\"},\"processed_record_count\":{\"type\":\"long\"},\"empty_bucket_count\":{\"type\":\"long\"},\"sparse_bucket_count\":{\"type\":\"long\"},\"bucket_count\":{\"type\":\"long\"},\"earliest_record_timestamp\":{\"type\":\"date\"},\"latest_record_timestamp\":{\"type\":\"date\"}}},\"model_size_stats\":{\"properties\":{\"model_bytes\":{\"type\":\"long\"},\"bucket_allocation_failures_count\":{\"type\":\"long\"}}},\"node\":{\"properties\":{\"id\":{\"type\":\"keyword\"}}}}},\"ccr_stats\":{\"properties\":{\"remote_cluster\":{\"type\":\"keyword\"},\"leader_index\":{\"type\":\"keyword\"},\"follower_index\":{\"type\":\"keyword\"},\"shard_id\":{\"type\":\"integer\"},\"leader_global_checkpoint\":{\"type\":\"long\"},\"leader_max_seq_no\":{\"type\":\"long\"},\"follower_global_checkpoint\":{\"type\":\"long\"},\"follower_max_seq_no\":{\"type\":\"long\"},\"last_requested_seq_no\":{\"type\":\"long\"},\"outstanding_read_requests\":{\"type\":\"long\"},\"outstanding_write_requests\":{\"type\":\"long\"},\"write_buffer_operation_count\":{\"type\":\"long\"},\"write_buffer_size_in_bytes\":{\"type\":\"long\"},\"follower_mapping_version\":{\"type\":\"long\"},\"follower_settings_version\":{\"type\":\"long\"},\"follower_aliases_version\":{\"type\":\"long\"},\"total_read_time_millis\":{\"type\":\"long\"},\"total_read_remote_exec_time_millis\":{\"type\":\"long\"},\"successful_read_requests\":{\"type\":\"long\"},\"failed_read_requests\":{\"type\":\"long\"},\"operations_read\":{\"type\":\"long\"},\"bytes_read\":{\"type\":\"long\"},\"total_write_time_millis\":{\"type\":\"long\"},\"successful_write_requests\":{\"type\":\"long\"},\"failed_write_requests\":{\"type\":\"long\"},\"operations_written\":{\"type\":\"long\"},\"read_exceptions\":{\"type\":\"nested\",\"properties\":{\"from_seq_no\":{\"type\":\"long\"},\"retries\":{\"type\":\"integer\"},\"exception\":{\"type\":\"object\",\"properties\":{\"type\":{\"type\":\"keyword\"},\"reason\":{\"type\":\"text\"}}}}},\"time_since_last_read_millis\":{\"type\":\"long\"},\"fatal_exception\":{\"type\":\"object\",\"properties\":{\"type\":{\"type\":\"keyword\"},\"reason\":{\"type\":\"text\"}}}}},\"ccr_auto_follow_stats\":{\"properties\":{\"number_of_failed_follow_indices\":{\"type\":\"long\"},\"number_of_failed_remote_cluster_state_requests\":{\"type\":\"long\"},\"number_of_successful_follow_indices\":{\"type\":\"long\"},\"recent_auto_follow_errors\":{\"type\":\"nested\",\"properties\":{\"leader_index\":{\"type\":\"keyword\"},\"timestamp\":{\"type\":\"long\"},\"auto_follow_exception\":{\"type\":\"object\",\"properties\":{\"type\":{\"type\":\"keyword\"},\"reason\":{\"type\":\"text\"}}}}},\"auto_followed_clusters\":{\"type\":\"nested\",\"properties\":{\"cluster_name\":{\"type\":\"keyword\"},\"time_since_last_check_millis\":{\"type\":\"long\"},\"last_seen_metadata_version\":{\"type\":\"long\"}}}}},\"enrich_coordinator_stats\":{\"properties\":{\"node_id\":{\"type\":\"keyword\"},\"queue_size\":{\"type\":\"integer\"},\"remote_requests_current\":{\"type\":\"long\"},\"remote_requests_total\":{\"type\":\"long\"},\"executed_searches_total\":{\"type\":\"long\"}}},\"enrich_executing_policy_stats\":{\"properties\":{\"name\":{\"type\":\"keyword\"},\"task\":{\"type\":\"object\",\"properties\":{\"node\":{\"type\":\"keyword\"},\"id\":{\"type\":\"long\"},\"type\":{\"type\":\"keyword\"},\"action\":{\"type\":\"keyword\"},\"description\":{\"type\":\"keyword\"},\"start_time_in_millis\":{\"type\":\"date\",\"format\":\"epoch_millis\"},\"running_time_in_nanos\":{\"type\":\"long\"},\"cancellable\":{\"type\":\"boolean\"}}}}}}}",
      "aliases" : "{}"
    },
    "version" : "7000199",
    "order" : 0
  }, {
    "indexTemplate" : ".management-beats",
    "indexPatterns" : [ ".management-beats" ],
    "dataStream" : false,
    "template" : {
      "settings" : "{\"index.number_of_shards\":\"1\",\"index.auto_expand_replicas\":\"0-1\"}",
      "mappings" : "{\"dynamic\":\"strict\",\"properties\":{\"beat\":{\"properties\":{\"host_ip\":{\"type\":\"ip\"},\"metadata\":{\"dynamic\":\"true\",\"type\":\"object\"},\"active\":{\"type\":\"boolean\"},\"verified_on\":{\"type\":\"date\"},\"last_checkin\":{\"type\":\"date\"},\"type\":{\"type\":\"keyword\"},\"version\":{\"type\":\"keyword\"},\"tags\":{\"type\":\"keyword\"},\"access_token\":{\"type\":\"keyword\"},\"name\":{\"type\":\"keyword\"},\"id\":{\"type\":\"keyword\"},\"ephemeral_id\":{\"type\":\"keyword\"},\"host_name\":{\"type\":\"keyword\"},\"status\":{\"properties\":{\"type\":{\"type\":\"keyword\"},\"event\":{\"properties\":{\"type\":{\"type\":\"keyword\"},\"message\":{\"type\":\"text\"},\"uuid\":{\"type\":\"keyword\"}}},\"timestamp\":{\"type\":\"date\"}}},\"enrollment_token\":{\"type\":\"keyword\"}}},\"configuration_block\":{\"properties\":{\"last_updated\":{\"type\":\"date\"},\"description\":{\"type\":\"text\"},\"id\":{\"type\":\"keyword\"},\"tag\":{\"type\":\"keyword\"},\"type\":{\"type\":\"keyword\"},\"config\":{\"type\":\"keyword\"}}},\"tag\":{\"properties\":{\"color\":{\"type\":\"keyword\"},\"name\":{\"type\":\"keyword\"},\"id\":{\"type\":\"keyword\"},\"hasConfigurationBlocksTypes\":{\"type\":\"keyword\"}}},\"type\":{\"type\":\"keyword\"},\"enrollment_token\":{\"properties\":{\"expires_on\":{\"type\":\"date\"},\"token\":{\"type\":\"keyword\"}}}}}",
      "aliases" : "{}"
    },
    "version" : "70000",
    "order" : 0
  } ],
  "RequestId" : "8124711A-6C34-462D-BBB2-5212F878285F",
  "Headers" : {
    "X-Total-Count" : 2
  }
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。