com.vmware.vmc package¶
Submodules¶
com.vmware.vmc.draas_client module¶
-
class
com.vmware.vmc.draas_client.
ReplicaDiskCollections
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
Parameters: config ( vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.-
get
(org, sddc, datastore_mo_id=None)¶ Query replica disk collections
Parameters: - org (
str
) – Organization identifier (required) - sddc (
str
) – sddc identifier (required) - datastore_mo_id (
str
orNone
) – Represents the datastore moref id to search. (optional)
Return type: list
ofcom.vmware.vmc.draas.model_client.ReplicaDiskCollection
Returns: Raise: com.vmware.vapi.std.errors_client.Unauthenticated
UnauthorizedRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not found- org (
-
-
class
com.vmware.vmc.draas_client.
SiteRecovery
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
Parameters: config ( vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.-
delete
(org, sddc, force=None)¶ Deactivate site recovery for the specified sddc
Parameters: - org (
str
) – Organization identifier (required) - sddc (
str
) – sddc identifier (required) - force (
bool
orNone
) – If = ‘true’, will deactivate site recovery forcefully. (optional)
Return type: Returns: com.vmware.vmc.draas.model.Task
Raise: com.vmware.vapi.std.errors_client.Unauthenticated
UnauthorizedRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Invalid action or bad argumentRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Cannot find site recovery configuration for sddc identifier- org (
-
get
(org, sddc)¶ Query site recovery configuration for the specified sddc
Parameters: - org (
str
) – Organization identifier (required) - sddc (
str
) – sddc identifier (required)
Return type: Returns: com.vmware.vmc.draas.model.SiteRecovery
Raise: com.vmware.vapi.std.errors_client.Unauthenticated
UnauthorizedRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Invalid action or bad argumentRaise: com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- org (
-
post
(org, sddc, activate_site_recovery_config=None)¶ Activate site recovery for the specified sddc
Parameters: - org (
str
) – Organization identifier (required) - sddc (
str
) – sddc identifier (required) - activate_site_recovery_config (
com.vmware.vmc.draas.model_client.ActivateSiteRecoveryConfig
orNone
) – Customization, for example can specify custom extension key suffix for SRM. (optional)
Return type: Returns: com.vmware.vmc.draas.model.Task
Raise: com.vmware.vapi.std.errors_client.Unauthenticated
UnauthorizedRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Invalid action or bad argumentRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Cannot find site recovery configuration for sddc identifier- org (
-
post_0
(org, sddc, site_recovery_node)¶ Upload backup script to specific appliance.
Parameters: - org (
str
) – Organization identifier (required) - sddc (
str
) – sddc identifier (required) - site_recovery_node (
str
) – Site recovery node identifier (required)
Return type: Returns: com.vmware.vmc.draas.model.Task
Raise: com.vmware.vapi.std.errors_client.Unauthenticated
UnauthorizedRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Invalid action or bad argumentRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Cannot find site recovery script file- org (
-
-
class
com.vmware.vmc.draas_client.
SiteRecoverySrmNodes
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
Parameters: config ( vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.-
delete
(org, sddc, srm_node)¶ Delete a SRM server.
Parameters: - org (
str
) – Organization identifier (required) - sddc (
str
) – sddc identifier (required) - srm_node (
str
) – SRM node identifier (required)
Return type: Returns: com.vmware.vmc.draas.model.Task
Raise: com.vmware.vapi.std.errors_client.Unauthenticated
UnauthorizedRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Invalid action or bad argumentRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Cannot find SDDC or SRM node- org (
-
post
(org, sddc, provision_srm_config=None)¶ Provision an additional SRM server.
Parameters: - org (
str
) – Organization identifier (required) - sddc (
str
) – sddc identifier (required) - provision_srm_config (
com.vmware.vmc.draas.model_client.ProvisionSrmConfig
orNone
) – Customization, for example can specify custom extension key suffix for SRM. (optional)
Return type: Returns: com.vmware.vmc.draas.model.Task
Raise: com.vmware.vapi.std.errors_client.Unauthenticated
UnauthorizedRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Invalid action or bad argumentRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Cannot find site recovery configuration for sddc identifier- org (
-
-
class
com.vmware.vmc.draas_client.
SiteRecoveryVersions
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
Parameters: config ( vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.-
GET_VERSION_SOURCE_LS
= 'ls'¶ Possible value for
versionSource
of methodSiteRecoveryVersions.get()
.
-
GET_VERSION_SOURCE_VAMICLI
= 'vamicli'¶ Possible value for
versionSource
of methodSiteRecoveryVersions.get()
.
-
get
(org, sddc, version_source=None)¶ Query site recovery versions for the specified sddc
Parameters: - org (
str
) – Organization identifier (required) - sddc (
str
) – sddc identifier (required) - version_source (
str
orNone
) – Represents the source for getting the version from. (optional)
Return type: Returns: com.vmware.vmc.draas.model.SiteRecoveryVersions
Raise: com.vmware.vapi.std.errors_client.Unauthenticated
UnauthorizedRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Invalid action or bad argumentRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Cannot find site recovery versions for sddc identifier- org (
-
-
class
com.vmware.vmc.draas_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
Parameters: stub_config ( vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
-
class
com.vmware.vmc.draas_client.
Task
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
Parameters: config ( vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.-
get
(org, task)¶ Retrieve details of a task.
Parameters: - org (
str
) – Organization identifier (required) - task (
str
) – task identifier (required)
Return type: Returns: com.vmware.vmc.draas.model.Task
Raise: com.vmware.vapi.std.errors_client.Unauthenticated
UnauthorizedRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Cannot find the task with given identifier- org (
-