Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Use this data source to get information about a topic of a kafka cluster associated with a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const topic = ovh.CloudProjectDatabase.getKafkaTopic({
serviceName: "XXX",
clusterId: "YYY",
id: "ZZZ",
});
export const topicName = topic.then(topic => topic.name);
import pulumi
import pulumi_ovh as ovh
topic = ovh.CloudProjectDatabase.get_kafka_topic(service_name="XXX",
cluster_id="YYY",
id="ZZZ")
pulumi.export("topicName", topic.name)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudprojectdatabase"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
topic, err := cloudprojectdatabase.GetKafkaTopic(ctx, &cloudprojectdatabase.GetKafkaTopicArgs{
ServiceName: "XXX",
ClusterId: "YYY",
Id: "ZZZ",
}, nil)
if err != nil {
return err
}
ctx.Export("topicName", topic.Name)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var topic = Ovh.CloudProjectDatabase.GetKafkaTopic.Invoke(new()
{
ServiceName = "XXX",
ClusterId = "YYY",
Id = "ZZZ",
});
return new Dictionary<string, object?>
{
["topicName"] = topic.Apply(getKafkaTopicResult => getKafkaTopicResult.Name),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProjectDatabase.CloudProjectDatabaseFunctions;
import com.pulumi.ovh.CloudProjectDatabase.inputs.GetKafkaTopicArgs;
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 topic = CloudProjectDatabaseFunctions.getKafkaTopic(GetKafkaTopicArgs.builder()
.serviceName("XXX")
.clusterId("YYY")
.id("ZZZ")
.build());
ctx.export("topicName", topic.name());
}
}
variables:
topic:
fn::invoke:
function: ovh:CloudProjectDatabase:getKafkaTopic
arguments:
serviceName: XXX
clusterId: YYY
id: ZZZ
outputs:
topicName: ${topic.name}
Using getKafkaTopic
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 getKafkaTopic(args: GetKafkaTopicArgs, opts?: InvokeOptions): Promise<GetKafkaTopicResult>
function getKafkaTopicOutput(args: GetKafkaTopicOutputArgs, opts?: InvokeOptions): Output<GetKafkaTopicResult>def get_kafka_topic(cluster_id: Optional[str] = None,
id: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKafkaTopicResult
def get_kafka_topic_output(cluster_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKafkaTopicResult]func LookupKafkaTopic(ctx *Context, args *LookupKafkaTopicArgs, opts ...InvokeOption) (*LookupKafkaTopicResult, error)
func LookupKafkaTopicOutput(ctx *Context, args *LookupKafkaTopicOutputArgs, opts ...InvokeOption) LookupKafkaTopicResultOutput> Note: This function is named LookupKafkaTopic in the Go SDK.
public static class GetKafkaTopic
{
public static Task<GetKafkaTopicResult> InvokeAsync(GetKafkaTopicArgs args, InvokeOptions? opts = null)
public static Output<GetKafkaTopicResult> Invoke(GetKafkaTopicInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetKafkaTopicResult> getKafkaTopic(GetKafkaTopicArgs args, InvokeOptions options)
public static Output<GetKafkaTopicResult> getKafkaTopic(GetKafkaTopicArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProjectDatabase/getKafkaTopic:getKafkaTopic
arguments:
# arguments dictionaryThe following arguments are supported:
- Cluster
Id string - Cluster ID
- Id string
- Topic ID
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Cluster
Id string - Cluster ID
- Id string
- Topic ID
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- cluster
Id String - Cluster ID
- id String
- Topic ID
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- cluster
Id string - Cluster ID
- id string
- Topic ID
- service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- cluster_
id str - Cluster ID
- id str
- Topic ID
- service_
name str - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- cluster
Id String - Cluster ID
- id String
- Topic ID
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
getKafkaTopic Result
The following output properties are available:
- Cluster
Id string - See Argument Reference above.
- Id string
- See Argument Reference above.
- Min
Insync intReplicas - Minimum insync replica accepted for this topic.
- Name string
- Name of the topic.
- Partitions int
- Number of partitions for this topic.
- Replication int
- Number of replication for this topic.
- Retention
Bytes int - Number of bytes for the retention of the data for this topic. Inferior to 0 mean Unlimited
- Retention
Hours int - Number of hours for the retention of the data for this topic. Inferior to 0 mean Unlimited
- Service
Name string - See Argument Reference above.
- Cluster
Id string - See Argument Reference above.
- Id string
- See Argument Reference above.
- Min
Insync intReplicas - Minimum insync replica accepted for this topic.
- Name string
- Name of the topic.
- Partitions int
- Number of partitions for this topic.
- Replication int
- Number of replication for this topic.
- Retention
Bytes int - Number of bytes for the retention of the data for this topic. Inferior to 0 mean Unlimited
- Retention
Hours int - Number of hours for the retention of the data for this topic. Inferior to 0 mean Unlimited
- Service
Name string - See Argument Reference above.
- cluster
Id String - See Argument Reference above.
- id String
- See Argument Reference above.
- min
Insync IntegerReplicas - Minimum insync replica accepted for this topic.
- name String
- Name of the topic.
- partitions Integer
- Number of partitions for this topic.
- replication Integer
- Number of replication for this topic.
- retention
Bytes Integer - Number of bytes for the retention of the data for this topic. Inferior to 0 mean Unlimited
- retention
Hours Integer - Number of hours for the retention of the data for this topic. Inferior to 0 mean Unlimited
- service
Name String - See Argument Reference above.
- cluster
Id string - See Argument Reference above.
- id string
- See Argument Reference above.
- min
Insync numberReplicas - Minimum insync replica accepted for this topic.
- name string
- Name of the topic.
- partitions number
- Number of partitions for this topic.
- replication number
- Number of replication for this topic.
- retention
Bytes number - Number of bytes for the retention of the data for this topic. Inferior to 0 mean Unlimited
- retention
Hours number - Number of hours for the retention of the data for this topic. Inferior to 0 mean Unlimited
- service
Name string - See Argument Reference above.
- cluster_
id str - See Argument Reference above.
- id str
- See Argument Reference above.
- min_
insync_ intreplicas - Minimum insync replica accepted for this topic.
- name str
- Name of the topic.
- partitions int
- Number of partitions for this topic.
- replication int
- Number of replication for this topic.
- retention_
bytes int - Number of bytes for the retention of the data for this topic. Inferior to 0 mean Unlimited
- retention_
hours int - Number of hours for the retention of the data for this topic. Inferior to 0 mean Unlimited
- service_
name str - See Argument Reference above.
- cluster
Id String - See Argument Reference above.
- id String
- See Argument Reference above.
- min
Insync NumberReplicas - Minimum insync replica accepted for this topic.
- name String
- Name of the topic.
- partitions Number
- Number of partitions for this topic.
- replication Number
- Number of replication for this topic.
- retention
Bytes Number - Number of bytes for the retention of the data for this topic. Inferior to 0 mean Unlimited
- retention
Hours Number - Number of hours for the retention of the data for this topic. Inferior to 0 mean Unlimited
- service
Name String - See Argument Reference above.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
