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

ovh.Dbaas.LogsCluster

Explore with Pulumi AI

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const ldp = new ovh.dbaas.LogsCluster("ldp", {
        archiveAllowedNetworks: ["10.0.0.0/16"],
        clusterId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        directInputAllowedNetworks: ["10.0.0.0/16"],
        queryAllowedNetworks: ["10.0.0.0/16"],
        serviceName: "ldp-xx-xxxxx",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    ldp = ovh.dbaas.LogsCluster("ldp",
        archive_allowed_networks=["10.0.0.0/16"],
        cluster_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        direct_input_allowed_networks=["10.0.0.0/16"],
        query_allowed_networks=["10.0.0.0/16"],
        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.NewLogsCluster(ctx, "ldp", &Dbaas.LogsClusterArgs{
    			ArchiveAllowedNetworks: pulumi.StringArray{
    				pulumi.String("10.0.0.0/16"),
    			},
    			ClusterId: pulumi.String("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"),
    			DirectInputAllowedNetworks: pulumi.StringArray{
    				pulumi.String("10.0.0.0/16"),
    			},
    			QueryAllowedNetworks: pulumi.StringArray{
    				pulumi.String("10.0.0.0/16"),
    			},
    			ServiceName: pulumi.String("ldp-xx-xxxxx"),
    		})
    		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 ldp = new Ovh.Dbaas.LogsCluster("ldp", new()
        {
            ArchiveAllowedNetworks = new[]
            {
                "10.0.0.0/16",
            },
            ClusterId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            DirectInputAllowedNetworks = new[]
            {
                "10.0.0.0/16",
            },
            QueryAllowedNetworks = new[]
            {
                "10.0.0.0/16",
            },
            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.LogsCluster;
    import com.pulumi.ovh.Dbaas.LogsClusterArgs;
    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) {
            var ldp = new LogsCluster("ldp", LogsClusterArgs.builder()
                .archiveAllowedNetworks("10.0.0.0/16")
                .clusterId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
                .directInputAllowedNetworks("10.0.0.0/16")
                .queryAllowedNetworks("10.0.0.0/16")
                .serviceName("ldp-xx-xxxxx")
                .build());
    
        }
    }
    
    resources:
      ldp:
        type: ovh:Dbaas:LogsCluster
        properties:
          archiveAllowedNetworks:
            - 10.0.0.0/16
          clusterId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
          directInputAllowedNetworks:
            - 10.0.0.0/16
          queryAllowedNetworks:
            - 10.0.0.0/16
          serviceName: ldp-xx-xxxxx
    

    Create LogsCluster Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LogsCluster(name: string, args: LogsClusterArgs, opts?: CustomResourceOptions);
    @overload
    def LogsCluster(resource_name: str,
                    args: LogsClusterArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogsCluster(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    service_name: Optional[str] = None,
                    archive_allowed_networks: Optional[Sequence[str]] = None,
                    cluster_id: Optional[str] = None,
                    direct_input_allowed_networks: Optional[Sequence[str]] = None,
                    query_allowed_networks: Optional[Sequence[str]] = None)
    func NewLogsCluster(ctx *Context, name string, args LogsClusterArgs, opts ...ResourceOption) (*LogsCluster, error)
    public LogsCluster(string name, LogsClusterArgs args, CustomResourceOptions? opts = null)
    public LogsCluster(String name, LogsClusterArgs args)
    public LogsCluster(String name, LogsClusterArgs args, CustomResourceOptions options)
    
    type: ovh:Dbaas:LogsCluster
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LogsClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LogsClusterArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LogsClusterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogsClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogsClusterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var logsClusterResource = new Ovh.Dbaas.LogsCluster("logsClusterResource", new()
    {
        ServiceName = "string",
        ArchiveAllowedNetworks = new[]
        {
            "string",
        },
        ClusterId = "string",
        DirectInputAllowedNetworks = new[]
        {
            "string",
        },
        QueryAllowedNetworks = new[]
        {
            "string",
        },
    });
    
    example, err := Dbaas.NewLogsCluster(ctx, "logsClusterResource", &Dbaas.LogsClusterArgs{
    	ServiceName: pulumi.String("string"),
    	ArchiveAllowedNetworks: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ClusterId: pulumi.String("string"),
    	DirectInputAllowedNetworks: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	QueryAllowedNetworks: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var logsClusterResource = new LogsCluster("logsClusterResource", LogsClusterArgs.builder()
        .serviceName("string")
        .archiveAllowedNetworks("string")
        .clusterId("string")
        .directInputAllowedNetworks("string")
        .queryAllowedNetworks("string")
        .build());
    
    logs_cluster_resource = ovh.dbaas.LogsCluster("logsClusterResource",
        service_name="string",
        archive_allowed_networks=["string"],
        cluster_id="string",
        direct_input_allowed_networks=["string"],
        query_allowed_networks=["string"])
    
    const logsClusterResource = new ovh.dbaas.LogsCluster("logsClusterResource", {
        serviceName: "string",
        archiveAllowedNetworks: ["string"],
        clusterId: "string",
        directInputAllowedNetworks: ["string"],
        queryAllowedNetworks: ["string"],
    });
    
    type: ovh:Dbaas:LogsCluster
    properties:
        archiveAllowedNetworks:
            - string
        clusterId: string
        directInputAllowedNetworks:
            - string
        queryAllowedNetworks:
            - string
        serviceName: string
    

    LogsCluster Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LogsCluster resource accepts the following input properties:

    ServiceName string
    The service name
    ArchiveAllowedNetworks List<string>
    List of IP blocks
    ClusterId string
    Cluster ID. If not provided, the default cluster_id is used
    DirectInputAllowedNetworks List<string>
    List of IP blocks
    QueryAllowedNetworks List<string>
    List of IP blocks
    ServiceName string
    The service name
    ArchiveAllowedNetworks []string
    List of IP blocks
    ClusterId string
    Cluster ID. If not provided, the default cluster_id is used
    DirectInputAllowedNetworks []string
    List of IP blocks
    QueryAllowedNetworks []string
    List of IP blocks
    serviceName String
    The service name
    archiveAllowedNetworks List<String>
    List of IP blocks
    clusterId String
    Cluster ID. If not provided, the default cluster_id is used
    directInputAllowedNetworks List<String>
    List of IP blocks
    queryAllowedNetworks List<String>
    List of IP blocks
    serviceName string
    The service name
    archiveAllowedNetworks string[]
    List of IP blocks
    clusterId string
    Cluster ID. If not provided, the default cluster_id is used
    directInputAllowedNetworks string[]
    List of IP blocks
    queryAllowedNetworks string[]
    List of IP blocks
    service_name str
    The service name
    archive_allowed_networks Sequence[str]
    List of IP blocks
    cluster_id str
    Cluster ID. If not provided, the default cluster_id is used
    direct_input_allowed_networks Sequence[str]
    List of IP blocks
    query_allowed_networks Sequence[str]
    List of IP blocks
    serviceName String
    The service name
    archiveAllowedNetworks List<String>
    List of IP blocks
    clusterId String
    Cluster ID. If not provided, the default cluster_id is used
    directInputAllowedNetworks List<String>
    List of IP blocks
    queryAllowedNetworks List<String>
    List of IP blocks

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LogsCluster resource produces the following output properties:

    ClusterType string
    type of cluster (DEDICATED, PRO or TRIAL)
    DedicatedInputPem string
    PEM for dedicated inputs
    DirectInputPem string
    PEM for direct inputs
    Hostname string
    cluster hostname hosting tenant
    Id string
    The provider-assigned unique ID for this managed resource.
    InitialArchiveAllowedNetworks List<string>
    Initial allowed networks for ARCHIVE flow type
    InitialDirectInputAllowedNetworks List<string>
    Initial allowed networks for DIRECT_INPUT flow type
    InitialQueryAllowedNetworks List<string>
    Initial allowed networks for QUERY flow type
    IsDefault bool
    true if all content generated by given service will be placed on this cluster
    IsUnlocked bool
    true if given service can perform advanced operations on cluster
    Region string
    datacenter localization
    ClusterType string
    type of cluster (DEDICATED, PRO or TRIAL)
    DedicatedInputPem string
    PEM for dedicated inputs
    DirectInputPem string
    PEM for direct inputs
    Hostname string
    cluster hostname hosting tenant
    Id string
    The provider-assigned unique ID for this managed resource.
    InitialArchiveAllowedNetworks []string
    Initial allowed networks for ARCHIVE flow type
    InitialDirectInputAllowedNetworks []string
    Initial allowed networks for DIRECT_INPUT flow type
    InitialQueryAllowedNetworks []string
    Initial allowed networks for QUERY flow type
    IsDefault bool
    true if all content generated by given service will be placed on this cluster
    IsUnlocked bool
    true if given service can perform advanced operations on cluster
    Region string
    datacenter localization
    clusterType String
    type of cluster (DEDICATED, PRO or TRIAL)
    dedicatedInputPem String
    PEM for dedicated inputs
    directInputPem String
    PEM for direct inputs
    hostname String
    cluster hostname hosting tenant
    id String
    The provider-assigned unique ID for this managed resource.
    initialArchiveAllowedNetworks List<String>
    Initial allowed networks for ARCHIVE flow type
    initialDirectInputAllowedNetworks List<String>
    Initial allowed networks for DIRECT_INPUT flow type
    initialQueryAllowedNetworks List<String>
    Initial allowed networks for QUERY flow type
    isDefault Boolean
    true if all content generated by given service will be placed on this cluster
    isUnlocked Boolean
    true if given service can perform advanced operations on cluster
    region String
    datacenter localization
    clusterType string
    type of cluster (DEDICATED, PRO or TRIAL)
    dedicatedInputPem string
    PEM for dedicated inputs
    directInputPem string
    PEM for direct inputs
    hostname string
    cluster hostname hosting tenant
    id string
    The provider-assigned unique ID for this managed resource.
    initialArchiveAllowedNetworks string[]
    Initial allowed networks for ARCHIVE flow type
    initialDirectInputAllowedNetworks string[]
    Initial allowed networks for DIRECT_INPUT flow type
    initialQueryAllowedNetworks string[]
    Initial allowed networks for QUERY flow type
    isDefault boolean
    true if all content generated by given service will be placed on this cluster
    isUnlocked boolean
    true if given service can perform advanced operations on cluster
    region string
    datacenter localization
    cluster_type str
    type of cluster (DEDICATED, PRO or TRIAL)
    dedicated_input_pem str
    PEM for dedicated inputs
    direct_input_pem str
    PEM for direct inputs
    hostname str
    cluster hostname hosting tenant
    id str
    The provider-assigned unique ID for this managed resource.
    initial_archive_allowed_networks Sequence[str]
    Initial allowed networks for ARCHIVE flow type
    initial_direct_input_allowed_networks Sequence[str]
    Initial allowed networks for DIRECT_INPUT flow type
    initial_query_allowed_networks Sequence[str]
    Initial allowed networks for QUERY flow type
    is_default bool
    true if all content generated by given service will be placed on this cluster
    is_unlocked bool
    true if given service can perform advanced operations on cluster
    region str
    datacenter localization
    clusterType String
    type of cluster (DEDICATED, PRO or TRIAL)
    dedicatedInputPem String
    PEM for dedicated inputs
    directInputPem String
    PEM for direct inputs
    hostname String
    cluster hostname hosting tenant
    id String
    The provider-assigned unique ID for this managed resource.
    initialArchiveAllowedNetworks List<String>
    Initial allowed networks for ARCHIVE flow type
    initialDirectInputAllowedNetworks List<String>
    Initial allowed networks for DIRECT_INPUT flow type
    initialQueryAllowedNetworks List<String>
    Initial allowed networks for QUERY flow type
    isDefault Boolean
    true if all content generated by given service will be placed on this cluster
    isUnlocked Boolean
    true if given service can perform advanced operations on cluster
    region String
    datacenter localization

    Look up Existing LogsCluster Resource

    Get an existing LogsCluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LogsClusterState, opts?: CustomResourceOptions): LogsCluster
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            archive_allowed_networks: Optional[Sequence[str]] = None,
            cluster_id: Optional[str] = None,
            cluster_type: Optional[str] = None,
            dedicated_input_pem: Optional[str] = None,
            direct_input_allowed_networks: Optional[Sequence[str]] = None,
            direct_input_pem: Optional[str] = None,
            hostname: Optional[str] = None,
            initial_archive_allowed_networks: Optional[Sequence[str]] = None,
            initial_direct_input_allowed_networks: Optional[Sequence[str]] = None,
            initial_query_allowed_networks: Optional[Sequence[str]] = None,
            is_default: Optional[bool] = None,
            is_unlocked: Optional[bool] = None,
            query_allowed_networks: Optional[Sequence[str]] = None,
            region: Optional[str] = None,
            service_name: Optional[str] = None) -> LogsCluster
    func GetLogsCluster(ctx *Context, name string, id IDInput, state *LogsClusterState, opts ...ResourceOption) (*LogsCluster, error)
    public static LogsCluster Get(string name, Input<string> id, LogsClusterState? state, CustomResourceOptions? opts = null)
    public static LogsCluster get(String name, Output<String> id, LogsClusterState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ArchiveAllowedNetworks List<string>
    List of IP blocks
    ClusterId string
    Cluster ID. If not provided, the default cluster_id is used
    ClusterType string
    type of cluster (DEDICATED, PRO or TRIAL)
    DedicatedInputPem string
    PEM for dedicated inputs
    DirectInputAllowedNetworks List<string>
    List of IP blocks
    DirectInputPem string
    PEM for direct inputs
    Hostname string
    cluster hostname hosting tenant
    InitialArchiveAllowedNetworks List<string>
    Initial allowed networks for ARCHIVE flow type
    InitialDirectInputAllowedNetworks List<string>
    Initial allowed networks for DIRECT_INPUT flow type
    InitialQueryAllowedNetworks List<string>
    Initial allowed networks for QUERY flow type
    IsDefault bool
    true if all content generated by given service will be placed on this cluster
    IsUnlocked bool
    true if given service can perform advanced operations on cluster
    QueryAllowedNetworks List<string>
    List of IP blocks
    Region string
    datacenter localization
    ServiceName string
    The service name
    ArchiveAllowedNetworks []string
    List of IP blocks
    ClusterId string
    Cluster ID. If not provided, the default cluster_id is used
    ClusterType string
    type of cluster (DEDICATED, PRO or TRIAL)
    DedicatedInputPem string
    PEM for dedicated inputs
    DirectInputAllowedNetworks []string
    List of IP blocks
    DirectInputPem string
    PEM for direct inputs
    Hostname string
    cluster hostname hosting tenant
    InitialArchiveAllowedNetworks []string
    Initial allowed networks for ARCHIVE flow type
    InitialDirectInputAllowedNetworks []string
    Initial allowed networks for DIRECT_INPUT flow type
    InitialQueryAllowedNetworks []string
    Initial allowed networks for QUERY flow type
    IsDefault bool
    true if all content generated by given service will be placed on this cluster
    IsUnlocked bool
    true if given service can perform advanced operations on cluster
    QueryAllowedNetworks []string
    List of IP blocks
    Region string
    datacenter localization
    ServiceName string
    The service name
    archiveAllowedNetworks List<String>
    List of IP blocks
    clusterId String
    Cluster ID. If not provided, the default cluster_id is used
    clusterType String
    type of cluster (DEDICATED, PRO or TRIAL)
    dedicatedInputPem String
    PEM for dedicated inputs
    directInputAllowedNetworks List<String>
    List of IP blocks
    directInputPem String
    PEM for direct inputs
    hostname String
    cluster hostname hosting tenant
    initialArchiveAllowedNetworks List<String>
    Initial allowed networks for ARCHIVE flow type
    initialDirectInputAllowedNetworks List<String>
    Initial allowed networks for DIRECT_INPUT flow type
    initialQueryAllowedNetworks List<String>
    Initial allowed networks for QUERY flow type
    isDefault Boolean
    true if all content generated by given service will be placed on this cluster
    isUnlocked Boolean
    true if given service can perform advanced operations on cluster
    queryAllowedNetworks List<String>
    List of IP blocks
    region String
    datacenter localization
    serviceName String
    The service name
    archiveAllowedNetworks string[]
    List of IP blocks
    clusterId string
    Cluster ID. If not provided, the default cluster_id is used
    clusterType string
    type of cluster (DEDICATED, PRO or TRIAL)
    dedicatedInputPem string
    PEM for dedicated inputs
    directInputAllowedNetworks string[]
    List of IP blocks
    directInputPem string
    PEM for direct inputs
    hostname string
    cluster hostname hosting tenant
    initialArchiveAllowedNetworks string[]
    Initial allowed networks for ARCHIVE flow type
    initialDirectInputAllowedNetworks string[]
    Initial allowed networks for DIRECT_INPUT flow type
    initialQueryAllowedNetworks string[]
    Initial allowed networks for QUERY flow type
    isDefault boolean
    true if all content generated by given service will be placed on this cluster
    isUnlocked boolean
    true if given service can perform advanced operations on cluster
    queryAllowedNetworks string[]
    List of IP blocks
    region string
    datacenter localization
    serviceName string
    The service name
    archive_allowed_networks Sequence[str]
    List of IP blocks
    cluster_id str
    Cluster ID. If not provided, the default cluster_id is used
    cluster_type str
    type of cluster (DEDICATED, PRO or TRIAL)
    dedicated_input_pem str
    PEM for dedicated inputs
    direct_input_allowed_networks Sequence[str]
    List of IP blocks
    direct_input_pem str
    PEM for direct inputs
    hostname str
    cluster hostname hosting tenant
    initial_archive_allowed_networks Sequence[str]
    Initial allowed networks for ARCHIVE flow type
    initial_direct_input_allowed_networks Sequence[str]
    Initial allowed networks for DIRECT_INPUT flow type
    initial_query_allowed_networks Sequence[str]
    Initial allowed networks for QUERY flow type
    is_default bool
    true if all content generated by given service will be placed on this cluster
    is_unlocked bool
    true if given service can perform advanced operations on cluster
    query_allowed_networks Sequence[str]
    List of IP blocks
    region str
    datacenter localization
    service_name str
    The service name
    archiveAllowedNetworks List<String>
    List of IP blocks
    clusterId String
    Cluster ID. If not provided, the default cluster_id is used
    clusterType String
    type of cluster (DEDICATED, PRO or TRIAL)
    dedicatedInputPem String
    PEM for dedicated inputs
    directInputAllowedNetworks List<String>
    List of IP blocks
    directInputPem String
    PEM for direct inputs
    hostname String
    cluster hostname hosting tenant
    initialArchiveAllowedNetworks List<String>
    Initial allowed networks for ARCHIVE flow type
    initialDirectInputAllowedNetworks List<String>
    Initial allowed networks for DIRECT_INPUT flow type
    initialQueryAllowedNetworks List<String>
    Initial allowed networks for QUERY flow type
    isDefault Boolean
    true if all content generated by given service will be placed on this cluster
    isUnlocked Boolean
    true if given service can perform advanced operations on cluster
    queryAllowedNetworks List<String>
    List of IP blocks
    region String
    datacenter localization
    serviceName String
    The service name

    Import

    OVHcloud DBaaS Log Data Platform clusters can be imported using the service_name and cluster_id of the cluster, separated by “/” E.g.,

    bash

    $ pulumi import ovh:Dbaas/logsCluster:LogsCluster ldp service_name/cluster_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    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