virtual_network_peerings#

Exec module for managing Virtual Network Peerings.

async idem_azure.exec.azure.network.virtual_network_peerings.get(hub, ctx, resource_id: str, name: str = None, raw: bool = False) Dict[source]#

Gets Virtual Network Peerings from azure account.

Parameters:
  • resource_id (str) – The resource id of the Virtual network.

  • name (str, Optional) – The name of the resource

  • raw (bool, Optional) – Returns raw response if True. Defaults to False

Returns:

Dict[str, Any]

Examples

Calling this exec module function from the cli with resource_id

idem exec azure.network.virtual_network_peerings.get resource_id="value" raw="False"

Using in a state:

my_unmanaged_resource:
  exec.run:
    - path:  azure.network.virtual_network_peerings.get
    - kwargs:
        resource_id: "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Network/virtualNetworks/{virtual_network_name}/virtualNetworkPeerings/{virtual_network_peering_name}"
        raw: "False"
async idem_azure.exec.azure.network.virtual_network_peerings.list_(hub, ctx) Dict[source]#

Lists all Virtual Network Peerings.

Returns:

Dict[str, Any]

Examples

Calling this exec module function from the cli with resource_id

idem exec azure.network.virtual_network_peerings.list

Using in a state:

my_unmanaged_resource:
  exec.run:
    - path: azure.network.virtual_network_peerings.list