1. Packages
  2. OVH
  3. API Docs
  4. Dbaas
  5. getLogsCluster
OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud

ovh.Dbaas.getLogsCluster

Explore with Pulumi AI

ovh logo
OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud

    Use this data source to retrieve informations about a DBaas logs cluster tenant.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const logstash = ovh.Dbaas.getLogsCluster({
        clusterId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        serviceName: "ldp-xx-xxxxx",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    logstash = ovh.Dbaas.get_logs_cluster(cluster_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        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.GetLogsCluster(ctx, &dbaas.GetLogsClusterArgs{
    			ClusterId:   pulumi.StringRef("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"),
    			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.GetLogsCluster.Invoke(new()
        {
            ClusterId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            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.GetLogsClusterArgs;
    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.getLogsCluster(GetLogsClusterArgs.builder()
                .clusterId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
                .serviceName("ldp-xx-xxxxx")
                .build());
    
        }
    }
    
    variables:
      logstash:
        fn::invoke:
          Function: ovh:Dbaas:getLogsCluster
          Arguments:
            clusterId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
            serviceName: ldp-xx-xxxxx
    

    Using getLogsCluster

    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 getLogsCluster(args: GetLogsClusterArgs, opts?: InvokeOptions): Promise<GetLogsClusterResult>
    function getLogsClusterOutput(args: GetLogsClusterOutputArgs, opts?: InvokeOptions): Output<GetLogsClusterResult>
    def get_logs_cluster(cluster_id: Optional[str] = None,
                         service_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetLogsClusterResult
    def get_logs_cluster_output(cluster_id: Optional[pulumi.Input[str]] = None,
                         service_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetLogsClusterResult]
    func GetLogsCluster(ctx *Context, args *GetLogsClusterArgs, opts ...InvokeOption) (*GetLogsClusterResult, error)
    func GetLogsClusterOutput(ctx *Context, args *GetLogsClusterOutputArgs, opts ...InvokeOption) GetLogsClusterResultOutput

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

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

    The following arguments are supported:

    ServiceName string
    The service name. It's the ID of your Logs Data Platform instance.
    ClusterId string
    Cluster ID. If not provided, the default cluster_id is returned
    ServiceName string
    The service name. It's the ID of your Logs Data Platform instance.
    ClusterId string
    Cluster ID. If not provided, the default cluster_id is returned
    serviceName String
    The service name. It's the ID of your Logs Data Platform instance.
    clusterId String
    Cluster ID. If not provided, the default cluster_id is returned
    serviceName string
    The service name. It's the ID of your Logs Data Platform instance.
    clusterId string
    Cluster ID. If not provided, the default cluster_id is returned
    service_name str
    The service name. It's the ID of your Logs Data Platform instance.
    cluster_id str
    Cluster ID. If not provided, the default cluster_id is returned
    serviceName String
    The service name. It's the ID of your Logs Data Platform instance.
    clusterId String
    Cluster ID. If not provided, the default cluster_id is returned

    getLogsCluster Result

    The following output properties are available:

    ArchiveAllowedNetworks List<string>
    is allowed networks for ARCHIVE flow type
    ClusterId string
    ClusterType string
    is type of cluster (DEDICATED, PRO or TRIAL)
    DedicatedInputPem string
    is PEM for dedicated inputs
    DirectInputAllowedNetworks List<string>
    is allowed networks for DIRECT_INPUT flow type
    DirectInputPem string
    is PEM for direct inputs
    Hostname string
    is cluster hostname hosting the tenant
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    is true if all content generated by given service will be placed on this cluster
    IsUnlocked bool
    is true if given service can perform advanced operations on cluster
    QueryAllowedNetworks List<string>
    is allowed networks for QUERY flow type
    Region string
    is datacenter localization
    ServiceName string
    Urn string
    is the URN of the DBaas logs instance
    ArchiveAllowedNetworks []string
    is allowed networks for ARCHIVE flow type
    ClusterId string
    ClusterType string
    is type of cluster (DEDICATED, PRO or TRIAL)
    DedicatedInputPem string
    is PEM for dedicated inputs
    DirectInputAllowedNetworks []string
    is allowed networks for DIRECT_INPUT flow type
    DirectInputPem string
    is PEM for direct inputs
    Hostname string
    is cluster hostname hosting the tenant
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    is true if all content generated by given service will be placed on this cluster
    IsUnlocked bool
    is true if given service can perform advanced operations on cluster
    QueryAllowedNetworks []string
    is allowed networks for QUERY flow type
    Region string
    is datacenter localization
    ServiceName string
    Urn string
    is the URN of the DBaas logs instance
    archiveAllowedNetworks List<String>
    is allowed networks for ARCHIVE flow type
    clusterId String
    clusterType String
    is type of cluster (DEDICATED, PRO or TRIAL)
    dedicatedInputPem String
    is PEM for dedicated inputs
    directInputAllowedNetworks List<String>
    is allowed networks for DIRECT_INPUT flow type
    directInputPem String
    is PEM for direct inputs
    hostname String
    is cluster hostname hosting the tenant
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    is true if all content generated by given service will be placed on this cluster
    isUnlocked Boolean
    is true if given service can perform advanced operations on cluster
    queryAllowedNetworks List<String>
    is allowed networks for QUERY flow type
    region String
    is datacenter localization
    serviceName String
    urn String
    is the URN of the DBaas logs instance
    archiveAllowedNetworks string[]
    is allowed networks for ARCHIVE flow type
    clusterId string
    clusterType string
    is type of cluster (DEDICATED, PRO or TRIAL)
    dedicatedInputPem string
    is PEM for dedicated inputs
    directInputAllowedNetworks string[]
    is allowed networks for DIRECT_INPUT flow type
    directInputPem string
    is PEM for direct inputs
    hostname string
    is cluster hostname hosting the tenant
    id string
    The provider-assigned unique ID for this managed resource.
    isDefault boolean
    is true if all content generated by given service will be placed on this cluster
    isUnlocked boolean
    is true if given service can perform advanced operations on cluster
    queryAllowedNetworks string[]
    is allowed networks for QUERY flow type
    region string
    is datacenter localization
    serviceName string
    urn string
    is the URN of the DBaas logs instance
    archive_allowed_networks Sequence[str]
    is allowed networks for ARCHIVE flow type
    cluster_id str
    cluster_type str
    is type of cluster (DEDICATED, PRO or TRIAL)
    dedicated_input_pem str
    is PEM for dedicated inputs
    direct_input_allowed_networks Sequence[str]
    is allowed networks for DIRECT_INPUT flow type
    direct_input_pem str
    is PEM for direct inputs
    hostname str
    is cluster hostname hosting the tenant
    id str
    The provider-assigned unique ID for this managed resource.
    is_default bool
    is true if all content generated by given service will be placed on this cluster
    is_unlocked bool
    is true if given service can perform advanced operations on cluster
    query_allowed_networks Sequence[str]
    is allowed networks for QUERY flow type
    region str
    is datacenter localization
    service_name str
    urn str
    is the URN of the DBaas logs instance
    archiveAllowedNetworks List<String>
    is allowed networks for ARCHIVE flow type
    clusterId String
    clusterType String
    is type of cluster (DEDICATED, PRO or TRIAL)
    dedicatedInputPem String
    is PEM for dedicated inputs
    directInputAllowedNetworks List<String>
    is allowed networks for DIRECT_INPUT flow type
    directInputPem String
    is PEM for direct inputs
    hostname String
    is cluster hostname hosting the tenant
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    is true if all content generated by given service will be placed on this cluster
    isUnlocked Boolean
    is true if given service can perform advanced operations on cluster
    queryAllowedNetworks List<String>
    is allowed networks for QUERY flow type
    region String
    is datacenter localization
    serviceName String
    urn String
    is the URN of the DBaas logs instance

    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.50.0 published on Friday, Sep 20, 2024 by OVHcloud