Class GetApi
Inheritance
System.Object
GetApi
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.ApiManagement
Assembly: Pulumi.Azure.dll
Syntax
public static class GetApi
Methods
View SourceInvokeAsync(GetApiArgs, InvokeOptions)
Use this data source to access information about an existing API Management API.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.ApiManagement.GetApi.InvokeAsync(new Azure.ApiManagement.GetApiArgs
{
Name = "search-api",
ApiManagementName = "search-api-management",
ResourceGroupName = "search-service",
Revision = "2",
}));
this.ApiManagementApiId = example.Apply(example => example.Id);
}
[Output("apiManagementApiId")]
public Output<string> ApiManagementApiId { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetApiResult> InvokeAsync(GetApiArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetApiArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetApiResult> |