internet_gateways
Creates, updates, deletes, gets or lists a internet_gateways
resource.
Overview
Name | internet_gateways |
Type | Resource |
Id | azure.managed_network_fabric.internet_gateways |
Fields
- vw_internet_gateways
- internet_gateways
Name | Datatype | Description |
---|---|---|
annotation | text | field from the properties object |
internetGatewayName | text | field from the properties object |
internet_gateway_rule_id | text | field from the properties object |
ipv4_address | text | field from the properties object |
location | text | The geo-location where the resource lives |
network_fabric_controller_id | text | field from the properties object |
port | text | field from the properties object |
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. |
type | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Internet Gateway Properties defines the properties of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | internetGatewayName, resourceGroupName, subscriptionId | Implements Gateway GET method. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Displays Internet Gateways list by resource group GET method. |
list_by_subscription | SELECT | subscriptionId | Displays Internet Gateways list by subscription GET method. |
create | INSERT | internetGatewayName, resourceGroupName, subscriptionId, data__properties | Creates a Network Fabric Service Internet Gateway resource instance. |
delete | DELETE | internetGatewayName, resourceGroupName, subscriptionId | Execute a delete on Network Fabric Service Internet Gateway. |
update | UPDATE | internetGatewayName, resourceGroupName, subscriptionId | Execute patch on Network Fabric Service Internet Gateway. |
SELECT
examples
Displays Internet Gateways list by subscription GET method.
- vw_internet_gateways
- internet_gateways
SELECT
annotation,
internetGatewayName,
internet_gateway_rule_id,
ipv4_address,
location,
network_fabric_controller_id,
port,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
type
FROM azure.managed_network_fabric.vw_internet_gateways
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.internet_gateways
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new internet_gateways
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.managed_network_fabric.internet_gateways (
internetGatewayName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
tags,
location
)
SELECT
'{{ internetGatewayName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: annotation
value: string
- name: internetGatewayRuleId
value: []
- name: ipv4Address
value: string
- name: port
value: integer
- name: type
value: string
- name: networkFabricControllerId
value: []
- name: provisioningState
value: []
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a internet_gateways
resource.
/*+ update */
UPDATE azure.managed_network_fabric.internet_gateways
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
internetGatewayName = '{{ internetGatewayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified internet_gateways
resource.
/*+ delete */
DELETE FROM azure.managed_network_fabric.internet_gateways
WHERE internetGatewayName = '{{ internetGatewayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';