Skip to main content

network_functions

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

Overview

Namenetwork_functions
TypeResource
Idazure_extras.hybrid_network.network_functions

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.
allowSoftwareUpdatebooleanIndicates if software updates are allowed during deployment.
configurationTypestringThe value which indicates if NF values are secrets. Required. Known values are: "Unknown", "Secret", and "Open".
etagstringA unique read-only string that changes whenever the resource is updated.
identityobjectThe managed identity of the network function.
locationstringThe geo-location where the resource lives. Required.
networkFunctionDefinitionGroupNamestringThe network function definition group name for the network function.
networkFunctionDefinitionOfferingLocationstringThe location of the network function definition offering.
networkFunctionDefinitionVersionstringThe network function definition version for the network function.
networkFunctionDefinitionVersionResourceReferenceobjectThe network function definition version resource reference.
nfviIdstringThe nfviId for the network function.
nfviTypestringThe nfvi type for the network function. Known values are: "Unknown", "AzureArcKubernetes", "AzureCore", and "AzureOperatorNexus".
provisioningStatestringThe provisioning state of the network function resource. Known values are: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", "Deleted", and "Converging".
publisherNamestringThe publisher name for the network function.
publisherScopestringThe scope of the publisher. Known values are: "Unknown" and "Private".
roleOverrideValuesarrayThe role configuration override values from the user.
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".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, network_function_name, subscription_idGets information about the specified network function resource.
list_by_resource_groupselectresource_group_name, subscription_idLists all the network function resources in a resource group.
list_by_subscriptionselectsubscription_idLists all the network functions in a subscription.
create_or_updateinsertresource_group_name, network_function_name, subscription_id, locationCreates or updates a network function resource.
update_tagsupdateresource_group_name, network_function_name, subscription_idUpdates the tags for the network function resource.
create_or_updatereplaceresource_group_name, network_function_name, subscription_id, locationCreates or updates a network function resource.
deletedeleteresource_group_name, network_function_name, subscription_idDeletes the specified network function resource.
execute_requestexecresource_group_name, network_function_name, subscription_id, serviceEndpoint, requestMetadataExecute a request to services on a containerized network function.

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

SELECT examples

Gets information about the specified network function resource.

SELECT
id,
name,
allowSoftwareUpdate,
configurationType,
etag,
identity,
location,
networkFunctionDefinitionGroupName,
networkFunctionDefinitionOfferingLocation,
networkFunctionDefinitionVersion,
networkFunctionDefinitionVersionResourceReference,
nfviId,
nfviType,
provisioningState,
publisherName,
publisherScope,
roleOverrideValues,
systemData,
tags,
type
FROM azure_extras.hybrid_network.network_functions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND network_function_name = '{{ network_function_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a network function resource.

INSERT INTO azure_extras.hybrid_network.network_functions (
tags,
location,
properties,
etag,
identity,
resource_group_name,
network_function_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ etag }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ network_function_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates the tags for the network function resource.

UPDATE azure_extras.hybrid_network.network_functions
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_function_name = '{{ network_function_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
identity,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates or updates a network function resource.

REPLACE azure_extras.hybrid_network.network_functions
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
etag = '{{ etag }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_function_name = '{{ network_function_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
etag,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes the specified network function resource.

DELETE FROM azure_extras.hybrid_network.network_functions
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND network_function_name = '{{ network_function_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Execute a request to services on a containerized network function.

EXEC azure_extras.hybrid_network.network_functions.execute_request 
@resource_group_name='{{ resource_group_name }}' --required,
@network_function_name='{{ network_function_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"serviceEndpoint": "{{ serviceEndpoint }}",
"requestMetadata": "{{ requestMetadata }}"
}'
;