opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getRtsStackResourceV1
Explore with Pulumi AI
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
Use this data source to get details about RTS resource metadata.
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 resourceName = config.requireObject("resourceName");
const stackresource = opentelekomcloud.getRtsStackResourceV1({
stackName: stackName,
resourceName: resourceName,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
stack_name = config.require_object("stackName")
resource_name = config.require_object("resourceName")
stackresource = opentelekomcloud.get_rts_stack_resource_v1(stack_name=stack_name,
resource_name=resource_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")
resourceName := cfg.RequireObject("resourceName")
_, err := opentelekomcloud.GetRtsStackResourceV1(ctx, &opentelekomcloud.GetRtsStackResourceV1Args{
StackName: stackName,
ResourceName: pulumi.StringRef(resourceName),
}, 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 resourceName = config.RequireObject<dynamic>("resourceName");
var stackresource = Opentelekomcloud.GetRtsStackResourceV1.Invoke(new()
{
StackName = stackName,
ResourceName = resourceName,
});
});
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.GetRtsStackResourceV1Args;
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 resourceName = config.get("resourceName");
final var stackresource = OpentelekomcloudFunctions.getRtsStackResourceV1(GetRtsStackResourceV1Args.builder()
.stackName(stackName)
.resourceName(resourceName)
.build());
}
}
configuration:
stackName:
type: dynamic
resourceName:
type: dynamic
variables:
stackresource:
fn::invoke:
function: opentelekomcloud:getRtsStackResourceV1
arguments:
stackName: ${stackName}
resourceName: ${resourceName}
Using getRtsStackResourceV1
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 getRtsStackResourceV1(args: GetRtsStackResourceV1Args, opts?: InvokeOptions): Promise<GetRtsStackResourceV1Result>
function getRtsStackResourceV1Output(args: GetRtsStackResourceV1OutputArgs, opts?: InvokeOptions): Output<GetRtsStackResourceV1Result>
def get_rts_stack_resource_v1(id: Optional[str] = None,
physical_resource_id: Optional[str] = None,
region: Optional[str] = None,
resource_name: Optional[str] = None,
resource_type: Optional[str] = None,
stack_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRtsStackResourceV1Result
def get_rts_stack_resource_v1_output(id: Optional[pulumi.Input[str]] = None,
physical_resource_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
resource_name: Optional[pulumi.Input[str]] = None,
resource_type: Optional[pulumi.Input[str]] = None,
stack_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRtsStackResourceV1Result]
func GetRtsStackResourceV1(ctx *Context, args *GetRtsStackResourceV1Args, opts ...InvokeOption) (*GetRtsStackResourceV1Result, error)
func GetRtsStackResourceV1Output(ctx *Context, args *GetRtsStackResourceV1OutputArgs, opts ...InvokeOption) GetRtsStackResourceV1ResultOutput
> Note: This function is named GetRtsStackResourceV1
in the Go SDK.
public static class GetRtsStackResourceV1
{
public static Task<GetRtsStackResourceV1Result> InvokeAsync(GetRtsStackResourceV1Args args, InvokeOptions? opts = null)
public static Output<GetRtsStackResourceV1Result> Invoke(GetRtsStackResourceV1InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRtsStackResourceV1Result> getRtsStackResourceV1(GetRtsStackResourceV1Args args, InvokeOptions options)
public static Output<GetRtsStackResourceV1Result> getRtsStackResourceV1(GetRtsStackResourceV1Args args, InvokeOptions options)
fn::invoke:
function: opentelekomcloud:index/getRtsStackResourceV1:getRtsStackResourceV1
arguments:
# arguments dictionary
The following arguments are supported:
- Stack
Name string - The unique stack name.
- Id string
- Physical
Resource stringId - The physical resource ID.
- Region string
- Resource
Name string - The name of a resource in the stack.
- Resource
Type string - The resource type.
- Stack
Name string - The unique stack name.
- Id string
- Physical
Resource stringId - The physical resource ID.
- Region string
- Resource
Name string - The name of a resource in the stack.
- Resource
Type string - The resource type.
- stack
Name String - The unique stack name.
- id String
- physical
Resource StringId - The physical resource ID.
- region String
- resource
Name String - The name of a resource in the stack.
- resource
Type String - The resource type.
- stack
Name string - The unique stack name.
- id string
- physical
Resource stringId - The physical resource ID.
- region string
- resource
Name string - The name of a resource in the stack.
- resource
Type string - The resource type.
- stack_
name str - The unique stack name.
- id str
- physical_
resource_ strid - The physical resource ID.
- region str
- resource_
name str - The name of a resource in the stack.
- resource_
type str - The resource type.
- stack
Name String - The unique stack name.
- id String
- physical
Resource StringId - The physical resource ID.
- region String
- resource
Name String - The name of a resource in the stack.
- resource
Type String - The resource type.
getRtsStackResourceV1 Result
The following output properties are available:
- Id string
- Logical
Resource stringId - The logical resource ID.
- Region string
- Required
Bies List<string> - Specifies the resource dependency.
- Resource
Status string - The status of the resource.
- Resource
Status stringReason - The resource operation reason.
- Stack
Name string - Physical
Resource stringId - Resource
Name string - Resource
Type string
- Id string
- Logical
Resource stringId - The logical resource ID.
- Region string
- Required
Bies []string - Specifies the resource dependency.
- Resource
Status string - The status of the resource.
- Resource
Status stringReason - The resource operation reason.
- Stack
Name string - Physical
Resource stringId - Resource
Name string - Resource
Type string
- id String
- logical
Resource StringId - The logical resource ID.
- region String
- required
Bies List<String> - Specifies the resource dependency.
- resource
Status String - The status of the resource.
- resource
Status StringReason - The resource operation reason.
- stack
Name String - physical
Resource StringId - resource
Name String - resource
Type String
- id string
- logical
Resource stringId - The logical resource ID.
- region string
- required
Bies string[] - Specifies the resource dependency.
- resource
Status string - The status of the resource.
- resource
Status stringReason - The resource operation reason.
- stack
Name string - physical
Resource stringId - resource
Name string - resource
Type string
- id str
- logical_
resource_ strid - The logical resource ID.
- region str
- required_
bies Sequence[str] - Specifies the resource dependency.
- resource_
status str - The status of the resource.
- resource_
status_ strreason - The resource operation reason.
- stack_
name str - physical_
resource_ strid - resource_
name str - resource_
type str
- id String
- logical
Resource StringId - The logical resource ID.
- region String
- required
Bies List<String> - Specifies the resource dependency.
- resource
Status String - The status of the resource.
- resource
Status StringReason - The resource operation reason.
- stack
Name String - physical
Resource StringId - resource
Name String - resource
Type String
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud