|
|
@ -17,7 +17,7 @@ DOCUMENTATION = '''
|
|
|
|
---
|
|
|
|
---
|
|
|
|
module: azure_rm_postgresqlserver
|
|
|
|
module: azure_rm_postgresqlserver
|
|
|
|
version_added: "2.5"
|
|
|
|
version_added: "2.5"
|
|
|
|
short_description: Manage PostgreSQL Server instance.
|
|
|
|
short_description: Manage PostgreSQL Server instance
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Create, update and delete instance of PostgreSQL Server.
|
|
|
|
- Create, update and delete instance of PostgreSQL Server.
|
|
|
|
|
|
|
|
|
|
|
@ -36,14 +36,16 @@ options:
|
|
|
|
suboptions:
|
|
|
|
suboptions:
|
|
|
|
name:
|
|
|
|
name:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The name of the sku, typically, a letter + Number code, e.g. P3.
|
|
|
|
- The name of the SKU, typically, tier + family + cores, for example C(B_Gen4_1), C(GP_Gen5_8).
|
|
|
|
tier:
|
|
|
|
tier:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The tier of the particular SKU, e.g. Basic.
|
|
|
|
- The tier of the particular SKU, for example C(Basic).
|
|
|
|
choices: ['basic', 'standard']
|
|
|
|
choices:
|
|
|
|
|
|
|
|
- Basic
|
|
|
|
|
|
|
|
- Standard
|
|
|
|
capacity:
|
|
|
|
capacity:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- "The scale up/out capacity, representing server's compute units."
|
|
|
|
- The scale up/out capacity, representing server's compute units.
|
|
|
|
size:
|
|
|
|
size:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The size code, to be interpreted by resource as appropriate.
|
|
|
|
- The size code, to be interpreted by resource as appropriate.
|
|
|
@ -53,10 +55,14 @@ options:
|
|
|
|
storage_mb:
|
|
|
|
storage_mb:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The maximum storage allowed for a server.
|
|
|
|
- The maximum storage allowed for a server.
|
|
|
|
|
|
|
|
type: int
|
|
|
|
version:
|
|
|
|
version:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Server version.
|
|
|
|
- Server version.
|
|
|
|
choices: ['9.5', '9.6', '10']
|
|
|
|
choices:
|
|
|
|
|
|
|
|
- '9.5'
|
|
|
|
|
|
|
|
- '9.6'
|
|
|
|
|
|
|
|
- '10'
|
|
|
|
enforce_ssl:
|
|
|
|
enforce_ssl:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Enable SSL enforcement.
|
|
|
|
- Enable SSL enforcement.
|
|
|
@ -64,13 +70,13 @@ options:
|
|
|
|
default: False
|
|
|
|
default: False
|
|
|
|
admin_username:
|
|
|
|
admin_username:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation)."
|
|
|
|
- The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
|
|
|
|
admin_password:
|
|
|
|
admin_password:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The password of the administrator login.
|
|
|
|
- The password of the administrator login.
|
|
|
|
create_mode:
|
|
|
|
create_mode:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Create mode of SQL Server
|
|
|
|
- Create mode of SQL Server.
|
|
|
|
default: Default
|
|
|
|
default: Default
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -85,7 +91,7 @@ extends_documentation_fragment:
|
|
|
|
- azure_tags
|
|
|
|
- azure_tags
|
|
|
|
|
|
|
|
|
|
|
|
author:
|
|
|
|
author:
|
|
|
|
- "Zim Kalinowski (@zikalino)"
|
|
|
|
- Zim Kalinowski (@zikalino)
|
|
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
@ -107,19 +113,19 @@ EXAMPLES = '''
|
|
|
|
RETURN = '''
|
|
|
|
RETURN = '''
|
|
|
|
id:
|
|
|
|
id:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Resource ID
|
|
|
|
- Resource ID.
|
|
|
|
returned: always
|
|
|
|
returned: always
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.DBforPostgreSQL/servers/mysqlsrv1b6dd89593
|
|
|
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.DBforPostgreSQL/servers/mysqlsrv1b6dd89593
|
|
|
|
version:
|
|
|
|
version:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- 'Server version. Possible values include: C(9.5), C(9.6), C(10)'
|
|
|
|
- Server version. Possible values include C(9.5), C(9.6), C(10).
|
|
|
|
returned: always
|
|
|
|
returned: always
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
sample: 9.6
|
|
|
|
sample: 9.6
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- 'A state of a server that is visible to user. Possible values include: C(Ready), C(Dropping), C(Disabled)'
|
|
|
|
- A state of a server that is visible to user. Possible values include C(Ready), C(Dropping), C(Disabled).
|
|
|
|
returned: always
|
|
|
|
returned: always
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
sample: Ready
|
|
|
|
sample: Ready
|
|
|
|