ip_prefixes
Creates, updates, deletes, gets or lists a ip_prefixes
resource.
Overview
Name | ip_prefixes |
Type | Resource |
Id | azure.managed_network_fabric.ip_prefixes |
Fields
- vw_ip_prefixes
- ip_prefixes
Name | Datatype | Description |
---|---|---|
administrative_state | text | field from the properties object |
annotation | text | field from the properties object |
configuration_state | text | field from the properties object |
ipPrefixName | text | field from the properties object |
ip_prefix_rules | text | field from the properties object |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | IP Prefix Properties defines the properties of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | ipPrefixName, resourceGroupName, subscriptionId | Implements IP Prefix GET method. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Implements IpPrefixes list by resource group GET method. |
list_by_subscription | SELECT | subscriptionId | Implements IpPrefixes list by subscription GET method. |
create | INSERT | ipPrefixName, resourceGroupName, subscriptionId, data__location, data__properties | Implements IP Prefix PUT method. |
delete | DELETE | ipPrefixName, resourceGroupName, subscriptionId | Implements IP Prefix DELETE method. |
update | UPDATE | ipPrefixName, resourceGroupName, subscriptionId | API to update certain properties of the IP Prefix resource. |
SELECT
examples
Implements IpPrefixes list by subscription GET method.
- vw_ip_prefixes
- ip_prefixes
SELECT
administrative_state,
annotation,
configuration_state,
ipPrefixName,
ip_prefix_rules,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.managed_network_fabric.vw_ip_prefixes
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.ip_prefixes
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new ip_prefixes
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.managed_network_fabric.ip_prefixes (
ipPrefixName,
resourceGroupName,
subscriptionId,
data__location,
data__properties,
tags,
location,
properties
)
SELECT
'{{ ipPrefixName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: annotation
value: string
- name: ipPrefixRules
value:
- - name: action
value: []
- name: sequenceNumber
value: integer
- name: networkPrefix
value: string
- name: condition
value: string
- name: subnetMaskLength
value: string
- name: configurationState
value: []
- name: provisioningState
value: []
- name: administrativeState
value: []
UPDATE
example
Updates a ip_prefixes
resource.
/*+ update */
UPDATE azure.managed_network_fabric.ip_prefixes
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
ipPrefixName = '{{ ipPrefixName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified ip_prefixes
resource.
/*+ delete */
DELETE FROM azure.managed_network_fabric.ip_prefixes
WHERE ipPrefixName = '{{ ipPrefixName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';