Skip to main content

network_functions

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

Overview

Namenetwork_functions
TypeResource
Idazure.mpc_network_function.network_functions

Fields

NameDatatypeDescription
capacitytextfield from the properties object
deployment_notestextfield from the properties object
infrastructure_element_counttextfield from the properties object
locationtextThe geo-location where the resource lives
networkFunctionNametextfield from the properties object
network_function_administrative_statetextfield from the properties object
network_function_operational_statustextfield from the properties object
network_function_typetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
user_descriptiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTnetworkFunctionName, resourceGroupName, subscriptionIdGet a NetworkFunctionResource
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList NetworkFunctionResource resources by resource group
list_by_subscriptionSELECTsubscriptionIdList NetworkFunctionResource resources by subscription ID
create_or_updateINSERTnetworkFunctionName, resourceGroupName, subscriptionIdCreate a NetworkFunctionResource
deleteDELETEnetworkFunctionName, resourceGroupName, subscriptionIdDelete a NetworkFunctionResource
update_tagsEXECnetworkFunctionName, resourceGroupName, subscriptionIdUpdate a NetworkFunctionResource

SELECT examples

List NetworkFunctionResource resources by subscription ID

SELECT
capacity,
deployment_notes,
infrastructure_element_count,
location,
networkFunctionName,
network_function_administrative_state,
network_function_operational_status,
network_function_type,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
tags,
user_description
FROM azure.mpc_network_function.vw_network_functions
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new network_functions resource.

/*+ create */
INSERT INTO azure.mpc_network_function.network_functions (
networkFunctionName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ networkFunctionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

DELETE example

Deletes the specified network_functions resource.

/*+ delete */
DELETE FROM azure.mpc_network_function.network_functions
WHERE networkFunctionName = '{{ networkFunctionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';