GetApps

This data source provides the apps of the current Alibaba Cloud user.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var dataApigatway = Output.Create(AliCloud.ApiGateway.GetApps.InvokeAsync(new AliCloud.ApiGateway.GetAppsArgs
        {
            OutputFile = "outapps",
        }));
        this.FirstAppId = dataApigatway.Apply(dataApigatway => dataApigatway.Apps[0].Id);
    }

    [Output("firstAppId")]
    public Output<string> FirstAppId { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

data_apigatway = alicloud.apigateway.get_apps(output_file="outapps")
pulumi.export("firstAppId", data_apigatway.apps[0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const dataApigatway = pulumi.output(alicloud.apigateway.getApps({
    outputFile: "outapps",
}, { async: true }));

export const firstAppId = dataApigatway.apps[0].id;

Using GetApps

function getApps(args: GetAppsArgs, opts?: InvokeOptions): Promise<GetAppsResult>
function  get_apps(ids=None, name_regex=None, output_file=None, tags=None, opts=None)
func GetApps(ctx *Context, args *GetAppsArgs, opts ...InvokeOption) (*GetAppsResult, error)
public static class GetApps {
    public static Task<GetAppsResult> InvokeAsync(GetAppsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Ids List<string>

A list of app IDs.

NameRegex string

A regex string to filter apps by name.

OutputFile string
Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

Ids []string

A list of app IDs.

NameRegex string

A regex string to filter apps by name.

OutputFile string
Tags map[string]interface{}

A mapping of tags to assign to the resource.

ids string[]

A list of app IDs.

nameRegex string

A regex string to filter apps by name.

outputFile string
tags {[key: string]: any}

A mapping of tags to assign to the resource.

ids List[str]

A list of app IDs.

name_regex str

A regex string to filter apps by name.

output_file str
tags Dict[str, Any]

A mapping of tags to assign to the resource.

GetApps Result

The following output properties are available:

Apps List<Pulumi.AliCloud.ApiGateway.Outputs.GetAppsApp>

A list of apps. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of app IDs.

Names List<string>

A list of app names.

NameRegex string
OutputFile string
Tags Dictionary<string, object>
Apps []GetAppsApp

A list of apps. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of app IDs.

Names []string

A list of app names.

NameRegex string
OutputFile string
Tags map[string]interface{}
apps GetAppsApp[]

A list of apps. Each element contains the following attributes:

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of app IDs.

names string[]

A list of app names.

nameRegex string
outputFile string
tags {[key: string]: any}
apps List[GetAppsApp]

A list of apps. Each element contains the following attributes:

id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of app IDs.

names List[str]

A list of app names.

name_regex str
output_file str
tags Dict[str, Any]

Supporting Types

GetAppsApp

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

AppCode string

App code.

CreatedTime string

Creation time (Greenwich mean time).

Description string

App description.

Id int

App ID, which is generated by the system and globally unique.

ModifiedTime string

Last modification time (Greenwich mean time).

Name string

App name.

AppCode string

App code.

CreatedTime string

Creation time (Greenwich mean time).

Description string

App description.

Id int

App ID, which is generated by the system and globally unique.

ModifiedTime string

Last modification time (Greenwich mean time).

Name string

App name.

appCode string

App code.

createdTime string

Creation time (Greenwich mean time).

description string

App description.

id number

App ID, which is generated by the system and globally unique.

modifiedTime string

Last modification time (Greenwich mean time).

name string

App name.

appCode str

App code.

createdTime str

Creation time (Greenwich mean time).

description str

App description.

id float

App ID, which is generated by the system and globally unique.

modifiedTime str

Last modification time (Greenwich mean time).

name str

App name.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.