OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud
ovh.CloudProject.getM3dbNamespace
Explore with Pulumi AI
Use this data source to get information about a namespace of a M3DB cluster associated with a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const m3dbnamespace = ovh.CloudProject.getM3dbNamespace({
serviceName: "XXX",
clusterId: "YYY",
name: "ZZZ",
});
export const m3dbnamespaceType = m3dbnamespace.then(m3dbnamespace => m3dbnamespace.type);
import pulumi
import pulumi_ovh as ovh
m3dbnamespace = ovh.CloudProject.get_m3db_namespace(service_name="XXX",
cluster_id="YYY",
name="ZZZ")
pulumi.export("m3dbnamespaceType", m3dbnamespace.type)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/go/ovh/CloudProject"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
m3dbnamespace, err := CloudProject.GetM3dbNamespace(ctx, &cloudproject.GetM3dbNamespaceArgs{
ServiceName: "XXX",
ClusterId: "YYY",
Name: "ZZZ",
}, nil)
if err != nil {
return err
}
ctx.Export("m3dbnamespaceType", m3dbnamespace.Type)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var m3dbnamespace = Ovh.CloudProject.GetM3dbNamespace.Invoke(new()
{
ServiceName = "XXX",
ClusterId = "YYY",
Name = "ZZZ",
});
return new Dictionary<string, object?>
{
["m3dbnamespaceType"] = m3dbnamespace.Apply(getM3dbNamespaceResult => getM3dbNamespaceResult.Type),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
import com.pulumi.ovh.CloudProject.inputs.GetM3dbNamespaceArgs;
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 m3dbnamespace = CloudProjectFunctions.getM3dbNamespace(GetM3dbNamespaceArgs.builder()
.serviceName("XXX")
.clusterId("YYY")
.name("ZZZ")
.build());
ctx.export("m3dbnamespaceType", m3dbnamespace.applyValue(getM3dbNamespaceResult -> getM3dbNamespaceResult.type()));
}
}
variables:
m3dbnamespace:
fn::invoke:
Function: ovh:CloudProject:getM3dbNamespace
Arguments:
serviceName: XXX
clusterId: YYY
name: ZZZ
outputs:
m3dbnamespaceType: ${m3dbnamespace.type}
Using getM3dbNamespace
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 getM3dbNamespace(args: GetM3dbNamespaceArgs, opts?: InvokeOptions): Promise<GetM3dbNamespaceResult>
function getM3dbNamespaceOutput(args: GetM3dbNamespaceOutputArgs, opts?: InvokeOptions): Output<GetM3dbNamespaceResult>
def get_m3db_namespace(cluster_id: Optional[str] = None,
name: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetM3dbNamespaceResult
def get_m3db_namespace_output(cluster_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetM3dbNamespaceResult]
func GetM3dbNamespace(ctx *Context, args *GetM3dbNamespaceArgs, opts ...InvokeOption) (*GetM3dbNamespaceResult, error)
func GetM3dbNamespaceOutput(ctx *Context, args *GetM3dbNamespaceOutputArgs, opts ...InvokeOption) GetM3dbNamespaceResultOutput
> Note: This function is named GetM3dbNamespace
in the Go SDK.
public static class GetM3dbNamespace
{
public static Task<GetM3dbNamespaceResult> InvokeAsync(GetM3dbNamespaceArgs args, InvokeOptions? opts = null)
public static Output<GetM3dbNamespaceResult> Invoke(GetM3dbNamespaceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetM3dbNamespaceResult> getM3dbNamespace(GetM3dbNamespaceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: ovh:CloudProject/getM3dbNamespace:getM3dbNamespace
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - Cluster ID
- Name string
- Name of the namespace.
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- Cluster
Id string - Cluster ID
- Name string
- Name of the namespace.
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- cluster
Id String - Cluster ID
- name String
- Name of the namespace.
- service
Name String - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- cluster
Id string - Cluster ID
- name string
- Name of the namespace.
- service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- cluster_
id str - Cluster ID
- name str
- Name of the namespace.
- service_
name str - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- cluster
Id String - Cluster ID
- name String
- Name of the namespace.
- service
Name String - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
getM3dbNamespace Result
The following output properties are available:
- Cluster
Id string - See Argument Reference above.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- See Argument Reference above.
- Resolution string
- Resolution for an aggregated namespace.
- Retention
Block stringData Expiration Duration - Controls how long we wait before expiring stale data.
- Retention
Block stringSize Duration - Controls how long to keep a block in memory before flushing to a fileset on disk.
- Retention
Buffer stringFuture Duration - Controls how far into the future writes to the namespace will be accepted.
- Retention
Buffer stringPast Duration - Controls how far into the past writes to the namespace will be accepted.
- Retention
Period stringDuration - Controls the duration of time that M3DB will retain data for the namespace.
- Service
Name string - See Argument Reference above.
- Snapshot
Enabled bool - SDefines whether M3db will create snapshot files for this namespace.
- Type string
- Type of namespace.
- Writes
To boolCommit Log Enabled - Defines whether M3DB will include writes to this namespace in the commit log.
- Cluster
Id string - See Argument Reference above.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- See Argument Reference above.
- Resolution string
- Resolution for an aggregated namespace.
- Retention
Block stringData Expiration Duration - Controls how long we wait before expiring stale data.
- Retention
Block stringSize Duration - Controls how long to keep a block in memory before flushing to a fileset on disk.
- Retention
Buffer stringFuture Duration - Controls how far into the future writes to the namespace will be accepted.
- Retention
Buffer stringPast Duration - Controls how far into the past writes to the namespace will be accepted.
- Retention
Period stringDuration - Controls the duration of time that M3DB will retain data for the namespace.
- Service
Name string - See Argument Reference above.
- Snapshot
Enabled bool - SDefines whether M3db will create snapshot files for this namespace.
- Type string
- Type of namespace.
- Writes
To boolCommit Log Enabled - Defines whether M3DB will include writes to this namespace in the commit log.
- cluster
Id String - See Argument Reference above.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- See Argument Reference above.
- resolution String
- Resolution for an aggregated namespace.
- retention
Block StringData Expiration Duration - Controls how long we wait before expiring stale data.
- retention
Block StringSize Duration - Controls how long to keep a block in memory before flushing to a fileset on disk.
- retention
Buffer StringFuture Duration - Controls how far into the future writes to the namespace will be accepted.
- retention
Buffer StringPast Duration - Controls how far into the past writes to the namespace will be accepted.
- retention
Period StringDuration - Controls the duration of time that M3DB will retain data for the namespace.
- service
Name String - See Argument Reference above.
- snapshot
Enabled Boolean - SDefines whether M3db will create snapshot files for this namespace.
- type String
- Type of namespace.
- writes
To BooleanCommit Log Enabled - Defines whether M3DB will include writes to this namespace in the commit log.
- cluster
Id string - See Argument Reference above.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- See Argument Reference above.
- resolution string
- Resolution for an aggregated namespace.
- retention
Block stringData Expiration Duration - Controls how long we wait before expiring stale data.
- retention
Block stringSize Duration - Controls how long to keep a block in memory before flushing to a fileset on disk.
- retention
Buffer stringFuture Duration - Controls how far into the future writes to the namespace will be accepted.
- retention
Buffer stringPast Duration - Controls how far into the past writes to the namespace will be accepted.
- retention
Period stringDuration - Controls the duration of time that M3DB will retain data for the namespace.
- service
Name string - See Argument Reference above.
- snapshot
Enabled boolean - SDefines whether M3db will create snapshot files for this namespace.
- type string
- Type of namespace.
- writes
To booleanCommit Log Enabled - Defines whether M3DB will include writes to this namespace in the commit log.
- cluster_
id str - See Argument Reference above.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- See Argument Reference above.
- resolution str
- Resolution for an aggregated namespace.
- retention_
block_ strdata_ expiration_ duration - Controls how long we wait before expiring stale data.
- retention_
block_ strsize_ duration - Controls how long to keep a block in memory before flushing to a fileset on disk.
- retention_
buffer_ strfuture_ duration - Controls how far into the future writes to the namespace will be accepted.
- retention_
buffer_ strpast_ duration - Controls how far into the past writes to the namespace will be accepted.
- retention_
period_ strduration - Controls the duration of time that M3DB will retain data for the namespace.
- service_
name str - See Argument Reference above.
- snapshot_
enabled bool - SDefines whether M3db will create snapshot files for this namespace.
- type str
- Type of namespace.
- writes_
to_ boolcommit_ log_ enabled - Defines whether M3DB will include writes to this namespace in the commit log.
- cluster
Id String - See Argument Reference above.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- See Argument Reference above.
- resolution String
- Resolution for an aggregated namespace.
- retention
Block StringData Expiration Duration - Controls how long we wait before expiring stale data.
- retention
Block StringSize Duration - Controls how long to keep a block in memory before flushing to a fileset on disk.
- retention
Buffer StringFuture Duration - Controls how far into the future writes to the namespace will be accepted.
- retention
Buffer StringPast Duration - Controls how far into the past writes to the namespace will be accepted.
- retention
Period StringDuration - Controls the duration of time that M3DB will retain data for the namespace.
- service
Name String - See Argument Reference above.
- snapshot
Enabled Boolean - SDefines whether M3db will create snapshot files for this namespace.
- type String
- Type of namespace.
- writes
To BooleanCommit Log Enabled - Defines whether M3DB will include writes to this namespace in the commit log.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.