security_rules#
Exec module for managing network security_rules.
- async idem_azure.exec.azure.network.security_rules.get(hub, ctx, resource_id: str, name: str = None, raw: bool = False) Dict[str, Any] [source]#
Get network security rule resource from resource_id.
- Parameters:
- Returns:
Dict[str, Any]
Examples
Calling this exec module function from the cli with resource_id:
idem exec azure.network.security_rules.get resource_id="value"
Using in a state:
my_unmanaged_resource: exec.run: - path: azure.network.security_rules.get - kwargs: resource_id: "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Network/networkSecurityGroups/{network_security_group_name}/securityRules/{security_rule_name}"
- async idem_azure.exec.azure.network.security_rules.list_(hub, ctx) Dict [source]#
List of network security rules
- Returns:
Dict[str, Any]
Examples
Calling this exec module function from the cli with resource_id:
idem exec azure.network.security_rules.list
Using in a state:
my_unmanaged_resource: exec.run: - path: azure.network.security_rules.list