55 lines
1.7 KiB
Python
55 lines
1.7 KiB
Python
#!/usr/bin/python
|
|
|
|
DOCUMENTATION = r'''
|
|
---
|
|
module: decort_account_info
|
|
|
|
description: See L(Module Documentation,https://repository.basistech.ru/BASIS/decort-ansible/wiki/Home). # noqa: E501
|
|
'''
|
|
|
|
from ansible.module_utils.basic import AnsibleModule
|
|
|
|
|
|
def main():
|
|
module = AnsibleModule(
|
|
argument_spec=dict(
|
|
app_id=dict(type='raw'),
|
|
app_secret=dict(type='raw'),
|
|
authenticator=dict(type='raw'),
|
|
controller_url=dict(type='raw'),
|
|
domain=dict(type='raw'),
|
|
jwt=dict(type='raw'),
|
|
oauth2_url=dict(type='raw'),
|
|
password=dict(type='raw'),
|
|
username=dict(type='raw'),
|
|
verify_ssl=dict(type='raw'),
|
|
ignore_api_compatibility=dict(type='raw'),
|
|
ignore_sdk_version_check=dict(type='raw'),
|
|
audits=dict(type='raw'),
|
|
computes=dict(type='raw'),
|
|
disks=dict(type='raw'),
|
|
flip_groups=dict(type='raw'),
|
|
id=dict(type='raw'),
|
|
images=dict(type='raw'),
|
|
name=dict(type='raw'),
|
|
resource_groups=dict(type='raw'),
|
|
resource_consumption=dict(type='raw'),
|
|
vinses=dict(type='raw'),
|
|
),
|
|
)
|
|
|
|
module.fail_json(
|
|
msg=(
|
|
'The functionality of the module has been moved to the modules '
|
|
'"decort_disk_list", "decort_rg_list", "decort_vm_list", '
|
|
'"decort_vins_list", "decort_image_list", '
|
|
'"decort_flip_group_list", "decort_account".'
|
|
'\nPlease use the new modules to get information about the objects'
|
|
' available to the account.'
|
|
),
|
|
)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|