mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update azure_rm_loganalyticsworkspace related module document (#57158)
* Update azure_rm_loganalyticsworkspace related module documentation
This commit is contained in:
parent
0e25f8aef2
commit
6306f18fc3
2 changed files with 40 additions and 38 deletions
|
@ -17,7 +17,7 @@ DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: azure_rm_loganalyticsworkspace
|
module: azure_rm_loganalyticsworkspace
|
||||||
version_added: "2.8"
|
version_added: "2.8"
|
||||||
short_description: Manage Azure Log Analytics workspaces.
|
short_description: Manage Azure Log Analytics workspaces
|
||||||
description:
|
description:
|
||||||
- Create, delete Azure Log Analytics workspaces.
|
- Create, delete Azure Log Analytics workspaces.
|
||||||
options:
|
options:
|
||||||
|
@ -41,7 +41,7 @@ options:
|
||||||
- Resource location.
|
- Resource location.
|
||||||
sku:
|
sku:
|
||||||
description:
|
description:
|
||||||
- The SKU of the workspace
|
- The SKU of the workspace.
|
||||||
choices:
|
choices:
|
||||||
- free
|
- free
|
||||||
- standard
|
- standard
|
||||||
|
@ -54,13 +54,13 @@ options:
|
||||||
retention_in_days:
|
retention_in_days:
|
||||||
description:
|
description:
|
||||||
- The workspace data retention in days.
|
- The workspace data retention in days.
|
||||||
- -1 means Unlimited retention for the C(unlimited) C(sku).
|
- -1 means Unlimited retention for I(sku=unlimited).
|
||||||
- 730 days is the maximum allowed for all other C(sku)s.
|
- 730 days is the maximum allowed for all other SKUs.
|
||||||
intelligence_packs:
|
intelligence_packs:
|
||||||
description:
|
description:
|
||||||
- Manage intelligence packs possible for this workspace.
|
- Manage intelligence packs possible for this workspace.
|
||||||
- "Enable one pack by setting it to C(true). E.g. {'Backup': true}."
|
- Enable one pack by setting it to C(true). For example "Backup:true".
|
||||||
- "Disable one pack by setting it to C(false). E.g. {'Backup': false}."
|
- Disable one pack by setting it to C(false). For example "Backup:false".
|
||||||
- Other intelligence packs not list in this property will not be changed.
|
- Other intelligence packs not list in this property will not be changed.
|
||||||
type: dict
|
type: dict
|
||||||
extends_documentation_fragment:
|
extends_documentation_fragment:
|
||||||
|
@ -68,7 +68,7 @@ extends_documentation_fragment:
|
||||||
- azure_tags
|
- azure_tags
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- "Yuwei Zhou (@yuwzho)"
|
- Yuwei Zhou (@yuwzho)
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
@ -82,7 +82,8 @@ EXAMPLES = '''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
id:
|
id:
|
||||||
description: Workspace resource path.
|
description:
|
||||||
|
- Workspace resource path.
|
||||||
type: str
|
type: str
|
||||||
returned: success
|
returned: success
|
||||||
example: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/m
|
example: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/m
|
||||||
|
@ -95,15 +96,15 @@ location:
|
||||||
example: eastus
|
example: eastus
|
||||||
sku:
|
sku:
|
||||||
description:
|
description:
|
||||||
- The SKU of the workspace
|
- The SKU of the workspace.
|
||||||
type: str
|
type: str
|
||||||
returned: success
|
returned: success
|
||||||
example: "per_gb2018"
|
example: "per_gb2018"
|
||||||
retention_in_days:
|
retention_in_days:
|
||||||
description:
|
description:
|
||||||
- The workspace data retention in days.
|
- The workspace data retention in days.
|
||||||
- -1 means Unlimited retention for the C(unlimited) C(sku).
|
- -1 means Unlimited retention for I(sku=unlimited).
|
||||||
- 730 days is the maximum allowed for all other C(sku)s.
|
- 730 days is the maximum allowed for all other SKUs.
|
||||||
type: int
|
type: int
|
||||||
returned: success
|
returned: success
|
||||||
example: 40
|
example: 40
|
||||||
|
@ -115,25 +116,25 @@ intelligence_packs:
|
||||||
example: ['name': 'CapacityPerformance', 'enabled': true]
|
example: ['name': 'CapacityPerformance', 'enabled': true]
|
||||||
management_groups:
|
management_groups:
|
||||||
description:
|
description:
|
||||||
- List of management groups connected to the workspace.
|
- Management groups connected to the workspace.
|
||||||
type: list
|
type: dict
|
||||||
returned: success
|
returned: success
|
||||||
example: "{'value': []}"
|
example: {'value': []}
|
||||||
shared_keys:
|
shared_keys:
|
||||||
description:
|
description:
|
||||||
- Shared keys for the workspace.
|
- Shared keys for the workspace.
|
||||||
type: list
|
type: dict
|
||||||
returned: success
|
returned: success
|
||||||
example: "{
|
example: {
|
||||||
'primarySharedKey': 'BozLY1JnZbxu0jWUQSY8iRPEM8ObmpP8rW+8bUl3+HpDJI+n689SxXgTgU7k1qdxo/WugRLxechxbolAfHM5uA==',
|
'primarySharedKey': 'BozLY1JnZbxu0jWUQSY8iRPEM8ObmpP8rW+8bUl3+HpDJI+n689SxXgTgU7k1qdxo/WugRLxechxbolAfHM5uA==',
|
||||||
'secondarySharedKey': '7tDt5W0JBrCQKtQA3igfFltLSzJeyr9LmuT+B/ibzd8cdC1neZ1ePOQLBx5NUzc0q2VUIK0cLhWNyFvo/hT8Ww=='
|
'secondarySharedKey': '7tDt5W0JBrCQKtQA3igfFltLSzJeyr9LmuT+B/ibzd8cdC1neZ1ePOQLBx5NUzc0q2VUIK0cLhWNyFvo/hT8Ww=='
|
||||||
}"
|
}
|
||||||
usages:
|
usages:
|
||||||
description:
|
description:
|
||||||
- List of usage metrics for the workspace.
|
- Usage metrics for the workspace.
|
||||||
type: list
|
type: dict
|
||||||
returned: success
|
returned: success
|
||||||
example: "{
|
example: {
|
||||||
'value': [
|
'value': [
|
||||||
{
|
{
|
||||||
'name': {
|
'name': {
|
||||||
|
@ -147,7 +148,7 @@ usages:
|
||||||
'quotaPeriod': 'P1D'
|
'quotaPeriod': 'P1D'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}"
|
}
|
||||||
''' # NOQA
|
''' # NOQA
|
||||||
|
|
||||||
from ansible.module_utils.azure_rm_common import AzureRMModuleBase, format_resource_id
|
from ansible.module_utils.azure_rm_common import AzureRMModuleBase, format_resource_id
|
||||||
|
|
|
@ -17,7 +17,7 @@ DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: azure_rm_loganalyticsworkspace_facts
|
module: azure_rm_loganalyticsworkspace_facts
|
||||||
version_added: "2.8"
|
version_added: "2.8"
|
||||||
short_description: Get facts of Azure Log Analytics workspaces.
|
short_description: Get facts of Azure Log Analytics workspaces
|
||||||
description:
|
description:
|
||||||
- Get, query Azure Log Analytics workspaces.
|
- Get, query Azure Log Analytics workspaces.
|
||||||
options:
|
options:
|
||||||
|
@ -51,7 +51,7 @@ extends_documentation_fragment:
|
||||||
- azure
|
- azure
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- "Yuwei Zhou (@yuwzho)"
|
- Yuwei Zhou (@yuwzho)
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -68,7 +68,8 @@ EXAMPLES = '''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
id:
|
id:
|
||||||
description: Workspace resource path.
|
description:
|
||||||
|
- Workspace resource path.
|
||||||
type: str
|
type: str
|
||||||
returned: success
|
returned: success
|
||||||
example: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/m
|
example: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/m
|
||||||
|
@ -81,15 +82,15 @@ location:
|
||||||
example: "eastus"
|
example: "eastus"
|
||||||
sku:
|
sku:
|
||||||
description:
|
description:
|
||||||
- The SKU of the workspace
|
- The SKU of the workspace.
|
||||||
type: str
|
type: str
|
||||||
returned: success
|
returned: success
|
||||||
example: "per_gb2018"
|
example: "per_gb2018"
|
||||||
retention_in_days:
|
retention_in_days:
|
||||||
description:
|
description:
|
||||||
- The workspace data retention in days.
|
- The workspace data retention in days.
|
||||||
- -1 means Unlimited retention for the C(unlimited) C(sku).
|
- -1 means Unlimited retention for I(sku=unlimited).
|
||||||
- 730 days is the maximum allowed for all other C(sku)s.
|
- 730 days is the maximum allowed for all other SKUs.
|
||||||
type: int
|
type: int
|
||||||
returned: success
|
returned: success
|
||||||
example: 40
|
example: 40
|
||||||
|
@ -98,28 +99,28 @@ intelligence_packs:
|
||||||
- Lists all the intelligence packs possible and whether they are enabled or disabled for a given workspace.
|
- Lists all the intelligence packs possible and whether they are enabled or disabled for a given workspace.
|
||||||
type: list
|
type: list
|
||||||
returned: success
|
returned: success
|
||||||
example: ['name': 'CapacityPerformance', 'enabled': true]
|
example: [ {'name': 'CapacityPerformance', 'enabled': true} ]
|
||||||
management_groups:
|
management_groups:
|
||||||
description:
|
description:
|
||||||
- List of management groups connected to the workspace.
|
- Management groups connected to the workspace.
|
||||||
type: list
|
type: dict
|
||||||
returned: success
|
returned: success
|
||||||
example: "{'value': []}"
|
example: {'value': []}
|
||||||
shared_keys:
|
shared_keys:
|
||||||
description:
|
description:
|
||||||
- Shared keys for the workspace.
|
- Shared keys for the workspace.
|
||||||
type: list
|
type: dict
|
||||||
returned: success
|
returned: success
|
||||||
example: "{
|
example: {
|
||||||
'primarySharedKey': 'BozLY1JnZbxu0jWUQSY8iRPEM8ObmpP8rW+8bUl3+HpDJI+n689SxXgTgU7k1qdxo/WugRLxechxbolAfHM5uA==',
|
'primarySharedKey': 'BozLY1JnZbxu0jWUQSY8iRPEM8ObmpP8rW+8bUl3+HpDJI+n689SxXgTgU7k1qdxo/WugRLxechxbolAfHM5uA==',
|
||||||
'secondarySharedKey': '7tDt5W0JBrCQKtQA3igfFltLSzJeyr9LmuT+B/ibzd8cdC1neZ1ePOQLBx5NUzc0q2VUIK0cLhWNyFvo/hT8Ww=='
|
'secondarySharedKey': '7tDt5W0JBrCQKtQA3igfFltLSzJeyr9LmuT+B/ibzd8cdC1neZ1ePOQLBx5NUzc0q2VUIK0cLhWNyFvo/hT8Ww=='
|
||||||
}"
|
}
|
||||||
usages:
|
usages:
|
||||||
description:
|
description:
|
||||||
- List of usage metrics for the workspace.
|
- Usage metrics for the workspace.
|
||||||
type: list
|
type: dict
|
||||||
returned: success
|
returned: success
|
||||||
example: "{
|
example: {
|
||||||
'value': [
|
'value': [
|
||||||
{
|
{
|
||||||
'name': {
|
'name': {
|
||||||
|
@ -133,7 +134,7 @@ usages:
|
||||||
'quotaPeriod': 'P1D'
|
'quotaPeriod': 'P1D'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}"
|
}
|
||||||
''' # NOQA
|
''' # NOQA
|
||||||
|
|
||||||
from ansible.module_utils.azure_rm_common import AzureRMModuleBase, format_resource_id
|
from ansible.module_utils.azure_rm_common import AzureRMModuleBase, format_resource_id
|
||||||
|
|
Loading…
Reference in a new issue