GetApis
This data source provides the apis of the current Alibaba Cloud user.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var dataApigatwayApis = Output.Create(AliCloud.ApiGateway.GetApis.InvokeAsync(new AliCloud.ApiGateway.GetApisArgs
{
OutputFile = "output_ApiGatawayApis",
}));
this.FirstApiId = data.Alicloud_api_gateway_apis.Data_apigatway.Apis[0].Id;
}
[Output("firstApiId")]
public Output<string> FirstApiId { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
data_apigatway_apis = alicloud.apigateway.get_apis(output_file="output_ApiGatawayApis")
pulumi.export("firstApiId", data["alicloud.apigateway.getApis"]["data_apigatway"]["apis"][0]["id"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const dataApigatwayApis = pulumi.output(alicloud.apigateway.getApis({
outputFile: "output_ApiGatawayApis",
}, { async: true }));
export const firstApiId = alicloud_api_gateway_apis_data_apigatway.apis.0.id;Using GetApis
function getApis(args: GetApisArgs, opts?: InvokeOptions): Promise<GetApisResult>function get_apis(api_id=None, group_id=None, ids=None, name_regex=None, output_file=None, opts=None)func GetApis(ctx *Context, args *GetApisArgs, opts ...InvokeOption) (*GetApisResult, error)public static class GetApis {
public static Task<GetApisResult> InvokeAsync(GetApisArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Api
Id string (It has been deprecated from version 1.52.2, and use field ‘ids’ to replace.) ID of the specified API.
- Group
Id string ID of the specified group.
- Ids List<string>
A list of api IDs.
- Name
Regex string A regex string to filter api gateway apis by name.
- Output
File string
- api_
id str (It has been deprecated from version 1.52.2, and use field ‘ids’ to replace.) ID of the specified API.
- group_
id str ID of the specified group.
- ids List[str]
A list of api IDs.
- name_
regex str A regex string to filter api gateway apis by name.
- output_
file str
GetApis Result
The following output properties are available:
- Apis
List<Pulumi.
Ali Cloud. Api Gateway. Outputs. Get Apis Api> A list of apis. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
A list of api IDs.
- Names List<string>
A list of api names.
- Api
Id string - Group
Id string The group id that the apis belong to.
- Name
Regex string - Output
File string
- Apis
[]Get
Apis Api A list of apis. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
A list of api IDs.
- Names []string
A list of api names.
- Api
Id string - Group
Id string The group id that the apis belong to.
- Name
Regex string - Output
File string
- apis
Get
Apis Api[] A list of apis. Each element contains the following attributes:
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
A list of api IDs.
- names string[]
A list of api names.
- api
Id string - group
Id string The group id that the apis belong to.
- name
Regex string - output
File string
- apis
List[Get
Apis Api] A list of apis. Each element contains the following attributes:
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
A list of api IDs.
- names List[str]
A list of api names.
- api_
id str - group_
id str The group id that the apis belong to.
- name_
regex str - output_
file str
Supporting Types
GetApisApi
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.