subcategory | layout | page_title | description |
---|---|---|---|
Network |
azurerm |
Azure Resource Manager: azurerm_express_route_circuit |
Gets information about an existing ExpressRoute circuit. |
Use this data source to access information about an existing ExpressRoute circuit.
data "azurerm_express_route_circuit" "example" {
resource_group_name = azurerm_resource_group.example.name
name = azurerm_express_route_circuit.example.name
}
output "express_route_circuit_id" {
value = data.azurerm_express_route_circuit.example.id
}
output "service_key" {
value = data.azurerm_express_route_circuit.example.service_key
}
name
- The name of the ExpressRoute circuit.resource_group_name
- The Name of the Resource Group where the ExpressRoute circuit exists.
-
id
- The ID of the ExpressRoute circuit. -
location
- The Azure location where the ExpressRoute circuit exists -
peerings
- Apeerings
block for the ExpressRoute circuit as documented below -
service_provider_provisioning_state
- The ExpressRoute circuit provisioning state from your chosen service provider. Possible values areNotProvisioned
,Provisioning
,Provisioned
, andDeprovisioning
. -
service_key
- The string needed by the service provider to provision the ExpressRoute circuit. -
service_provider_properties
- Aservice_provider_properties
block for the ExpressRoute circuit as documented below -
sku
- Asku
block for the ExpressRoute circuit as documented below.
service_provider_properties
supports the following:
service_provider_name
- The name of the ExpressRoute Service Provider.peering_location
- The name of the peering location and not the Azure resource location.bandwidth_in_mbps
- The bandwidth in Mbps of the ExpressRoute circuit.
peerings
supports the following:
peering_type
- The type of the ExpressRoute Circuit Peering. Acceptable values includeAzurePrivatePeering
,AzurePublicPeering
andMicrosoftPeering
. Changing this forces a new resource to be created.
~> Note: only one Peering of each Type can be created per ExpressRoute circuit.
primary_peer_address_prefix
- A/30
subnet for the primary link.secondary_peer_address_prefix
- A/30
subnet for the secondary link.vlan_id
- A valid VLAN ID to establish this peering on.shared_key
- The shared key. Can be a maximum of 25 characters.azure_asn
- The Either a 16-bit or a 32-bit ASN for Azure.peer_asn
- The Either a 16-bit or a 32-bit ASN. Can either be public or private.
sku
supports the following:
tier
- The service tier. Possible values areBasic
,Local
,Standard
orPremium
.family
- The billing mode for bandwidth. Possible values areMeteredData
orUnlimitedData
.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the ExpressRoute circuit.