@Consumes(value="application/json") public interface CloudSigma2Api extends Closeable
Modifier and Type | Method and Description |
---|---|
SubscriptionCalculator |
calculateSubscriptions(Iterable<CalcSubscription> subscriptions)
This is identical to the listSubscriptions(), except that subscriptions are not actually bought.
|
DriveInfo |
cloneDrive(String sourceUuid,
DriveInfo driveInfo)
Clones a drive.
|
LibraryDrive |
cloneLibraryDrive(String uuid,
LibraryDrive libraryDrive)
If a library drive is not a CDROM, you have to clone it in your account in order to use it.
|
ServerInfo |
cloneServer(String uuid)
Clones a server.
|
void |
closeServerVCNTunnel(String uuid)
Closes a VNC tunnel to a server with specific UUID.
|
DriveInfo |
createDrive(DriveInfo createDrive)
Creates a new drive
|
List<DriveInfo> |
createDrives(List<DriveInfo> createDrives)
Creates multiple new drives
|
List<FirewallPolicy> |
createFirewallPolicies(List<FirewallPolicy> firewallPolicies)
Creates firewall policies.
|
FirewallPolicy |
createFirewallPolicy(FirewallPolicy firewallPolicy)
Creates a firewall policy.
|
ServerInfo |
createServer(ServerInfo createServer)
Creates a new virtual server or multiple servers.
|
List<ServerInfo> |
createServers(Iterable<ServerInfo> servers)
create a new servers
|
Subscription |
createSubscription(CreateSubscriptionRequest subscriptionRequest)
Creates a new subscription.
|
List<Subscription> |
createSubscriptions(List<CreateSubscriptionRequest> subscriptionRequest)
Creates a new subscription.
|
Tag |
createTag(Tag tag)
Creates a new tag
|
List<Tag> |
createTags(List<Tag> tags)
Creates a multiple new tags
|
void |
deleteDrive(String uuid)
Deletes a single mounted or unmounted drive.
|
void |
deleteDrives(Iterable<String> uuids)
Deletes multiple mounted or unmounted drives specified by their UUID’s.
|
void |
deleteFirewallPolicy(String uuid)
Deletes a single firewall policy.
|
void |
deleteServer(String uuid)
Deletes a single server.
|
void |
deleteServers(Iterable<String> uuids)
Deletes multiple servers specified by their UUID’s.
|
void |
deleteTag(String uuid)
Deletes a single tag.
|
DriveInfo |
editDrive(String sourceUuid,
DriveInfo driveInfo)
Edits a mounted or unmounted drive.
|
FirewallPolicy |
editFirewallPolicy(String uuid,
FirewallPolicy firewallPolicy)
Update an existing firewall policy
|
IPInfo |
editIP(String uuid,
IPInfo ipInfo)
Currently only IP meta field can be edited.
|
ProfileInfo |
editProfileInfo(ProfileInfo profile)
Edits a user profile.
|
ServerInfo |
editServer(String uuid,
ServerInfo server)
Edits a server.
|
Tag |
editTag(String uuid,
Tag tag)
Edits a tag.
|
VLANInfo |
editVLAN(String uuid,
VLANInfo vlanInfo)
Currently only VLAN meta field can be edited.
|
void |
enableSubscriptionAutorenew(String id)
Toggles the autorenew flag of the subscription.
|
void |
extendSubscription(String id)
Extends the subscription.
|
AccountBalance |
getAccountBalance()
Get the balance and currency of the current account.
|
CurrentUsage |
getCurrentUsage()
Get the current usage of the user.
|
DriveInfo |
getDriveInfo(String uuid)
Gets detailed information for drive identified by drive uuid
|
FirewallPolicy |
getFirewallPolicy(String uuid)
Gets firewall policy.
|
IPInfo |
getIPInfo(String uuid)
Gets detailed information for IP identified by IP uuid.
|
LibraryDrive |
getLibraryDrive(String uuid)
Gets detailed information for library drive identified by uuid.
|
Pricing |
getPricing()
Gets the pricing information that are applicable to the cloud.
|
ProfileInfo |
getProfileInfo()
Gets the user profile.
|
ServerAvailabilityGroup |
getServerAvailabilityGroup(String uuid)
Queries which other servers share same physical host with the given one.
|
ServerInfo |
getServerInfo(String uuid)
Gets detailed information for server identified by server uuid.
|
Subscription |
getSubscription(String id)
Returns requested subscription
|
Tag |
getTagInfo(String uuid)
Gets detailed information for tag identified by tag uuid.
|
VLANInfo |
getVLANInfo(String uuid)
Gets detailed information for VLAN identified by VLAN uuid.
|
PagedIterable<Discount> |
listDiscounts()
Get discount information.
|
PaginatedCollection<Discount> |
listDiscounts(PaginationOptions options)
Get discount information.
|
PagedIterable<Drive> |
listDrives()
Gets the list of drives to which the authenticated user has access.
|
List<DriveInfo> |
listDrives(DrivesListRequestFieldsGroup fields,
int limit)
Gets the list of drives to which the authenticated user has access.
|
PaginatedCollection<Drive> |
listDrives(PaginationOptions options)
Gets the list of drives to which the authenticated user has access.
|
PagedIterable<DriveInfo> |
listDrivesInfo()
Gets the detailed list of drives with additional information to which the authenticated user has access.
|
PaginatedCollection<DriveInfo> |
listDrivesInfo(PaginationOptions options)
Gets the detailed list of drives with additional information to which the authenticated user has access.
|
PagedIterable<FirewallPolicy> |
listFirewallPolicies()
Gets the list of firewall policies to which the authenticated user has access.
|
PaginatedCollection<FirewallPolicy> |
listFirewallPolicies(PaginationOptions options)
Gets the list of firewall policies to which the authenticated user has access.
|
PagedIterable<FirewallPolicy> |
listFirewallPoliciesInfo()
Gets a detailed list of firewall policies to which the authenticated user has access.
|
PaginatedCollection<FirewallPolicy> |
listFirewallPoliciesInfo(PaginationOptions options)
Gets a detailed list of firewall policies to which the authenticated user has access.
|
PagedIterable<IPInfo> |
listIPInfo()
Gets the detailed list of IPs with additional information to which the authenticated user has access.
|
PaginatedCollection<IPInfo> |
listIPInfo(PaginationOptions options)
Gets the detailed list of IPs with additional information to which the authenticated user has access.
|
PagedIterable<IP> |
listIPs()
Gets the list of IPs to which the authenticated user has access.
|
PaginatedCollection<IP> |
listIPs(PaginationOptions options)
Gets the list of IPs to which the authenticated user has access.
|
PagedIterable<LibraryDrive> |
listLibraryDrives()
Gets the list of library drives to which the authenticated user has access.
|
PaginatedCollection<LibraryDrive> |
listLibraryDrives(PaginationOptions options)
Gets the list of library drives to which the authenticated user has access.
|
PagedIterable<License> |
listLicenses()
Get the licenses available on the cloud.
|
PaginatedCollection<License> |
listLicenses(PaginationOptions options)
Get the licenses available on the cloud.
|
List<List<String>> |
listServerAvailabilityGroup() |
PagedIterable<Server> |
listServers()
Gets the list of servers to which the authenticated user has access.
|
PaginatedCollection<Server> |
listServers(PaginationOptions options)
Gets the list of servers to which the authenticated user has access.
|
PagedIterable<ServerInfo> |
listServersInfo()
Gets the detailed list of servers to which the authenticated user has access.
|
PaginatedCollection<ServerInfo> |
listServersInfo(PaginationOptions options)
Gets the detailed list of servers to which the authenticated user has access.
|
PagedIterable<Subscription> |
listSubscriptions()
Gets the list of subscriptions of the user.
|
PaginatedCollection<Subscription> |
listSubscriptions(PaginationOptions options)
Gets the list of subscriptions of the user.
|
PagedIterable<Tag> |
listTags()
Gets the list of tags to which the authenticated user has access.
|
PaginatedCollection<Tag> |
listTags(PaginationOptions options)
Gets the list of tags to which the authenticated user has access.
|
PagedIterable<Transaction> |
listTransactions()
Get the transactions for the account.
|
PaginatedCollection<Transaction> |
listTransactions(PaginationOptions options)
Get the transactions for the account.
|
PagedIterable<VLANInfo> |
listVLANInfo()
Gets the list of VLANs to which the authenticated user has access.
|
PaginatedCollection<VLANInfo> |
listVLANInfo(PaginationOptions options)
Gets the list of VLANs to which the authenticated user has access.
|
PagedIterable<VLANInfo> |
listVLANs()
Gets the list of VLANs to which the authenticated user has access.
|
PaginatedCollection<VLANInfo> |
listVLANs(PaginationOptions options)
Gets the list of VLANs to which the authenticated user has access.
|
void |
openServerVNCTunnel(String uuid)
Opens a VNC tunnel to a server with specific UUID.
|
void |
startServer(String uuid)
Starts a server with specific UUID.
|
void |
startServerInSeparateAvailabilityGroup(String uuid,
List<String> uuidGroup)
Starts a server with specific UUID assuring that it is started on a different physical infrastructure host
from the other servers specified in the avoid argument which is
a single server UUID or a comma-separated list of server UUIDs.
|
void |
stopServer(String uuid)
Stops a server with specific UUID.
|
@GET @Path(value="/drives/") PagedIterable<Drive> listDrives()
@GET @Path(value="/drives/") PaginatedCollection<Drive> listDrives(PaginationOptions options)
@GET @Path(value="/drives/") List<DriveInfo> listDrives(@QueryParam(value="fields") DrivesListRequestFieldsGroup fields, @DefaultValue(value="0") @QueryParam(value="limit") int limit)
fields
- A set of field names specifying the returned fieldslimit
- number of drives to show@GET @Path(value="/drives/detail/") PagedIterable<DriveInfo> listDrivesInfo()
@GET @Path(value="/drives/detail/") PaginatedCollection<DriveInfo> listDrivesInfo(PaginationOptions options)
@GET @Path(value="/drives/{uuid}/") DriveInfo getDriveInfo(@PathParam(value="uuid") String uuid)
uuid
- drive uuid to get@POST @Path(value="/drives/") DriveInfo createDrive(DriveInfo createDrive)
createDrive
- required parameters: name, size, media@POST @Path(value="/drives/") List<DriveInfo> createDrives(List<DriveInfo> createDrives)
createDrives
- required parameters: name, size, media@DELETE @Path(value="/drives/{uuid}/") void deleteDrive(@PathParam(value="uuid") String uuid)
uuid
- what to delete@DELETE @Path(value="/drives/") void deleteDrives(Iterable<String> uuids)
uuids
- what drives to delete@PUT @Path(value="/drives/{uuid}/") DriveInfo editDrive(@PathParam(value="uuid") String sourceUuid, DriveInfo driveInfo)
sourceUuid
- source drive to editdriveInfo
- drive parameters to change@POST @Path(value="/drives/{uuid}/action/?do=clone") DriveInfo cloneDrive(@PathParam(value="uuid") String sourceUuid, @Nullable DriveInfo driveInfo)
sourceUuid
- source drive to clonedriveInfo
- drive parameters to change@GET @Path(value="/libdrives/") PagedIterable<LibraryDrive> listLibraryDrives()
@GET @Path(value="/libdrives/") PaginatedCollection<LibraryDrive> listLibraryDrives(PaginationOptions options)
@GET @Path(value="/libdrives/{uuid}/") LibraryDrive getLibraryDrive(@PathParam(value="uuid") String uuid)
uuid
- uuid of library drive to be listed@POST @Path(value="/libdrives/{uuid}/action/?do=clone") LibraryDrive cloneLibraryDrive(@PathParam(value="uuid") String uuid, @Nullable LibraryDrive libraryDrive)
uuid
- uuid of library drive to clonelibraryDrive
- cloned drive@GET @Path(value="/servers/") PagedIterable<Server> listServers()
@GET @Path(value="/servers/") PaginatedCollection<Server> listServers(PaginationOptions options)
@GET @Path(value="/servers/detail/") PagedIterable<ServerInfo> listServersInfo()
@GET @Path(value="/servers/detail/") PaginatedCollection<ServerInfo> listServersInfo(PaginationOptions options)
@POST @Path(value="/servers/") ServerInfo createServer(ServerInfo createServer)
createServer
- required parameters: cpu, memory, name, vncPassword@POST @Path(value="/servers/") List<ServerInfo> createServers(Iterable<ServerInfo> servers)
servers
- servers to create. Required parameters: cpu, memory, name, vncPassword@PUT @Path(value="/servers/{uuid}/") ServerInfo editServer(@PathParam(value="uuid") String uuid, ServerInfo server)
uuid
- server uuidserver
- data to change@DELETE @Path(value="/servers/{uuid}/") void deleteServer(@PathParam(value="uuid") String uuid)
uuid
- uuid of server to delete@DELETE @Path(value="/servers/") void deleteServers(Iterable<String> uuids)
uuids
- server uuids to delete@POST @Path(value="/servers/{uuid}/action/?do=clone") ServerInfo cloneServer(@PathParam(value="uuid") String uuid)
uuid
- server what to clone@GET @Path(value="/servers/{uuid}/") ServerInfo getServerInfo(@PathParam(value="uuid") String uuid)
uuid
- server uuid@POST @Path(value="/servers/{uuid}/action/?do=start") void startServer(@PathParam(value="uuid") String uuid)
uuid
- uuid of server to start@POST @Path(value="/servers/{uuid}/action/?do=stop") void stopServer(@PathParam(value="uuid") String uuid)
uuid
- uuid of server to stop@POST @Path(value="/servers/{uuid}/action/?do=start") void startServerInSeparateAvailabilityGroup(@PathParam(value="uuid") String uuid, @QueryParam(value="avoid") List<String> uuidGroup)
uuid
- uuid of server to startuuidGroup
- availability group to avoid@POST @Path(value="/servers/{uuid}/action/?do=open_vnc") void openServerVNCTunnel(@PathParam(value="uuid") String uuid)
uuid
- uuid of server to open VNC tunnel@POST @Path(value="/servers/{uuid}/action/?do=close_vnc") void closeServerVCNTunnel(@PathParam(value="uuid") String uuid)
uuid
- uuid of server to close VNC tunnel@GET @Path(value="/servers/availability_groups/") List<List<String>> listServerAvailabilityGroup()
@GET @PathParam(value="/servers/availability_groups/{uuid}/") ServerAvailabilityGroup getServerAvailabilityGroup(@PathParam(value="uuid") String uuid)
uuid
- Uuid of server to find availability group@GET @Path(value="/fwpolicies/") PagedIterable<FirewallPolicy> listFirewallPolicies()
@GET @Path(value="/fwpolicies/") PaginatedCollection<FirewallPolicy> listFirewallPolicies(PaginationOptions options)
@GET @Path(value="/fwpolicies/detail/") PagedIterable<FirewallPolicy> listFirewallPoliciesInfo()
@GET @Path(value="/fwpolicies/detail/") PaginatedCollection<FirewallPolicy> listFirewallPoliciesInfo(PaginationOptions options)
@GET @Path(value="/fwpolicies/{uuid}/") FirewallPolicy getFirewallPolicy(@PathParam(value="uuid") String uuid)
@POST @Path(value="/fwpolicies/") List<FirewallPolicy> createFirewallPolicies(List<FirewallPolicy> firewallPolicies)
firewallPolicies
- firewall policies to create@POST @Path(value="/fwpolicies/") FirewallPolicy createFirewallPolicy(FirewallPolicy firewallPolicy)
firewallPolicy
- firewall policy to create@PUT @Path(value="/fwpolicies/{uuid}/") FirewallPolicy editFirewallPolicy(@PathParam(value="uuid") String uuid, FirewallPolicy firewallPolicy)
uuid
- uuid of policy to updatefirewallPolicy
- firewall policy data to update@DELETE @Path(value="/fwpolicies/{uuid}/") void deleteFirewallPolicy(@PathParam(value="uuid") String uuid)
uuid
- uuid of firewall policy to delete@GET @Path(value="/vlans/{uuid}/") VLANInfo getVLANInfo(@PathParam(value="uuid") String uuid)
uuid
- uuid of VLAN to get@GET @Path(value="/vlans/") PagedIterable<VLANInfo> listVLANs()
@GET @Path(value="/vlans/") PaginatedCollection<VLANInfo> listVLANs(PaginationOptions options)
@GET @Path(value="/vlans/detail/") PagedIterable<VLANInfo> listVLANInfo()
@GET @Path(value="/vlans/detail/") PaginatedCollection<VLANInfo> listVLANInfo(PaginationOptions options)
@PUT @Path(value="/vlans/{uuid}/") VLANInfo editVLAN(@PathParam(value="uuid") String uuid, VLANInfo vlanInfo)
uuid
- uuid of VLAN to editvlanInfo
- data to change@GET @Path(value="/ips/") PagedIterable<IP> listIPs()
@GET @Path(value="/ips/") PaginatedCollection<IP> listIPs(PaginationOptions options)
@GET @Path(value="/ips/detail/") PagedIterable<IPInfo> listIPInfo()
@GET @Path(value="/ips/detail/") PaginatedCollection<IPInfo> listIPInfo(PaginationOptions options)
@GET @Path(value="/ips/{uuid}/") IPInfo getIPInfo(@PathParam(value="uuid") String uuid)
uuid
- uuid of IP to get@PUT @Path(value="/ips/{uuid}/") IPInfo editIP(@PathParam(value="uuid") String uuid, IPInfo ipInfo)
uuid
- uuid of IP to editipInfo
- data to change@GET @Path(value="/tags/") PagedIterable<Tag> listTags()
@GET @Path(value="/tags/") PaginatedCollection<Tag> listTags(PaginationOptions options)
@GET @Path(value="/tags/{uuid}/") Tag getTagInfo(@PathParam(value="uuid") String uuid)
uuid
- tag uuid@PUT @Path(value="/tags/{uuid}/") Tag editTag(@PathParam(value="uuid") String uuid, Tag tag)
uuid
- tag uuidtag
- info to change@POST @Path(value="/tags/") Tag createTag(Tag tag)
tag
- tag to create@DELETE @Path(value="/tags/{uuid}/") void deleteTag(@PathParam(value="uuid") String uuid)
uuid
- uuid of tag to delete@POST @Path(value="/tags/") List<Tag> createTags(List<Tag> tags)
tags
- tags to create@GET @Path(value="/profile/") ProfileInfo getProfileInfo()
@PUT @Path(value="/profile/") ProfileInfo editProfileInfo(ProfileInfo profile)
profile
- data to change@GET @Path(value="/balance/") AccountBalance getAccountBalance()
@GET @Path(value="/currentusage/") CurrentUsage getCurrentUsage()
@GET @Path(value="/subscriptions/") PagedIterable<Subscription> listSubscriptions()
@GET @Path(value="/subscriptions/") PaginatedCollection<Subscription> listSubscriptions(PaginationOptions options)
@GET @Path(value="/subscriptions/{id}/") Subscription getSubscription(@PathParam(value="id") String id)
@POST @Path(value="/subscriptioncalculator/") SubscriptionCalculator calculateSubscriptions(Iterable<CalcSubscription> subscriptions)
@POST @Path(value="/subscriptions/") Subscription createSubscription(CreateSubscriptionRequest subscriptionRequest)
subscriptionRequest
- subscription request object@POST @Path(value="/subscriptions/") List<Subscription> createSubscriptions(List<CreateSubscriptionRequest> subscriptionRequest)
subscriptionRequest
- parameters for new subscriptions@POST @Path(value="/subscriptions/{id}/action/?do=extend") void extendSubscription(@PathParam(value="id") String id)
id
- id of subscription to extend@POST @Path(value="/subscriptions/{id}/action/?do=auto_renew") void enableSubscriptionAutorenew(@PathParam(value="id") String id)
id
- id of subscription to enable autorenew@GET @Path(value="/pricing/") Pricing getPricing()
@GET @Path(value="/discount/") PagedIterable<Discount> listDiscounts()
@GET @Path(value="/discount/") PaginatedCollection<Discount> listDiscounts(PaginationOptions options)
@GET @Path(value="/ledger/") PagedIterable<Transaction> listTransactions()
@GET @Path(value="/ledger/") PaginatedCollection<Transaction> listTransactions(PaginationOptions options)
@GET @Path(value="/licenses/") PagedIterable<License> listLicenses()
@GET @Path(value="/licenses/") PaginatedCollection<License> listLicenses(PaginationOptions options)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.