Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.bp.getStudioApplications
Explore with Pulumi AI
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.
- Max
Results int - Name
Regex string - A regex string to filter results by Application name.
- Order
Type int - The order type of the Application. Valid values:
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group stringId - 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.
- Max
Results int - Name
Regex string - A regex string to filter results by Application name.
- Order
Type int - The order type of the Application. Valid values:
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group stringId - 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.
- max
Results Integer - name
Regex String - A regex string to filter results by Application name.
- order
Type Integer - The order type of the Application. Valid values:
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group StringId - 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.
- max
Results number - name
Regex string - A regex string to filter results by Application name.
- order
Type number - The order type of the Application. Valid values:
- output
File string - File name where to save data source results (after running
pulumi preview
). - resource
Group stringId - 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_ strid - 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.
- max
Results Number - name
Regex String - A regex string to filter results by Application name.
- order
Type Number - The order type of the Application. Valid values:
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group StringId - 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.
Ali Cloud. Bp. Outputs. Get Studio Applications Application> - 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
- Max
Results int - Name
Regex string - Order
Type int - Output
File string - Resource
Group stringId - The ID of the resource group.
- Status string
- The status of the Application.
- Applications
[]Get
Studio Applications Application - 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
- Max
Results int - Name
Regex string - Order
Type int - Output
File string - Resource
Group stringId - The ID of the resource group.
- Status string
- The status of the Application.
- applications
List<Get
Studio Applications Application> - 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
- max
Results Integer - name
Regex String - order
Type Integer - output
File String - resource
Group StringId - The ID of the resource group.
- status String
- The status of the Application.
- applications
Get
Studio Applications Application[] - 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
- max
Results number - name
Regex string - order
Type number - output
File string - resource
Group stringId - The ID of the resource group.
- status string
- The status of the Application.
- applications
Sequence[Get
Studio Applications Application] - 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_ strid - 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
- max
Results Number - name
Regex String - order
Type Number - output
File String - resource
Group StringId - The ID of the resource group.
- status String
- The status of the Application.
Supporting Types
GetStudioApplicationsApplication
- Application
Id string - The ID of the Application.
- Application
Name string - The name of the Application.
- Create
Time string - The creation time of the Application.
- Id string
- The ID of the Application.
- Image
Url string - The image url of the Application.
- Resource
Group stringId - The ID of the resource group.
- Status string
- The status of the Application. Valid values:
success
,release
. - Topo
Url string - The topo url of the Application.
- Application
Id string - The ID of the Application.
- Application
Name string - The name of the Application.
- Create
Time string - The creation time of the Application.
- Id string
- The ID of the Application.
- Image
Url string - The image url of the Application.
- Resource
Group stringId - The ID of the resource group.
- Status string
- The status of the Application. Valid values:
success
,release
. - Topo
Url string - The topo url of the Application.
- application
Id String - The ID of the Application.
- application
Name String - The name of the Application.
- create
Time String - The creation time of the Application.
- id String
- The ID of the Application.
- image
Url String - The image url of the Application.
- resource
Group StringId - The ID of the resource group.
- status String
- The status of the Application. Valid values:
success
,release
. - topo
Url String - The topo url of the Application.
- application
Id string - The ID of the Application.
- application
Name string - The name of the Application.
- create
Time string - The creation time of the Application.
- id string
- The ID of the Application.
- image
Url string - The image url of the Application.
- resource
Group stringId - The ID of the resource group.
- status string
- The status of the Application. Valid values:
success
,release
. - topo
Url 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_ strid - 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.
- application
Id String - The ID of the Application.
- application
Name String - The name of the Application.
- create
Time String - The creation time of the Application.
- id String
- The ID of the Application.
- image
Url String - The image url of the Application.
- resource
Group StringId - The ID of the resource group.
- status String
- The status of the Application. Valid values:
success
,release
. - topo
Url 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.