ovh.Dbaas.LogsCluster
Explore with Pulumi AI
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:
- Service
Name string - The service name
- Archive
Allowed List<string>Networks - List of IP blocks
- Cluster
Id string - Cluster ID. If not provided, the default cluster_id is used
- Direct
Input List<string>Allowed Networks - List of IP blocks
- Query
Allowed List<string>Networks - List of IP blocks
- Service
Name string - The service name
- Archive
Allowed []stringNetworks - List of IP blocks
- Cluster
Id string - Cluster ID. If not provided, the default cluster_id is used
- Direct
Input []stringAllowed Networks - List of IP blocks
- Query
Allowed []stringNetworks - List of IP blocks
- service
Name String - The service name
- archive
Allowed List<String>Networks - List of IP blocks
- cluster
Id String - Cluster ID. If not provided, the default cluster_id is used
- direct
Input List<String>Allowed Networks - List of IP blocks
- query
Allowed List<String>Networks - List of IP blocks
- service
Name string - The service name
- archive
Allowed string[]Networks - List of IP blocks
- cluster
Id string - Cluster ID. If not provided, the default cluster_id is used
- direct
Input string[]Allowed Networks - List of IP blocks
- query
Allowed string[]Networks - List of IP blocks
- service_
name str - The service name
- archive_
allowed_ Sequence[str]networks - List of IP blocks
- cluster_
id str - Cluster ID. If not provided, the default cluster_id is used
- direct_
input_ Sequence[str]allowed_ networks - List of IP blocks
- query_
allowed_ Sequence[str]networks - List of IP blocks
- service
Name String - The service name
- archive
Allowed List<String>Networks - List of IP blocks
- cluster
Id String - Cluster ID. If not provided, the default cluster_id is used
- direct
Input List<String>Allowed Networks - List of IP blocks
- query
Allowed List<String>Networks - List of IP blocks
Outputs
All input properties are implicitly available as output properties. Additionally, the LogsCluster resource produces the following output properties:
- Cluster
Type string - type of cluster (DEDICATED, PRO or TRIAL)
- Dedicated
Input stringPem - PEM for dedicated inputs
- Direct
Input stringPem - PEM for direct inputs
- Hostname string
- cluster hostname hosting tenant
- Id string
- The provider-assigned unique ID for this managed resource.
- Initial
Archive List<string>Allowed Networks - Initial allowed networks for ARCHIVE flow type
- Initial
Direct List<string>Input Allowed Networks - Initial allowed networks for DIRECT_INPUT flow type
- Initial
Query List<string>Allowed Networks - 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 string
- datacenter localization
- Cluster
Type string - type of cluster (DEDICATED, PRO or TRIAL)
- Dedicated
Input stringPem - PEM for dedicated inputs
- Direct
Input stringPem - PEM for direct inputs
- Hostname string
- cluster hostname hosting tenant
- Id string
- The provider-assigned unique ID for this managed resource.
- Initial
Archive []stringAllowed Networks - Initial allowed networks for ARCHIVE flow type
- Initial
Direct []stringInput Allowed Networks - Initial allowed networks for DIRECT_INPUT flow type
- Initial
Query []stringAllowed Networks - 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 string
- datacenter localization
- cluster
Type String - type of cluster (DEDICATED, PRO or TRIAL)
- dedicated
Input StringPem - PEM for dedicated inputs
- direct
Input StringPem - PEM for direct inputs
- hostname String
- cluster hostname hosting tenant
- id String
- The provider-assigned unique ID for this managed resource.
- initial
Archive List<String>Allowed Networks - Initial allowed networks for ARCHIVE flow type
- initial
Direct List<String>Input Allowed Networks - Initial allowed networks for DIRECT_INPUT flow type
- initial
Query List<String>Allowed Networks - Initial allowed networks for QUERY flow type
- is
Default Boolean - true if all content generated by given service will be placed on this cluster
- is
Unlocked Boolean - true if given service can perform advanced operations on cluster
- region String
- datacenter localization
- cluster
Type string - type of cluster (DEDICATED, PRO or TRIAL)
- dedicated
Input stringPem - PEM for dedicated inputs
- direct
Input stringPem - PEM for direct inputs
- hostname string
- cluster hostname hosting tenant
- id string
- The provider-assigned unique ID for this managed resource.
- initial
Archive string[]Allowed Networks - Initial allowed networks for ARCHIVE flow type
- initial
Direct string[]Input Allowed Networks - Initial allowed networks for DIRECT_INPUT flow type
- initial
Query string[]Allowed Networks - Initial allowed networks for QUERY flow type
- is
Default boolean - true if all content generated by given service will be placed on this cluster
- is
Unlocked 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_ strpem - PEM for dedicated inputs
- direct_
input_ strpem - PEM for direct inputs
- hostname str
- cluster hostname hosting tenant
- id str
- The provider-assigned unique ID for this managed resource.
- initial_
archive_ Sequence[str]allowed_ networks - Initial allowed networks for ARCHIVE flow type
- initial_
direct_ Sequence[str]input_ allowed_ networks - Initial allowed networks for DIRECT_INPUT flow type
- initial_
query_ Sequence[str]allowed_ networks - 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
- cluster
Type String - type of cluster (DEDICATED, PRO or TRIAL)
- dedicated
Input StringPem - PEM for dedicated inputs
- direct
Input StringPem - PEM for direct inputs
- hostname String
- cluster hostname hosting tenant
- id String
- The provider-assigned unique ID for this managed resource.
- initial
Archive List<String>Allowed Networks - Initial allowed networks for ARCHIVE flow type
- initial
Direct List<String>Input Allowed Networks - Initial allowed networks for DIRECT_INPUT flow type
- initial
Query List<String>Allowed Networks - Initial allowed networks for QUERY flow type
- is
Default Boolean - true if all content generated by given service will be placed on this cluster
- is
Unlocked 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.
- Archive
Allowed List<string>Networks - List of IP blocks
- Cluster
Id string - Cluster ID. If not provided, the default cluster_id is used
- Cluster
Type string - type of cluster (DEDICATED, PRO or TRIAL)
- Dedicated
Input stringPem - PEM for dedicated inputs
- Direct
Input List<string>Allowed Networks - List of IP blocks
- Direct
Input stringPem - PEM for direct inputs
- Hostname string
- cluster hostname hosting tenant
- Initial
Archive List<string>Allowed Networks - Initial allowed networks for ARCHIVE flow type
- Initial
Direct List<string>Input Allowed Networks - Initial allowed networks for DIRECT_INPUT flow type
- Initial
Query List<string>Allowed Networks - 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 List<string>Networks - List of IP blocks
- Region string
- datacenter localization
- Service
Name string - The service name
- Archive
Allowed []stringNetworks - List of IP blocks
- Cluster
Id string - Cluster ID. If not provided, the default cluster_id is used
- Cluster
Type string - type of cluster (DEDICATED, PRO or TRIAL)
- Dedicated
Input stringPem - PEM for dedicated inputs
- Direct
Input []stringAllowed Networks - List of IP blocks
- Direct
Input stringPem - PEM for direct inputs
- Hostname string
- cluster hostname hosting tenant
- Initial
Archive []stringAllowed Networks - Initial allowed networks for ARCHIVE flow type
- Initial
Direct []stringInput Allowed Networks - Initial allowed networks for DIRECT_INPUT flow type
- Initial
Query []stringAllowed Networks - 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 []stringNetworks - List of IP blocks
- Region string
- datacenter localization
- Service
Name string - The service name
- archive
Allowed List<String>Networks - List of IP blocks
- cluster
Id String - Cluster ID. If not provided, the default cluster_id is used
- cluster
Type String - type of cluster (DEDICATED, PRO or TRIAL)
- dedicated
Input StringPem - PEM for dedicated inputs
- direct
Input List<String>Allowed Networks - List of IP blocks
- direct
Input StringPem - PEM for direct inputs
- hostname String
- cluster hostname hosting tenant
- initial
Archive List<String>Allowed Networks - Initial allowed networks for ARCHIVE flow type
- initial
Direct List<String>Input Allowed Networks - Initial allowed networks for DIRECT_INPUT flow type
- initial
Query List<String>Allowed Networks - Initial allowed networks for QUERY flow type
- is
Default Boolean - true if all content generated by given service will be placed on this cluster
- is
Unlocked Boolean - true if given service can perform advanced operations on cluster
- query
Allowed List<String>Networks - List of IP blocks
- region String
- datacenter localization
- service
Name String - The service name
- archive
Allowed string[]Networks - List of IP blocks
- cluster
Id string - Cluster ID. If not provided, the default cluster_id is used
- cluster
Type string - type of cluster (DEDICATED, PRO or TRIAL)
- dedicated
Input stringPem - PEM for dedicated inputs
- direct
Input string[]Allowed Networks - List of IP blocks
- direct
Input stringPem - PEM for direct inputs
- hostname string
- cluster hostname hosting tenant
- initial
Archive string[]Allowed Networks - Initial allowed networks for ARCHIVE flow type
- initial
Direct string[]Input Allowed Networks - Initial allowed networks for DIRECT_INPUT flow type
- initial
Query string[]Allowed Networks - Initial allowed networks for QUERY flow type
- is
Default boolean - true if all content generated by given service will be placed on this cluster
- is
Unlocked boolean - true if given service can perform advanced operations on cluster
- query
Allowed string[]Networks - List of IP blocks
- region string
- datacenter localization
- service
Name string - The service name
- archive_
allowed_ Sequence[str]networks - 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_ strpem - PEM for dedicated inputs
- direct_
input_ Sequence[str]allowed_ networks - List of IP blocks
- direct_
input_ strpem - PEM for direct inputs
- hostname str
- cluster hostname hosting tenant
- initial_
archive_ Sequence[str]allowed_ networks - Initial allowed networks for ARCHIVE flow type
- initial_
direct_ Sequence[str]input_ allowed_ networks - Initial allowed networks for DIRECT_INPUT flow type
- initial_
query_ Sequence[str]allowed_ networks - 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_ Sequence[str]networks - List of IP blocks
- region str
- datacenter localization
- service_
name str - The service name
- archive
Allowed List<String>Networks - List of IP blocks
- cluster
Id String - Cluster ID. If not provided, the default cluster_id is used
- cluster
Type String - type of cluster (DEDICATED, PRO or TRIAL)
- dedicated
Input StringPem - PEM for dedicated inputs
- direct
Input List<String>Allowed Networks - List of IP blocks
- direct
Input StringPem - PEM for direct inputs
- hostname String
- cluster hostname hosting tenant
- initial
Archive List<String>Allowed Networks - Initial allowed networks for ARCHIVE flow type
- initial
Direct List<String>Input Allowed Networks - Initial allowed networks for DIRECT_INPUT flow type
- initial
Query List<String>Allowed Networks - Initial allowed networks for QUERY flow type
- is
Default Boolean - true if all content generated by given service will be placed on this cluster
- is
Unlocked Boolean - true if given service can perform advanced operations on cluster
- query
Allowed List<String>Networks - List of IP blocks
- region String
- datacenter localization
- service
Name 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.