OVHCloud v2.0.7 published on Wednesday, Mar 19, 2025 by OVHcloud
ovh.Dbaas.getLogsCluster
Explore with Pulumi AI
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/v2/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)
public static Output<GetLogsClusterResult> getLogsCluster(GetLogsClusterArgs args, InvokeOptions options)
fn::invoke:
  function: ovh:Dbaas/getLogsCluster:getLogsCluster
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Service
Name string - The service name. It's the ID of your Logs Data Platform instance.
 - Cluster
Id string - Cluster ID. If not provided, the default cluster_id is returned
 
- Service
Name string - The service name. It's the ID of your Logs Data Platform instance.
 - Cluster
Id string - Cluster ID. If not provided, the default cluster_id is returned
 
- service
Name String - The service name. It's the ID of your Logs Data Platform instance.
 - cluster
Id String - Cluster ID. If not provided, the default cluster_id is returned
 
- service
Name string - The service name. It's the ID of your Logs Data Platform instance.
 - cluster
Id 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
 
- service
Name String - The service name. It's the ID of your Logs Data Platform instance.
 - cluster
Id String - Cluster ID. If not provided, the default cluster_id is returned
 
getLogsCluster Result
The following output properties are available:
- Archive
Allowed List<string>Networks  - is allowed networks for ARCHIVE flow type
 - Cluster
Id string - Cluster
Type string - is type of cluster (DEDICATED, PRO or TRIAL)
 - Dedicated
Input stringPem  - is PEM for dedicated inputs
 - Direct
Input List<string>Allowed Networks  - is allowed networks for DIRECT_INPUT flow type
 - Direct
Input stringPem  - is PEM for direct inputs
 - Hostname string
 - is cluster hostname hosting the tenant
 - Id string
 - 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 List<string>Networks  - is allowed networks for QUERY flow type
 - Region string
 - is datacenter localization
 - Service
Name string - Urn string
 - is the URN of the DBaas logs instance
 
- Archive
Allowed []stringNetworks  - is allowed networks for ARCHIVE flow type
 - Cluster
Id string - Cluster
Type string - is type of cluster (DEDICATED, PRO or TRIAL)
 - Dedicated
Input stringPem  - is PEM for dedicated inputs
 - Direct
Input []stringAllowed Networks  - is allowed networks for DIRECT_INPUT flow type
 - Direct
Input stringPem  - is PEM for direct inputs
 - Hostname string
 - is cluster hostname hosting the tenant
 - Id string
 - 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 []stringNetworks  - is allowed networks for QUERY flow type
 - Region string
 - is datacenter localization
 - Service
Name string - Urn string
 - is the URN of the DBaas logs instance
 
- archive
Allowed List<String>Networks  - is allowed networks for ARCHIVE flow type
 - cluster
Id String - cluster
Type String - is type of cluster (DEDICATED, PRO or TRIAL)
 - dedicated
Input StringPem  - is PEM for dedicated inputs
 - direct
Input List<String>Allowed Networks  - is allowed networks for DIRECT_INPUT flow type
 - direct
Input StringPem  - is PEM for direct inputs
 - hostname String
 - is cluster hostname hosting the tenant
 - id String
 - The provider-assigned unique ID for this managed resource.
 - is
Default Boolean - is true if all content generated by given service will be placed on this cluster
 - is
Unlocked Boolean - is true if given service can perform advanced operations on cluster
 - query
Allowed List<String>Networks  - is allowed networks for QUERY flow type
 - region String
 - is datacenter localization
 - service
Name String - urn String
 - is the URN of the DBaas logs instance
 
- archive
Allowed string[]Networks  - is allowed networks for ARCHIVE flow type
 - cluster
Id string - cluster
Type string - is type of cluster (DEDICATED, PRO or TRIAL)
 - dedicated
Input stringPem  - is PEM for dedicated inputs
 - direct
Input string[]Allowed Networks  - is allowed networks for DIRECT_INPUT flow type
 - direct
Input stringPem  - is PEM for direct inputs
 - hostname string
 - is cluster hostname hosting the tenant
 - id string
 - The provider-assigned unique ID for this managed resource.
 - is
Default boolean - is true if all content generated by given service will be placed on this cluster
 - is
Unlocked boolean - is true if given service can perform advanced operations on cluster
 - query
Allowed string[]Networks  - is allowed networks for QUERY flow type
 - region string
 - is datacenter localization
 - service
Name string - urn string
 - is the URN of the DBaas logs instance
 
- archive_
allowed_ Sequence[str]networks  - is allowed networks for ARCHIVE flow type
 - cluster_
id str - cluster_
type str - is type of cluster (DEDICATED, PRO or TRIAL)
 - dedicated_
input_ strpem  - is PEM for dedicated inputs
 - direct_
input_ Sequence[str]allowed_ networks  - is allowed networks for DIRECT_INPUT flow type
 - direct_
input_ strpem  - 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_ Sequence[str]networks  - 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
 
- archive
Allowed List<String>Networks  - is allowed networks for ARCHIVE flow type
 - cluster
Id String - cluster
Type String - is type of cluster (DEDICATED, PRO or TRIAL)
 - dedicated
Input StringPem  - is PEM for dedicated inputs
 - direct
Input List<String>Allowed Networks  - is allowed networks for DIRECT_INPUT flow type
 - direct
Input StringPem  - is PEM for direct inputs
 - hostname String
 - is cluster hostname hosting the tenant
 - id String
 - The provider-assigned unique ID for this managed resource.
 - is
Default Boolean - is true if all content generated by given service will be placed on this cluster
 - is
Unlocked Boolean - is true if given service can perform advanced operations on cluster
 - query
Allowed List<String>Networks  - is allowed networks for QUERY flow type
 - region String
 - is datacenter localization
 - service
Name 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 
ovhTerraform Provider.