public class DigitalOceanClient extends java.lang.Object implements DigitalOcean, Constants
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
apiHost
DigitalOcean API Host is
api.digitalocean.com |
protected java.lang.String |
apiVersion
DigitalOcean API version.
|
protected java.lang.String |
authToken
OAuth Authorization Token for Accessing DigitalOcean API
|
protected org.apache.http.impl.client.CloseableHttpClient |
httpClient
Http client
|
DATE_FORMAT, FORM_URLENCODED_CONTENT_TYPE, HDR_AUTHORIZATION, HDR_CONTENT_TYPE, HDR_RATE_LIMIT, HDR_RATE_REMAINING, HDR_RATE_RESET, HDR_USER_AGENT, HTTPS_SCHEME, JSON_CONTENT_TYPE, NO_CONTENT_JSON_STRUCT, PARAM_PAGE_NO, PARAM_PER_PAGE, RATE_LIMIT_ELEMENT_NAME, RATE_LIMIT_JSON_STRUCT, START_PAGE_NO, URL_PATH_SEPARATOR, USER_AGENT, UTF_8| Constructor and Description |
|---|
DigitalOceanClient(java.lang.String authToken)
DigitalOcean Client Constructor
|
DigitalOceanClient(java.lang.String apiVersion,
java.lang.String authToken)
DigitalOcean Client Constructor
|
DigitalOceanClient(java.lang.String apiVersion,
java.lang.String authToken,
org.apache.http.impl.client.CloseableHttpClient httpClient)
DigitalOcean Client Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Response |
addDropletsToLoadBalancer(java.lang.String loadBalancerId,
java.util.List<java.lang.Integer> dropletIds)
Method allows you to assign a Droplet to a Load Balancer instance.
|
Response |
addForwardingRulesToLoadBalancer(java.lang.String loadBalancerId,
java.util.List<ForwardingRules> forwardingRules)
Method allows you to add an additional forwarding rule to a Load Balancer instance.
|
Action |
assignFloatingIP(java.lang.Integer dropletId,
java.lang.String ipAddress)
Method will assign Floating IP to a Droplet.
|
Action |
attachVolume(java.lang.Integer dropletId,
java.lang.String volumeId,
java.lang.String regionSlug)
Method attaches the given volume into droplet by identifier
|
Action |
attachVolumeByName(java.lang.Integer dropletId,
java.lang.String volumeName,
java.lang.String regionSlug)
Method attaches the given volume into droplet by name
|
Action |
changeDropletKernel(java.lang.Integer dropletId,
java.lang.Integer kernelId)
Method changes a OS kernel for given droplet
|
Action |
convertImage(java.lang.Integer imageId)
Method allows you to convert image into snapshot
|
Certificate |
createCertificate(Certificate certificate)
Method allows you to create a new certificate.
|
Domain |
createDomain(Domain domain)
Method creates a new domain name with an A record for the specified [ip_address].
|
DomainRecord |
createDomainRecord(java.lang.String domainName,
DomainRecord domainRecord)
Method creates a new domain record name with an given domain record values
|
Droplet |
createDroplet(Droplet droplet)
Method allows you to create a new droplet.
|
Droplets |
createDroplets(Droplet droplet)
Method allows you to create multiple droplets simultaneously.
|
FloatingIP |
createFloatingIP(java.lang.Integer dropletId)
Method creates a new Floating IP and assigns to the Droplet.
|
FloatingIP |
createFloatingIP(java.lang.String region)
Method creates a new Floating IP and its reserved to a Region
|
Key |
createKey(Key newKey)
Method allows you to add a new public SSH key to your account
|
LoadBalancer |
createLoadBalancer(LoadBalancer loadBalancer)
Method allows you to add a new load balancer to distribute traffic across multiple Droplets.
|
Tag |
createTag(java.lang.String name)
Method will create a Tag on DigitalOcean aacount.
|
Volume |
createVolume(Volume volume)
Method creates new volume with given details
|
Delete |
deleteCertificate(java.lang.String certificateId)
Method allows you to delete a Certificate by Id from your account.
|
Delete |
deleteDomain(java.lang.String domainName)
Method deletes the specified domain from DNS control panel
|
Delete |
deleteDomainRecord(java.lang.String domainName,
java.lang.Integer recordId)
Method deletes the specified domain record from domain.
|
Delete |
deleteDroplet(java.lang.Integer dropletId)
Method destroys one of your droplet; this is irreversible.
|
Delete |
deleteDropletByTagName(java.lang.String tagName)
Method destroys one or more of your droplet by given tag name; this is irreversible.
|
Delete |
deleteFloatingIP(java.lang.String ipAddress)
Method deletes the Floating IP and removes it from your account.
|
Delete |
deleteImage(java.lang.Integer imageId)
Method allows you to deletes an image.
|
Delete |
deleteKey(java.lang.Integer sshKeyId)
Method will delete the SSH key from your account.
|
Delete |
deleteKey(java.lang.String fingerprint)
Method will delete the SSH key from your account.
|
Delete |
deleteLoadBalancer(java.lang.String loadBalancerId)
Method allows you to delete a Load Balancer instance, disassociating any Droplets assigned to
it and removing it from your account.
|
Delete |
deleteSnapshot(java.lang.String snapshotId)
Method deletes snapshot by id
|
Delete |
deleteTag(java.lang.String name)
Method deletes the existing Tag from DigitalOcean account.
|
Delete |
deleteVolume(java.lang.String volumeId)
Method deletes volume by identifier
|
Delete |
deleteVolume(java.lang.String volumeName,
java.lang.String regionSlug)
Method deletes volume by name and region slug
|
Action |
detachVolume(java.lang.Integer dropletId,
java.lang.String volumeId,
java.lang.String regionSlug)
Method detaches volume from the droplet by identifier
|
Action |
detachVolumeByName(java.lang.Integer dropletId,
java.lang.String volumeName,
java.lang.String regionSlug)
Method detaches volume from the droplet by volume name
|
Action |
disableDropletBackups(java.lang.Integer dropletId)
Method disables automatic backups from running to backup your droplet's data.
|
Action |
enableDropletBackups(java.lang.Integer dropletId)
Method enables automatic backups for your droplet's data.
|
Action |
enableDropletIpv6(java.lang.Integer dropletId)
Enabling IP v6 networking capability for droplet.
|
Action |
enableDropletPrivateNetworking(java.lang.Integer dropletId)
Enabling private networking capability for droplet.
|
Account |
getAccountInfo()
Method returns account information for provided credentials
|
Action |
getActionInfo(java.lang.Integer actionId)
To retrieve a specific action information by action ID
|
Neighbors |
getAllDropletNeighbors(java.lang.Integer pageNo)
For an entire account; Method retrieves a list of any droplets that are
running on the same physical server (any other droplets that share the same physical hardware).
|
Snapshots |
getAllDropletSnapshots(java.lang.Integer pageNo,
java.lang.Integer perPage)
Method return all of the droplet snapshots available on your account
|
Snapshots |
getAllVolumeSnapshots(java.lang.Integer pageNo,
java.lang.Integer perPage)
Method return all of the volume snapshots available on your account
|
java.lang.String |
getApiVersion() |
java.lang.String |
getAuthToken() |
Actions |
getAvailableActions(java.lang.Integer pageNo,
java.lang.Integer perPage)
Method return all the action informations, regardless of categories.
|
Certificates |
getAvailableCertificates(java.lang.Integer pageNo,
java.lang.Integer perPage)
Method returns all available Certificates from your account.
|
Domains |
getAvailableDomains(java.lang.Integer pageNo)
Method returns all of your available domains from DNS control panel
|
Actions |
getAvailableDropletActions(java.lang.Integer dropletId,
java.lang.Integer pageNo,
java.lang.Integer perPage)
Method return all the action informations; specific to given Droplet Id
|
Droplets |
getAvailableDroplets(java.lang.Integer pageNo,
java.lang.Integer perPage)
Method returns all active droplets that are currently running in your account.
|
Actions |
getAvailableFloatingIPActions(java.lang.String ipAddress,
java.lang.Integer pageNo,
java.lang.Integer perPage)
Method retrives all actions that have been executed on a Floating IP address.
|
FloatingIPs |
getAvailableFloatingIPs(java.lang.Integer pageNo,
java.lang.Integer perPage)
Method will list all of the Floating IPs available from your account.
|
Actions |
getAvailableImageActions(java.lang.Integer imageId,
java.lang.Integer pageNo,
java.lang.Integer perPage)
Method return all the action informations; specific to given Image Id
|
Images |
getAvailableImages(java.lang.Integer pageNo,
java.lang.Integer perPage)
Method returns all the available images that can be accessed by your OAuth Token.
|
Images |
getAvailableImages(java.lang.Integer pageNo,
java.lang.Integer perPage,
ActionType type)
Method returns all the available images based on
type={distribution or application} that can be accessed by your OAuth Token. |
Keys |
getAvailableKeys(java.lang.Integer pageNo)
Method lists all the available public SSH keys in your account that can be added to a droplet.
|
LoadBalancers |
getAvailableLoadBalancers(java.lang.Integer pageNo,
java.lang.Integer perPage)
Method returns all active loadbalancers that are currently running in your account.
|
Regions |
getAvailableRegions(java.lang.Integer pageNo)
Method returns all the available regions within the DigitalOcean cloud.
|
Sizes |
getAvailableSizes(java.lang.Integer pageNo)
Method returns all the available sizes that can be used to create a droplet.
|
Snapshots |
getAvailableSnapshots(java.lang.Integer pageNo,
java.lang.Integer perPage)
Method return all of the snapshots available on your account
|
Tags |
getAvailableTags(java.lang.Integer pageNo,
java.lang.Integer perPage)
Method will list all of the Tags available from your account.
|
Actions |
getAvailableVolumeActions(java.lang.String volumeId)
Method will get all the available volume action by volume identifier
|
Volumes |
getAvailableVolumes(java.lang.String regionSlug)
Method will list all of the Volumes available from your account.
|
Certificate |
getCertificateInfo(java.lang.String certificateId)
Method returns the Certificate information for given certificate ID.
|
Domain |
getDomainInfo(java.lang.String domainName)
Method returns the specified domain attributes and zone file info.
|
DomainRecord |
getDomainRecordInfo(java.lang.String domainName,
java.lang.Integer recordId)
Method returns the specified domain record.
|
DomainRecords |
getDomainRecords(java.lang.String domainName,
java.lang.Integer pageNo,
java.lang.Integer perPage)
Method returns all of your current domain records from DNS control panel for given domain.
|
Backups |
getDropletBackups(java.lang.Integer dropletId,
java.lang.Integer pageNo,
java.lang.Integer perPage)
Method returns all available snapshots for given droplet ID
|
Droplet |
getDropletInfo(java.lang.Integer dropletId)
Method returns complete information for given droplet ID
|
Kernels |
getDropletKernels(java.lang.Integer dropletId,
java.lang.Integer pageNo,
java.lang.Integer perPage)
Method returns all available kernels for given droplet ID
|
Droplets |
getDropletNeighbors(java.lang.Integer dropletId,
java.lang.Integer pageNo)
For an individual droplet; Method retrieves a list of droplets that are running on the same
physical server (any other droplets that share the same physical hardware).
|
Snapshots |
getDropletSnapshots(java.lang.Integer dropletId,
java.lang.Integer pageNo,
java.lang.Integer perPage)
Method returns all available snapshots for given droplet ID
|
Action |
getFloatingIPActionInfo(java.lang.String ipAddress,
java.lang.Integer actionId)
Method to retrieve the status of a Floating IP action.
|
FloatingIP |
getFloatingIPInfo(java.lang.String ipAddress)
Method retrieves the information about given Floating IP
|
org.apache.http.client.HttpClient |
getHttpClient() |
Image |
getImageInfo(java.lang.Integer imageId)
Method retrieves the attributes of an image.
|
Image |
getImageInfo(java.lang.String slug)
Method retrieves the attributes of an image.
|
Key |
getKeyInfo(java.lang.Integer sshKeyId)
Method shows a specific public SSH key information from your account that can be added to a
droplet.
|
Key |
getKeyInfo(java.lang.String fingerprint)
Method shows a specific public SSH key information from your account that can be added to a
droplet.
|
LoadBalancer |
getLoadBalancerInfo(java.lang.String loadBalancerId)
Method returns complete information for given load balancer ID.
|
Snapshot |
getSnaphotInfo(java.lang.String snapshotId)
Method returns specific snapshot info by id
|
Tag |
getTag(java.lang.String name)
Method retrieves the Tag from DigitalOcean account.
|
Images |
getUserImages(java.lang.Integer pageNo,
java.lang.Integer perPage)
Method retrieves only the private images of a user
|
Action |
getVolumeAction(java.lang.String volumeId,
java.lang.Integer actionId)
Method returns specific volume action by action & volume identifier
|
Volume |
getVolumeInfo(java.lang.String volumeId)
Method shows specific volume information by identifier
|
Volumes |
getVolumeInfo(java.lang.String volumeName,
java.lang.String regionSlug)
Method shows volume information by name and region slug
|
Snapshots |
getVolumeSnapshots(java.lang.String volumeId,
java.lang.Integer pageNo,
java.lang.Integer perPage)
Method return all of the snapshots for given volume Id
|
Action |
powerCycleDroplet(java.lang.Integer dropletId)
Method allows you to power cycle a droplet.
|
Action |
powerOffDroplet(java.lang.Integer dropletId)
Method allows you to poweroff a running droplet.
|
Action |
powerOnDroplet(java.lang.Integer dropletId)
Method allows you to poweron a powered off droplet.
|
Action |
rebootDroplet(java.lang.Integer dropletId)
Method allows you to reboot a droplet.
|
Action |
rebuildDroplet(java.lang.Integer dropletId,
java.lang.Integer imageId)
Method allows you to reinstall a droplet with a default image.
|
Delete |
removeDropletsFromLoadBalancer(java.lang.String loadBalancerId,
java.util.List<java.lang.Integer> dropletIds)
Method allows you to remove a Droplet from a Load Balancer instance.
|
Delete |
removeForwardingRulesFromLoadBalancer(java.lang.String loadBalancerId,
java.util.List<ForwardingRules> forwardingRules)
Method allows you to remove forwarding rules from a Load Balancer instance.
|
Action |
renameDroplet(java.lang.Integer dropletId,
java.lang.String name)
Method renames the droplet to the specified name.
|
Action |
resetDropletPassword(java.lang.Integer dropletId)
Method will reset the root password for a droplet.
|
Action |
resizeDroplet(java.lang.Integer dropletId,
java.lang.String size)
Method allows you to resize a specific droplet to a different size.
|
Action |
resizeDroplet(java.lang.Integer dropletId,
java.lang.String size,
java.lang.Boolean disk)
Method allows you to resize a specific droplet to a different size.
|
Action |
resizeVolume(java.lang.String volumeId,
java.lang.String regionSlug,
java.lang.Double sizeGigabytes)
Method resizes volume by identifier
|
Action |
restoreDroplet(java.lang.Integer dropletId,
java.lang.Integer imageId)
Method allows you to restore a droplet with a previous image or snapshot.
|
void |
setApiVersion(java.lang.String apiVersion) |
void |
setAuthToken(java.lang.String authToken) |
void |
setHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient) |
Action |
shutdownDroplet(java.lang.Integer dropletId)
Method allows you to shutdown a running droplet.
|
Response |
tagResources(java.lang.String name,
java.util.List<Resource> resources)
Method tags a tag to given list of resources on DigitalOcean account.
|
Action |
takeDropletSnapshot(java.lang.Integer dropletId)
Method allows you to take a snapshot of the running droplet, which can later be restored or
used to create a new droplet from the same image.
|
Action |
takeDropletSnapshot(java.lang.Integer dropletId,
java.lang.String snapshotName)
Method allows you to take a snapshot of the running droplet, which can later be restored or
used to create a new droplet from the same image.
|
Snapshot |
takeVolumeSnapshot(java.lang.String volumeId,
java.lang.String snapshotName)
Method take snapshot of given volume Id
|
Action |
transferImage(java.lang.Integer imageId,
java.lang.String regionSlug)
Method allows you to transfer an image to a specified region.
|
Action |
unassignFloatingIP(java.lang.String ipAddress)
Method will unassign Floating IP from a Droplet.
|
Response |
untagResources(java.lang.String name,
java.util.List<Resource> resources)
Method untags a tag from given list of resources on DigitalOcean account.
|
DomainRecord |
updateDomainRecord(java.lang.String domainName,
java.lang.Integer recordId,
DomainRecord domainRecord)
method edits an existing domain record of the given domain.
|
Image |
updateImage(Image image)
Method updates the given details for an image.
|
Key |
updateKey(java.lang.Integer sshKeyId,
java.lang.String newSshKeyName)
Method allows you to modify an existing SSH key in your account.
|
Key |
updateKey(java.lang.String fingerprint,
java.lang.String newSshKeyName)
Method allows you to modify an existing SSH key in your account.
|
LoadBalancer |
updateLoadBalancer(LoadBalancer loadBalancer)
Method allows you to update an existign load balancer.
|
protected org.apache.http.impl.client.CloseableHttpClient httpClient
protected java.lang.String authToken
protected java.lang.String apiVersion
protected java.lang.String apiHost
api.digitalocean.compublic DigitalOceanClient(java.lang.String authToken)
authToken - a String objectpublic DigitalOceanClient(java.lang.String apiVersion,
java.lang.String authToken)
apiVersion - a String objectauthToken - a String objectpublic DigitalOceanClient(java.lang.String apiVersion,
java.lang.String authToken,
org.apache.http.impl.client.CloseableHttpClient httpClient)
apiVersion - a String objectauthToken - a String objecthttpClient - a CloseableHttpClient objectpublic org.apache.http.client.HttpClient getHttpClient()
public void setHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient)
httpClient - the httpClient to setpublic java.lang.String getAuthToken()
public void setAuthToken(java.lang.String authToken)
authToken - the authToken to setpublic java.lang.String getApiVersion()
public void setApiVersion(java.lang.String apiVersion)
apiVersion - the apiVersion to setpublic Droplets getAvailableDroplets(java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableDroplets in interface DigitalOceanpageNo - for paginationperPage - no. of items per pageDropletsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Kernels getDropletKernels(java.lang.Integer dropletId, java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetDropletKernels in interface DigitalOceandropletId - for kernel infopageNo - for paginationperPage - no. of items per pageKernelsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Snapshots getDropletSnapshots(java.lang.Integer dropletId, java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetDropletSnapshots in interface DigitalOceandropletId - for snapshot infopageNo - for paginationperPage - no. of items per pageSnapshotsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Backups getDropletBackups(java.lang.Integer dropletId, java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetDropletBackups in interface DigitalOceandropletId - for backup infopageNo - for paginationBackupsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Droplet getDropletInfo(java.lang.Integer dropletId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetDropletInfo in interface DigitalOceandropletId - the id of the dropletDropletDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Droplet createDroplet(Droplet droplet) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanMethod allows you to create a new droplet. See the required parameters section below for an explanation of the variables that are needed to create a new droplet.
Note: Currently return object doesn't include 'action' information of create droplet.
Create a instance of Droplet class and populated the droplet object appropriately.
Minimum required values are -
{
"name": "example-droplet-name",
"region": "nyc1",
"size": "512mb",
"image": "ubuntu-14-04-x64",
"backups": false
}
createDroplet in interface DigitalOceandroplet - the instance of the droplet classDropletDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Droplets createDroplets(Droplet droplet) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanMethod allows you to create multiple droplets simultaneously. See the required parameters section below for an explanation of the variables that are needed to create multiple droplets.
Create a instance of Droplet class and populated the droplet object appropriately.
Particularly names attribute in the Droplet class. Minimum required values are
-
{
"names": [
"sub-01.example.com",
"sub-02.example.com"
],
"region": "nyc1",
"size": "512mb",
"image": "ubuntu-14-04-x64",
"backups": false
}
createDroplets in interface DigitalOceandroplet - the instance of the droplet classDropletDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete deleteDroplet(java.lang.Integer dropletId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandeleteDroplet in interface DigitalOceandropletId - the id of the dropletDeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete deleteDropletByTagName(java.lang.String tagName) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandeleteDropletByTagName in interface DigitalOceantagName - the associated tag name with dropletDeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Droplets getDropletNeighbors(java.lang.Integer dropletId, java.lang.Integer pageNo) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetDropletNeighbors in interface DigitalOceandropletId - the id of the dropletpageNo - for paginationDropletsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Neighbors getAllDropletNeighbors(java.lang.Integer pageNo) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAllDropletNeighbors in interface DigitalOceanpageNo - for paginationNeighborsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action rebootDroplet(java.lang.Integer dropletId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanrebootDroplet in interface DigitalOceandropletId - the id of the dropletActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action powerCycleDroplet(java.lang.Integer dropletId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanpowerCycleDroplet in interface DigitalOceandropletId - the id of the dropletActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action shutdownDroplet(java.lang.Integer dropletId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanshutdownDroplet in interface DigitalOceandropletId - the id of the dropletActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action powerOffDroplet(java.lang.Integer dropletId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanpowerOffDroplet in interface DigitalOceandropletId - the id of the dropletActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action powerOnDroplet(java.lang.Integer dropletId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanpowerOnDroplet in interface DigitalOceandropletId - the id of the dropletActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action resetDropletPassword(java.lang.Integer dropletId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanresetDropletPassword in interface DigitalOceandropletId - the id of the dropletActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action resizeDroplet(java.lang.Integer dropletId, java.lang.String size) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanresizeDroplet in interface DigitalOceandropletId - the id of the dropletsize - of the dropletActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action resizeDroplet(java.lang.Integer dropletId, java.lang.String size, java.lang.Boolean disk) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanresizeDroplet in interface DigitalOceandropletId - the id of the dropletsize - of the dropletdisk - whether to resize disk of the droplet or or notActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action takeDropletSnapshot(java.lang.Integer dropletId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceantakeDropletSnapshot in interface DigitalOceandropletId - the id of the dropletActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action takeDropletSnapshot(java.lang.Integer dropletId, java.lang.String snapshotName) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceantakeDropletSnapshot in interface DigitalOceandropletId - the id of the dropletsnapshotName - the name the snapshot to be createdActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action restoreDroplet(java.lang.Integer dropletId, java.lang.Integer imageId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanrestoreDroplet in interface DigitalOceandropletId - the id of the dropletimageId - the id of the DigitalOcean public image or your private imageActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action rebuildDroplet(java.lang.Integer dropletId, java.lang.Integer imageId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanrebuildDroplet in interface DigitalOceandropletId - the id of the dropletimageId - the id of the DigitalOcean public image or your private imageActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action enableDropletBackups(java.lang.Integer dropletId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanenableDropletBackups in interface DigitalOceandropletId - the id of the dropletActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action disableDropletBackups(java.lang.Integer dropletId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandisableDropletBackups in interface DigitalOceandropletId - the id of the dropletActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action renameDroplet(java.lang.Integer dropletId, java.lang.String name) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanrenameDroplet in interface DigitalOceandropletId - the id of the dropletname - the new name of droplet to be calledActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action changeDropletKernel(java.lang.Integer dropletId, java.lang.Integer kernelId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanchangeDropletKernel in interface DigitalOceandropletId - the id of the dropletkernelId - the kernel id to be changed for dropletActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action enableDropletIpv6(java.lang.Integer dropletId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanenableDropletIpv6 in interface DigitalOceandropletId - the id of the dropletActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action enableDropletPrivateNetworking(java.lang.Integer dropletId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanenableDropletPrivateNetworking in interface DigitalOceandropletId - the id of the dropletActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Account getAccountInfo() throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAccountInfo in interface DigitalOceanAccountDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Actions getAvailableActions(java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableActions in interface DigitalOceanpageNo - for paginationperPage - no. of items per pageActionsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action getActionInfo(java.lang.Integer actionId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetActionInfo in interface DigitalOceanactionId - the id of actionActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Actions getAvailableDropletActions(java.lang.Integer dropletId, java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableDropletActions in interface DigitalOceandropletId - the id of the dropletpageNo - for paginationperPage - no. of items per pageActionsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Actions getAvailableImageActions(java.lang.Integer imageId, java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableImageActions in interface DigitalOceanimageId - the id of the ImagepageNo - for paginationperPage - no. of items per pageActionsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Actions getAvailableFloatingIPActions(java.lang.String ipAddress, java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableFloatingIPActions in interface DigitalOceanipAddress - Floating IP addresspageNo - for paginationperPage - no. of items per pageActionsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action getFloatingIPActionInfo(java.lang.String ipAddress, java.lang.Integer actionId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetFloatingIPActionInfo in interface DigitalOceanipAddress - Floating IP addressactionId - the id of actionActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Actions getAvailableVolumeActions(java.lang.String volumeId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableVolumeActions in interface DigitalOceanvolumeId - volume identifierActionsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action getVolumeAction(java.lang.String volumeId, java.lang.Integer actionId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetVolumeAction in interface DigitalOceanActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Images getAvailableImages(java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableImages in interface DigitalOceanpageNo - of request paginationperPage - no. of items per pageImagesDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Images getAvailableImages(java.lang.Integer pageNo, java.lang.Integer perPage, ActionType type) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceantype={distribution or application} that can be accessed by your OAuth Token.getAvailableImages in interface DigitalOceanpageNo - of request paginationperPage - no. of items per pagetype - of actionImagesDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Images getUserImages(java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetUserImages in interface DigitalOceanpageNo - of request paginationperPage - no. of items per pageImagesDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Image getImageInfo(java.lang.Integer imageId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetImageInfo in interface DigitalOceanimageId - the image Id of the droplet/snapshot/backup imagesImageDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Image getImageInfo(java.lang.String slug) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetImageInfo in interface DigitalOceanslug - of the public imageImageDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Image updateImage(Image image) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanupdateImage in interface DigitalOceanimage - object for updateImageDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete deleteImage(java.lang.Integer imageId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandeleteImage in interface DigitalOceanimageId - of the droplet/snapshot/backup imagesDeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action transferImage(java.lang.Integer imageId, java.lang.String regionSlug) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceantransferImage in interface DigitalOceanimageId - the Id of the droplet/snapshot/backup imagesregionSlug - is code name of the region aka DigitalOcean data centersActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action convertImage(java.lang.Integer imageId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanconvertImage in interface DigitalOceanimageId - the Id of the droplet/snapshot/backup imagesActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Regions getAvailableRegions(java.lang.Integer pageNo) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableRegions in interface DigitalOceanpageNo - for paginationRegionsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Sizes getAvailableSizes(java.lang.Integer pageNo) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableSizes in interface DigitalOceanpageNo - for paginationSizesDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Domains getAvailableDomains(java.lang.Integer pageNo) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableDomains in interface DigitalOceanpageNo - for paginationDomainsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Domain getDomainInfo(java.lang.String domainName) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetDomainInfo in interface DigitalOceandomainName - the name of the domainDomainDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Domain createDomain(Domain domain) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceancreateDomain in interface DigitalOceandomain - object with name and IP address for creationDomainDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete deleteDomain(java.lang.String domainName) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandeleteDomain in interface DigitalOceandomainName - the name of the domainDeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic DomainRecords getDomainRecords(java.lang.String domainName, java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetDomainRecords in interface DigitalOceandomainName - of the domainpageNo - of request paginationperPage - no. of items per pageDomainRecordsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic DomainRecord getDomainRecordInfo(java.lang.String domainName, java.lang.Integer recordId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetDomainRecordInfo in interface DigitalOceandomainName - of the domainrecordId - of the domainDomainRecordDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic DomainRecord createDomainRecord(java.lang.String domainName, DomainRecord domainRecord) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceancreateDomainRecord in interface DigitalOceandomainName - of the domaindomainRecord - the domain record values domain Id, record type, data, name, priority,
port, weightDomainRecordDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic DomainRecord updateDomainRecord(java.lang.String domainName, java.lang.Integer recordId, DomainRecord domainRecord) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanupdateDomainRecord in interface DigitalOceandomainName - of the domainrecordId - of the domaindomainRecord - the domain record values domain Id, record type, data, name, priority,
port, weightDomainRecordDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete deleteDomainRecord(java.lang.String domainName, java.lang.Integer recordId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandeleteDomainRecord in interface DigitalOceandomainName - of the domainrecordId - of the domainDeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Keys getAvailableKeys(java.lang.Integer pageNo) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableKeys in interface DigitalOceanpageNo - for paginationKeysDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Key getKeyInfo(java.lang.Integer sshKeyId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetKeyInfo in interface DigitalOceansshKeyId - the SSH key IdKeyDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Key getKeyInfo(java.lang.String fingerprint) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetKeyInfo in interface DigitalOceanfingerprint - the SSH key fingerprintKeyDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Key createKey(Key newKey) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceancreateKey in interface DigitalOceannewKey - the Key object with sshKeyName and sshPublicKeyKeyDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Key updateKey(java.lang.Integer sshKeyId, java.lang.String newSshKeyName) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanupdateKey in interface DigitalOceansshKeyId - the SSH key IdnewSshKeyName - the new name to give the SSH keyKeyDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Key updateKey(java.lang.String fingerprint, java.lang.String newSshKeyName) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanupdateKey in interface DigitalOceanfingerprint - the SSH fingerprintnewSshKeyName - the new name to give the SSH keyKeyDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete deleteKey(java.lang.Integer sshKeyId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandeleteKey in interface DigitalOceansshKeyId - the SSH key Id, you would like to deleteDeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete deleteKey(java.lang.String fingerprint) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandeleteKey in interface DigitalOceanfingerprint - the SSH fingerprintDeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic FloatingIPs getAvailableFloatingIPs(java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableFloatingIPs in interface DigitalOceanpageNo - for paginationperPage - no. of items per pageFloatingIPsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic FloatingIP createFloatingIP(java.lang.Integer dropletId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceancreateFloatingIP in interface DigitalOceandropletId - the id of the dropletFloatingIPDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic FloatingIP createFloatingIP(java.lang.String region) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceancreateFloatingIP in interface DigitalOceanregion - name of the DigitalOcean regionFloatingIPDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic FloatingIP getFloatingIPInfo(java.lang.String ipAddress) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetFloatingIPInfo in interface DigitalOceanipAddress - Floating IP addressFloatingIPDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete deleteFloatingIP(java.lang.String ipAddress) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandeleteFloatingIP in interface DigitalOceanipAddress - Floating IP addressDeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action assignFloatingIP(java.lang.Integer dropletId, java.lang.String ipAddress) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanassignFloatingIP in interface DigitalOceandropletId - the id of the dropletipAddress - Floating IP addressActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action unassignFloatingIP(java.lang.String ipAddress) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanunassignFloatingIP in interface DigitalOceanipAddress - Floating IP addressActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Tags getAvailableTags(java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableTags in interface DigitalOceanpageNo - for paginationperPage - no. of items per pageTagsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Tag createTag(java.lang.String name) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceancreateTag in interface DigitalOceanname - Tag NameTagDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Tag getTag(java.lang.String name) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetTag in interface DigitalOceanname - Tag NameTagDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete deleteTag(java.lang.String name) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandeleteTag in interface DigitalOceanname - Tag NameDeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Response tagResources(java.lang.String name, java.util.List<Resource> resources) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceantagResources in interface DigitalOceanname - Tag Nameresources - list of resource by Resource objectsResponseDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Response untagResources(java.lang.String name, java.util.List<Resource> resources) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanuntagResources in interface DigitalOceanname - Tag Nameresources - list of resource by Resource objectsResponseDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Volumes getAvailableVolumes(java.lang.String regionSlug) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableVolumes in interface DigitalOceanregionSlug - is code name of the region aka DigitalOcean data centersVolumesDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Volume createVolume(Volume volume) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceancreateVolume in interface DigitalOceanvolume - details to create new volumeVolumeDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Volume getVolumeInfo(java.lang.String volumeId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetVolumeInfo in interface DigitalOceanvolumeId - volume identifierVolumeDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Volumes getVolumeInfo(java.lang.String volumeName, java.lang.String regionSlug) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetVolumeInfo in interface DigitalOceanvolumeName - name of the volumeregionSlug - is code name of the region aka DigitalOcean data centersVolumesDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete deleteVolume(java.lang.String volumeId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandeleteVolume in interface DigitalOceanvolumeId - volume identifierDeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete deleteVolume(java.lang.String volumeName, java.lang.String regionSlug) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandeleteVolume in interface DigitalOceanregionSlug - is code name of the region aka DigitalOcean data centersDeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action attachVolume(java.lang.Integer dropletId, java.lang.String volumeId, java.lang.String regionSlug) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanattachVolume in interface DigitalOceandropletId - droplet identifiervolumeId - volume identifierregionSlug - is code name of the region aka DigitalOcean data centersActionDigitalOceanExceptionRequestUnsuccessfulExceptionpublic Action attachVolumeByName(java.lang.Integer dropletId, java.lang.String volumeName, java.lang.String regionSlug) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanattachVolumeByName in interface DigitalOceandropletId - droplet identifierregionSlug - is code name of the region aka DigitalOcean data centersActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action detachVolume(java.lang.Integer dropletId, java.lang.String volumeId, java.lang.String regionSlug) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandetachVolume in interface DigitalOceandropletId - droplet identifiervolumeId - volume identifierregionSlug - is code name of the region aka DigitalOcean data centersActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action detachVolumeByName(java.lang.Integer dropletId, java.lang.String volumeName, java.lang.String regionSlug) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandetachVolumeByName in interface DigitalOceandropletId - droplet identifierregionSlug - is code name of the region aka DigitalOcean data centersActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Action resizeVolume(java.lang.String volumeId, java.lang.String regionSlug, java.lang.Double sizeGigabytes) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanresizeVolume in interface DigitalOceanvolumeId - volume identifierregionSlug - is code name of the region aka DigitalOcean data centerssizeGigabytes - size value in GBActionDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Snapshots getVolumeSnapshots(java.lang.String volumeId, java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetVolumeSnapshots in interface DigitalOceanpageNo - for paginationperPage - no. of items per pageSnapshotsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Snapshot takeVolumeSnapshot(java.lang.String volumeId, java.lang.String snapshotName) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceantakeVolumeSnapshot in interface DigitalOceanSnapshotDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Snapshots getAvailableSnapshots(java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableSnapshots in interface DigitalOceanpageNo - for paginationperPage - no. of items per pageSnapshotsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Snapshots getAllDropletSnapshots(java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAllDropletSnapshots in interface DigitalOceanpageNo - for paginationperPage - no. of items per pageSnapshotsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Snapshots getAllVolumeSnapshots(java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAllVolumeSnapshots in interface DigitalOceanpageNo - for paginationperPage - no. of items per pageSnapshotsDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Snapshot getSnaphotInfo(java.lang.String snapshotId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetSnaphotInfo in interface DigitalOceanSnapshotDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete deleteSnapshot(java.lang.String snapshotId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandeleteSnapshot in interface DigitalOceansnapshotId - for snapshotDeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic LoadBalancer createLoadBalancer(LoadBalancer loadBalancer) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceancreateLoadBalancer in interface DigitalOceanloadBalancer - the instance of the loadBalancer classLoadBalancerDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic LoadBalancer getLoadBalancerInfo(java.lang.String loadBalancerId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetLoadBalancerInfo in interface DigitalOceanloadBalancerId - the id of the dropletLoadBalancerDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic LoadBalancers getAvailableLoadBalancers(java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableLoadBalancers in interface DigitalOceanpageNo - for paginationperPage - no. of items per pageLoadBalancersDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic LoadBalancer updateLoadBalancer(LoadBalancer loadBalancer) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanupdateLoadBalancer in interface DigitalOceanloadBalancer - the instance of the loadBalancer classLoadBalancerDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Response addDropletsToLoadBalancer(java.lang.String loadBalancerId, java.util.List<java.lang.Integer> dropletIds) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanaddDropletsToLoadBalancer in interface DigitalOceanloadBalancerId - the id of the loadBalancerdropletIds - an array containing the IDs of the Droplets to be assigned to the Load
Balancer instance.ResponseDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete removeDropletsFromLoadBalancer(java.lang.String loadBalancerId, java.util.List<java.lang.Integer> dropletIds) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanremoveDropletsFromLoadBalancer in interface DigitalOceanloadBalancerId - the id of the loadBalancerdropletIds - an array containing the IDs of the Droplets to be removed from the Load
Balancer instance.DeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Response addForwardingRulesToLoadBalancer(java.lang.String loadBalancerId, java.util.List<ForwardingRules> forwardingRules) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanaddForwardingRulesToLoadBalancer in interface DigitalOceanloadBalancerId - the id of the loadBalancerforwardingRules - an array containing the Forwarding Rules to add to the Load Balancer
instance.ResponseDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete removeForwardingRulesFromLoadBalancer(java.lang.String loadBalancerId, java.util.List<ForwardingRules> forwardingRules) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanremoveForwardingRulesFromLoadBalancer in interface DigitalOceanloadBalancerId - the id of the loadBalancerforwardingRules - an array containing the Forwarding Rules to remove from the Load
Balancer instance.DeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete deleteLoadBalancer(java.lang.String loadBalancerId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandeleteLoadBalancer in interface DigitalOceanloadBalancerId - the id of the loadBalancerDeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Certificates getAvailableCertificates(java.lang.Integer pageNo, java.lang.Integer perPage) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetAvailableCertificates in interface DigitalOceanpageNo - for paginationperPage - no. of items per pageLoadBalancersDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Certificate createCertificate(Certificate certificate) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceanMethod allows you to create a new certificate. See the required parameters section below for an explanation of the variables that are needed to create a new certificate.
Create a instance of Certificate class and populated the certificate object
appropriately. Required values are -
{
"name": "web-cert-01",
"private_key": "-----BEGIN PRIVATE KEY----- ... -----END PRIVATE KEY-----",
"leaf_certificate": "-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE-----",
"certificate_chain": "-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE-----"
}
createCertificate in interface DigitalOceancertificate - the instance of the Certificate classCertificateDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Certificate getCertificateInfo(java.lang.String certificateId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceangetCertificateInfo in interface DigitalOceancertificateId - the id of the certificateCertificateDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper methodpublic Delete deleteCertificate(java.lang.String certificateId) throws DigitalOceanException, RequestUnsuccessfulException
DigitalOceandeleteCertificate in interface DigitalOceancertificateId - the id of the certificateDeleteDigitalOceanException - if request had interruption [
HTTP status code >= 400 && < 510]RequestUnsuccessfulException - if any RESTful request unsuccessful from wrapper method
Copyright © myjeeva blog, All rights reserved.
The copyright of the pages and contents on this website is with myjeeva.com and the content is licensed under Creative Commons – Attribution-ShareAlike 4.0 International (CC BY-SA 4.0). Libraries and code snippets on myjeeva blog has license information.