internet_gateway_rules
Creates, updates, deletes, gets or lists a internet_gateway_rules
resource.
Overview
Name | internet_gateway_rules |
Type | Resource |
Id | azure.managed_network_fabric.internet_gateway_rules |
Fields
- vw_internet_gateway_rules
- internet_gateway_rules
Name | Datatype | Description |
---|---|---|
annotation | text | field from the properties object |
internetGatewayRuleName | text | field from the properties object |
internet_gateway_ids | 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 |
rule_properties | 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 | Internet Gateway Rule Properties defines the resource properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | internetGatewayRuleName, resourceGroupName, subscriptionId | Gets an Internet Gateway Rule resource. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Implements Internet Gateway Rules list by resource group GET method. |
list_by_subscription | SELECT | subscriptionId | List all Internet Gateway rules in the given subscription. |
create | INSERT | internetGatewayRuleName, resourceGroupName, subscriptionId, data__properties | Creates an Internet Gateway rule resource. |
delete | DELETE | internetGatewayRuleName, resourceGroupName, subscriptionId | Implements Internet Gateway Rules DELETE method. |
update | UPDATE | internetGatewayRuleName, resourceGroupName, subscriptionId | API to update certain properties of the Internet Gateway Rule resource. |
SELECT
examples
List all Internet Gateway rules in the given subscription.
- vw_internet_gateway_rules
- internet_gateway_rules
SELECT
annotation,
internetGatewayRuleName,
internet_gateway_ids,
location,
provisioning_state,
resourceGroupName,
rule_properties,
subscriptionId,
tags
FROM azure.managed_network_fabric.vw_internet_gateway_rules
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.internet_gateway_rules
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new internet_gateway_rules
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.managed_network_fabric.internet_gateway_rules (
internetGatewayRuleName,
resourceGroupName,
subscriptionId,
data__properties,
tags,
location,
properties
)
SELECT
'{{ internetGatewayRuleName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ 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: ruleProperties
value:
- name: action
value: string
- name: addressList
value:
- string
- name: provisioningState
value: []
- name: internetGatewayIds
value:
- string
UPDATE
example
Updates a internet_gateway_rules
resource.
/*+ update */
UPDATE azure.managed_network_fabric.internet_gateway_rules
SET
tags = '{{ tags }}'
WHERE
internetGatewayRuleName = '{{ internetGatewayRuleName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified internet_gateway_rules
resource.
/*+ delete */
DELETE FROM azure.managed_network_fabric.internet_gateway_rules
WHERE internetGatewayRuleName = '{{ internetGatewayRuleName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';