Bases: vmware.vapi.bindings.stub.VapiInterface
The Details class provides methods to get the details about backup jobs.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Details.Info class contains information about a backup job.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Returns detailed information about the current and historical backup jobs.
Return type: | dict of str and Details.Info |
---|---|
Returns: | Map of backup job id to Info Structure. The key in the return value dict will be an identifier for the resource type: com.vmware.appliance.recovery.backup.job.details. |
Raise: | com.vmware.vapi.std.errors_client.Error if any error occurs during the execution of the operation. |
Bases: vmware.vapi.bindings.stub.VapiInterface
The Retention class provides methods to create and update the retention policy for a backup profile.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Retention.Info class contains retention information associated with a profile.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | max_count (long) – Number of backups which should be retained. If retention is mot set, all the backups will be retained forever. |
---|
Gets the retention policy for a profile.
Parameters: | profile (str) – Identifier of the profile The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.profile.retention. |
---|---|
Return type: | Retention.Info |
Returns: | Info Structure |
Raise: | com.vmware.vapi.std.errors_client.NotFound if profile associated with id does not exist. |
Raise: | com.vmware.vapi.std.errors_client.Error if any error occurs during the execution of the operation. |
Updates a profile with the retention policy.
Parameters: |
|
---|---|
Raise: | com.vmware.vapi.std.errors_client.NotFound if profile associated with id does not exist. |
Raise: | com.vmware.vapi.std.errors_client.InvalidArgument if provided with invalid retention info. |
Raise: | com.vmware.vapi.std.errors_client.Error if any error occurs during the execution of the operation. |
Bases: vmware.vapi.bindings.stub.VapiInterface
The Schedule class provides methods to create and update the schedule policy for a backup profile.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.enum.Enum
The Schedule.DayOfWeek class 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 schedule for a profile. See Schedule.Info.
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.
Parameters: | string (str) – String value for the DayOfWeek instance. |
---|
Friday
Monday
Saturday
Sunday
Thursday
Tuesday
Wednesday
Bases: vmware.vapi.bindings.struct.VapiStruct
The Schedule.Info class contains the schedule information associated with a profile.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Gets the scheduler policy for a profile.
Parameters: | profile (str) – Identifier of the profile The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.profile.schedule. |
---|---|
Return type: | Schedule.Info |
Returns: | Info Structure |
Raise: | com.vmware.vapi.std.errors_client.NotFound if profile associated with id does not exist. |
Raise: | com.vmware.vapi.std.errors_client.Error if any error occurs during the execution of the operation. |
Updates a profile with the schedule policy.
Parameters: |
|
---|---|
Raise: | com.vmware.vapi.std.errors_client.NotFound if profile associated with id does not exist. |
Raise: | com.vmware.vapi.std.errors_client.InvalidArgument if provided with invalid schedule info. |
Raise: | com.vmware.vapi.std.errors_client.Error if any error occurs during the execution of the operation. |