public interface SnapshotApi
http://download.cloud.com/releases/2.2.0/api/TOC_User.html
Modifier and Type | Method and Description |
---|---|
AsyncCreateResponse |
createSnapshot(String volumeId,
CreateSnapshotOptions... options)
Creates an instant snapshot of a volume.
|
SnapshotPolicy |
createSnapshotPolicy(SnapshotPolicySchedule schedule,
String numberToRetain,
String timezone,
String volumeId)
Creates a snapshot policy for the account.
|
void |
deleteSnapshot(String id)
Deletes a snapshot of a disk volume.
|
void |
deleteSnapshotPolicies(Iterable<String> id)
Deletes snapshot policies for the account.
|
void |
deleteSnapshotPolicy(String id)
Deletes a snapshot policy for the account.
|
Snapshot |
getSnapshot(String id)
Gets a snapshot by its ID.
|
Set<SnapshotPolicy> |
listSnapshotPolicies(String volumeId,
ListSnapshotPoliciesOptions... options)
Lists snapshot policies.
|
Set<Snapshot> |
listSnapshots(ListSnapshotsOptions... options)
Lists all available snapshots for the account, matching the query described by the options.
|
@Named(value="createSnapshot") @GET @Consumes(value="application/json") AsyncCreateResponse createSnapshot(@QueryParam(value="volumeid") String volumeId, CreateSnapshotOptions... options)
volumeId
- The ID of the disk volumeoptions
- optional arguments@Named(value="listSnapshots") @GET @Consumes(value="application/json") Set<Snapshot> listSnapshots(ListSnapshotsOptions... options)
options
- optional arguments@Named(value="listSnapshots") @GET @Consumes(value="application/json") Snapshot getSnapshot(@QueryParam(value="id") String id)
id
- the snapshot ID@Named(value="deleteSnapshot") @GET @Consumes(value="application/json") void deleteSnapshot(@QueryParam(value="id") String id)
id
- The ID of the snapshot@Named(value="createSnapshotPolicy") @GET @Consumes(value="application/json") SnapshotPolicy createSnapshotPolicy(SnapshotPolicySchedule schedule, @QueryParam(value="maxsnaps") String numberToRetain, @QueryParam(value="timezone") String timezone, @QueryParam(value="volumeid") String 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@Named(value="deleteSnapshotPolicies") @GET @Consumes(value="application/json") void deleteSnapshotPolicy(@QueryParam(value="id") String id)
id
- The ID of the snapshot policy@Named(value="deleteSnapshotPolicies") @GET @Consumes(value="application/json") void deleteSnapshotPolicies(Iterable<String> id)
id
- IDs of snapshot policies@Named(value="listSnapshotPolicies") @GET @Consumes(value="application/json") Set<SnapshotPolicy> listSnapshotPolicies(@QueryParam(value="volumeid") String volumeId, ListSnapshotPoliciesOptions... options)
volumeId
- the ID of the disk volumeoptions
- optional argumentsCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.