1. Packages
  2. OVH
  3. API Docs
  4. Dbaas
  5. getLogsClusters
OVHCloud v0.43.1 published on Tuesday, Apr 23, 2024 by OVHcloud

ovh.Dbaas.getLogsClusters

Explore with Pulumi AI

ovh logo
OVHCloud v0.43.1 published on Tuesday, Apr 23, 2024 by OVHcloud

    Use this data source to retrieve UUIDs of DBaas logs clusters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const logstash = ovh.Dbaas.getLogsClusters({
        serviceName: "ldp-xx-xxxxx",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    logstash = ovh.Dbaas.get_logs_clusters(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.GetLogsClusters(ctx, &dbaas.GetLogsClustersArgs{
    			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 logstash = Ovh.Dbaas.GetLogsClusters.Invoke(new()
        {
            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.GetLogsClustersArgs;
    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 logstash = DbaasFunctions.getLogsClusters(GetLogsClustersArgs.builder()
                .serviceName("ldp-xx-xxxxx")
                .build());
    
        }
    }
    
    variables:
      logstash:
        fn::invoke:
          Function: ovh:Dbaas:getLogsClusters
          Arguments:
            serviceName: ldp-xx-xxxxx
    

    Using getLogsClusters

    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 getLogsClusters(args: GetLogsClustersArgs, opts?: InvokeOptions): Promise<GetLogsClustersResult>
    function getLogsClustersOutput(args: GetLogsClustersOutputArgs, opts?: InvokeOptions): Output<GetLogsClustersResult>
    def get_logs_clusters(service_name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetLogsClustersResult
    def get_logs_clusters_output(service_name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetLogsClustersResult]
    func GetLogsClusters(ctx *Context, args *GetLogsClustersArgs, opts ...InvokeOption) (*GetLogsClustersResult, error)
    func GetLogsClustersOutput(ctx *Context, args *GetLogsClustersOutputArgs, opts ...InvokeOption) GetLogsClustersResultOutput

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

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

    The following arguments are supported:

    ServiceName string
    The service name. It's the ID of your Logs Data Platform instance.
    ServiceName string
    The service name. It's the ID of your Logs Data Platform instance.
    serviceName String
    The service name. It's the ID of your Logs Data Platform instance.
    serviceName string
    The service name. It's the ID of your Logs Data Platform instance.
    service_name str
    The service name. It's the ID of your Logs Data Platform instance.
    serviceName String
    The service name. It's the ID of your Logs Data Platform instance.

    getLogsClusters Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    Urn string
    Uuids List<string>
    is the cluster id
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    Urn string
    Uuids []string
    is the cluster id
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String
    urn String
    uuids List<String>
    is the cluster id
    id string
    The provider-assigned unique ID for this managed resource.
    serviceName string
    urn string
    uuids string[]
    is the cluster id
    id str
    The provider-assigned unique ID for this managed resource.
    service_name str
    urn str
    uuids Sequence[str]
    is the cluster id
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String
    urn String
    uuids List<String>
    is the cluster id

    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 v0.43.1 published on Tuesday, Apr 23, 2024 by OVHcloud