1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getElasticsearchViews
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getElasticsearchViews

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of elasticsearch views

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const views = tencentcloud.getElasticsearchViews({
        instanceId: "es-xxxxxx",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    views = tencentcloud.get_elasticsearch_views(instance_id="es-xxxxxx")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetElasticsearchViews(ctx, &tencentcloud.GetElasticsearchViewsArgs{
    			InstanceId: "es-xxxxxx",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var views = Tencentcloud.GetElasticsearchViews.Invoke(new()
        {
            InstanceId = "es-xxxxxx",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetElasticsearchViewsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var views = TencentcloudFunctions.getElasticsearchViews(GetElasticsearchViewsArgs.builder()
                .instanceId("es-xxxxxx")
                .build());
    
        }
    }
    
    variables:
      views:
        fn::invoke:
          function: tencentcloud:getElasticsearchViews
          arguments:
            instanceId: es-xxxxxx
    

    Using getElasticsearchViews

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getElasticsearchViews(args: GetElasticsearchViewsArgs, opts?: InvokeOptions): Promise<GetElasticsearchViewsResult>
    function getElasticsearchViewsOutput(args: GetElasticsearchViewsOutputArgs, opts?: InvokeOptions): Output<GetElasticsearchViewsResult>
    def get_elasticsearch_views(id: Optional[str] = None,
                                instance_id: Optional[str] = None,
                                result_output_file: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetElasticsearchViewsResult
    def get_elasticsearch_views_output(id: Optional[pulumi.Input[str]] = None,
                                instance_id: Optional[pulumi.Input[str]] = None,
                                result_output_file: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetElasticsearchViewsResult]
    func GetElasticsearchViews(ctx *Context, args *GetElasticsearchViewsArgs, opts ...InvokeOption) (*GetElasticsearchViewsResult, error)
    func GetElasticsearchViewsOutput(ctx *Context, args *GetElasticsearchViewsOutputArgs, opts ...InvokeOption) GetElasticsearchViewsResultOutput

    > Note: This function is named GetElasticsearchViews in the Go SDK.

    public static class GetElasticsearchViews 
    {
        public static Task<GetElasticsearchViewsResult> InvokeAsync(GetElasticsearchViewsArgs args, InvokeOptions? opts = null)
        public static Output<GetElasticsearchViewsResult> Invoke(GetElasticsearchViewsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetElasticsearchViewsResult> getElasticsearchViews(GetElasticsearchViewsArgs args, InvokeOptions options)
    public static Output<GetElasticsearchViewsResult> getElasticsearchViews(GetElasticsearchViewsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getElasticsearchViews:getElasticsearchViews
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Instance id.
    Id string
    ResultOutputFile string
    Used to save results.
    InstanceId string
    Instance id.
    Id string
    ResultOutputFile string
    Used to save results.
    instanceId String
    Instance id.
    id String
    resultOutputFile String
    Used to save results.
    instanceId string
    Instance id.
    id string
    resultOutputFile string
    Used to save results.
    instance_id str
    Instance id.
    id str
    result_output_file str
    Used to save results.
    instanceId String
    Instance id.
    id String
    resultOutputFile String
    Used to save results.

    getElasticsearchViews Result

    The following output properties are available:

    Supporting Types

    GetElasticsearchViewsClusterView

    AvgCpuUsage double
    Average cpu utilization.
    AvgDiskUsage double
    Average disk utilization.
    AvgMemUsage double
    Average memory utilization.
    Break double
    Whether or not to break.
    DataNodeNum double
    Number of data nodes.
    DiskUsedInBytes double
    Bytes used on disk.
    DocNum double
    Number of documents.
    Health double
    Cluster health status.
    IndexNum double
    Index number.
    InitializingShardNum double
    Initializing shard number.
    NodeNum double
    Number of online nodes.
    PrimaryShardNum double
    Primary shard number.
    RelocatingShardNum double
    Relocating shard number.
    SearchableSnapshotCosAppId string
    Enterprise cluster can search the appid to which snapshot cos belongs.
    SearchableSnapshotCosBucket string
    Enterprise cluster searchable bucket name stored in snapshot cos.
    ShardNum double
    Number of node fragments.
    TargetNodeTypes List<string>
    Client request node.
    TotalCosStorage double
    Storage capacity of COS Enterprise Edition (in GB).
    TotalDiskSize double
    Total storage size of cluster.
    TotalNodeNum double
    Total number of nodes.
    UnassignedShardNum double
    Unassigned shard number.
    Visible double
    Whether the node is visible.
    AvgCpuUsage float64
    Average cpu utilization.
    AvgDiskUsage float64
    Average disk utilization.
    AvgMemUsage float64
    Average memory utilization.
    Break float64
    Whether or not to break.
    DataNodeNum float64
    Number of data nodes.
    DiskUsedInBytes float64
    Bytes used on disk.
    DocNum float64
    Number of documents.
    Health float64
    Cluster health status.
    IndexNum float64
    Index number.
    InitializingShardNum float64
    Initializing shard number.
    NodeNum float64
    Number of online nodes.
    PrimaryShardNum float64
    Primary shard number.
    RelocatingShardNum float64
    Relocating shard number.
    SearchableSnapshotCosAppId string
    Enterprise cluster can search the appid to which snapshot cos belongs.
    SearchableSnapshotCosBucket string
    Enterprise cluster searchable bucket name stored in snapshot cos.
    ShardNum float64
    Number of node fragments.
    TargetNodeTypes []string
    Client request node.
    TotalCosStorage float64
    Storage capacity of COS Enterprise Edition (in GB).
    TotalDiskSize float64
    Total storage size of cluster.
    TotalNodeNum float64
    Total number of nodes.
    UnassignedShardNum float64
    Unassigned shard number.
    Visible float64
    Whether the node is visible.
    avgCpuUsage Double
    Average cpu utilization.
    avgDiskUsage Double
    Average disk utilization.
    avgMemUsage Double
    Average memory utilization.
    break_ Double
    Whether or not to break.
    dataNodeNum Double
    Number of data nodes.
    diskUsedInBytes Double
    Bytes used on disk.
    docNum Double
    Number of documents.
    health Double
    Cluster health status.
    indexNum Double
    Index number.
    initializingShardNum Double
    Initializing shard number.
    nodeNum Double
    Number of online nodes.
    primaryShardNum Double
    Primary shard number.
    relocatingShardNum Double
    Relocating shard number.
    searchableSnapshotCosAppId String
    Enterprise cluster can search the appid to which snapshot cos belongs.
    searchableSnapshotCosBucket String
    Enterprise cluster searchable bucket name stored in snapshot cos.
    shardNum Double
    Number of node fragments.
    targetNodeTypes List<String>
    Client request node.
    totalCosStorage Double
    Storage capacity of COS Enterprise Edition (in GB).
    totalDiskSize Double
    Total storage size of cluster.
    totalNodeNum Double
    Total number of nodes.
    unassignedShardNum Double
    Unassigned shard number.
    visible Double
    Whether the node is visible.
    avgCpuUsage number
    Average cpu utilization.
    avgDiskUsage number
    Average disk utilization.
    avgMemUsage number
    Average memory utilization.
    break number
    Whether or not to break.
    dataNodeNum number
    Number of data nodes.
    diskUsedInBytes number
    Bytes used on disk.
    docNum number
    Number of documents.
    health number
    Cluster health status.
    indexNum number
    Index number.
    initializingShardNum number
    Initializing shard number.
    nodeNum number
    Number of online nodes.
    primaryShardNum number
    Primary shard number.
    relocatingShardNum number
    Relocating shard number.
    searchableSnapshotCosAppId string
    Enterprise cluster can search the appid to which snapshot cos belongs.
    searchableSnapshotCosBucket string
    Enterprise cluster searchable bucket name stored in snapshot cos.
    shardNum number
    Number of node fragments.
    targetNodeTypes string[]
    Client request node.
    totalCosStorage number
    Storage capacity of COS Enterprise Edition (in GB).
    totalDiskSize number
    Total storage size of cluster.
    totalNodeNum number
    Total number of nodes.
    unassignedShardNum number
    Unassigned shard number.
    visible number
    Whether the node is visible.
    avg_cpu_usage float
    Average cpu utilization.
    avg_disk_usage float
    Average disk utilization.
    avg_mem_usage float
    Average memory utilization.
    break_ float
    Whether or not to break.
    data_node_num float
    Number of data nodes.
    disk_used_in_bytes float
    Bytes used on disk.
    doc_num float
    Number of documents.
    health float
    Cluster health status.
    index_num float
    Index number.
    initializing_shard_num float
    Initializing shard number.
    node_num float
    Number of online nodes.
    primary_shard_num float
    Primary shard number.
    relocating_shard_num float
    Relocating shard number.
    searchable_snapshot_cos_app_id str
    Enterprise cluster can search the appid to which snapshot cos belongs.
    searchable_snapshot_cos_bucket str
    Enterprise cluster searchable bucket name stored in snapshot cos.
    shard_num float
    Number of node fragments.
    target_node_types Sequence[str]
    Client request node.
    total_cos_storage float
    Storage capacity of COS Enterprise Edition (in GB).
    total_disk_size float
    Total storage size of cluster.
    total_node_num float
    Total number of nodes.
    unassigned_shard_num float
    Unassigned shard number.
    visible float
    Whether the node is visible.
    avgCpuUsage Number
    Average cpu utilization.
    avgDiskUsage Number
    Average disk utilization.
    avgMemUsage Number
    Average memory utilization.
    break Number
    Whether or not to break.
    dataNodeNum Number
    Number of data nodes.
    diskUsedInBytes Number
    Bytes used on disk.
    docNum Number
    Number of documents.
    health Number
    Cluster health status.
    indexNum Number
    Index number.
    initializingShardNum Number
    Initializing shard number.
    nodeNum Number
    Number of online nodes.
    primaryShardNum Number
    Primary shard number.
    relocatingShardNum Number
    Relocating shard number.
    searchableSnapshotCosAppId String
    Enterprise cluster can search the appid to which snapshot cos belongs.
    searchableSnapshotCosBucket String
    Enterprise cluster searchable bucket name stored in snapshot cos.
    shardNum Number
    Number of node fragments.
    targetNodeTypes List<String>
    Client request node.
    totalCosStorage Number
    Storage capacity of COS Enterprise Edition (in GB).
    totalDiskSize Number
    Total storage size of cluster.
    totalNodeNum Number
    Total number of nodes.
    unassignedShardNum Number
    Unassigned shard number.
    visible Number
    Whether the node is visible.

    GetElasticsearchViewsKibanasView

    CpuNum double
    CPU number.
    CpuUsage double
    CPU usage.
    DiskSize double
    Total disk size of node.
    DiskUsage double
    Disk usage.
    Ip string
    Kibana node ip.
    MemSize double
    Node memory size (in GB).
    MemUsage double
    Memory usage.
    NodeId string
    Node id.
    Zone string
    Zone.
    CpuNum float64
    CPU number.
    CpuUsage float64
    CPU usage.
    DiskSize float64
    Total disk size of node.
    DiskUsage float64
    Disk usage.
    Ip string
    Kibana node ip.
    MemSize float64
    Node memory size (in GB).
    MemUsage float64
    Memory usage.
    NodeId string
    Node id.
    Zone string
    Zone.
    cpuNum Double
    CPU number.
    cpuUsage Double
    CPU usage.
    diskSize Double
    Total disk size of node.
    diskUsage Double
    Disk usage.
    ip String
    Kibana node ip.
    memSize Double
    Node memory size (in GB).
    memUsage Double
    Memory usage.
    nodeId String
    Node id.
    zone String
    Zone.
    cpuNum number
    CPU number.
    cpuUsage number
    CPU usage.
    diskSize number
    Total disk size of node.
    diskUsage number
    Disk usage.
    ip string
    Kibana node ip.
    memSize number
    Node memory size (in GB).
    memUsage number
    Memory usage.
    nodeId string
    Node id.
    zone string
    Zone.
    cpu_num float
    CPU number.
    cpu_usage float
    CPU usage.
    disk_size float
    Total disk size of node.
    disk_usage float
    Disk usage.
    ip str
    Kibana node ip.
    mem_size float
    Node memory size (in GB).
    mem_usage float
    Memory usage.
    node_id str
    Node id.
    zone str
    Zone.
    cpuNum Number
    CPU number.
    cpuUsage Number
    CPU usage.
    diskSize Number
    Total disk size of node.
    diskUsage Number
    Disk usage.
    ip String
    Kibana node ip.
    memSize Number
    Node memory size (in GB).
    memUsage Number
    Memory usage.
    nodeId String
    Node id.
    zone String
    Zone.

    GetElasticsearchViewsNodesView

    Break double
    Whether or not to break.
    CpuNum double
    CPU number.
    CpuUsage double
    CPU usage.
    DiskIds List<string>
    List of disk ID on the node.
    DiskSize double
    Total disk size of node.
    DiskUsage double
    Disk usage.
    Hidden bool
    Whether it is a hidden availability zone.
    IsCoordinationNode bool
    Whether to act as a coordinator node or not.
    JvmMemUsage double
    JVM memory usage.
    MemSize double
    Node memory size (in GB).
    MemUsage double
    Memory usage.
    NodeHttpIp string
    Node HTTP IP.
    NodeId string
    Node id.
    NodeIp string
    Node ip.
    NodeRole string
    Node role.
    ShardNum double
    Number of node fragments.
    Visible double
    Whether the node is visible.
    Zone string
    Zone.
    Break float64
    Whether or not to break.
    CpuNum float64
    CPU number.
    CpuUsage float64
    CPU usage.
    DiskIds []string
    List of disk ID on the node.
    DiskSize float64
    Total disk size of node.
    DiskUsage float64
    Disk usage.
    Hidden bool
    Whether it is a hidden availability zone.
    IsCoordinationNode bool
    Whether to act as a coordinator node or not.
    JvmMemUsage float64
    JVM memory usage.
    MemSize float64
    Node memory size (in GB).
    MemUsage float64
    Memory usage.
    NodeHttpIp string
    Node HTTP IP.
    NodeId string
    Node id.
    NodeIp string
    Node ip.
    NodeRole string
    Node role.
    ShardNum float64
    Number of node fragments.
    Visible float64
    Whether the node is visible.
    Zone string
    Zone.
    break_ Double
    Whether or not to break.
    cpuNum Double
    CPU number.
    cpuUsage Double
    CPU usage.
    diskIds List<String>
    List of disk ID on the node.
    diskSize Double
    Total disk size of node.
    diskUsage Double
    Disk usage.
    hidden Boolean
    Whether it is a hidden availability zone.
    isCoordinationNode Boolean
    Whether to act as a coordinator node or not.
    jvmMemUsage Double
    JVM memory usage.
    memSize Double
    Node memory size (in GB).
    memUsage Double
    Memory usage.
    nodeHttpIp String
    Node HTTP IP.
    nodeId String
    Node id.
    nodeIp String
    Node ip.
    nodeRole String
    Node role.
    shardNum Double
    Number of node fragments.
    visible Double
    Whether the node is visible.
    zone String
    Zone.
    break number
    Whether or not to break.
    cpuNum number
    CPU number.
    cpuUsage number
    CPU usage.
    diskIds string[]
    List of disk ID on the node.
    diskSize number
    Total disk size of node.
    diskUsage number
    Disk usage.
    hidden boolean
    Whether it is a hidden availability zone.
    isCoordinationNode boolean
    Whether to act as a coordinator node or not.
    jvmMemUsage number
    JVM memory usage.
    memSize number
    Node memory size (in GB).
    memUsage number
    Memory usage.
    nodeHttpIp string
    Node HTTP IP.
    nodeId string
    Node id.
    nodeIp string
    Node ip.
    nodeRole string
    Node role.
    shardNum number
    Number of node fragments.
    visible number
    Whether the node is visible.
    zone string
    Zone.
    break_ float
    Whether or not to break.
    cpu_num float
    CPU number.
    cpu_usage float
    CPU usage.
    disk_ids Sequence[str]
    List of disk ID on the node.
    disk_size float
    Total disk size of node.
    disk_usage float
    Disk usage.
    hidden bool
    Whether it is a hidden availability zone.
    is_coordination_node bool
    Whether to act as a coordinator node or not.
    jvm_mem_usage float
    JVM memory usage.
    mem_size float
    Node memory size (in GB).
    mem_usage float
    Memory usage.
    node_http_ip str
    Node HTTP IP.
    node_id str
    Node id.
    node_ip str
    Node ip.
    node_role str
    Node role.
    shard_num float
    Number of node fragments.
    visible float
    Whether the node is visible.
    zone str
    Zone.
    break Number
    Whether or not to break.
    cpuNum Number
    CPU number.
    cpuUsage Number
    CPU usage.
    diskIds List<String>
    List of disk ID on the node.
    diskSize Number
    Total disk size of node.
    diskUsage Number
    Disk usage.
    hidden Boolean
    Whether it is a hidden availability zone.
    isCoordinationNode Boolean
    Whether to act as a coordinator node or not.
    jvmMemUsage Number
    JVM memory usage.
    memSize Number
    Node memory size (in GB).
    memUsage Number
    Memory usage.
    nodeHttpIp String
    Node HTTP IP.
    nodeId String
    Node id.
    nodeIp String
    Node ip.
    nodeRole String
    Node role.
    shardNum Number
    Number of node fragments.
    visible Number
    Whether the node is visible.
    zone String
    Zone.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack