Skip to main content

inbound_security_rule

Creates, updates, deletes, gets or lists an inbound_security_rule resource.

Overview

Nameinbound_security_rule
TypeResource
Idazure.network.inbound_security_rule

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringName of the resource.
etagstringA unique read-only string that changes whenever the resource is updated.
provisioningStatestringThe provisioning state of the resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
ruleTypestringRule Type. This should be either AutoExpire or Permanent. Auto Expire Rule only creates NSG rules. Permanent Rule creates NSG rule and SLB LB Rule. Known values are: "AutoExpire" and "Permanent". (AutoExpire, Permanent)
rulesarrayList of allowed rules.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, network_virtual_appliance_name, rule_collection_name, subscription_idRetrieves the available specified Network Virtual Appliance Inbound Security Rules Collection.
create_or_updateinsertresource_group_name, network_virtual_appliance_name, rule_collection_name, subscription_idCreates or updates the specified Network Virtual Appliance Inbound Security Rules.
create_or_updatereplaceresource_group_name, network_virtual_appliance_name, rule_collection_name, subscription_idCreates or updates the specified Network Virtual Appliance Inbound Security Rules.

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.

NameDatatypeDescription
network_virtual_appliance_namestringThe name of Network Virtual Appliance. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
rule_collection_namestringThe name of the resource that is unique within a resource group. This name can be used to access the resource. Required.
subscription_idstring

SELECT examples

Retrieves the available specified Network Virtual Appliance Inbound Security Rules Collection.

SELECT
id,
name,
etag,
provisioningState,
ruleType,
rules,
type
FROM azure.network.inbound_security_rule
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND network_virtual_appliance_name = '{{ network_virtual_appliance_name }}' -- required
AND rule_collection_name = '{{ rule_collection_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates the specified Network Virtual Appliance Inbound Security Rules.

INSERT INTO azure.network.inbound_security_rule (
id,
name,
properties,
resource_group_name,
network_virtual_appliance_name,
rule_collection_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ name }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ network_virtual_appliance_name }}',
'{{ rule_collection_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
type
;

REPLACE examples

Creates or updates the specified Network Virtual Appliance Inbound Security Rules.

REPLACE azure.network.inbound_security_rule
SET
id = '{{ id }}',
name = '{{ name }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_virtual_appliance_name = '{{ network_virtual_appliance_name }}' --required
AND rule_collection_name = '{{ rule_collection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
type;