1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. bp
  5. getStudioApplications
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.bp.getStudioApplications

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    This data source provides the Cloud Architect Design Tools (BPStudio) Applications of the current Alibaba Cloud user.

    NOTE: Available in v1.192.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.bp.getStudioApplications({
        ids: ["example_id"],
    });
    export const bpStudioApplicationId1 = ids.then(ids => ids.applications?.[0]?.id);
    const nameRegex = alicloud.bp.getStudioApplications({
        nameRegex: "^my-Application",
    });
    export const bpStudioApplicationId2 = nameRegex.then(nameRegex => nameRegex.applications?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.bp.get_studio_applications(ids=["example_id"])
    pulumi.export("bpStudioApplicationId1", ids.applications[0].id)
    name_regex = alicloud.bp.get_studio_applications(name_regex="^my-Application")
    pulumi.export("bpStudioApplicationId2", name_regex.applications[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/bp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ids, err := bp.GetStudioApplications(ctx, &bp.GetStudioApplicationsArgs{
    			Ids: []string{
    				"example_id",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("bpStudioApplicationId1", ids.Applications[0].Id)
    		nameRegex, err := bp.GetStudioApplications(ctx, &bp.GetStudioApplicationsArgs{
    			NameRegex: pulumi.StringRef("^my-Application"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("bpStudioApplicationId2", nameRegex.Applications[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ids = AliCloud.Bp.GetStudioApplications.Invoke(new()
        {
            Ids = new[]
            {
                "example_id",
            },
        });
    
        var nameRegex = AliCloud.Bp.GetStudioApplications.Invoke(new()
        {
            NameRegex = "^my-Application",
        });
    
        return new Dictionary<string, object?>
        {
            ["bpStudioApplicationId1"] = ids.Apply(getStudioApplicationsResult => getStudioApplicationsResult.Applications[0]?.Id),
            ["bpStudioApplicationId2"] = nameRegex.Apply(getStudioApplicationsResult => getStudioApplicationsResult.Applications[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.bp.BpFunctions;
    import com.pulumi.alicloud.bp.inputs.GetStudioApplicationsArgs;
    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 ids = BpFunctions.getStudioApplications(GetStudioApplicationsArgs.builder()
                .ids("example_id")
                .build());
    
            ctx.export("bpStudioApplicationId1", ids.applyValue(getStudioApplicationsResult -> getStudioApplicationsResult.applications()[0].id()));
            final var nameRegex = BpFunctions.getStudioApplications(GetStudioApplicationsArgs.builder()
                .nameRegex("^my-Application")
                .build());
    
            ctx.export("bpStudioApplicationId2", nameRegex.applyValue(getStudioApplicationsResult -> getStudioApplicationsResult.applications()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:bp:getStudioApplications
          Arguments:
            ids:
              - example_id
      nameRegex:
        fn::invoke:
          Function: alicloud:bp:getStudioApplications
          Arguments:
            nameRegex: ^my-Application
    outputs:
      bpStudioApplicationId1: ${ids.applications[0].id}
      bpStudioApplicationId2: ${nameRegex.applications[0].id}
    

    Using getStudioApplications

    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 getStudioApplications(args: GetStudioApplicationsArgs, opts?: InvokeOptions): Promise<GetStudioApplicationsResult>
    function getStudioApplicationsOutput(args: GetStudioApplicationsOutputArgs, opts?: InvokeOptions): Output<GetStudioApplicationsResult>
    def get_studio_applications(ids: Optional[Sequence[str]] = None,
                                keyword: Optional[str] = None,
                                max_results: Optional[int] = None,
                                name_regex: Optional[str] = None,
                                order_type: Optional[int] = None,
                                output_file: Optional[str] = None,
                                resource_group_id: Optional[str] = None,
                                status: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetStudioApplicationsResult
    def get_studio_applications_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                keyword: Optional[pulumi.Input[str]] = None,
                                max_results: Optional[pulumi.Input[int]] = None,
                                name_regex: Optional[pulumi.Input[str]] = None,
                                order_type: Optional[pulumi.Input[int]] = None,
                                output_file: Optional[pulumi.Input[str]] = None,
                                resource_group_id: Optional[pulumi.Input[str]] = None,
                                status: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetStudioApplicationsResult]
    func GetStudioApplications(ctx *Context, args *GetStudioApplicationsArgs, opts ...InvokeOption) (*GetStudioApplicationsResult, error)
    func GetStudioApplicationsOutput(ctx *Context, args *GetStudioApplicationsOutputArgs, opts ...InvokeOption) GetStudioApplicationsResultOutput

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

    public static class GetStudioApplications 
    {
        public static Task<GetStudioApplicationsResult> InvokeAsync(GetStudioApplicationsArgs args, InvokeOptions? opts = null)
        public static Output<GetStudioApplicationsResult> Invoke(GetStudioApplicationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStudioApplicationsResult> getStudioApplications(GetStudioApplicationsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:bp/getStudioApplications:getStudioApplications
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of Application IDs.
    Keyword string
    The keyword of the Application.
    MaxResults int
    NameRegex string
    A regex string to filter results by Application name.
    OrderType int
    The order type of the Application. Valid values:
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ResourceGroupId string
    The ID of the resource group.
    Status string
    The status of the Application. Valid values: success, release.
    Ids []string
    A list of Application IDs.
    Keyword string
    The keyword of the Application.
    MaxResults int
    NameRegex string
    A regex string to filter results by Application name.
    OrderType int
    The order type of the Application. Valid values:
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ResourceGroupId string
    The ID of the resource group.
    Status string
    The status of the Application. Valid values: success, release.
    ids List<String>
    A list of Application IDs.
    keyword String
    The keyword of the Application.
    maxResults Integer
    nameRegex String
    A regex string to filter results by Application name.
    orderType Integer
    The order type of the Application. Valid values:
    outputFile String
    File name where to save data source results (after running pulumi preview).
    resourceGroupId String
    The ID of the resource group.
    status String
    The status of the Application. Valid values: success, release.
    ids string[]
    A list of Application IDs.
    keyword string
    The keyword of the Application.
    maxResults number
    nameRegex string
    A regex string to filter results by Application name.
    orderType number
    The order type of the Application. Valid values:
    outputFile string
    File name where to save data source results (after running pulumi preview).
    resourceGroupId string
    The ID of the resource group.
    status string
    The status of the Application. Valid values: success, release.
    ids Sequence[str]
    A list of Application IDs.
    keyword str
    The keyword of the Application.
    max_results int
    name_regex str
    A regex string to filter results by Application name.
    order_type int
    The order type of the Application. Valid values:
    output_file str
    File name where to save data source results (after running pulumi preview).
    resource_group_id str
    The ID of the resource group.
    status str
    The status of the Application. Valid values: success, release.
    ids List<String>
    A list of Application IDs.
    keyword String
    The keyword of the Application.
    maxResults Number
    nameRegex String
    A regex string to filter results by Application name.
    orderType Number
    The order type of the Application. Valid values:
    outputFile String
    File name where to save data source results (after running pulumi preview).
    resourceGroupId String
    The ID of the resource group.
    status String
    The status of the Application. Valid values: success, release.

    getStudioApplications Result

    The following output properties are available:

    Applications List<Pulumi.AliCloud.Bp.Outputs.GetStudioApplicationsApplication>
    A list of Cloud Architect Design Tools (BPStudio) Applications. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Names List<string>
    A list of Application names.
    Keyword string
    MaxResults int
    NameRegex string
    OrderType int
    OutputFile string
    ResourceGroupId string
    The ID of the resource group.
    Status string
    The status of the Application.
    Applications []GetStudioApplicationsApplication
    A list of Cloud Architect Design Tools (BPStudio) Applications. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Names []string
    A list of Application names.
    Keyword string
    MaxResults int
    NameRegex string
    OrderType int
    OutputFile string
    ResourceGroupId string
    The ID of the resource group.
    Status string
    The status of the Application.
    applications List<GetStudioApplicationsApplication>
    A list of Cloud Architect Design Tools (BPStudio) Applications. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    A list of Application names.
    keyword String
    maxResults Integer
    nameRegex String
    orderType Integer
    outputFile String
    resourceGroupId String
    The ID of the resource group.
    status String
    The status of the Application.
    applications GetStudioApplicationsApplication[]
    A list of Cloud Architect Design Tools (BPStudio) Applications. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    names string[]
    A list of Application names.
    keyword string
    maxResults number
    nameRegex string
    orderType number
    outputFile string
    resourceGroupId string
    The ID of the resource group.
    status string
    The status of the Application.
    applications Sequence[GetStudioApplicationsApplication]
    A list of Cloud Architect Design Tools (BPStudio) Applications. Each element contains the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    names Sequence[str]
    A list of Application names.
    keyword str
    max_results int
    name_regex str
    order_type int
    output_file str
    resource_group_id str
    The ID of the resource group.
    status str
    The status of the Application.
    applications List<Property Map>
    A list of Cloud Architect Design Tools (BPStudio) Applications. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    A list of Application names.
    keyword String
    maxResults Number
    nameRegex String
    orderType Number
    outputFile String
    resourceGroupId String
    The ID of the resource group.
    status String
    The status of the Application.

    Supporting Types

    GetStudioApplicationsApplication

    ApplicationId string
    The ID of the Application.
    ApplicationName string
    The name of the Application.
    CreateTime string
    The creation time of the Application.
    Id string
    The ID of the Application.
    ImageUrl string
    The image url of the Application.
    ResourceGroupId string
    The ID of the resource group.
    Status string
    The status of the Application. Valid values: success, release.
    TopoUrl string
    The topo url of the Application.
    ApplicationId string
    The ID of the Application.
    ApplicationName string
    The name of the Application.
    CreateTime string
    The creation time of the Application.
    Id string
    The ID of the Application.
    ImageUrl string
    The image url of the Application.
    ResourceGroupId string
    The ID of the resource group.
    Status string
    The status of the Application. Valid values: success, release.
    TopoUrl string
    The topo url of the Application.
    applicationId String
    The ID of the Application.
    applicationName String
    The name of the Application.
    createTime String
    The creation time of the Application.
    id String
    The ID of the Application.
    imageUrl String
    The image url of the Application.
    resourceGroupId String
    The ID of the resource group.
    status String
    The status of the Application. Valid values: success, release.
    topoUrl String
    The topo url of the Application.
    applicationId string
    The ID of the Application.
    applicationName string
    The name of the Application.
    createTime string
    The creation time of the Application.
    id string
    The ID of the Application.
    imageUrl string
    The image url of the Application.
    resourceGroupId string
    The ID of the resource group.
    status string
    The status of the Application. Valid values: success, release.
    topoUrl string
    The topo url of the Application.
    application_id str
    The ID of the Application.
    application_name str
    The name of the Application.
    create_time str
    The creation time of the Application.
    id str
    The ID of the Application.
    image_url str
    The image url of the Application.
    resource_group_id str
    The ID of the resource group.
    status str
    The status of the Application. Valid values: success, release.
    topo_url str
    The topo url of the Application.
    applicationId String
    The ID of the Application.
    applicationName String
    The name of the Application.
    createTime String
    The creation time of the Application.
    id String
    The ID of the Application.
    imageUrl String
    The image url of the Application.
    resourceGroupId String
    The ID of the resource group.
    status String
    The status of the Application. Valid values: success, release.
    topoUrl String
    The topo url of the Application.

    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.57.1 published on Wednesday, Jun 26, 2024 by Pulumi