1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getSmnTopicV2
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.getSmnTopicV2

Explore with Pulumi AI

opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

Up-to-date reference of API arguments for SMN topic you can get at documentation portal

Get details about an SMN topic V2 resource within OpenTelekomCloud.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const topic1 = opentelekomcloud.getSmnTopicV2({
    name: "topic_1",
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

topic1 = opentelekomcloud.get_smn_topic_v2(name="topic_1")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opentelekomcloud.LookupSmnTopicV2(ctx, &opentelekomcloud.LookupSmnTopicV2Args{
			Name: "topic_1",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var topic1 = Opentelekomcloud.GetSmnTopicV2.Invoke(new()
    {
        Name = "topic_1",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetSmnTopicV2Args;
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 topic1 = OpentelekomcloudFunctions.getSmnTopicV2(GetSmnTopicV2Args.builder()
            .name("topic_1")
            .build());

    }
}
Copy
variables:
  topic1:
    fn::invoke:
      function: opentelekomcloud:getSmnTopicV2
      arguments:
        name: topic_1
Copy

Using getSmnTopicV2

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 getSmnTopicV2(args: GetSmnTopicV2Args, opts?: InvokeOptions): Promise<GetSmnTopicV2Result>
function getSmnTopicV2Output(args: GetSmnTopicV2OutputArgs, opts?: InvokeOptions): Output<GetSmnTopicV2Result>
Copy
def get_smn_topic_v2(id: Optional[str] = None,
                     name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetSmnTopicV2Result
def get_smn_topic_v2_output(id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetSmnTopicV2Result]
Copy
func LookupSmnTopicV2(ctx *Context, args *LookupSmnTopicV2Args, opts ...InvokeOption) (*LookupSmnTopicV2Result, error)
func LookupSmnTopicV2Output(ctx *Context, args *LookupSmnTopicV2OutputArgs, opts ...InvokeOption) LookupSmnTopicV2ResultOutput
Copy

> Note: This function is named LookupSmnTopicV2 in the Go SDK.

public static class GetSmnTopicV2 
{
    public static Task<GetSmnTopicV2Result> InvokeAsync(GetSmnTopicV2Args args, InvokeOptions? opts = null)
    public static Output<GetSmnTopicV2Result> Invoke(GetSmnTopicV2InvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSmnTopicV2Result> getSmnTopicV2(GetSmnTopicV2Args args, InvokeOptions options)
public static Output<GetSmnTopicV2Result> getSmnTopicV2(GetSmnTopicV2Args args, InvokeOptions options)
Copy
fn::invoke:
  function: opentelekomcloud:index/getSmnTopicV2:getSmnTopicV2
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of the topic to be fetched.
Id string
Name This property is required. string
The name of the topic to be fetched.
Id string
name This property is required. String
The name of the topic to be fetched.
id String
name This property is required. string
The name of the topic to be fetched.
id string
name This property is required. str
The name of the topic to be fetched.
id str
name This property is required. String
The name of the topic to be fetched.
id String

getSmnTopicV2 Result

The following output properties are available:

CreateTime string
Time when the topic was created.
DisplayName string
Topic display name, which is presented as the name of the email sender in an email message.
Id string
Name string
See Argument Reference above.
PushPolicy double
Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
TopicUrn string
Resource identifier of a topic, which is unique.
UpdateTime string
Time when the topic was updated.
CreateTime string
Time when the topic was created.
DisplayName string
Topic display name, which is presented as the name of the email sender in an email message.
Id string
Name string
See Argument Reference above.
PushPolicy float64
Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
TopicUrn string
Resource identifier of a topic, which is unique.
UpdateTime string
Time when the topic was updated.
createTime String
Time when the topic was created.
displayName String
Topic display name, which is presented as the name of the email sender in an email message.
id String
name String
See Argument Reference above.
pushPolicy Double
Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
topicUrn String
Resource identifier of a topic, which is unique.
updateTime String
Time when the topic was updated.
createTime string
Time when the topic was created.
displayName string
Topic display name, which is presented as the name of the email sender in an email message.
id string
name string
See Argument Reference above.
pushPolicy number
Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
topicUrn string
Resource identifier of a topic, which is unique.
updateTime string
Time when the topic was updated.
create_time str
Time when the topic was created.
display_name str
Topic display name, which is presented as the name of the email sender in an email message.
id str
name str
See Argument Reference above.
push_policy float
Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
topic_urn str
Resource identifier of a topic, which is unique.
update_time str
Time when the topic was updated.
createTime String
Time when the topic was created.
displayName String
Topic display name, which is presented as the name of the email sender in an email message.
id String
name String
See Argument Reference above.
pushPolicy Number
Message pushing policy. 0 indicates that the message sending fails and the message is cached in the queue. 1 indicates that the failed message is discarded.
topicUrn String
Resource identifier of a topic, which is unique.
updateTime String
Time when the topic was updated.

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud