List of API Operations

The following tables provide a list of Site Recovery Manager Appliance Management API methods organized by approximate order of use:

Table 1. Appliance Manager
Method Description of Operation
GetAllTimeZones Gets all available time zones. It returns list representing all available time zones.
GetCurrentDateTime Gets current date and time of the appliance. It returns a vmodl.DateTime object with the appliance date and time.
GetCurrentTimeZone Gets current time zone of the appliance. It returns a string representing the current time zone.
GetDiskInfo Retrieves appliance disks information. It returns a DiskInfo object which contains disk information about the appliance.
GetInfo Retrieves appliance information. It returns an ApplianceInfo object which contains information about the appliance.
GetNetworkInfo Retrieves appliance network information. It returns a NetworkInfo object which contains network information about the appliance.
GetTimeSyncConfig Gets appliance time sync mode. It returns a TimeSyncInfo object representing the timeSyncMode.
Restart Restarts the appliance.
SetCurrentTimeZone Sets appliance time zone.
SetNetworkInfo Sets appliance network information.
SetTimeSync Sets appliance time sync information.
Stop Stops the appliance.
Table 2. Configuration Manager
Method Description of Operation
CheckRegistration Checks whether the given extension key is already registered in SSO, lookup service, and as vCenter extension.
ClearSrmConfiguration Clears the SRM server configuration with the vSphere infrastructure.
ConfigureSrm Configures the SRM server and connects it to the vSphere infrastructure.
ConfigureSyslogForwarding Sets syslog log forwarding. When enable is set to true, this method will add a rule to rsyslog configuration for given apps and restart rsyslog service.
ConfigureSyslogServers Sets the syslog log forwarding.
EnableSyslogLogging Enables or disables logging to syslog.
GetRunningTask Gets the currently active configuration task or null.
GetSyslogServers Gets the syslog log forwarding information.
IsReconfigureRequired Checks if the reconfigure operation is required after an upgrade.
ListVcServices Lists all the vCenters in the Platform Service Controller (PSC).
ReadCurrentConfig Reads the specification for the currently configured SRM server.
SendSyslogTestMessage Sends test message to all configured syslog servers.
ValidateConnection Validates connections to the vSphere infrastructure.
Table 3. Configuration Task
Method Description of Operation
GetTaskInfo Gets the current configuration task status.
CancelSrmConfiguration Cancels a running configuration task. Multiple cancel requests are treated as a single cancellation request.
Table 4. Database Manager
Method Description of Operation
ReadStatus Checks the database status and return the version information.
ChangePassword Changes the embedded database password.
Table 5. Diagnostic Manager
Method Description of Operation
GetRunningTask Gets the currently active retrieve update task or null.
GenerateSystemLogBundle Instructs the server to generate a system log bundle.
RetrieveSystemLogBundle Retrieves the log bundle using the Binary datatype.
DeleteSystemLogBundle Instructs the server that this log bundle is no longer needed by the client that generated it.
Table 6. Service Instance
Method Description of Operation
RetrieveContent Retrieves the properties of the service instance.
LoginDrConfig Logs on to the server by verifying user and password with the local OS.
LogoutDrConfig Log out and terminate the current session.
ChangeUserPassword Assigns password to the user, who is running the drconfig service.
Table 7. Service Manager
Method Description of Operation
IsSrmServerRunning Returns the current service state of the Site Recovery Manager
DrConfigStartService Starts the service.
DrConfigStopService Stops the service.
DrConfigServiceStatus Returns a ServiceStatus object which contains the service status information about the service.
DrConfigRestartService Stops the service and then restarts it.
DrConfigAllServicesStatus Returns a ServiceStatus object for all the services.
Table 8. SRA Manager
Method Description of Operation
GetRunningTask Gets the currently active retrieve update task or null.
GetSraImages Returns a collection of SRA images loaded into the docker daemon of the Site Recovery Manager Virtual Appliance.
DeleteImage Stops and then deletes the containers instantiated from the given image, and deletes the image itself.
DeleteImageContainers Stops and then deletes the containers which were instantiated from the given image.
GetImageInfo Returns the image information as taken from the queryInfo SRA command.
CopySraConfiguration Copies the SRA configuration from a source image to a destination image.
ResetToFactorySettings Reverts the SRA image's configuration to its factory settings.
Table 9. SSL Certificate Manager
Method Description of Operation
ProbeSsl Checks if the Site Recover Manager can establish successful SSL connection to the specified endpoint.
DrConfigGenerateCSR Generates a new key and CSR, and returns them for signing.
DrConfigSetCertificate Sets a new certificate. Reconfigures the Site Recovery Manager if already configured. Restarts the proxy service.
DrConfigSetKeyCertificate Sets a new key and certificate, reconfigures Site Recovery Manager if already configured, and then restarts the proxy service.
AddCaCertificates Adds certificate authority certificates to the list of validating certificates.
RemoveCaCertificates Removes certificate authority certificates from the list of validating certificates.
RetrieveCaCertificates Gets the current SRM specific list of certificate authority certificates used by SRM to validate other server's certificates.
ClearCaCertificates Completely clears Site Recovery Manager specific list of certificate authority certificates, used by the Site Recovery Manager to validate other server's certificates.
InstallSelfSignedCertificate Installs self-signed certificate, reconfigures the Site Recovery Manager if already configured, and restarts the proxy service.
InstallCertificate Installs the PKCS#12 certificate, reconfigures Site Recovery Manager if already configured, and restarts the proxy service.
GetCertificateInfo Lists the certificate info.
Table 10. Update Manager
Method Description of Operation
GetRunningTask Tets the currently active retrieve update task or returns null.
UpdateRepository Changes the update repository location.
DrConfigCheckForUpdates Checks for updates. It checks the repository for available updates.
InstallUpdate Installs the update.
GetRepositories Gets update repos.