» Data Source: azurerm_express_route_circuit
Use this data source to access information about an existing ExpressRoute circuit.
» Example Usage
data "azurerm_express_route_circuit" test {
resource_group_name = "${azurerm_resource_group.test.name}"
name = "${azurerm_express_route_circuit.test.name}"
}
output "express_route_circuit_id" {
value = "${data.azurerm_express_route_circuit.test.id}"
}
output "service_key" {
value = "${data.azurerm_express_route_circuit.test.service_key}"
}
» Argument Reference
-
name
- (Required) The name of the ExpressRoute circuit. -
resource_group_name
- (Required) The Name of the Resource Group where the ExpressRoute circuit exists.
» Attributes Reference
-
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 are "NotProvisioned", "Provisioning", "Provisioned", and "Deprovisioning". -
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: