Skip to main content

external_networks

Creates, updates, deletes, gets or lists an external_networks resource.

Overview

Nameexternal_networks
TypeResource
Idazure_extras.managed_network_fabric.external_networks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
administrativeStatestringAdministrative state of the resource. Known values are: "Enabled", "Disabled", "MAT", "RMA", "UnderMaintenance", and "EnabledDegraded". (Enabled, Disabled, MAT, RMA, UnderMaintenance, EnabledDegraded)
annotationstringSwitch configuration description.
configurationStatestringConfiguration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", "PendingCommit", and "PendingAdministrativeUpdate". (Succeeded, Failed, Rejected, Accepted, Provisioned, ErrorProvisioning, Deprovisioning, Deprovisioned, ErrorDeprovisioning, DeferredControl, Provisioning, PendingCommit, PendingAdministrativeUpdate)
exportRoutePolicyobjectExport Route Policy either IPv4 or IPv6.
importRoutePolicyobjectImport Route Policy either IPv4 or IPv6.
lastOperationobjectDetails of the last operation performed on the resource.
networkFabricIdstringAssociated Network Fabric Resource ID.
networkToNetworkInterconnectIdstringARM Resource ID of the networkToNetworkInterconnectId of the ExternalNetwork resource.
optionAPropertiesobjectoption A properties object.
optionBPropertiesobjectoption B properties object.
peeringOptionstringPeering option list. Required. Known values are: "OptionA" and "OptionB". (OptionA, OptionB)
provisioningStatestringProvisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". (Accepted, Succeeded, Updating, Deleting, Failed, Canceled)
staticRouteConfigurationobjectStatic Route Configuration.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, l3_isolation_domain_name, external_network_name, subscription_idImplements ExternalNetworks GET method.
list_by_l3_isolation_domainselectresource_group_name, l3_isolation_domain_name, subscription_idImplements External Networks list by resource group GET method.
createinsertresource_group_name, l3_isolation_domain_name, external_network_name, subscription_id, propertiesCreates ExternalNetwork PUT method.
updateupdateresource_group_name, l3_isolation_domain_name, external_network_name, subscription_idAPI to update certain properties of the ExternalNetworks resource.
deletedeleteresource_group_name, l3_isolation_domain_name, external_network_name, subscription_idImplements ExternalNetworks DELETE method.
update_administrative_stateexecresource_group_name, l3_isolation_domain_name, external_network_name, subscription_idExecutes update operation to enable or disable administrative State for externalNetwork.
update_static_route_bfd_administrative_stateexecresource_group_name, l3_isolation_domain_name, external_network_name, subscription_idUpdate Static Route BFD for external Network.
update_bfd_administrative_stateexecresource_group_name, l3_isolation_domain_name, external_network_name, subscription_idBFD administrative state for either static or bgp for internalNetwork.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
external_network_namestringName of the External Network. Required.
l3_isolation_domain_namestringName of the L3 Isolation Domain. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Implements ExternalNetworks GET method.

SELECT
id,
name,
administrativeState,
annotation,
configurationState,
exportRoutePolicy,
importRoutePolicy,
lastOperation,
networkFabricId,
networkToNetworkInterconnectId,
optionAProperties,
optionBProperties,
peeringOption,
provisioningState,
staticRouteConfiguration,
systemData,
type
FROM azure_extras.managed_network_fabric.external_networks
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND l3_isolation_domain_name = '{{ l3_isolation_domain_name }}' -- required
AND external_network_name = '{{ external_network_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates ExternalNetwork PUT method.

INSERT INTO azure_extras.managed_network_fabric.external_networks (
properties,
resource_group_name,
l3_isolation_domain_name,
external_network_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ l3_isolation_domain_name }}',
'{{ external_network_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

API to update certain properties of the ExternalNetworks resource.

UPDATE azure_extras.managed_network_fabric.external_networks
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND l3_isolation_domain_name = '{{ l3_isolation_domain_name }}' --required
AND external_network_name = '{{ external_network_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Implements ExternalNetworks DELETE method.

DELETE FROM azure_extras.managed_network_fabric.external_networks
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND l3_isolation_domain_name = '{{ l3_isolation_domain_name }}' --required
AND external_network_name = '{{ external_network_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Executes update operation to enable or disable administrative State for externalNetwork.

EXEC azure_extras.managed_network_fabric.external_networks.update_administrative_state 
@resource_group_name='{{ resource_group_name }}' --required,
@l3_isolation_domain_name='{{ l3_isolation_domain_name }}' --required,
@external_network_name='{{ external_network_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"resourceIds": "{{ resourceIds }}",
"state": "{{ state }}"
}'
;