getChangeSets

This data source provides the Ros Change Sets of the current Alibaba Cloud user.

NOTE: Available in v1.105.0+.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.ros.getChangeSets({
stackId: "example_value",
ids: ["example_value"],
nameRegex: "the_resource_name",
});
export const firstRosChangeSetId = example.then(example => example.sets?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.ros.get_change_sets(stack_id="example_value",
ids=["example_value"],
name_regex="the_resource_name")
pulumi.export("firstRosChangeSetId", example.sets[0].id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.Ros.GetChangeSets.Invoke(new()
{
StackId = "example_value",
Ids = new[]
{
"example_value",
},
NameRegex = "the_resource_name",
});
return new Dictionary<string, object?>
{
["firstRosChangeSetId"] = example&#46;Apply(getChangeSetsResult => getChangeSetsResult&#46;Sets[0]?.Id),
};
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ros"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := ros.GetChangeSets(ctx, &ros.GetChangeSetsArgs{
StackId: "example_value",
Ids: []string{
"example_value",
},
NameRegex: pulumi.StringRef("the_resource_name"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstRosChangeSetId", example.Sets[0].Id)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ros.RosFunctions;
import com.pulumi.alicloud.ros.inputs.GetChangeSetsArgs;
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 example = RosFunctions.getChangeSets(GetChangeSetsArgs.builder()
.stackId("example_value")
.ids("example_value")
.nameRegex("the_resource_name")
.build());
ctx.export("firstRosChangeSetId", example.sets()[0].id());
}
}
variables:
example:
fn::invoke:
function: alicloud:ros:getChangeSets
arguments:
stackId: example_value
ids:
- example_value
nameRegex: the_resource_name
outputs:
firstRosChangeSetId: ${example.sets[0].id}

Return

A collection of values returned by getChangeSets.

Parameters

argument

A collection of arguments for invoking getChangeSets.


suspend fun getChangeSets(changeSetName: String? = null, enableDetails: Boolean? = null, ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, stackId: String, status: String? = null): GetChangeSetsResult

Return

A collection of values returned by getChangeSets.

Parameters

changeSetName

The name of the change set. The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.

enableDetails

Default to false. Set it to true can output more details about resource attributes.

ids

A list of Change Set IDs.

nameRegex

A regex string to filter results by Change Set name.

outputFile

File name where to save data source results (after running pulumi preview).

stackId

The ID of the stack for which you want to create the change set. ROS generates the change set by comparing the stack information with the information that you submit, such as a modified template or different inputs.

status

The status of the change set. Valid Value: CREATE_COMPLETE, CREATE_FAILED, CREATE_IN_PROGRESS, CREATE_PENDING, DELETE_COMPLETE and DELETE_FAILED.

See also


Return

A collection of values returned by getChangeSets.

Parameters

argument

Builder for com.pulumi.alicloud.ros.kotlin.inputs.GetChangeSetsPlainArgs.

See also