Data Source: azurermExpressRouteCircuit
Use this data source to access information about an existing ExpressRoute circuit.
Example Usage
import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermExpressRouteCircuitExample =
new azurerm.dataAzurermExpressRouteCircuit.DataAzurermExpressRouteCircuit(
this,
"example",
{
name: "${azurerm_express_route_circuit.example.name}",
resource_group_name: "${azurerm_resource_group.example.name}",
}
);
new cdktf.TerraformOutput(this, "express_route_circuit_id", {
value: dataAzurermExpressRouteCircuitExample.id,
});
new cdktf.TerraformOutput(this, "service_key", {
value: dataAzurermExpressRouteCircuitExample.serviceKey,
});
Argument Reference
name
- The name of the ExpressRoute circuit.resourceGroupName
- 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 -
serviceProviderProvisioningState
- The ExpressRoute circuit provisioning state from your chosen service provider. Possible values arenotProvisioned
,provisioning
,provisioned
, anddeprovisioning
. -
serviceKey
- The string needed by the service provider to provision the ExpressRoute circuit. -
serviceProviderProperties
- AserviceProviderProperties
block for the ExpressRoute circuit as documented below -
sku
- Asku
block for the ExpressRoute circuit as documented below.
serviceProviderProperties
supports the following:
serviceProviderName
- The name of the ExpressRoute Service Provider.peeringLocation
- The name of the peering location and not the Azure resource location.bandwidthInMbps
- The bandwidth in Mbps of the ExpressRoute circuit.
peerings
supports the following:
peeringType
- 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.
primaryPeerAddressPrefix
- A/30
subnet for the primary link.secondaryPeerAddressPrefix
- A/30
subnet for the secondary link.vlanId
- A valid VLAN ID to establish this peering on.sharedKey
- The shared key. Can be a maximum of 25 characters.azureAsn
- The Either a 16-bit or a 32-bit ASN for Azure.peerAsn
- 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
.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the ExpressRoute circuit.