1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getSmnSubscriptionV2
opentelekomcloud 1.36.43 published on Thursday, Jul 17, 2025 by opentelekomcloud

opentelekomcloud.getSmnSubscriptionV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.43 published on Thursday, Jul 17, 2025 by opentelekomcloud

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

    Get details about an SMN subscription V2 resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const subscriptionUrn = config.requireObject("subscriptionUrn");
    const data_sub = opentelekomcloud.getSmnSubscriptionV2({
        subscriptionUrn: subscriptionUrn,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    subscription_urn = config.require_object("subscriptionUrn")
    data_sub = opentelekomcloud.get_smn_subscription_v2(subscription_urn=subscription_urn)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		subscriptionUrn := cfg.RequireObject("subscriptionUrn")
    		_, err := opentelekomcloud.LookupSmnSubscriptionV2(ctx, &opentelekomcloud.LookupSmnSubscriptionV2Args{
    			SubscriptionUrn: subscriptionUrn,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var subscriptionUrn = config.RequireObject<dynamic>("subscriptionUrn");
        var data_sub = Opentelekomcloud.GetSmnSubscriptionV2.Invoke(new()
        {
            SubscriptionUrn = subscriptionUrn,
        });
    
    });
    
    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.GetSmnSubscriptionV2Args;
    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 config = ctx.config();
            final var subscriptionUrn = config.get("subscriptionUrn");
            final var data-sub = OpentelekomcloudFunctions.getSmnSubscriptionV2(GetSmnSubscriptionV2Args.builder()
                .subscriptionUrn(subscriptionUrn)
                .build());
    
        }
    }
    
    configuration:
      subscriptionUrn:
        type: dynamic
    variables:
      data-sub:
        fn::invoke:
          function: opentelekomcloud:getSmnSubscriptionV2
          arguments:
            subscriptionUrn: ${subscriptionUrn}
    

    Using getSmnSubscriptionV2

    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 getSmnSubscriptionV2(args: GetSmnSubscriptionV2Args, opts?: InvokeOptions): Promise<GetSmnSubscriptionV2Result>
    function getSmnSubscriptionV2Output(args: GetSmnSubscriptionV2OutputArgs, opts?: InvokeOptions): Output<GetSmnSubscriptionV2Result>
    def get_smn_subscription_v2(id: Optional[str] = None,
                                subscription_urn: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetSmnSubscriptionV2Result
    def get_smn_subscription_v2_output(id: Optional[pulumi.Input[str]] = None,
                                subscription_urn: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetSmnSubscriptionV2Result]
    func LookupSmnSubscriptionV2(ctx *Context, args *LookupSmnSubscriptionV2Args, opts ...InvokeOption) (*LookupSmnSubscriptionV2Result, error)
    func LookupSmnSubscriptionV2Output(ctx *Context, args *LookupSmnSubscriptionV2OutputArgs, opts ...InvokeOption) LookupSmnSubscriptionV2ResultOutput

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

    public static class GetSmnSubscriptionV2 
    {
        public static Task<GetSmnSubscriptionV2Result> InvokeAsync(GetSmnSubscriptionV2Args args, InvokeOptions? opts = null)
        public static Output<GetSmnSubscriptionV2Result> Invoke(GetSmnSubscriptionV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSmnSubscriptionV2Result> getSmnSubscriptionV2(GetSmnSubscriptionV2Args args, InvokeOptions options)
    public static Output<GetSmnSubscriptionV2Result> getSmnSubscriptionV2(GetSmnSubscriptionV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getSmnSubscriptionV2:getSmnSubscriptionV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SubscriptionUrn string
    The urn of subscription to be fetched.
    Id string
    SubscriptionUrn string
    The urn of subscription to be fetched.
    Id string
    subscriptionUrn String
    The urn of subscription to be fetched.
    id String
    subscriptionUrn string
    The urn of subscription to be fetched.
    id string
    subscription_urn str
    The urn of subscription to be fetched.
    id str
    subscriptionUrn String
    The urn of subscription to be fetched.
    id String

    getSmnSubscriptionV2 Result

    The following output properties are available:

    Description string
    Subscription description.
    Endpoint string
    Message receiving endpoint.
    Id string
    Owner string
    Project ID of the topic creator.
    Protocol string
    Subscription protocol.
    Status double
    Subscription status.
    SubscriptionUrn string
    TopicUrn string
    Resource identifier of a topic, which is unique.
    Description string
    Subscription description.
    Endpoint string
    Message receiving endpoint.
    Id string
    Owner string
    Project ID of the topic creator.
    Protocol string
    Subscription protocol.
    Status float64
    Subscription status.
    SubscriptionUrn string
    TopicUrn string
    Resource identifier of a topic, which is unique.
    description String
    Subscription description.
    endpoint String
    Message receiving endpoint.
    id String
    owner String
    Project ID of the topic creator.
    protocol String
    Subscription protocol.
    status Double
    Subscription status.
    subscriptionUrn String
    topicUrn String
    Resource identifier of a topic, which is unique.
    description string
    Subscription description.
    endpoint string
    Message receiving endpoint.
    id string
    owner string
    Project ID of the topic creator.
    protocol string
    Subscription protocol.
    status number
    Subscription status.
    subscriptionUrn string
    topicUrn string
    Resource identifier of a topic, which is unique.
    description str
    Subscription description.
    endpoint str
    Message receiving endpoint.
    id str
    owner str
    Project ID of the topic creator.
    protocol str
    Subscription protocol.
    status float
    Subscription status.
    subscription_urn str
    topic_urn str
    Resource identifier of a topic, which is unique.
    description String
    Subscription description.
    endpoint String
    Message receiving endpoint.
    id String
    owner String
    Project ID of the topic creator.
    protocol String
    Subscription protocol.
    status Number
    Subscription status.
    subscriptionUrn String
    topicUrn String
    Resource identifier of a topic, which is unique.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.43 published on Thursday, Jul 17, 2025 by opentelekomcloud