network_function_definition_versions
Creates, updates, deletes, gets or lists a network_function_definition_versions resource.
Overview
| Name | network_function_definition_versions |
| Type | Resource |
| Id | azure_extras.hybrid_network.network_function_definition_versions |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_network_function_definition_group
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
deployParameters | string | The deployment parameters of the network function definition version. |
description | string | The network function definition version description. |
location | string | The geo-location where the resource lives. Required. |
networkFunctionType | string | The network function type. Required. Known values are: "Unknown", "VirtualNetworkFunction", and "ContainerizedNetworkFunction". |
provisioningState | string | The provisioning state of the network function definition version resource. Known values are: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", "Deleted", and "Converging". |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
versionState | string | The network function definition version state. Known values are: "Unknown", "Preview", "Active", "Deprecated", "Validating", and "ValidationFailed". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
deployParameters | string | The deployment parameters of the network function definition version. |
description | string | The network function definition version description. |
location | string | The geo-location where the resource lives. Required. |
networkFunctionType | string | The network function type. Required. Known values are: "Unknown", "VirtualNetworkFunction", and "ContainerizedNetworkFunction". |
provisioningState | string | The provisioning state of the network function definition version resource. Known values are: "Unknown", "Succeeded", "Accepted", "Deleting", "Failed", "Canceled", "Deleted", and "Converging". |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
versionState | string | The network function definition version state. Known values are: "Unknown", "Preview", "Active", "Deprecated", "Validating", and "ValidationFailed". |
Methods
The following methods are available for this resource:
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.
| Name | Datatype | Description |
|---|---|---|
network_function_definition_group_name | string | The name of the network function definition group. Required. |
network_function_definition_version_name | string | The name of the network function definition version. The name should conform to the SemVer 2.0.0 specification: https://semver.org/spec/v2.0.0.html. Required. |
publisher_name | string | The name of the publisher. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get
- list_by_network_function_definition_group
Gets information about a network function definition version.
SELECT
id,
name,
deployParameters,
description,
location,
networkFunctionType,
provisioningState,
systemData,
tags,
type,
versionState
FROM azure_extras.hybrid_network.network_function_definition_versions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND publisher_name = '{{ publisher_name }}' -- required
AND network_function_definition_group_name = '{{ network_function_definition_group_name }}' -- required
AND network_function_definition_version_name = '{{ network_function_definition_version_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Gets information about a list of network function definition versions under a network function definition group.
SELECT
id,
name,
deployParameters,
description,
location,
networkFunctionType,
provisioningState,
systemData,
tags,
type,
versionState
FROM azure_extras.hybrid_network.network_function_definition_versions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND publisher_name = '{{ publisher_name }}' -- required
AND network_function_definition_group_name = '{{ network_function_definition_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Creates or updates a network function definition version.
INSERT INTO azure_extras.hybrid_network.network_function_definition_versions (
tags,
location,
properties,
resource_group_name,
publisher_name,
network_function_definition_group_name,
network_function_definition_version_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ publisher_name }}',
'{{ network_function_definition_group_name }}',
'{{ network_function_definition_version_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;
# Description fields are for documentation purposes
- name: network_function_definition_versions
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the network_function_definition_versions resource.
- name: publisher_name
value: "{{ publisher_name }}"
description: Required parameter for the network_function_definition_versions resource.
- name: network_function_definition_group_name
value: "{{ network_function_definition_group_name }}"
description: Required parameter for the network_function_definition_versions resource.
- name: network_function_definition_version_name
value: "{{ network_function_definition_version_name }}"
description: Required parameter for the network_function_definition_versions resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the network_function_definition_versions resource.
- name: tags
value: "{{ tags }}"
description: |
Resource tags.
- name: location
value: "{{ location }}"
description: |
The geo-location where the resource lives. Required.
- name: properties
description: |
Network function definition version properties.
value:
provisioningState: "{{ provisioningState }}"
versionState: "{{ versionState }}"
description: "{{ description }}"
deployParameters: "{{ deployParameters }}"
networkFunctionType: "{{ networkFunctionType }}"
UPDATE examples
- update
Updates a network function definition version resource.
UPDATE azure_extras.hybrid_network.network_function_definition_versions
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND publisher_name = '{{ publisher_name }}' --required
AND network_function_definition_group_name = '{{ network_function_definition_group_name }}' --required
AND network_function_definition_version_name = '{{ network_function_definition_version_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;
REPLACE examples
- create_or_update
Creates or updates a network function definition version.
REPLACE azure_extras.hybrid_network.network_function_definition_versions
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND publisher_name = '{{ publisher_name }}' --required
AND network_function_definition_group_name = '{{ network_function_definition_group_name }}' --required
AND network_function_definition_version_name = '{{ network_function_definition_version_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;
DELETE examples
- delete
Deletes the specified network function definition version.
DELETE FROM azure_extras.hybrid_network.network_function_definition_versions
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND publisher_name = '{{ publisher_name }}' --required
AND network_function_definition_group_name = '{{ network_function_definition_group_name }}' --required
AND network_function_definition_version_name = '{{ network_function_definition_version_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;
Lifecycle Methods
- update_state
Update network function definition version state.
EXEC azure_extras.hybrid_network.network_function_definition_versions.update_state
@resource_group_name='{{ resource_group_name }}' --required,
@publisher_name='{{ publisher_name }}' --required,
@network_function_definition_group_name='{{ network_function_definition_group_name }}' --required,
@network_function_definition_version_name='{{ network_function_definition_version_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"versionState": "{{ versionState }}"
}'
;