1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. edas
  5. getDeployGroups
Alibaba Cloud v3.56.0 published on Friday, May 31, 2024 by Pulumi

alicloud.edas.getDeployGroups

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.56.0 published on Friday, May 31, 2024 by Pulumi

    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

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.edas.EdasFunctions;
    import com.pulumi.alicloud.edas.inputs.GetDeployGroupsArgs;
    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 groups = EdasFunctions.getDeployGroups(GetDeployGroupsArgs.builder()
                .appId("xxx")
                .ids("xxx")
                .outputFile("groups.txt")
                .build());
    
            ctx.export("firstGroupName", groups.applyValue(getDeployGroupsResult -> getDeployGroupsResult.groups()[0].groupName()));
        }
    }
    
    variables:
      groups:
        fn::invoke:
          Function: alicloud:edas:getDeployGroups
          Arguments:
            appId: xxx
            ids:
              - xxx
            outputFile: groups.txt
    outputs:
      firstGroupName: ${groups.groups[0].groupName}
    

    Using getDeployGroups

    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 getDeployGroups(args: GetDeployGroupsArgs, opts?: InvokeOptions): Promise<GetDeployGroupsResult>
    function getDeployGroupsOutput(args: GetDeployGroupsOutputArgs, opts?: InvokeOptions): Output<GetDeployGroupsResult>
    def get_deploy_groups(app_id: Optional[str] = None,
                          name_regex: Optional[str] = None,
                          output_file: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetDeployGroupsResult
    def get_deploy_groups_output(app_id: Optional[pulumi.Input[str]] = None,
                          name_regex: Optional[pulumi.Input[str]] = None,
                          output_file: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetDeployGroupsResult]
    func GetDeployGroups(ctx *Context, args *GetDeployGroupsArgs, opts ...InvokeOption) (*GetDeployGroupsResult, error)
    func GetDeployGroupsOutput(ctx *Context, args *GetDeployGroupsOutputArgs, opts ...InvokeOption) GetDeployGroupsResultOutput

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

    public static class GetDeployGroups 
    {
        public static Task<GetDeployGroupsResult> InvokeAsync(GetDeployGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetDeployGroupsResult> Invoke(GetDeployGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDeployGroupsResult> getDeployGroups(GetDeployGroupsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:edas/getDeployGroups:getDeployGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AppId string
    ID of the EDAS application.
    NameRegex string
    A regex string to filter results by the deploy group name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    AppId string
    ID of the EDAS application.
    NameRegex string
    A regex string to filter results by the deploy group name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    appId String
    ID of the EDAS application.
    nameRegex String
    A regex string to filter results by the deploy group name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    appId string
    ID of the EDAS application.
    nameRegex string
    A regex string to filter results by the deploy group name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    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
    File name where to save data source results (after running pulumi preview).
    appId String
    ID of the EDAS application.
    nameRegex String
    A regex string to filter results by the deploy group name.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getDeployGroups Result

    The following output properties are available:

    AppId string
    The ID of the application that you want to deploy.
    Groups List<Pulumi.AliCloud.Edas.Outputs.GetDeployGroupsGroup>
    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.
    NameRegex string
    OutputFile string
    AppId string
    The ID of the application that you want to deploy.
    Groups []GetDeployGroupsGroup
    A list of consumer group ids.
    Id string
    The provider-assigned unique ID for this managed resource.
    Names []string
    A list of deploy group names.
    NameRegex string
    OutputFile string
    appId String
    The ID of the application that you want to deploy.
    groups List<GetDeployGroupsGroup>
    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.
    nameRegex String
    outputFile String
    appId string
    The ID of the application that you want to deploy.
    groups GetDeployGroupsGroup[]
    A list of consumer group ids.
    id string
    The provider-assigned unique ID for this managed resource.
    names string[]
    A list of deploy group names.
    nameRegex string
    outputFile string
    app_id str
    The ID of the application that you want to deploy.
    groups Sequence[GetDeployGroupsGroup]
    A list of consumer group ids.
    id str
    The provider-assigned unique ID for this managed resource.
    names Sequence[str]
    A list of deploy group names.
    name_regex str
    output_file str
    appId String
    The ID of the application that you want to deploy.
    groups List<Property Map>
    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.
    nameRegex String
    outputFile String

    Supporting Types

    GetDeployGroupsGroup

    AppId string
    ID of the EDAS application.
    AppVersionId string
    The version of the deployment package for the application.
    ClusterId string
    The ID of the cluster that you want to create the application.
    CreateTime int
    The time when the instance group was created.
    GroupId string
    The ID of the instance group.
    GroupName string
    The name of the instance group. The length cannot exceed 64 characters.
    GroupType 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.
    PackageVersionId string
    The version of the deployment package for the instance group that was created.
    UpdateTime int
    The time when the instance group was updated.
    AppId string
    ID of the EDAS application.
    AppVersionId string
    The version of the deployment package for the application.
    ClusterId string
    The ID of the cluster that you want to create the application.
    CreateTime int
    The time when the instance group was created.
    GroupId string
    The ID of the instance group.
    GroupName string
    The name of the instance group. The length cannot exceed 64 characters.
    GroupType 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.
    PackageVersionId string
    The version of the deployment package for the instance group that was created.
    UpdateTime int
    The time when the instance group was updated.
    appId String
    ID of the EDAS application.
    appVersionId String
    The version of the deployment package for the application.
    clusterId String
    The ID of the cluster that you want to create the application.
    createTime Integer
    The time when the instance group was created.
    groupId String
    The ID of the instance group.
    groupName String
    The name of the instance group. The length cannot exceed 64 characters.
    groupType Integer
    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.
    packageVersionId String
    The version of the deployment package for the instance group that was created.
    updateTime Integer
    The time when the instance group was updated.
    appId string
    ID of the EDAS application.
    appVersionId string
    The version of the deployment package for the application.
    clusterId string
    The ID of the cluster that you want to create the application.
    createTime number
    The time when the instance group was created.
    groupId string
    The ID of the instance group.
    groupName string
    The name of the instance group. The length cannot exceed 64 characters.
    groupType 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.
    packageVersionId string
    The version of the deployment package for the instance group that was created.
    updateTime number
    The time when the instance group was updated.
    app_id str
    ID of the EDAS application.
    app_version_id str
    The version of the deployment package for the application.
    cluster_id str
    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 str
    The ID of the instance group.
    group_name str
    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_id str
    The version of the deployment package for the instance group that was created.
    update_time int
    The time when the instance group was updated.
    appId String
    ID of the EDAS application.
    appVersionId String
    The version of the deployment package for the application.
    clusterId String
    The ID of the cluster that you want to create the application.
    createTime Number
    The time when the instance group was created.
    groupId String
    The ID of the instance group.
    groupName String
    The name of the instance group. The length cannot exceed 64 characters.
    groupType 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.
    packageVersionId String
    The version of the deployment package for the instance group that was created.
    updateTime Number
    The time when the instance group was updated.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.56.0 published on Friday, May 31, 2024 by Pulumi