1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getRtsStackV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getRtsStackV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Use this data source to get details about RTS outputs and other useful data including the template body.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const stackName = config.requireObject("stackName");
    const mystack = opentelekomcloud.getRtsStackV1({
        name: stackName,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    stack_name = config.require_object("stackName")
    mystack = opentelekomcloud.get_rts_stack_v1(name=stack_name)
    
    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, "")
    		stackName := cfg.RequireObject("stackName")
    		_, err := opentelekomcloud.LookupRtsStackV1(ctx, &opentelekomcloud.LookupRtsStackV1Args{
    			Name: stackName,
    		}, 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 stackName = config.RequireObject<dynamic>("stackName");
        var mystack = Opentelekomcloud.GetRtsStackV1.Invoke(new()
        {
            Name = stackName,
        });
    
    });
    
    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.GetRtsStackV1Args;
    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 stackName = config.get("stackName");
            final var mystack = OpentelekomcloudFunctions.getRtsStackV1(GetRtsStackV1Args.builder()
                .name(stackName)
                .build());
    
        }
    }
    
    configuration:
      stackName:
        type: dynamic
    variables:
      mystack:
        fn::invoke:
          function: opentelekomcloud:getRtsStackV1
          arguments:
            name: ${stackName}
    

    Using getRtsStackV1

    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 getRtsStackV1(args: GetRtsStackV1Args, opts?: InvokeOptions): Promise<GetRtsStackV1Result>
    function getRtsStackV1Output(args: GetRtsStackV1OutputArgs, opts?: InvokeOptions): Output<GetRtsStackV1Result>
    def get_rts_stack_v1(id: Optional[str] = None,
                         name: Optional[str] = None,
                         region: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetRtsStackV1Result
    def get_rts_stack_v1_output(id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         region: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetRtsStackV1Result]
    func LookupRtsStackV1(ctx *Context, args *LookupRtsStackV1Args, opts ...InvokeOption) (*LookupRtsStackV1Result, error)
    func LookupRtsStackV1Output(ctx *Context, args *LookupRtsStackV1OutputArgs, opts ...InvokeOption) LookupRtsStackV1ResultOutput

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

    public static class GetRtsStackV1 
    {
        public static Task<GetRtsStackV1Result> InvokeAsync(GetRtsStackV1Args args, InvokeOptions? opts = null)
        public static Output<GetRtsStackV1Result> Invoke(GetRtsStackV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRtsStackV1Result> getRtsStackV1(GetRtsStackV1Args args, InvokeOptions options)
    public static Output<GetRtsStackV1Result> getRtsStackV1(GetRtsStackV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getRtsStackV1:getRtsStackV1
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the stack.
    Id string
    A unique identifier of the stack.
    Region string
    Name string
    The name of the stack.
    Id string
    A unique identifier of the stack.
    Region string
    name String
    The name of the stack.
    id String
    A unique identifier of the stack.
    region String
    name string
    The name of the stack.
    id string
    A unique identifier of the stack.
    region string
    name str
    The name of the stack.
    id str
    A unique identifier of the stack.
    region str
    name String
    The name of the stack.
    id String
    A unique identifier of the stack.
    region String

    getRtsStackV1 Result

    The following output properties are available:

    Capabilities List<string>
    List of stack capabilities for stack.
    DisableRollback bool
    Whether the rollback of the stack is disabled when stack creation fails.
    Id string
    A unique identifier of the stack.
    Name string
    NotificationTopics List<string>
    List of notification topics for stack.
    Outputs Dictionary<string, string>
    A list of stack outputs.
    Parameters Dictionary<string, string>
    A map of parameters that specify input parameters for the stack.
    Region string
    Status string
    Specifies the stack status.
    StatusReason string
    TemplateBody string
    Structure containing the template body.
    TimeoutMins double
    Specifies the timeout duration.
    Capabilities []string
    List of stack capabilities for stack.
    DisableRollback bool
    Whether the rollback of the stack is disabled when stack creation fails.
    Id string
    A unique identifier of the stack.
    Name string
    NotificationTopics []string
    List of notification topics for stack.
    Outputs map[string]string
    A list of stack outputs.
    Parameters map[string]string
    A map of parameters that specify input parameters for the stack.
    Region string
    Status string
    Specifies the stack status.
    StatusReason string
    TemplateBody string
    Structure containing the template body.
    TimeoutMins float64
    Specifies the timeout duration.
    capabilities List<String>
    List of stack capabilities for stack.
    disableRollback Boolean
    Whether the rollback of the stack is disabled when stack creation fails.
    id String
    A unique identifier of the stack.
    name String
    notificationTopics List<String>
    List of notification topics for stack.
    outputs Map<String,String>
    A list of stack outputs.
    parameters Map<String,String>
    A map of parameters that specify input parameters for the stack.
    region String
    status String
    Specifies the stack status.
    statusReason String
    templateBody String
    Structure containing the template body.
    timeoutMins Double
    Specifies the timeout duration.
    capabilities string[]
    List of stack capabilities for stack.
    disableRollback boolean
    Whether the rollback of the stack is disabled when stack creation fails.
    id string
    A unique identifier of the stack.
    name string
    notificationTopics string[]
    List of notification topics for stack.
    outputs {[key: string]: string}
    A list of stack outputs.
    parameters {[key: string]: string}
    A map of parameters that specify input parameters for the stack.
    region string
    status string
    Specifies the stack status.
    statusReason string
    templateBody string
    Structure containing the template body.
    timeoutMins number
    Specifies the timeout duration.
    capabilities Sequence[str]
    List of stack capabilities for stack.
    disable_rollback bool
    Whether the rollback of the stack is disabled when stack creation fails.
    id str
    A unique identifier of the stack.
    name str
    notification_topics Sequence[str]
    List of notification topics for stack.
    outputs Mapping[str, str]
    A list of stack outputs.
    parameters Mapping[str, str]
    A map of parameters that specify input parameters for the stack.
    region str
    status str
    Specifies the stack status.
    status_reason str
    template_body str
    Structure containing the template body.
    timeout_mins float
    Specifies the timeout duration.
    capabilities List<String>
    List of stack capabilities for stack.
    disableRollback Boolean
    Whether the rollback of the stack is disabled when stack creation fails.
    id String
    A unique identifier of the stack.
    name String
    notificationTopics List<String>
    List of notification topics for stack.
    outputs Map<String>
    A list of stack outputs.
    parameters Map<String>
    A map of parameters that specify input parameters for the stack.
    region String
    status String
    Specifies the stack status.
    statusReason String
    templateBody String
    Structure containing the template body.
    timeoutMins Number
    Specifies the timeout duration.

    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.37 published on Thursday, Apr 24, 2025 by opentelekomcloud