subnets#
Exec module for managing subnets.
- async idem_azure.exec.azure.network.subnets.get(hub, ctx, resource_id: str, name: str = None, raw: bool = False) Dict[str, Any] [source]#
Get subnet 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.subnets.get resource_id="value" raw="False"
Using in a state:
my_unmanaged_resource: exec.run: - path: azure.network.subnets.get - kwargs: resource_id: "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Network/virtualNetworks/{virtual_network_name}/subnets/{subnet_name}" raw: False
- async idem_azure.exec.azure.network.subnets.list_(hub, ctx) Dict [source]#
List of subnets
- Returns:
Dict[str, Any]
Examples
Calling this exec module function from the cli with resource_id:
idem exec azure.network.subnets.list
Using in a state:
my_unmanaged_resource: exec.run: - path: azure.network.subnets.list