exec.azurerm.postgresql.server_key

Azure Resource Manager (ARM) PostgreSQL Server Key Operations Execution Module

New in version 4.0.0.

maintainer:

<devops@eitr.tech>

configuration:

This module requires Azure Resource Manager credentials to be passed as keyword arguments to every function or via acct in order to work properly.

Required provider parameters:

if using username and password:
  • subscription_id
  • username
  • password
if using a service principal:
  • subscription_id
  • tenant
  • client_id
  • secret

Optional provider parameters:

cloud_environment: Used to point the cloud driver to different API endpoints, such as Azure GovCloud. Possible values:

  • AZURE_PUBLIC_CLOUD (default)
  • AZURE_CHINA_CLOUD
  • AZURE_US_GOV_CLOUD
  • AZURE_GERMAN_CLOUD
idem_azurerm.exec.azurerm.postgresql.server_key.create_or_update(hub, ctx, name, server_name, resource_group, key_uri, **kwargs)

New in version 4.0.0.

Creates or updates a PostgreSQL Server key.

Parameters:
  • name – The name of the PostgreSQL Server key to be operated on (updated or created).
  • server_name – The name of the server.
  • resource_group – The name of the resource group. The name is case insensitive.
  • key_uri – The URI of the key.

CLI Example:

azurerm.postgresql.server_key.create_or_update test_name test_server test_group
idem_azurerm.exec.azurerm.postgresql.server_key.delete(hub, ctx, name, server_name, resource_group, **kwargs)

New in version 4.0.0.

Deletes the PostgreSQL Server key with the given name.

Parameters:
  • name – The name of the PostgreSQL Server key to be deleted.
  • server_name – The name of the server.
  • resource_group – The name of the resource group. The name is case insensitive.

CLI Example:

azurerm.postgresql.server_key.delete test_name test_server test_group
idem_azurerm.exec.azurerm.postgresql.server_key.get(hub, ctx, name, server_name, resource_group, **kwargs)

New in version 4.0.0.

Gets a PostgreSQL Server key.

Parameters:
  • name – The name of the PostgreSQL Server key to be retrieved.
  • server_name – The name of the server.
  • resource_group – The name of the resource group. The name is case insensitive.

CLI Example:

azurerm.postgresql.server_key.get test_name test_server test_group
idem_azurerm.exec.azurerm.postgresql.server_key.list_(hub, ctx, server_name, resource_group, **kwargs)

New in version 4.0.0.

Gets a list of Server keys.

Parameters:
  • server_name – The name of the server.
  • resource_group – The name of the resource group. The name is case insensitive.

CLI Example:

azurerm.postgresql.server_key.list test_server test_group