vmware.vmc.draas.api package¶
Submodules¶
vmware.vmc.draas.api.site_recovery_api module¶
Copyright (c) 2020 VMware, Inc
SPDX-License-Identifier: MIT
VMC DRaaS APIs
The version of the OpenAPI document: 1.0 Contact: anushah@vmware.com Generated by: https://openapi-generator.tech
-
class
vmware.vmc.draas.api.site_recovery_api.
SiteRecoveryApi
(api_client=None)¶ Bases:
object
NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech
Do not edit the class manually.
-
activate_site_recovery
(org, sddc, **kwargs)¶ Activate site recovery for the specified sddc # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.activate_site_recovery(org, sddc, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
sddc (str) – sddc identifier (required)
activate_site_recovery_config (ActivateSiteRecoveryConfig) – Customization, for example can specify custom extension key suffix for SRM.
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
Task If the method is called asynchronously, returns the request thread.
-
activate_site_recovery_with_http_info
(org, sddc, **kwargs)¶ Activate site recovery for the specified sddc # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.activate_site_recovery_with_http_info(org, sddc, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
sddc (str) – sddc identifier (required)
activate_site_recovery_config (ActivateSiteRecoveryConfig) – Customization, for example can specify custom extension key suffix for SRM.
_return_http_data_only – response data without head status code and headers
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
tuple(Task, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread.
-
deactivate_site_recovery
(org, sddc, **kwargs)¶ Deactivate site recovery for the specified sddc # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.deactivate_site_recovery(org, sddc, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
sddc (str) – sddc identifier (required)
force (bool) – If = ‘true’, will deactivate site recovery forcefully.
deactivate_hcx (bool) – If = ‘true’, will deactivate HCX.
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
Task If the method is called asynchronously, returns the request thread.
-
deactivate_site_recovery_with_http_info
(org, sddc, **kwargs)¶ Deactivate site recovery for the specified sddc # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.deactivate_site_recovery_with_http_info(org, sddc, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
sddc (str) – sddc identifier (required)
force (bool) – If = ‘true’, will deactivate site recovery forcefully.
deactivate_hcx (bool) – If = ‘true’, will deactivate HCX.
_return_http_data_only – response data without head status code and headers
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
tuple(Task, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread.
-
delete_srm
(org, sddc, srm_node, **kwargs)¶ Delete a SRM server. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_srm(org, sddc, srm_node, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
sddc (str) – sddc identifier (required)
srm_node (str) – SRM node identifier (required)
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
Task If the method is called asynchronously, returns the request thread.
-
delete_srm_with_http_info
(org, sddc, srm_node, **kwargs)¶ Delete a SRM server. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_srm_with_http_info(org, sddc, srm_node, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
sddc (str) – sddc identifier (required)
srm_node (str) – SRM node identifier (required)
_return_http_data_only – response data without head status code and headers
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
tuple(Task, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread.
-
get_replica_disk_collections
(org, sddc, **kwargs)¶ Query replica disk collections # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_replica_disk_collections(org, sddc, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
sddc (str) – sddc identifier (required)
datastore_mo_id (str) – Represents the datastore moref id to search.
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
list[ReplicaDiskCollection] If the method is called asynchronously, returns the request thread.
-
get_replica_disk_collections_with_http_info
(org, sddc, **kwargs)¶ Query replica disk collections # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_replica_disk_collections_with_http_info(org, sddc, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
sddc (str) – sddc identifier (required)
datastore_mo_id (str) – Represents the datastore moref id to search.
_return_http_data_only – response data without head status code and headers
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
tuple(list[ReplicaDiskCollection], status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread.
-
get_site_recovery
(org, sddc, **kwargs)¶ Query site recovery configuration for the specified sddc # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_site_recovery(org, sddc, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
sddc (str) – sddc identifier (required)
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
SiteRecovery If the method is called asynchronously, returns the request thread.
-
get_site_recovery_versions
(org, sddc, **kwargs)¶ Query site recovery versions for the specified sddc # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_site_recovery_versions(org, sddc, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
sddc (str) – sddc identifier (required)
version_source (str) – Represents the source for getting the version from.
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
SiteRecoveryVersions If the method is called asynchronously, returns the request thread.
-
get_site_recovery_versions_with_http_info
(org, sddc, **kwargs)¶ Query site recovery versions for the specified sddc # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_site_recovery_versions_with_http_info(org, sddc, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
sddc (str) – sddc identifier (required)
version_source (str) – Represents the source for getting the version from.
_return_http_data_only – response data without head status code and headers
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
tuple(SiteRecoveryVersions, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread.
-
get_site_recovery_with_http_info
(org, sddc, **kwargs)¶ Query site recovery configuration for the specified sddc # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_site_recovery_with_http_info(org, sddc, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
sddc (str) – sddc identifier (required)
_return_http_data_only – response data without head status code and headers
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
tuple(SiteRecovery, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread.
-
provision_additional_srm
(org, sddc, **kwargs)¶ Provision an additional SRM server. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.provision_additional_srm(org, sddc, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
sddc (str) – sddc identifier (required)
provision_srm_config (ProvisionSrmConfig) – Customization, for example can specify custom extension key suffix for SRM.
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
Task If the method is called asynchronously, returns the request thread.
-
provision_additional_srm_with_http_info
(org, sddc, **kwargs)¶ Provision an additional SRM server. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.provision_additional_srm_with_http_info(org, sddc, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
sddc (str) – sddc identifier (required)
provision_srm_config (ProvisionSrmConfig) – Customization, for example can specify custom extension key suffix for SRM.
_return_http_data_only – response data without head status code and headers
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
tuple(Task, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread.
-
vmware.vmc.draas.api.task_api module¶
Copyright (c) 2020 VMware, Inc
SPDX-License-Identifier: MIT
VMC DRaaS APIs
The version of the OpenAPI document: 1.0 Contact: anushah@vmware.com Generated by: https://openapi-generator.tech
-
class
vmware.vmc.draas.api.task_api.
TaskApi
(api_client=None)¶ Bases:
object
NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech
Do not edit the class manually.
-
vmc_draas_api_orgs_org_tasks_task_get
(org, task, **kwargs)¶ Get task details # noqa: E501
Retrieve details of a task. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.vmc_draas_api_orgs_org_tasks_task_get(org, task, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
task (str) – task identifier (required)
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
Task If the method is called asynchronously, returns the request thread.
-
vmc_draas_api_orgs_org_tasks_task_get_with_http_info
(org, task, **kwargs)¶ Get task details # noqa: E501
Retrieve details of a task. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.vmc_draas_api_orgs_org_tasks_task_get_with_http_info(org, task, async_req=True) >>> result = thread.get()
- Parameters
bool (async_req) – execute request asynchronously
org (str) – Organization identifier (required)
task (str) – task identifier (required)
_return_http_data_only – response data without head status code and headers
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
tuple(Task, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread.
-