Skip to main content

network_anchors

Creates, updates, deletes, gets or lists a network_anchors resource.

Overview

Namenetwork_anchors
TypeResource
Idazure_isv.oracledatabase.network_anchors

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.
cidrBlockstringDelegated Azure subnet cidr block.
dnsForwardingEndpointIpAddressstringDNS forwarding endpoint IP address.
dnsForwardingEndpointNsgRulesUrlstringDeep link to OCI console DNS Forwarding endpoint NSG rules.
dnsForwardingRulesarrayDNS forwarding rules.
dnsForwardingRulesUrlstringDeep link to OCI console DNS Forwarding rules page.
dnsListeningEndpointAllowedCidrsstringComma-separated list of CIDRs that are allowed to send requests to the DNS listening endpoint.
dnsListeningEndpointIpAddressstringDNS listening endpoint IP address.
dnsListeningEndpointNsgRulesUrlstringDeep link to OCI console DNS Listening endpoint NSG rules.
isOracleDnsForwardingEndpointEnabledbooleanIndicates whether the Oracle DNS forwarding endpoint is enabled.
isOracleDnsListeningEndpointEnabledbooleanIndicates whether the Oracle DNS listening endpoint is enabled.
isOracleToAzureDnsZoneSyncEnabledbooleanIndicates whether DNS zone sync from OCI to Azure is enabled.
locationstringThe geo-location where the resource lives. Required.
ociBackupCidrBlockstringOCI backup subnet cidr block.
ociSubnetIdstringOracle Cloud Infrastructure subnet OCID.
ociVcnDnsLabelstringOCI DNS label. This is optional if DNS config is provided.
ociVcnIdstringOracle Cloud Infrastructure VCN OCID.
provisioningStatestringNetworkAnchor provisioning state. Known values are: "Succeeded", "Failed", "Canceled", and "Provisioning". (Succeeded, Failed, Canceled, Provisioning)
resourceAnchorIdstringCorresponding resource anchor Azure ID. Required.
subnetIdstringClient subnet. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
vnetIdstringVNET for network connectivity.
zonesarrayThe availability zones.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, network_anchor_name, subscription_idGet a NetworkAnchor.
list_by_resource_groupselectresource_group_name, subscription_idList NetworkAnchor resources by resource group.
list_by_subscriptionselectsubscription_idList NetworkAnchor resources by subscription ID.
create_or_updateinsertresource_group_name, network_anchor_name, subscription_id, locationCreate a NetworkAnchor.
updateupdateresource_group_name, network_anchor_name, subscription_idUpdate a NetworkAnchor.
create_or_updatereplaceresource_group_name, network_anchor_name, subscription_id, locationCreate a NetworkAnchor.
deletedeleteresource_group_name, network_anchor_name, subscription_idDelete a NetworkAnchor.

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
network_anchor_namestringThe name of the NetworkAnchor. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get a NetworkAnchor.

SELECT
id,
name,
cidrBlock,
dnsForwardingEndpointIpAddress,
dnsForwardingEndpointNsgRulesUrl,
dnsForwardingRules,
dnsForwardingRulesUrl,
dnsListeningEndpointAllowedCidrs,
dnsListeningEndpointIpAddress,
dnsListeningEndpointNsgRulesUrl,
isOracleDnsForwardingEndpointEnabled,
isOracleDnsListeningEndpointEnabled,
isOracleToAzureDnsZoneSyncEnabled,
location,
ociBackupCidrBlock,
ociSubnetId,
ociVcnDnsLabel,
ociVcnId,
provisioningState,
resourceAnchorId,
subnetId,
systemData,
tags,
type,
vnetId,
zones
FROM azure_isv.oracledatabase.network_anchors
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND network_anchor_name = '{{ network_anchor_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a NetworkAnchor.

INSERT INTO azure_isv.oracledatabase.network_anchors (
tags,
location,
properties,
zones,
resource_group_name,
network_anchor_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ zones }}',
'{{ resource_group_name }}',
'{{ network_anchor_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type,
zones
;

UPDATE examples

Update a NetworkAnchor.

UPDATE azure_isv.oracledatabase.network_anchors
SET
zones = '{{ zones }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_anchor_name = '{{ network_anchor_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type,
zones;

REPLACE examples

Create a NetworkAnchor.

REPLACE azure_isv.oracledatabase.network_anchors
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
zones = '{{ zones }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_anchor_name = '{{ network_anchor_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type,
zones;

DELETE examples

Delete a NetworkAnchor.

DELETE FROM azure_isv.oracledatabase.network_anchors
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND network_anchor_name = '{{ network_anchor_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;