GetExpressRouteCircuit
Use this data source to access information about an existing ExpressRoute circuit.
Example Usage
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; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/network"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := network.LookupExpressRouteCircuit(ctx, &network.LookupExpressRouteCircuitArgs{
ResourceGroupName: azurerm_resource_group.Example.Name,
Name: azurerm_express_route_circuit.Example.Name,
}, nil)
if err != nil {
return err
}
ctx.Export("expressRouteCircuitId", example.Id)
ctx.Export("serviceKey", example.ServiceKey)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.network.get_express_route_circuit(resource_group_name=azurerm_resource_group["example"]["name"],
name=azurerm_express_route_circuit["example"]["name"])
pulumi.export("expressRouteCircuitId", example.id)
pulumi.export("serviceKey", example.service_key)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.network.getExpressRouteCircuit({
resourceGroupName: azurerm_resource_group.example.name,
name: azurerm_express_route_circuit.example.name,
});
export const expressRouteCircuitId = example.then(example => example.id);
export const serviceKey = example.then(example => example.serviceKey);Using GetExpressRouteCircuit
function getExpressRouteCircuit(args: GetExpressRouteCircuitArgs, opts?: InvokeOptions): Promise<GetExpressRouteCircuitResult>function get_express_route_circuit(name=None, resource_group_name=None, opts=None)func LookupExpressRouteCircuit(ctx *Context, args *LookupExpressRouteCircuitArgs, opts ...InvokeOption) (*LookupExpressRouteCircuitResult, error)Note: This function is named
LookupExpressRouteCircuitin the Go SDK.
public static class GetExpressRouteCircuit {
public static Task<GetExpressRouteCircuitResult> InvokeAsync(GetExpressRouteCircuitArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the ExpressRoute circuit.
- Resource
Group stringName The Name of the Resource Group where the ExpressRoute circuit exists.
- Name string
The name of the ExpressRoute circuit.
- Resource
Group stringName The Name of the Resource Group where the ExpressRoute circuit exists.
- name string
The name of the ExpressRoute circuit.
- resource
Group stringName The Name of the Resource Group where the ExpressRoute circuit exists.
- name str
The name of the ExpressRoute circuit.
- resource_
group_ strname The Name of the Resource Group where the ExpressRoute circuit exists.
GetExpressRouteCircuit Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
The Azure location where the ExpressRoute circuit exists
- Name string
- Peerings
List<Get
Express Route Circuit Peering> A
peeringsblock for the ExpressRoute circuit as documented below- Resource
Group stringName - Service
Key string The string needed by the service provider to provision the ExpressRoute circuit.
- Service
Provider List<GetProperties Express Route Circuit Service Provider Property> A
service_provider_propertiesblock for the ExpressRoute circuit as documented below- Service
Provider stringProvisioning State The ExpressRoute circuit provisioning state from your chosen service provider. Possible values are “NotProvisioned”, “Provisioning”, “Provisioned”, and “Deprovisioning”.
- Sku
Get
Express Route Circuit Sku A
skublock for the ExpressRoute circuit as documented below.
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
The Azure location where the ExpressRoute circuit exists
- Name string
- Peerings
[]Get
Express Route Circuit Peering Type A
peeringsblock for the ExpressRoute circuit as documented below- Resource
Group stringName - Service
Key string The string needed by the service provider to provision the ExpressRoute circuit.
- Service
Provider []GetProperties Express Route Circuit Service Provider Property A
service_provider_propertiesblock for the ExpressRoute circuit as documented below- Service
Provider stringProvisioning State The ExpressRoute circuit provisioning state from your chosen service provider. Possible values are “NotProvisioned”, “Provisioning”, “Provisioned”, and “Deprovisioning”.
- Sku
Get
Express Route Circuit Sku A
skublock for the ExpressRoute circuit as documented below.
- id string
The provider-assigned unique ID for this managed resource.
- location string
The Azure location where the ExpressRoute circuit exists
- name string
- peerings
Get
Express Route Circuit Peering[] A
peeringsblock for the ExpressRoute circuit as documented below- resource
Group stringName - service
Key string The string needed by the service provider to provision the ExpressRoute circuit.
- service
Provider GetProperties Express Route Circuit Service Provider Property[] A
service_provider_propertiesblock for the ExpressRoute circuit as documented below- service
Provider stringProvisioning State The ExpressRoute circuit provisioning state from your chosen service provider. Possible values are “NotProvisioned”, “Provisioning”, “Provisioned”, and “Deprovisioning”.
- sku
Get
Express Route Circuit Sku A
skublock for the ExpressRoute circuit as documented below.
- id str
The provider-assigned unique ID for this managed resource.
- location str
The Azure location where the ExpressRoute circuit exists
- name str
- peerings
List[Get
Express Route Circuit Peering] A
peeringsblock for the ExpressRoute circuit as documented below- resource_
group_ strname - service_
key str The string needed by the service provider to provision the ExpressRoute circuit.
- service_
provider_ List[Getproperties Express Route Circuit Service Provider Property] A
service_provider_propertiesblock for the ExpressRoute circuit as documented below- service_
provider_ strprovisioning_ state The ExpressRoute circuit provisioning state from your chosen service provider. Possible values are “NotProvisioned”, “Provisioning”, “Provisioned”, and “Deprovisioning”.
- sku
Dict[Get
Express Route Circuit Sku] A
skublock for the ExpressRoute circuit as documented below.
Supporting Types
GetExpressRouteCircuitPeering
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Azure
Asn int The Either a 16-bit or a 32-bit ASN for Azure.
- Peer
Asn int The Either a 16-bit or a 32-bit ASN. Can either be public or private.
- Peering
Type string The type of the ExpressRoute Circuit Peering. Acceptable values include
AzurePrivatePeering,AzurePublicPeeringandMicrosoftPeering. Changing this forces a new resource to be created.- Primary
Peer stringAddress Prefix A
/30subnet for the primary link.- Secondary
Peer stringAddress Prefix A
/30subnet for the secondary link.- string
The shared key. Can be a maximum of 25 characters.
- Vlan
Id int A valid VLAN ID to establish this peering on.
- Azure
Asn int The Either a 16-bit or a 32-bit ASN for Azure.
- Peer
Asn int The Either a 16-bit or a 32-bit ASN. Can either be public or private.
- Peering
Type string The type of the ExpressRoute Circuit Peering. Acceptable values include
AzurePrivatePeering,AzurePublicPeeringandMicrosoftPeering. Changing this forces a new resource to be created.- Primary
Peer stringAddress Prefix A
/30subnet for the primary link.- Secondary
Peer stringAddress Prefix A
/30subnet for the secondary link.- string
The shared key. Can be a maximum of 25 characters.
- Vlan
Id int A valid VLAN ID to establish this peering on.
- azure
Asn number The Either a 16-bit or a 32-bit ASN for Azure.
- peer
Asn number The Either a 16-bit or a 32-bit ASN. Can either be public or private.
- peering
Type string The type of the ExpressRoute Circuit Peering. Acceptable values include
AzurePrivatePeering,AzurePublicPeeringandMicrosoftPeering. Changing this forces a new resource to be created.- primary
Peer stringAddress Prefix A
/30subnet for the primary link.- secondary
Peer stringAddress Prefix A
/30subnet for the secondary link.- string
The shared key. Can be a maximum of 25 characters.
- vlan
Id number A valid VLAN ID to establish this peering on.
- azure_
asn float The Either a 16-bit or a 32-bit ASN for Azure.
- peer_
asn float The Either a 16-bit or a 32-bit ASN. Can either be public or private.
- peering_
type str The type of the ExpressRoute Circuit Peering. Acceptable values include
AzurePrivatePeering,AzurePublicPeeringandMicrosoftPeering. Changing this forces a new resource to be created.- primary_
peer_ straddress_ prefix A
/30subnet for the primary link.- secondary_
peer_ straddress_ prefix A
/30subnet for the secondary link.- str
The shared key. Can be a maximum of 25 characters.
- vlan_
id float A valid VLAN ID to establish this peering on.
GetExpressRouteCircuitServiceProviderProperty
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Bandwidth
In intMbps The bandwidth in Mbps of the ExpressRoute circuit.
- Peering
Location string The name of the peering location and not the Azure resource location.
- Service
Provider stringName The name of the ExpressRoute Service Provider.
- Bandwidth
In intMbps The bandwidth in Mbps of the ExpressRoute circuit.
- Peering
Location string The name of the peering location and not the Azure resource location.
- Service
Provider stringName The name of the ExpressRoute Service Provider.
- bandwidth
In numberMbps The bandwidth in Mbps of the ExpressRoute circuit.
- peering
Location string The name of the peering location and not the Azure resource location.
- service
Provider stringName The name of the ExpressRoute Service Provider.
- bandwidth_
in_ floatmbps The bandwidth in Mbps of the ExpressRoute circuit.
- peering_
location str The name of the peering location and not the Azure resource location.
- service_
provider_ strname The name of the ExpressRoute Service Provider.
GetExpressRouteCircuitSku
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-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.