Azure Classic
Pulumi Official

Package maintained by Pulumiv5.6.0 published on Friday, May 20, 2022 by Pulumi
getManagedApi
Uses this data source to access information about an existing Managed API.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Connections.GetManagedApi.InvokeAsync(new Azure.Connections.GetManagedApiArgs
{
Name = "servicebus",
Location = "West Europe",
}));
this.Id = example.Apply(example => example.Id);
}
[Output("id")]
public Output<string> Id { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/connections"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := connections.GetManagedApi(ctx, &connections.GetManagedApiArgs{
Name: "servicebus",
Location: "West Europe",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = Output.of(ConnectionsFunctions.getManagedApi(GetManagedApiArgs.builder()
.name("servicebus")
.location("West Europe")
.build()));
ctx.export("id", example.apply(getManagedApiResult -> getManagedApiResult.getId()));
}
}
import pulumi
import pulumi_azure as azure
example = azure.connections.get_managed_api(name="servicebus",
location="West Europe")
pulumi.export("id", example.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.connections.getManagedApi({
name: "servicebus",
location: "West Europe",
});
export const id = example.then(example => example.id);
variables:
example:
Fn::Invoke:
Function: azure:connections:getManagedApi
Arguments:
name: servicebus
location: West Europe
outputs:
id: ${example.id}
Using getManagedApi
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 getManagedApi(args: GetManagedApiArgs, opts?: InvokeOptions): Promise<GetManagedApiResult>
function getManagedApiOutput(args: GetManagedApiOutputArgs, opts?: InvokeOptions): Output<GetManagedApiResult>
def get_managed_api(location: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagedApiResult
def get_managed_api_output(location: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagedApiResult]
func GetManagedApi(ctx *Context, args *GetManagedApiArgs, opts ...InvokeOption) (*GetManagedApiResult, error)
func GetManagedApiOutput(ctx *Context, args *GetManagedApiOutputArgs, opts ...InvokeOption) GetManagedApiResultOutput
> Note: This function is named GetManagedApi
in the Go SDK.
public static class GetManagedApi
{
public static Task<GetManagedApiResult> InvokeAsync(GetManagedApiArgs args, InvokeOptions? opts = null)
public static Output<GetManagedApiResult> Invoke(GetManagedApiInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagedApiResult> getManagedApi(GetManagedApiArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: azure:connections/getManagedApi:getManagedApi
Arguments:
# Arguments dictionary
The following arguments are supported:
getManagedApi Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.