|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SnapshotAsyncClient
Provides synchronous access to CloudStack Snapshot features.
SnapshotClient
,
http://download.cloud.com/releases/2.2.0/api/TOC_User.html
Method Summary | |
---|---|
com.google.common.util.concurrent.ListenableFuture<AsyncCreateResponse> |
createSnapshot(long volumeId,
CreateSnapshotOptions... options)
Creates an instant snapshot of a volume. |
com.google.common.util.concurrent.ListenableFuture<SnapshotPolicy> |
createSnapshotPolicy(SnapshotPolicySchedule schedule,
long numberToRetain,
String timezone,
long volumeId)
Creates a snapshot policy for the account. |
com.google.common.util.concurrent.ListenableFuture<Void> |
deleteSnapshot(long id)
Deletes a snapshot of a disk volume. |
com.google.common.util.concurrent.ListenableFuture<Void> |
deleteSnapshotPolicies(Iterable<Long> id)
Deletes snapshot policies for the account. |
com.google.common.util.concurrent.ListenableFuture<Void> |
deleteSnapshotPolicy(long id)
Deletes a snapshot policy for the account. |
com.google.common.util.concurrent.ListenableFuture<Snapshot> |
getSnapshot(long id)
Gets a snapshot by its ID. |
com.google.common.util.concurrent.ListenableFuture<Set<SnapshotPolicy>> |
listSnapshotPolicies(long volumeId,
ListSnapshotPoliciesOptions... options)
Lists snapshot policies. |
com.google.common.util.concurrent.ListenableFuture<Set<Snapshot>> |
listSnapshots(ListSnapshotsOptions... options)
Lists all available snapshots for the account, matching the query described by the options. |
Method Detail |
---|
com.google.common.util.concurrent.ListenableFuture<AsyncCreateResponse> createSnapshot(long volumeId, CreateSnapshotOptions... options)
volumeId
- The ID of the disk volumeoptions
- optional arguments
com.google.common.util.concurrent.ListenableFuture<Set<Snapshot>> listSnapshots(ListSnapshotsOptions... options)
options
- optional arguments
com.google.common.util.concurrent.ListenableFuture<Snapshot> getSnapshot(long id)
id
- the snapshot ID
com.google.common.util.concurrent.ListenableFuture<Void> deleteSnapshot(long id)
id
- The ID of the snapshot
com.google.common.util.concurrent.ListenableFuture<SnapshotPolicy> createSnapshotPolicy(SnapshotPolicySchedule schedule, long numberToRetain, String timezone, long volumeId)
schedule
- how to schedule snapshotsnumberToRetain
- maximum number of snapshots to retaintimezone
- Specifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format.volumeId
- the ID of the disk volume
com.google.common.util.concurrent.ListenableFuture<Void> deleteSnapshotPolicy(long id)
id
- The ID of the snapshot policy
com.google.common.util.concurrent.ListenableFuture<Void> deleteSnapshotPolicies(Iterable<Long> id)
id
- IDs of snapshot policies
com.google.common.util.concurrent.ListenableFuture<Set<SnapshotPolicy>> listSnapshotPolicies(long volumeId, ListSnapshotPoliciesOptions... options)
volumeId
- the ID of the disk volumeoptions
- optional arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |