Alibaba Cloud
getApplications
This data source provides the Oos Applications of the current Alibaba Cloud user.
NOTE: Available in v1.145.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var ids = Output.Create(AliCloud.Oos.GetApplications.InvokeAsync());
this.OosApplicationId1 = ids.Apply(ids => ids.Applications?[0]?.Id);
var nameRegex = Output.Create(AliCloud.Oos.GetApplications.InvokeAsync(new AliCloud.Oos.GetApplicationsArgs
{
NameRegex = "^my-Application",
}));
this.OosApplicationId2 = nameRegex.Apply(nameRegex => nameRegex.Applications?[0]?.Id);
}
[Output("oosApplicationId1")]
public Output<string> OosApplicationId1 { get; set; }
[Output("oosApplicationId2")]
public Output<string> OosApplicationId2 { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oos"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ids, err := oos.GetApplications(ctx, nil, nil)
if err != nil {
return err
}
ctx.Export("oosApplicationId1", ids.Applications[0].Id)
nameRegex, err := oos.GetApplications(ctx, &oos.GetApplicationsArgs{
NameRegex: pulumi.StringRef("^my-Application"),
}, nil)
if err != nil {
return err
}
ctx.Export("oosApplicationId2", nameRegex.Applications[0].Id)
return nil
})
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.oos.get_applications()
pulumi.export("oosApplicationId1", ids.applications[0].id)
name_regex = alicloud.oos.get_applications(name_regex="^my-Application")
pulumi.export("oosApplicationId2", name_regex.applications[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.oos.getApplications({});
export const oosApplicationId1 = ids.then(ids => ids.applications?[0]?.id);
const nameRegex = alicloud.oos.getApplications({
nameRegex: "^my-Application",
});
export const oosApplicationId2 = nameRegex.then(nameRegex => nameRegex.applications?[0]?.id);
Coming soon!
Using getApplications
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 getApplications(args: GetApplicationsArgs, opts?: InvokeOptions): Promise<GetApplicationsResult>
function getApplicationsOutput(args: GetApplicationsOutputArgs, opts?: InvokeOptions): Output<GetApplicationsResult>
def get_applications(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
opts: Optional[InvokeOptions] = None) -> GetApplicationsResult
def get_applications_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApplicationsResult]
func GetApplications(ctx *Context, args *GetApplicationsArgs, opts ...InvokeOption) (*GetApplicationsResult, error)
func GetApplicationsOutput(ctx *Context, args *GetApplicationsOutputArgs, opts ...InvokeOption) GetApplicationsResultOutput
> Note: This function is named GetApplications
in the Go SDK.
public static class GetApplications
{
public static Task<GetApplicationsResult> InvokeAsync(GetApplicationsArgs args, InvokeOptions? opts = null)
public static Output<GetApplicationsResult> Invoke(GetApplicationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApplicationsResult> getApplications(GetApplicationsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: alicloud:oos/getApplications:getApplications
Arguments:
# Arguments dictionary
The following arguments are supported:
- Ids List<string>
A list of Application IDs. Its element value is same as Application Name.
- Name
Regex string A regex string to filter results by Application name.
- Output
File string - Dictionary<string, object>
The tag of the resource.
- Ids []string
A list of Application IDs. Its element value is same as Application Name.
- Name
Regex string A regex string to filter results by Application name.
- Output
File string - map[string]interface{}
The tag of the resource.
- ids List<String>
A list of Application IDs. Its element value is same as Application Name.
- name
Regex String A regex string to filter results by Application name.
- output
File String - Map<String,Object>
The tag of the resource.
- ids string[]
A list of Application IDs. Its element value is same as Application Name.
- name
Regex string A regex string to filter results by Application name.
- output
File string - {[key: string]: any}
The tag of the resource.
- ids Sequence[str]
A list of Application IDs. Its element value is same as Application Name.
- name_
regex str A regex string to filter results by Application name.
- output_
file str - Mapping[str, Any]
The tag of the resource.
- ids List<String>
A list of Application IDs. Its element value is same as Application Name.
- name
Regex String A regex string to filter results by Application name.
- output
File String - Map<Any>
The tag of the resource.
getApplications Result
The following output properties are available:
- Applications
List<Pulumi.
Ali Cloud. Oos. Outputs. Get Applications Application> - Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Name
Regex string - Output
File string - Dictionary<string, object>
- Applications
[]Get
Applications Application - Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Name
Regex string - Output
File string - map[string]interface{}
- applications
List<Get
Applications Application> - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- name
Regex String - output
File String - Map<String,Object>
- applications
Get
Applications Application[] - id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- name
Regex string - output
File string - {[key: string]: any}
- applications
Sequence[Get
Applications Application] - id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- name_
regex str - output_
file str - Mapping[str, Any]
- applications List<Property Map>
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- name
Regex String - output
File String - Map<Any>
Supporting Types
GetApplicationsApplication
- Application
Name string The name of the application.
- Create
Time string The Created time of the application.
- Description string
Application group description information.
- Id string
The ID of the Application. The value is formate as <application_name>.
- Resource
Group stringId The ID of the resource group.
- Dictionary<string, object>
The tag of the resource.
- Update
Time string The Updated time of the application.
- Application
Name string The name of the application.
- Create
Time string The Created time of the application.
- Description string
Application group description information.
- Id string
The ID of the Application. The value is formate as <application_name>.
- Resource
Group stringId The ID of the resource group.
- map[string]interface{}
The tag of the resource.
- Update
Time string The Updated time of the application.
- application
Name String The name of the application.
- create
Time String The Created time of the application.
- description String
Application group description information.
- id String
The ID of the Application. The value is formate as <application_name>.
- resource
Group StringId The ID of the resource group.
- Map<String,Object>
The tag of the resource.
- update
Time String The Updated time of the application.
- application
Name string The name of the application.
- create
Time string The Created time of the application.
- description string
Application group description information.
- id string
The ID of the Application. The value is formate as <application_name>.
- resource
Group stringId The ID of the resource group.
- {[key: string]: any}
The tag of the resource.
- update
Time string The Updated time of the application.
- application_
name str The name of the application.
- create_
time str The Created time of the application.
- description str
Application group description information.
- id str
The ID of the Application. The value is formate as <application_name>.
- resource_
group_ strid The ID of the resource group.
- Mapping[str, Any]
The tag of the resource.
- update_
time str The Updated time of the application.
- application
Name String The name of the application.
- create
Time String The Created time of the application.
- description String
Application group description information.
- id String
The ID of the Application. The value is formate as <application_name>.
- resource
Group StringId The ID of the resource group.
- Map<Any>
The tag of the resource.
- update
Time String The Updated time of the application.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.