routes#

Exec module for managing Network Routes

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

Gets network Route from azure account.

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

  • 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.routes.get resource_id="value" raw="False"

Using in a state:

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

Lists all Network Routes.

Returns:

Dict[str, Any]

Examples

Calling this exec module function from the cli with resource_id

idem exec azure.network.routes.list

Using in a state:

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