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.
- Name
Regex string A regex string to filter apps by name.
- Output
File string - Dictionary<string, object>
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 - Dict[str, Any]
A mapping of tags to assign to the resource.
GetApps Result
The following output properties are available:
- Apps
List<Pulumi.
Ali Cloud. Api Gateway. Outputs. Get Apps App> 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.
- Name
Regex string - Output
File string - Dictionary<string, object>
- apps
List[Get
Apps App] 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 - 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.
- App
Code string App code.
- Created
Time string Creation time (Greenwich mean time).
- Description string
App description.
- Id int
App ID, which is generated by the system and globally unique.
- Modified
Time string Last modification time (Greenwich mean time).
- Name string
App name.
- App
Code string App code.
- Created
Time string Creation time (Greenwich mean time).
- Description string
App description.
- Id int
App ID, which is generated by the system and globally unique.
- Modified
Time string Last modification time (Greenwich mean time).
- Name string
App name.
- app
Code string App code.
- created
Time string Creation time (Greenwich mean time).
- description string
App description.
- id number
App ID, which is generated by the system and globally unique.
- modified
Time string Last modification time (Greenwich mean time).
- name string
App name.
- app
Code str App code.
- created
Time str Creation time (Greenwich mean time).
- description str
App description.
- id float
App ID, which is generated by the system and globally unique.
- modified
Time 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
alicloudTerraform Provider.