GetDeployGroups
This data source provides a list of EDAS deploy groups in an Alibaba Cloud account according to the specified filters.
NOTE: Available in 1.82.0+
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var groups = Output.Create(AliCloud.Edas.GetDeployGroups.InvokeAsync(new AliCloud.Edas.GetDeployGroupsArgs
{
AppId = "xxx",
Ids =
{
"xxx",
},
OutputFile = "groups.txt",
}));
this.FirstGroupName = groups.Apply(groups => groups.Groups[0].GroupName);
}
[Output("firstGroupName")]
public Output<string> FirstGroupName { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
groups = alicloud.edas.get_deploy_groups(app_id="xxx",
ids=["xxx"],
output_file="groups.txt")
pulumi.export("firstGroupName", groups.groups[0]["group_name"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const groups = alicloud.edas.getDeployGroups({
appId: "xxx",
ids: ["xxx"],
outputFile: "groups.txt",
});
export const firstGroupName = groups.then(groups => groups.groups[0].groupName);Using GetDeployGroups
function getDeployGroups(args: GetDeployGroupsArgs, opts?: InvokeOptions): Promise<GetDeployGroupsResult>function get_deploy_groups(app_id=None, name_regex=None, output_file=None, opts=None)func GetDeployGroups(ctx *Context, args *GetDeployGroupsArgs, opts ...InvokeOption) (*GetDeployGroupsResult, error)public static class GetDeployGroups {
public static Task<GetDeployGroupsResult> InvokeAsync(GetDeployGroupsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- app_
id str ID of the EDAS application.
- name_
regex str A regex string to filter results by the deploy group name.
- output_
file str
GetDeployGroups Result
The following output properties are available:
- App
Id string The ID of the application that you want to deploy.
- Groups
List<Pulumi.
Ali Cloud. Edas. Outputs. Get Deploy Groups Group> A list of consumer group ids.
- Id string
The provider-assigned unique ID for this managed resource.
- Names List<string>
A list of deploy group names.
- Name
Regex string - Output
File string
- app_
id str The ID of the application that you want to deploy.
- groups
List[Get
Deploy Groups Group] A list of consumer group ids.
- id str
The provider-assigned unique ID for this managed resource.
- names List[str]
A list of deploy group names.
- name_
regex str - output_
file str
Supporting Types
GetDeployGroupsGroup
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- App
Id string ID of the EDAS application.
- App
Version stringId The version of the deployment package for the application.
- Cluster
Id string The ID of the cluster that you want to create the application.
- Create
Time int The time when the instance group was created.
- Group
Id string The ID of the instance group.
- Group
Name string The name of the instance group. The length cannot exceed 64 characters.
- Group
Type int The type of the instance group. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.
- Package
Version stringId The version of the deployment package for the instance group that was created.
- Update
Time int The time when the instance group was updated.
- App
Id string ID of the EDAS application.
- App
Version stringId The version of the deployment package for the application.
- Cluster
Id string The ID of the cluster that you want to create the application.
- Create
Time int The time when the instance group was created.
- Group
Id string The ID of the instance group.
- Group
Name string The name of the instance group. The length cannot exceed 64 characters.
- Group
Type int The type of the instance group. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.
- Package
Version stringId The version of the deployment package for the instance group that was created.
- Update
Time int The time when the instance group was updated.
- app
Id string ID of the EDAS application.
- app
Version stringId The version of the deployment package for the application.
- cluster
Id string The ID of the cluster that you want to create the application.
- create
Time number The time when the instance group was created.
- group
Id string The ID of the instance group.
- group
Name string The name of the instance group. The length cannot exceed 64 characters.
- group
Type number The type of the instance group. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.
- package
Version stringId The version of the deployment package for the instance group that was created.
- update
Time number The time when the instance group was updated.
- app
Version strId The version of the deployment package for the application.
- app_
id str ID of the EDAS application.
- cluster_
id str The ID of the cluster that you want to create the application.
- create_
time float The time when the instance group was created.
- group_
id str The ID of the instance group.
- group_
name str The name of the instance group. The length cannot exceed 64 characters.
- group_
type float The type of the instance group. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.
- package
Version strId The version of the deployment package for the instance group that was created.
- update_
time float The time when the instance group was updated.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.