default_security_rules
Creates, updates, deletes, gets or lists a default_security_rules
resource.
Overview
Name | default_security_rules |
Type | Resource |
Id | azure.network.default_security_rules |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Request successful. The operation returns the resulting SecurityRule resource.
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | The name of the resource that is unique within a resource group. This name can be used to access the resource. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
properties | object | Properties of the security rule. |
type | string | The type of the resource. |
Request successful. The operation returns a list of SecurityRule resources.
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | The name of the resource that is unique within a resource group. This name can be used to access the resource. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
properties | object | Properties of the security rule. |
type | string | The type of the resource. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | resourceGroupName , networkSecurityGroupName , defaultSecurityRuleName , subscriptionId | Get the specified default network security rule. | |
list | select | resourceGroupName , networkSecurityGroupName , subscriptionId | Gets all default security rules in a network security group. |
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 |
---|---|---|
defaultSecurityRuleName | string | The name of the default security rule. |
networkSecurityGroupName | string | The name of the network security group. |
resourceGroupName | string | The name of the resource group. |
subscriptionId | string (uuid) | The ID of the target subscription. The value must be an UUID. |
SELECT
examples
- get
- list
Get the specified default network security rule.
SELECT
id,
name,
etag,
properties,
type
FROM azure.network.default_security_rules
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND networkSecurityGroupName = '{{ networkSecurityGroupName }}' -- required
AND defaultSecurityRuleName = '{{ defaultSecurityRuleName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;
Gets all default security rules in a network security group.
SELECT
id,
name,
etag,
properties,
type
FROM azure.network.default_security_rules
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND networkSecurityGroupName = '{{ networkSecurityGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;