network_functions
Creates, updates, deletes, gets or lists a network_functions
resource.
Overview
Name | network_functions |
Type | Resource |
Id | azure.mpc_network_function.network_functions |
Fields
- vw_network_functions
- network_functions
Name | Datatype | Description |
---|---|---|
capacity | text | field from the properties object |
deployment_notes | text | field from the properties object |
infrastructure_element_count | text | field from the properties object |
location | text | The geo-location where the resource lives |
networkFunctionName | text | field from the properties object |
network_function_administrative_state | text | field from the properties object |
network_function_operational_status | text | field from the properties object |
network_function_type | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
sku | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
user_description | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Network Function Properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | networkFunctionName, resourceGroupName, subscriptionId | Get a NetworkFunctionResource |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List NetworkFunctionResource resources by resource group |
list_by_subscription | SELECT | subscriptionId | List NetworkFunctionResource resources by subscription ID |
create_or_update | INSERT | networkFunctionName, resourceGroupName, subscriptionId | Create a NetworkFunctionResource |
delete | DELETE | networkFunctionName, resourceGroupName, subscriptionId | Delete a NetworkFunctionResource |
update_tags | EXEC | networkFunctionName, resourceGroupName, subscriptionId | Update a NetworkFunctionResource |
SELECT
examples
List NetworkFunctionResource resources by subscription ID
- vw_network_functions
- network_functions
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 }}';
SELECT
location,
properties,
tags
FROM azure.mpc_network_function.network_functions
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new network_functions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.mpc_network_function.network_functions (
networkFunctionName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ networkFunctionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: sku
value: []
- name: networkFunctionType
value: []
- name: networkFunctionAdministrativeState
value: []
- name: networkFunctionOperationalStatus
value: []
- name: infrastructureElementCount
value: integer
- name: capacity
value: integer
- name: userDescription
value: string
- name: deploymentNotes
value: string
- name: provisioningState
value: []
- name: tags
value: object
- name: location
value: string
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 }}';