-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All Modules under Prism namespace #571
base: release/2.0
Are you sure you want to change the base?
Conversation
create/delete backup target create/delete restore source fetch backup target and restore source list backup targets list PCs
|
||
class BaseInfoModule(BasePEModule): | ||
""" | ||
Base Info module class for Nutanix PC v4 list APIs based modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Base Info module class for Nutanix PC v4 list APIs based modules | |
Base Info module class for Nutanix PE v4 list APIs based modules |
This method will return restore source info using external ID. | ||
Args: | ||
module: Ansible module | ||
api_instance: DomainManagerBackupApi instance from ntnx_prism_py_client sdk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
api_instance: DomainManagerBackupApi instance from ntnx_prism_py_client sdk | |
api_instance: DomainManagerBackupsApi instance from ntnx_prism_py_client sdk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this file
This method will return backup target info using external ID. | ||
Args: | ||
module: Ansible module | ||
api_instance: DomainManagerBackupApi instance from ntnx_prism_py_client sdk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
api_instance: DomainManagerBackupApi instance from ntnx_prism_py_client sdk | |
api_instance: DomainManagerBackupsApi instance from ntnx_prism_py_client sdk |
- Abhinav Bansal (@abhinavbansal29) | ||
""" | ||
|
||
EXAMPLES = r""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add examples and return
#!/usr/bin/python | ||
# -*- coding: utf-8 -*- | ||
|
||
# Copyright: (c) 2021, Prem Karat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copyright: (c) 2025, Nutanix
extends_documentation_fragment: | ||
- nutanix.ncp.ntnx_credentials | ||
- nutanix.ncp.ntnx_operations_v2 | ||
author: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
author:
- Abhinav Bansal (@abhinavbansal29)
- Abhinav Bansal (@abhinavbansal29) | ||
""" | ||
|
||
EXAMPLES = r""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add examples and return
current_spec = get_pc_config(module, domain_manager_api, pc_ext_id) | ||
etag_value = get_etag(data=current_spec) | ||
if not etag_value: | ||
module.fail_json(msg="Failed to get etag value for the PC", **result) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
module.fail_json(msg="Failed to get etag value for the PC", **result) | |
module.fail_json(msg="Failed to get etag value for the PC for unregistering cluster", **result) |
Modules: