public_ip_addresses#

Exec module for managing public ip addresses.

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

Get public ip address resource from resource_id.

Parameters:
  • resource_id (str) – The resource_id of public ip address

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

Using in a state:

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

List of public ip addresses

Returns:

Dict[str, Any]

Examples

Calling this exec module function from the cli with resource_id:

idem exec azure.network.public_ip_addresses.list

Using in a state:

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