Class GetExpressRouteCircuit
Inheritance
System.Object
GetExpressRouteCircuit
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.Network
Assembly: Pulumi.Azure.dll
Syntax
public static class GetExpressRouteCircuit
Methods
View SourceInvokeAsync(GetExpressRouteCircuitArgs, InvokeOptions)
Use this data source to access information about an existing ExpressRoute circuit.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Network.GetExpressRouteCircuit.InvokeAsync(new Azure.Network.GetExpressRouteCircuitArgs
{
ResourceGroupName = azurerm_resource_group.Example.Name,
Name = azurerm_express_route_circuit.Example.Name,
}));
this.ExpressRouteCircuitId = example.Apply(example => example.Id);
this.ServiceKey = example.Apply(example => example.ServiceKey);
}
[Output("expressRouteCircuitId")]
public Output<string> ExpressRouteCircuitId { get; set; }
[Output("serviceKey")]
public Output<string> ServiceKey { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetExpressRouteCircuitResult> InvokeAsync(GetExpressRouteCircuitArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetExpressRouteCircuitArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetExpressRouteCircuitResult> |