1. Packages
  2. OVH
  3. API Docs
  4. Dbaas
  5. getLogsOutputOpenSearchIndex
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

ovh.Dbaas.getLogsOutputOpenSearchIndex

Explore with Pulumi AI

ovh logo
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

    Use this data source to retrieve information about a DBaas logs output opensearch index.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const index = ovh.Dbaas.getLogsOutputOpenSearchIndex({
        name: "index-name",
        serviceName: "ldp-xx-xxxxx",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    index = ovh.Dbaas.get_logs_output_open_search_index(name="index-name",
        service_name="ldp-xx-xxxxx")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Dbaas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Dbaas.GetLogsOutputOpenSearchIndex(ctx, &dbaas.GetLogsOutputOpenSearchIndexArgs{
    			Name:        "index-name",
    			ServiceName: "ldp-xx-xxxxx",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var index = Ovh.Dbaas.GetLogsOutputOpenSearchIndex.Invoke(new()
        {
            Name = "index-name",
            ServiceName = "ldp-xx-xxxxx",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Dbaas.DbaasFunctions;
    import com.pulumi.ovh.Dbaas.inputs.GetLogsOutputOpenSearchIndexArgs;
    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 index = DbaasFunctions.getLogsOutputOpenSearchIndex(GetLogsOutputOpenSearchIndexArgs.builder()
                .name("index-name")
                .serviceName("ldp-xx-xxxxx")
                .build());
    
        }
    }
    
    variables:
      index:
        fn::invoke:
          Function: ovh:Dbaas:getLogsOutputOpenSearchIndex
          Arguments:
            name: index-name
            serviceName: ldp-xx-xxxxx
    

    Using getLogsOutputOpenSearchIndex

    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 getLogsOutputOpenSearchIndex(args: GetLogsOutputOpenSearchIndexArgs, opts?: InvokeOptions): Promise<GetLogsOutputOpenSearchIndexResult>
    function getLogsOutputOpenSearchIndexOutput(args: GetLogsOutputOpenSearchIndexOutputArgs, opts?: InvokeOptions): Output<GetLogsOutputOpenSearchIndexResult>
    def get_logs_output_open_search_index(name: Optional[str] = None,
                                          nb_shard: Optional[int] = None,
                                          service_name: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetLogsOutputOpenSearchIndexResult
    def get_logs_output_open_search_index_output(name: Optional[pulumi.Input[str]] = None,
                                          nb_shard: Optional[pulumi.Input[int]] = None,
                                          service_name: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetLogsOutputOpenSearchIndexResult]
    func GetLogsOutputOpenSearchIndex(ctx *Context, args *GetLogsOutputOpenSearchIndexArgs, opts ...InvokeOption) (*GetLogsOutputOpenSearchIndexResult, error)
    func GetLogsOutputOpenSearchIndexOutput(ctx *Context, args *GetLogsOutputOpenSearchIndexOutputArgs, opts ...InvokeOption) GetLogsOutputOpenSearchIndexResultOutput

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

    public static class GetLogsOutputOpenSearchIndex 
    {
        public static Task<GetLogsOutputOpenSearchIndexResult> InvokeAsync(GetLogsOutputOpenSearchIndexArgs args, InvokeOptions? opts = null)
        public static Output<GetLogsOutputOpenSearchIndexResult> Invoke(GetLogsOutputOpenSearchIndexInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogsOutputOpenSearchIndexResult> getLogsOutputOpenSearchIndex(GetLogsOutputOpenSearchIndexArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:Dbaas/getLogsOutputOpenSearchIndex:getLogsOutputOpenSearchIndex
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Index name
    ServiceName string
    The service name. It's the ID of your Logs Data Platform instance.
    NbShard int
    Number of shard
    Name string
    Index name
    ServiceName string
    The service name. It's the ID of your Logs Data Platform instance.
    NbShard int
    Number of shard
    name String
    Index name
    serviceName String
    The service name. It's the ID of your Logs Data Platform instance.
    nbShard Integer
    Number of shard
    name string
    Index name
    serviceName string
    The service name. It's the ID of your Logs Data Platform instance.
    nbShard number
    Number of shard
    name str
    Index name
    service_name str
    The service name. It's the ID of your Logs Data Platform instance.
    nb_shard int
    Number of shard
    name String
    Index name
    serviceName String
    The service name. It's the ID of your Logs Data Platform instance.
    nbShard Number
    Number of shard

    getLogsOutputOpenSearchIndex Result

    The following output properties are available:

    AlertNotifyEnabled bool
    If set, notify when size is near 80, 90 or 100 % of its maximum capacity
    CreatedAt string
    Index creation
    CurrentSize int
    Current index size (in bytes)
    Description string
    Index description
    Id string
    The provider-assigned unique ID for this managed resource.
    IndexId string
    Index ID
    IsEditable bool
    Indicates if you are allowed to edit entry
    MaxSize int
    Maximum index size (in bytes)
    Name string
    Index name
    NbShard int
    Number of shard
    ServiceName string
    UpdatedAt string
    Index last update
    AlertNotifyEnabled bool
    If set, notify when size is near 80, 90 or 100 % of its maximum capacity
    CreatedAt string
    Index creation
    CurrentSize int
    Current index size (in bytes)
    Description string
    Index description
    Id string
    The provider-assigned unique ID for this managed resource.
    IndexId string
    Index ID
    IsEditable bool
    Indicates if you are allowed to edit entry
    MaxSize int
    Maximum index size (in bytes)
    Name string
    Index name
    NbShard int
    Number of shard
    ServiceName string
    UpdatedAt string
    Index last update
    alertNotifyEnabled Boolean
    If set, notify when size is near 80, 90 or 100 % of its maximum capacity
    createdAt String
    Index creation
    currentSize Integer
    Current index size (in bytes)
    description String
    Index description
    id String
    The provider-assigned unique ID for this managed resource.
    indexId String
    Index ID
    isEditable Boolean
    Indicates if you are allowed to edit entry
    maxSize Integer
    Maximum index size (in bytes)
    name String
    Index name
    nbShard Integer
    Number of shard
    serviceName String
    updatedAt String
    Index last update
    alertNotifyEnabled boolean
    If set, notify when size is near 80, 90 or 100 % of its maximum capacity
    createdAt string
    Index creation
    currentSize number
    Current index size (in bytes)
    description string
    Index description
    id string
    The provider-assigned unique ID for this managed resource.
    indexId string
    Index ID
    isEditable boolean
    Indicates if you are allowed to edit entry
    maxSize number
    Maximum index size (in bytes)
    name string
    Index name
    nbShard number
    Number of shard
    serviceName string
    updatedAt string
    Index last update
    alert_notify_enabled bool
    If set, notify when size is near 80, 90 or 100 % of its maximum capacity
    created_at str
    Index creation
    current_size int
    Current index size (in bytes)
    description str
    Index description
    id str
    The provider-assigned unique ID for this managed resource.
    index_id str
    Index ID
    is_editable bool
    Indicates if you are allowed to edit entry
    max_size int
    Maximum index size (in bytes)
    name str
    Index name
    nb_shard int
    Number of shard
    service_name str
    updated_at str
    Index last update
    alertNotifyEnabled Boolean
    If set, notify when size is near 80, 90 or 100 % of its maximum capacity
    createdAt String
    Index creation
    currentSize Number
    Current index size (in bytes)
    description String
    Index description
    id String
    The provider-assigned unique ID for this managed resource.
    indexId String
    Index ID
    isEditable Boolean
    Indicates if you are allowed to edit entry
    maxSize Number
    Maximum index size (in bytes)
    name String
    Index name
    nbShard Number
    Number of shard
    serviceName String
    updatedAt String
    Index last update

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud