com.vmware.appliance.recovery package¶
Subpackages¶
Submodules¶
com.vmware.appliance.recovery.backup_client module¶
-
class
com.vmware.appliance.recovery.backup_client.Job(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Jobclass provides methods to be performed on a backup job.-
class
BackupJobStatus(id=None, state=None, messages=None, progress=None, start_time=None, end_time=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Job.BackupJobStatusclass represents the status of a backup/restore job.Tip
The arguments are used to initialize data attributes with the same names.
-
class
BackupRequest(parts=None, backup_password=None, location_type=None, location=None, location_user=None, location_password=None, comment=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Job.BackupRequestclass represents a requested backup piece.Tip
The arguments are used to initialize data attributes with the same names.
-
class
BackupRestoreProcessState(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Job.BackupRestoreProcessStateclass defines the possible states of a backup/restore process.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
-
FAILED= BackupRestoreProcessState(string='FAILED')¶ Backup/Restore job failed.
-
INPROGRESS= BackupRestoreProcessState(string='INPROGRESS')¶ Backup/Restore job is in progress.
-
NONE= BackupRestoreProcessState(string='NONE')¶ Backup/Restore job is not started.
-
SUCCEEDED= BackupRestoreProcessState(string='SUCCEEDED')¶ Backup/Restore job completed successfully.
-
-
class
LocalizableMessage(id=None, default_message=None, args=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Job.LocalizableMessageclass represents a localizable message.Tip
The arguments are used to initialize data attributes with the same names.
-
class
LocationType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Job.LocationTypeclass defines the type of destination location for backup/restore. You specify the location type when you create a backup job. SeeJob.BackupRequest.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
-
FTP= LocationType(string='FTP')¶ Destination is FTP server.
-
FTPS= LocationType(string='FTPS')¶ Destination is FTPS server.
-
HTTP= LocationType(string='HTTP')¶ Destination is HTTP server.
-
HTTPS= LocationType(string='HTTPS')¶ Destination is HTTPS server.
-
SCP= LocationType(string='SCP')¶ Destination is SSH server.
-
-
class
ReturnResult(status=None, messages=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Job.ReturnResultclass contains the result information for the cancel operation.Tip
The arguments are used to initialize data attributes with the same names.
-
class
ReturnStatus(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Job.ReturnStatusclass defines the return type for the cancel operation. You specify the return status when you return the result of cancel job. SeeJob.ReturnResult.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
-
FAIL= ReturnStatus(string='FAIL')¶ Cancel operation failed.
-
OK= ReturnStatus(string='OK')¶ Cancel operation succeeded.
-
WARNING= ReturnStatus(string='WARNING')¶ Cancel operation passed with warnings.
-
-
cancel(id)¶ Cancel the backup job.
Parameters: id ( str) – ID (ID of job) The parameter must be an identifier for the resource type:com.vmware.appliance.recovery.backup.job.Return type: Job.ReturnResultReturns: BackupJobStatus Structure Raise: com.vmware.vapi.std.errors_client.NotFoundif backup associated with id does not exist.Raise: com.vmware.vapi.std.errors_client.Errorif any error occurs during the execution of the operation.
-
create(piece)¶ Initiate backup.
Parameters: piece ( Job.BackupRequest) – BackupRequest StructureReturn type: Job.BackupJobStatusReturns: BackupJobStatus Structure Raise: com.vmware.vapi.std.errors_client.FeatureInUseA backup or restore is already in progress.Raise: com.vmware.vapi.std.errors_client.Errorif any error occurs during the execution of the operation.
-
get(id)¶ See backup job progress/result.
Parameters: id ( str) – ID (ID of job) The parameter must be an identifier for the resource type:com.vmware.appliance.recovery.backup.job.Return type: Job.BackupJobStatusReturns: BackupJobStatus Structure Raise: com.vmware.vapi.std.errors_client.NotFoundif backup associated with id does not exist.Raise: com.vmware.vapi.std.errors_client.Errorif any error occurs during the execution of the operation.
-
class
-
class
com.vmware.appliance.recovery.backup_client.LocationSpec(location=None, location_user=None, location_password=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
LocationSpecclass has fields to represent a location on the backup server. This class was added in vSphere API 6.7Tip
The arguments are used to initialize data attributes with the same names.
-
class
com.vmware.appliance.recovery.backup_client.Parts(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfacePartsclass provides methods Provides list of parts optional for the backup-
class
LocalizableMessage(id=None, default_message=None, args=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructParts.LocalizableMessageclass Structure representing messageTip
The arguments are used to initialize data attributes with the same names.
-
class
Part(id=None, name=None, description=None, selected_by_default=None, optional=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructParts.Partclass Structure representing backup restore partTip
The arguments are used to initialize data attributes with the same names.
-
get(id)¶ Gets the size (in MB) of the part.
Parameters: id ( str) – Identifier of the part. The parameter must be an identifier for the resource type:com.vmware.appliance.recovery.backup.parts.Return type: longReturns: long Size of the part in megabytes. Raise: com.vmware.vapi.std.errors_client.Errorif any error occurs during the execution of the operation.
-
list()¶ Gets a list of the backup parts.
Return type: listofParts.PartReturns: Information about each of the backup parts. Raise: com.vmware.vapi.std.errors_client.Errorif any error occurs during the execution of the operation.
-
class
-
class
com.vmware.appliance.recovery.backup_client.Schedules(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Schedulesclass provides methods to be performed to manage backup schedules. This class was added in vSphere API 6.7-
class
CreateSpec(parts=None, backup_password=None, location=None, location_user=None, location_password=None, enable=None, recurrence_info=None, retention_info=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Schedules.CreateSpecclass contains fields to be specified for creating a new schedule. The structure includes parts, location information, encryption password and enable flag. This class was added in vSphere API 6.7Tip
The arguments are used to initialize data attributes with the same names.
-
class
DayOfWeek(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Schedules.DayOfWeekclass defines the set of days when backup can be scheduled. The days can be specified as a list of individual days. You specify the days when you set the recurrence for a schedule. SeeSchedules.RecurrenceInfo.days. This enumeration was added in vSphere API 6.7Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
-
FRIDAY= DayOfWeek(string='FRIDAY')¶ Friday. This class attribute was added in vSphere API 6.7
-
MONDAY= DayOfWeek(string='MONDAY')¶ Monday. This class attribute was added in vSphere API 6.7
-
SATURDAY= DayOfWeek(string='SATURDAY')¶ Saturday. This class attribute was added in vSphere API 6.7
-
SUNDAY= DayOfWeek(string='SUNDAY')¶ Sunday. This class attribute was added in vSphere API 6.7
-
THURSDAY= DayOfWeek(string='THURSDAY')¶ Thursday. This class attribute was added in vSphere API 6.7
-
TUESDAY= DayOfWeek(string='TUESDAY')¶ Tuesday. This class attribute was added in vSphere API 6.7
-
WEDNESDAY= DayOfWeek(string='WEDNESDAY')¶ Wednesday. This class attribute was added in vSphere API 6.7
-
-
class
Info(parts=None, location=None, location_user=None, enable=None, recurrence_info=None, retention_info=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Schedules.Infoclass contains information about an existing schedule. The structure includes Schedule ID, parts, location information, encryption password, enable flag, recurrence and retention information. This class was added in vSphere API 6.7Tip
The arguments are used to initialize data attributes with the same names.
-
class
RecurrenceInfo(minute=None, hour=None, days=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Schedules.RecurrenceInfoclass contains the recurrence information associated with a schedule. This class was added in vSphere API 6.7Tip
The arguments are used to initialize data attributes with the same names.
-
class
RetentionInfo(max_count=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Schedules.RetentionInfoclass contains retention information associated with a schedule. This class was added in vSphere API 6.7Tip
The arguments are used to initialize data attributes with the same names.
-
class
UpdateSpec(parts=None, backup_password=None, location=None, location_user=None, location_password=None, enable=None, recurrence_info=None, retention_info=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Schedules.UpdateSpecclass contains the fields of the existing schedule which can be updated. This class was added in vSphere API 6.7Tip
The arguments are used to initialize data attributes with the same names.
-
create(schedule, spec)¶ Creates a schedule. This method was added in vSphere API 6.7
Parameters: - schedule (
str) – Identifier of the schedule The parameter must be an identifier for the resource type:com.vmware.appliance.recovery.backup.schedule. - spec (
Schedules.CreateSpec) – CreateSpec Structure
Raise: com.vmware.vapi.std.errors_client.InvalidArgumentif provided with invalid schedule specification.Raise: com.vmware.vapi.std.errors_client.AlreadyExistsif the schedule with the given id already exists.Raise: com.vmware.vapi.std.errors_client.Errorif any error occurs during the execution of the operation.- schedule (
-
delete(schedule)¶ Deletes an existing schedule. This method was added in vSphere API 6.7
Parameters: schedule ( str) – Identifier of the schedule The parameter must be an identifier for the resource type:com.vmware.appliance.recovery.backup.schedule.Raise: com.vmware.vapi.std.errors_client.NotFoundif schedule associated with id does not exist.Raise: com.vmware.vapi.std.errors_client.Errorif any error occurs during the execution of the operation.
-
get(schedule)¶ Returns an existing schedule information based on id. This method was added in vSphere API 6.7
Parameters: schedule ( str) – Identifier of the schedule The parameter must be an identifier for the resource type:com.vmware.appliance.recovery.backup.schedule.Return type: Schedules.InfoReturns: Info Structure Raise: com.vmware.vapi.std.errors_client.NotFoundif schedule associated with id does not exist.Raise: com.vmware.vapi.std.errors_client.Errorif any error occurs during the execution of the operation.
-
list()¶ Returns a list of existing schedules with details. This method was added in vSphere API 6.7
Return type: dictofstrandSchedules.InfoReturns: Map of schedule id to Info Structure The key in the return value dictwill be an identifier for the resource type:com.vmware.appliance.recovery.backup.schedule.Raise: com.vmware.vapi.std.errors_client.Errorif any error occurs during the execution of the operation.
-
run(schedule, comment=None)¶ Initiate backup with the specified schedule. This method was added in vSphere API 6.7
Parameters: - schedule (
str) – Identifier of the schedule The parameter must be an identifier for the resource type:com.vmware.appliance.recovery.backup.schedule. - comment (
strorNone) – field that specifies the description for the backup. If None the backup will have an empty comment.
Return type: Returns: BackupJobStatus Structure
Raise: com.vmware.vapi.std.errors_client.FeatureInUseif a backup or restore is already in progress.Raise: com.vmware.vapi.std.errors_client.NotFoundif schedule associated with id does not exist.Raise: com.vmware.vapi.std.errors_client.Errorif any error occurs during the execution of the operation.- schedule (
-
update(schedule, spec)¶ Updates a schedule. This method was added in vSphere API 6.7
Parameters: - schedule (
str) – Identifier of the schedule The parameter must be an identifier for the resource type:com.vmware.appliance.recovery.backup.schedule. - spec (
Schedules.UpdateSpec) – UpdateSpec Structure
Raise: com.vmware.vapi.std.errors_client.InvalidArgumentif provided with invalid schedule specification.Raise: com.vmware.vapi.std.errors_client.NotFoundif schedule associated with id does not exist.Raise: com.vmware.vapi.std.errors_client.Errorif any error occurs during the execution of the operation.- schedule (
-
class
-
class
com.vmware.appliance.recovery.backup_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
-
class
com.vmware.appliance.recovery.backup_client.SystemName(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
SystemNameclass provides methods to enumerate system names of appliance backups. This class was added in vSphere API 6.7-
list(loc_spec)¶ Returns a list of system names for which backup archives exist under
loc_spec. This method was added in vSphere API 6.7Parameters: loc_spec ( LocationSpec) – LocationSpec StructureReturn type: listofstrReturns: list of system names The return value will contain identifiers for the resource type: com.vmware.appliance.recovery.backup.system_name.Raise: com.vmware.vapi.std.errors_client.NotFoundifloc_specdoesn’t refer to an existing location on the backup server.Raise: com.vmware.vapi.std.errors_client.Errorif any error occurs during the execution of the operation.
-
com.vmware.appliance.recovery.reconciliation_client module¶
-
class
com.vmware.appliance.recovery.reconciliation_client.Job(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Jobclass provides methods to create and get the status of reconciliation job. This class was added in vSphere API 6.7-
class
CreateSpec(sso_admin_user_name=None, sso_admin_user_password=None, ignore_warnings=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Job.CreateSpecclass has the fields to request the start of reconciliation job. This class was added in vSphere API 6.7Tip
The arguments are used to initialize data attributes with the same names.
-
class
Info(description=None, service=None, operation=None, parent=None, target=None, status=None, cancelable=None, error=None, start_time=None, end_time=None, messages=None, progress=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructThe
Job.Infoclass represents the reconciliation job information. It contains information related to current Status, any associated messages and progress as percentage. This class was added in vSphere API 6.7Tip
The arguments are used to initialize data attributes with the same names.
-
class
Status(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Job.Statusclass defines the status values that can be reported for an operation. This enumeration was added in vSphere API 6.7Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
-
FAILED= Status(string='FAILED')¶ The operation failed. This class attribute was added in vSphere API 6.7
-
NONE= Status(string='NONE')¶ The operation is not running. This class attribute was added in vSphere API 6.7
-
RUNNING= Status(string='RUNNING')¶ The operation is in progress. This class attribute was added in vSphere API 6.7
-
SUCCEEDED= Status(string='SUCCEEDED')¶ The operation completed successfully. This class attribute was added in vSphere API 6.7
-
-
create(spec)¶ Initiate reconciliation. This method was added in vSphere API 6.7
Parameters: spec ( Job.CreateSpec) – CreateSpec StructureReturn type: Job.InfoReturns: Info Structure Raise: com.vmware.vapi.std.errors_client.FeatureInUseA backup or restore is already in progress.Raise: com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateReconciliation is allowed only after restore has finished successfully.Raise: com.vmware.vapi.std.errors_client.Errorif any error occurs during the execution of the operation.
-
get()¶ Get reconciliation job progress/result. This method was added in vSphere API 6.7
Return type: Job.InfoReturns: Info Structure Raise: com.vmware.vapi.std.errors_client.NotFoundif there is no running reconciliation job.Raise: com.vmware.vapi.std.errors_client.Errorif any error occurs during the execution of the operation.
-
class
-
class
com.vmware.appliance.recovery.reconciliation_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
com.vmware.appliance.recovery.restore_client module¶
-
class
com.vmware.appliance.recovery.restore_client.Job(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceJobclass provides methods Performs restore operations-
class
BackupRestoreProcessState(string)¶ Bases:
vmware.vapi.bindings.enum.EnumJob.BackupRestoreProcessStateclass Defines state of backup/restore processNote
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
-
FAILED= BackupRestoreProcessState(string='FAILED')¶ Failed
-
INPROGRESS= BackupRestoreProcessState(string='INPROGRESS')¶ In progress
-
NONE= BackupRestoreProcessState(string='NONE')¶ Not started
-
SUCCEEDED= BackupRestoreProcessState(string='SUCCEEDED')¶ Completed successfully
-
-
class
LocalizableMessage(id=None, default_message=None, args=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructJob.LocalizableMessageclass Structure representing messageTip
The arguments are used to initialize data attributes with the same names.
-
class
LocationType(string)¶ Bases:
vmware.vapi.bindings.enum.EnumJob.LocationTypeclass Defines type of all locations for backup/restoreNote
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
-
FTP= LocationType(string='FTP')¶ Destination is FTP server
-
FTPS= LocationType(string='FTPS')¶ Destination is FTPS server
-
HTTP= LocationType(string='HTTP')¶ Destination is HTTP server
-
HTTPS= LocationType(string='HTTPS')¶ Destination is HTTPS server
-
SCP= LocationType(string='SCP')¶ Destination is SSH server
-
-
class
RestoreJobStatus(state=None, messages=None, progress=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructJob.RestoreJobStatusclass Structure representing backup restore statusTip
The arguments are used to initialize data attributes with the same names.
-
class
RestoreRequest(backup_password=None, location_type=None, location=None, location_user=None, location_password=None, sso_admin_user_name=None, sso_admin_user_password=None, ignore_warnings=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructJob.RestoreRequestclass Structure representing requested restore pieceTip
The arguments are used to initialize data attributes with the same names.
-
class
ReturnResult(status=None, messages=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStructJob.ReturnResultclass Structure representing precheck resultTip
The arguments are used to initialize data attributes with the same names.
-
class
ReturnStatus(string)¶ Bases:
vmware.vapi.bindings.enum.EnumJob.ReturnStatusclass Defines the state of precheckNote
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
-
FAIL= ReturnStatus(string='FAIL')¶ Check failed
-
OK= ReturnStatus(string='OK')¶ Check passed
-
WARNING= ReturnStatus(string='WARNING')¶ Passed with warnings
-
-
cancel()¶ Cancel the restore job
Return type: Job.ReturnResultReturns: RestoreJobStatus Structure Raise: com.vmware.vapi.std.errors_client.ErrorGeneric error
-
create(piece)¶ Initiate restore.
Parameters: piece ( Job.RestoreRequest) – RestoreRequest StructureReturn type: Job.RestoreJobStatusReturns: RestoreJobStatus Structure Raise: com.vmware.vapi.std.errors_client.FeatureInUseA backup or restore is already in progressRaise: com.vmware.vapi.std.errors_client.NotAllowedInCurrentStateRestore is allowed only after deployment and before firstbootRaise: com.vmware.vapi.std.errors_client.ErrorGeneric error
-
get()¶ See restore job progress/result.
Return type: Job.RestoreJobStatusReturns: RestoreJobStatus Structure Raise: com.vmware.vapi.std.errors_client.ErrorGeneric error
-
class
-
class
com.vmware.appliance.recovery.restore_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase