Skip to main content

network_functions

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

Overview

Namenetwork_functions
TypeResource
Idazure.hybrid_network.network_functions

Fields

The following fields are returned by SELECT queries:

Operation is successful. The operation returns the resulting network function resource.

NameDatatypeDescription
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
propertiesobjectNetwork function properties.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, networkFunctionName, subscriptionIdGets information about the specified network function resource.
list_by_resource_groupselectresourceGroupName, subscriptionIdLists all the network function resources in a resource group.
list_by_subscriptionselectsubscriptionIdLists all the network functions in a subscription.
create_or_updateinsertresourceGroupName, networkFunctionName, subscriptionIdCreates or updates a network function resource.
deletedeleteresourceGroupName, networkFunctionName, subscriptionIdDeletes the specified network function resource.
update_tagsexecresourceGroupName, networkFunctionName, subscriptionIdUpdates the tags for the network function resource.
execute_requestexecresourceGroupName, networkFunctionName, subscriptionId, 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
networkFunctionNamestringThe name of the network function.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets information about the specified network function resource.

SELECT
etag,
identity,
location,
properties,
tags
FROM azure.hybrid_network.network_functions
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND networkFunctionName = '{{ networkFunctionName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates or updates a network function resource.

INSERT INTO azure.hybrid_network.network_functions (
data__properties,
data__etag,
data__identity,
data__tags,
data__location,
resourceGroupName,
networkFunctionName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ etag }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}',
'{{ resourceGroupName }}',
'{{ networkFunctionName }}',
'{{ subscriptionId }}'
RETURNING
etag,
identity,
location,
properties,
tags
;

DELETE examples

Deletes the specified network function resource.

DELETE FROM azure.hybrid_network.network_functions
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND networkFunctionName = '{{ networkFunctionName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Updates the tags for the network function resource.

EXEC azure.hybrid_network.network_functions.update_tags 
@resourceGroupName='{{ resourceGroupName }}' --required,
@networkFunctionName='{{ networkFunctionName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;