|
|
@ -20,7 +20,7 @@ module: azure_rm_storageaccount_facts
|
|
|
|
|
|
|
|
|
|
|
|
version_added: "2.1"
|
|
|
|
version_added: "2.1"
|
|
|
|
|
|
|
|
|
|
|
|
short_description: Get storage account facts.
|
|
|
|
short_description: Get storage account facts
|
|
|
|
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Get facts for one storage account or all storage accounts within a resource group.
|
|
|
|
- Get facts for one storage account or all storage accounts within a resource group.
|
|
|
@ -46,8 +46,8 @@ options:
|
|
|
|
version_added: "2.8"
|
|
|
|
version_added: "2.8"
|
|
|
|
show_blob_cors:
|
|
|
|
show_blob_cors:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Show the blob CORS settings for each of the storageaccount's blob.
|
|
|
|
- Show the blob CORS settings for each blob related to the storage account.
|
|
|
|
- Note that it will cost a lot time when list all storageaccount rather than querry a single one.
|
|
|
|
- Querying all storage accounts will take a long time.
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
version_added: "2.8"
|
|
|
|
version_added: "2.8"
|
|
|
|
|
|
|
|
|
|
|
@ -55,8 +55,8 @@ extends_documentation_fragment:
|
|
|
|
- azure
|
|
|
|
- azure
|
|
|
|
|
|
|
|
|
|
|
|
author:
|
|
|
|
author:
|
|
|
|
- "Chris Houseknecht (@chouseknecht)"
|
|
|
|
- Chris Houseknecht (@chouseknecht)
|
|
|
|
- "Matt Davis (@nitzmahone)"
|
|
|
|
- Matt Davis (@nitzmahone)
|
|
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
@ -79,7 +79,8 @@ EXAMPLES = '''
|
|
|
|
|
|
|
|
|
|
|
|
RETURN = '''
|
|
|
|
RETURN = '''
|
|
|
|
azure_storageaccounts:
|
|
|
|
azure_storageaccounts:
|
|
|
|
description: List of storage account dicts.
|
|
|
|
description:
|
|
|
|
|
|
|
|
- List of storage account dicts.
|
|
|
|
returned: always
|
|
|
|
returned: always
|
|
|
|
type: list
|
|
|
|
type: list
|
|
|
|
example: [{
|
|
|
|
example: [{
|
|
|
@ -103,170 +104,234 @@ azure_storageaccounts:
|
|
|
|
"type": "Microsoft.Storage/storageAccounts"
|
|
|
|
"type": "Microsoft.Storage/storageAccounts"
|
|
|
|
}]
|
|
|
|
}]
|
|
|
|
storageaccounts:
|
|
|
|
storageaccounts:
|
|
|
|
description: List of storage account dicts in resource module's parameter format.
|
|
|
|
description:
|
|
|
|
|
|
|
|
- List of storage account dicts in resource module's parameter format.
|
|
|
|
returned: always
|
|
|
|
returned: always
|
|
|
|
type: complex
|
|
|
|
type: complex
|
|
|
|
contains:
|
|
|
|
contains:
|
|
|
|
id:
|
|
|
|
id:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Resource ID.
|
|
|
|
- Resource ID.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/t
|
|
|
|
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/t
|
|
|
|
estaccount001"
|
|
|
|
estaccount001"
|
|
|
|
name:
|
|
|
|
name:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Name of the storage account to update or create.
|
|
|
|
- Name of the storage account to update or create.
|
|
|
|
sample: "testaccount001"
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
|
|
|
|
sample: testaccount001
|
|
|
|
location:
|
|
|
|
location:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Valid azure location. Defaults to location of the resource group.
|
|
|
|
- Valid Azure location. Defaults to location of the resource group.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: eastus
|
|
|
|
sample: eastus
|
|
|
|
account_type:
|
|
|
|
account_type:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Type of storage account.
|
|
|
|
- Type of storage account.
|
|
|
|
- "NOTE: Standard_ZRS and Premium_LRS accounts cannot be changed to other account types."
|
|
|
|
- C(Standard_ZRS) and C(Premium_LRS) accounts cannot be changed to other account types.
|
|
|
|
- Other account types cannot be changed to Standard_ZRS or Premium_LRS.
|
|
|
|
- Other account types cannot be changed to C(Standard_ZRS) or C(Premium_LRS).
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: Standard_ZRS
|
|
|
|
sample: Standard_ZRS
|
|
|
|
custom_domain:
|
|
|
|
custom_domain:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- User domain assigned to the storage account.
|
|
|
|
- User domain assigned to the storage account.
|
|
|
|
- Must be a dictionary with 'name' and 'use_sub_domain' keys where 'name' is the CNAME source.
|
|
|
|
- Must be a dictionary with I(name) and I(use_sub_domain) keys where I(name) is the CNAME source.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
type: complex
|
|
|
|
type: complex
|
|
|
|
contains:
|
|
|
|
contains:
|
|
|
|
name:
|
|
|
|
name:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- CNAME source.
|
|
|
|
- CNAME source.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: testaccount
|
|
|
|
sample: testaccount
|
|
|
|
use_sub_domain:
|
|
|
|
use_sub_domain:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- whether to use sub domain.
|
|
|
|
- Whether to use sub domain.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: bool
|
|
|
|
sample: true
|
|
|
|
sample: true
|
|
|
|
kind:
|
|
|
|
kind:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The 'kind' of storage.
|
|
|
|
- The kind of storage.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: Storage
|
|
|
|
sample: Storage
|
|
|
|
access_tier:
|
|
|
|
access_tier:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The access tier for this storage account.
|
|
|
|
- The access tier for this storage account.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: Hot
|
|
|
|
sample: Hot
|
|
|
|
https_only:
|
|
|
|
https_only:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Allows https traffic only to storage service if sets to true.
|
|
|
|
- Allows https traffic only to storage service when set to C(true).
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: bool
|
|
|
|
sample: false
|
|
|
|
sample: false
|
|
|
|
provisioning_state:
|
|
|
|
provisioning_state:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the status of the storage account at the time the operation was called.
|
|
|
|
- The status of the storage account at the time the operation was called.
|
|
|
|
- Possible values include 'Creating', 'ResolvingDNS', 'Succeeded'.
|
|
|
|
- Possible values include C(Creating), C(ResolvingDNS), C(Succeeded).
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: Succeeded
|
|
|
|
sample: Succeeded
|
|
|
|
secondary_location:
|
|
|
|
secondary_location:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the location of the geo-replicated secondary for the storage account.
|
|
|
|
- The location of the geo-replicated secondary for the storage account.
|
|
|
|
- Only available if the accountType is Standard_GRS or Standard_RAGRS.
|
|
|
|
- Only available if the I(account_type=Standard_GRS) or I(account_type=Standard_RAGRS).
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: westus
|
|
|
|
sample: westus
|
|
|
|
status_of_primary:
|
|
|
|
status_of_primary:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the status indicating whether the primary location of the storage account is available or unavailable.
|
|
|
|
- Status of the primary location of the storage account; either C(available) or C(unavailable).
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: available
|
|
|
|
sample: available
|
|
|
|
status_of_secondary:
|
|
|
|
status_of_secondary:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the status indicating whether the secondary location of the storage account is available or unavailable.
|
|
|
|
- Status of the secondary location of the storage account; either C(available) or C(unavailable).
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: available
|
|
|
|
sample: available
|
|
|
|
primary_location:
|
|
|
|
primary_location:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the location of the primary data center for the storage account.
|
|
|
|
- The location of the primary data center for the storage account.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: eastus
|
|
|
|
sample: eastus
|
|
|
|
primary_endpoints:
|
|
|
|
primary_endpoints:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object.
|
|
|
|
- URLs to retrieve a public I(blob), I(queue), or I(table) object.
|
|
|
|
- Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint.
|
|
|
|
- Note that C(Standard_ZRS) and C(Premium_LRS) accounts only return the blob endpoint.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
type: complex
|
|
|
|
type: complex
|
|
|
|
contains:
|
|
|
|
contains:
|
|
|
|
blob:
|
|
|
|
blob:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the primary blob endpoint and connection string.
|
|
|
|
- The primary blob endpoint and connection string.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
type: complex
|
|
|
|
type: complex
|
|
|
|
contains:
|
|
|
|
contains:
|
|
|
|
endpoint:
|
|
|
|
endpoint:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the primary blob endpoint.
|
|
|
|
- The primary blob endpoint.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: "https://testaccount001.blob.core.windows.net/"
|
|
|
|
sample: "https://testaccount001.blob.core.windows.net/"
|
|
|
|
connectionstring:
|
|
|
|
connectionstring:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Connectionstring of the blob endpoint
|
|
|
|
- Connectionstring of the blob endpoint.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: "DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=X;AccountKey=X;BlobEndpoint=X"
|
|
|
|
sample: "DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=X;AccountKey=X;BlobEndpoint=X"
|
|
|
|
queue:
|
|
|
|
queue:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the primary queue endpoint and connection string.
|
|
|
|
- The primary queue endpoint and connection string.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
type: complex
|
|
|
|
type: complex
|
|
|
|
contains:
|
|
|
|
contains:
|
|
|
|
endpoint:
|
|
|
|
endpoint:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the primary queue endpoint.
|
|
|
|
- The primary queue endpoint.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: "https://testaccount001.queue.core.windows.net/"
|
|
|
|
sample: "https://testaccount001.queue.core.windows.net/"
|
|
|
|
connectionstring:
|
|
|
|
connectionstring:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Connectionstring of the queue endpoint
|
|
|
|
- Connectionstring of the queue endpoint.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: "DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=X;AccountKey=X;QueueEndpoint=X"
|
|
|
|
sample: "DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=X;AccountKey=X;QueueEndpoint=X"
|
|
|
|
table:
|
|
|
|
table:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the primary table endpoint and connection string.
|
|
|
|
- The primary table endpoint and connection string.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
type: complex
|
|
|
|
type: complex
|
|
|
|
contains:
|
|
|
|
contains:
|
|
|
|
endpoint:
|
|
|
|
endpoint:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the primary table endpoint.
|
|
|
|
- The primary table endpoint.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: "https://testaccount001.table.core.windows.net/"
|
|
|
|
sample: "https://testaccount001.table.core.windows.net/"
|
|
|
|
connectionstring:
|
|
|
|
connectionstring:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Connectionstring of the table endpoint
|
|
|
|
- Connectionstring of the table endpoint.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: "DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=X;AccountKey=X;TableEndpoint=X"
|
|
|
|
sample: "DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=X;AccountKey=X;TableEndpoint=X"
|
|
|
|
key:
|
|
|
|
key:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The account key for the primary_endpoints
|
|
|
|
- The account key for the primary_endpoints
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
|
sample: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
|
secondary_endpoints:
|
|
|
|
secondary_endpoints:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location.
|
|
|
|
- The URLs to retrieve a public I(blob), I(queue), or I(table) object from the secondary location.
|
|
|
|
- Only available if the SKU name is Standard_RAGRS.
|
|
|
|
- Only available if the SKU I(name=Standard_RAGRS).
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
type: complex
|
|
|
|
type: complex
|
|
|
|
contains:
|
|
|
|
contains:
|
|
|
|
blob:
|
|
|
|
blob:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the secondary blob endpoint and connection string.
|
|
|
|
- The secondary blob endpoint and connection string.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
type: complex
|
|
|
|
type: complex
|
|
|
|
contains:
|
|
|
|
contains:
|
|
|
|
endpoint:
|
|
|
|
endpoint:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the secondary blob endpoint.
|
|
|
|
- The secondary blob endpoint.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: "https://testaccount001.blob.core.windows.net/"
|
|
|
|
sample: "https://testaccount001.blob.core.windows.net/"
|
|
|
|
connectionstring:
|
|
|
|
connectionstring:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Connectionstring of the blob endpoint
|
|
|
|
- Connectionstring of the blob endpoint.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: "DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=X;AccountKey=X;BlobEndpoint=X"
|
|
|
|
sample: "DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=X;AccountKey=X;BlobEndpoint=X"
|
|
|
|
queue:
|
|
|
|
queue:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the secondary queue endpoint and connection string.
|
|
|
|
- The secondary queue endpoint and connection string.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
type: complex
|
|
|
|
type: complex
|
|
|
|
contains:
|
|
|
|
contains:
|
|
|
|
endpoint:
|
|
|
|
endpoint:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the secondary queue endpoint.
|
|
|
|
- The secondary queue endpoint.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: "https://testaccount001.queue.core.windows.net/"
|
|
|
|
sample: "https://testaccount001.queue.core.windows.net/"
|
|
|
|
connectionstring:
|
|
|
|
connectionstring:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Connectionstring of the queue endpoint
|
|
|
|
- Connectionstring of the queue endpoint.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: "DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=X;AccountKey=X;QueueEndpoint=X"
|
|
|
|
sample: "DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=X;AccountKey=X;QueueEndpoint=X"
|
|
|
|
table:
|
|
|
|
table:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the secondary table endpoint and connection string.
|
|
|
|
- The secondary table endpoint and connection string.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
type: complex
|
|
|
|
type: complex
|
|
|
|
contains:
|
|
|
|
contains:
|
|
|
|
endpoint:
|
|
|
|
endpoint:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Gets the secondary table endpoint.
|
|
|
|
- The secondary table endpoint.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: "https://testaccount001.table.core.windows.net/"
|
|
|
|
sample: "https://testaccount001.table.core.windows.net/"
|
|
|
|
connectionstring:
|
|
|
|
connectionstring:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Connectionstring of the table endpoint
|
|
|
|
- Connectionstring of the table endpoint.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: str
|
|
|
|
sample: "DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=X;AccountKey=X;TableEndpoint=X"
|
|
|
|
sample: "DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=X;AccountKey=X;TableEndpoint=X"
|
|
|
|
key:
|
|
|
|
key:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -275,12 +340,9 @@ storageaccounts:
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Resource tags.
|
|
|
|
- Resource tags.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
type: dict
|
|
|
|
type: dict
|
|
|
|
sample: { "tag1": "abc" }
|
|
|
|
sample: { "tag1": "abc" }
|
|
|
|
blob_cors:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Blob CORS of blob.
|
|
|
|
|
|
|
|
type: list
|
|
|
|
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|