|
|
@ -17,7 +17,7 @@ DOCUMENTATION = '''
|
|
|
|
---
|
|
|
|
---
|
|
|
|
module: azure_rm_cosmosdbaccount
|
|
|
|
module: azure_rm_cosmosdbaccount
|
|
|
|
version_added: "2.8"
|
|
|
|
version_added: "2.8"
|
|
|
|
short_description: Manage Azure Database Account instance.
|
|
|
|
short_description: Manage Azure Database Account instance
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Create, update and delete instance of Azure Database Account.
|
|
|
|
- Create, update and delete instance of Azure Database Account.
|
|
|
|
|
|
|
|
|
|
|
@ -33,7 +33,7 @@ options:
|
|
|
|
location:
|
|
|
|
location:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The location of the resource group to which the resource belongs.
|
|
|
|
- The location of the resource group to which the resource belongs.
|
|
|
|
- Required when C(state) is I(present).
|
|
|
|
- Required when I(state=present).
|
|
|
|
kind:
|
|
|
|
kind:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Indicates the type of database account. This can only be set at database account creation.
|
|
|
|
- Indicates the type of database account. This can only be set at database account creation.
|
|
|
@ -48,7 +48,7 @@ options:
|
|
|
|
default_consistency_level:
|
|
|
|
default_consistency_level:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The default consistency level and configuration settings of the Cosmos DB account.
|
|
|
|
- The default consistency level and configuration settings of the Cosmos DB account.
|
|
|
|
- Required when C(state) is I(present).
|
|
|
|
- Required when I(state=present).
|
|
|
|
choices:
|
|
|
|
choices:
|
|
|
|
- 'eventual'
|
|
|
|
- 'eventual'
|
|
|
|
- 'session'
|
|
|
|
- 'session'
|
|
|
@ -57,18 +57,18 @@ options:
|
|
|
|
- 'consistent_prefix'
|
|
|
|
- 'consistent_prefix'
|
|
|
|
max_staleness_prefix:
|
|
|
|
max_staleness_prefix:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- "When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range
|
|
|
|
- When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated.
|
|
|
|
for this value is 1 - 2,147,483,647. Required when I(default_consistency_policy) is set to C(bounded_staleness)."
|
|
|
|
- Accepted range for this value is 1 - 2,147,483,647. Required when I(default_consistency_policy=bounded_staleness).
|
|
|
|
type: int
|
|
|
|
type: int
|
|
|
|
max_interval_in_seconds:
|
|
|
|
max_interval_in_seconds:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- "When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated.
|
|
|
|
- When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated.
|
|
|
|
Accepted range for this value is 5 - 86400. Required when I(default_consistency_policy) is set to C(bounded_staleness)."
|
|
|
|
- Accepted range for this value is 5 - 86400. Required when I(default_consistency_policy=bounded_staleness).
|
|
|
|
type: int
|
|
|
|
type: int
|
|
|
|
geo_rep_locations:
|
|
|
|
geo_rep_locations:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- An array that contains the georeplication locations enabled for the Cosmos DB account.
|
|
|
|
- An array that contains the georeplication locations enabled for the Cosmos DB account.
|
|
|
|
- Required when C(state) is I(present).
|
|
|
|
- Required when I(state=present).
|
|
|
|
type: list
|
|
|
|
type: list
|
|
|
|
suboptions:
|
|
|
|
suboptions:
|
|
|
|
name:
|
|
|
|
name:
|
|
|
@ -76,25 +76,27 @@ options:
|
|
|
|
- The name of the region.
|
|
|
|
- The name of the region.
|
|
|
|
failover_priority:
|
|
|
|
failover_priority:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- "The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority =
|
|
|
|
- The failover priority of the region. A failover priority of 0 indicates a write region.
|
|
|
|
(total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists."
|
|
|
|
- The maximum value for a failover priority = (total number of regions - 1).
|
|
|
|
|
|
|
|
- Failover priority values must be unique for each of the regions in which the database account exists.
|
|
|
|
type: int
|
|
|
|
type: int
|
|
|
|
database_account_offer_type:
|
|
|
|
database_account_offer_type:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Database account offer type, for example I(Standard)
|
|
|
|
- Database account offer type, for example I(Standard)
|
|
|
|
- Required when C(state) is I(present).
|
|
|
|
- Required when I(state=present).
|
|
|
|
ip_range_filter:
|
|
|
|
ip_range_filter:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- "Cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list
|
|
|
|
- Cosmos DB Firewall support. This value specifies the set of IP addresses or IP address ranges.
|
|
|
|
of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces."
|
|
|
|
- In CIDR form to be included as the allowed list of client IPs for a given database account.
|
|
|
|
|
|
|
|
- IP addresses/ranges must be comma separated and must not contain any spaces.
|
|
|
|
is_virtual_network_filter_enabled:
|
|
|
|
is_virtual_network_filter_enabled:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Flag to indicate whether to enable/disable Virtual Network ACL rules.
|
|
|
|
- Flag to indicate whether to enable/disable Virtual Network ACL rules.
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
enable_automatic_failover:
|
|
|
|
enable_automatic_failover:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- "Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will
|
|
|
|
- Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage.
|
|
|
|
result in a new write region for the account and is chosen based on the failover priorities configured for the account."
|
|
|
|
- Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
enable_cassandra:
|
|
|
|
enable_cassandra:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -140,7 +142,7 @@ extends_documentation_fragment:
|
|
|
|
- azure_tags
|
|
|
|
- azure_tags
|
|
|
|
|
|
|
|
|
|
|
|
author:
|
|
|
|
author:
|
|
|
|
- "Zim Kalinowski (@zikalino)"
|
|
|
|
- Zim Kalinowski (@zikalino)
|
|
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|