GPU Droplets
Retrieve an Existing Droplet
client.GPUDroplets.Get(ctx, dropletID) (*GPUDropletGetResponse, error)
/v2/droplets/{droplet_id}
List Snapshots for a Droplet
client.GPUDroplets.ListSnapshots(ctx, dropletID, query) (*GPUDropletListSnapshotsResponse, error)
/v2/droplets/{droplet_id}/snapshots
List All Available Kernels for a Droplet
client.GPUDroplets.ListKernels(ctx, dropletID, query) (*GPUDropletListKernelsResponse, error)
/v2/droplets/{droplet_id}/kernels
List all Firewalls Applied to a Droplet
client.GPUDroplets.ListFirewalls(ctx, dropletID, query) (*GPUDropletListFirewallsResponse, error)
/v2/droplets/{droplet_id}/firewalls
List Neighbors for a Droplet
client.GPUDroplets.ListNeighbors(ctx, dropletID) (*GPUDropletListNeighborsResponse, error)
/v2/droplets/{droplet_id}/neighbors
Models
GPU DropletsBackups
List Backups for a Droplet
client.GPUDroplets.Backups.List(ctx, dropletID, query) (*GPUDropletBackupListResponse, error)
/v2/droplets/{droplet_id}/backups
Retrieve the Backup Policy for an Existing Droplet
client.GPUDroplets.Backups.GetPolicy(ctx, dropletID) (*GPUDropletBackupGetPolicyResponse, error)
/v2/droplets/{droplet_id}/backups/policy
List Backup Policies for All Existing Droplets
client.GPUDroplets.Backups.ListPolicies(ctx, query) (*GPUDropletBackupListPoliciesResponse, error)
/v2/droplets/backups/policies
List Supported Droplet Backup Policies
client.GPUDroplets.Backups.ListSupportedPolicies(ctx) (*GPUDropletBackupListSupportedPoliciesResponse, error)
/v2/droplets/backups/supported_policies
GPU DropletsActions
List Actions for a Droplet
client.GPUDroplets.Actions.List(ctx, dropletID, query) (*GPUDropletActionListResponse, error)
/v2/droplets/{droplet_id}/actions
Initiate a Droplet Action
client.GPUDroplets.Actions.Initiate(ctx, dropletID, body) (*GPUDropletActionInitiateResponse, error)
/v2/droplets/{droplet_id}/actions
Acting on Tagged Droplets
client.GPUDroplets.Actions.BulkInitiate(ctx, params) (*GPUDropletActionBulkInitiateResponse, error)
/v2/droplets/actions
Retrieve a Droplet Action
client.GPUDroplets.Actions.Get(ctx, dropletID, actionID) (*GPUDropletActionGetResponse, error)
/v2/droplets/{droplet_id}/actions/{action_id}
GPU DropletsDestroy With Associated Resources
List Associated Resources for a Droplet
client.GPUDroplets.DestroyWithAssociatedResources.List(ctx, dropletID) (*GPUDropletDestroyWithAssociatedResourceListResponse, error)
/v2/droplets/{droplet_id}/destroy_with_associated_resources
Selectively Destroy a Droplet and its Associated Resources
client.GPUDroplets.DestroyWithAssociatedResources.DeleteSelective(ctx, dropletID, body) error
/v2/droplets/{droplet_id}/destroy_with_associated_resources/selective
Destroy a Droplet and All of its Associated Resources (Dangerous)
client.GPUDroplets.DestroyWithAssociatedResources.DeleteDangerous(ctx, dropletID, body) error
/v2/droplets/{droplet_id}/destroy_with_associated_resources/dangerous
Check Status of a Droplet Destroy with Associated Resources Request
client.GPUDroplets.DestroyWithAssociatedResources.CheckStatus(ctx, dropletID) (*GPUDropletDestroyWithAssociatedResourceCheckStatusResponse, error)
/v2/droplets/{droplet_id}/destroy_with_associated_resources/status
Retry a Droplet Destroy with Associated Resources Request
client.GPUDroplets.DestroyWithAssociatedResources.Retry(ctx, dropletID) error
/v2/droplets/{droplet_id}/destroy_with_associated_resources/retry
Models
GPU DropletsAutoscale
List All Autoscale Pools
client.GPUDroplets.Autoscale.List(ctx, query) (*GPUDropletAutoscaleListResponse, error)
/v2/droplets/autoscale
Create a New Autoscale Pool
client.GPUDroplets.Autoscale.New(ctx, body) (*GPUDropletAutoscaleNewResponse, error)
/v2/droplets/autoscale
Retrieve an Existing Autoscale Pool
client.GPUDroplets.Autoscale.Get(ctx, autoscalePoolID) (*GPUDropletAutoscaleGetResponse, error)
/v2/droplets/autoscale/{autoscale_pool_id}
Update Autoscale Pool
client.GPUDroplets.Autoscale.Update(ctx, autoscalePoolID, body) (*GPUDropletAutoscaleUpdateResponse, error)
/v2/droplets/autoscale/{autoscale_pool_id}
Delete autoscale pool
client.GPUDroplets.Autoscale.Delete(ctx, autoscalePoolID) error
/v2/droplets/autoscale/{autoscale_pool_id}
Delete autoscale pool and resources
client.GPUDroplets.Autoscale.DeleteDangerous(ctx, autoscalePoolID, body) error
/v2/droplets/autoscale/{autoscale_pool_id}/dangerous
List members
client.GPUDroplets.Autoscale.ListMembers(ctx, autoscalePoolID, query) (*GPUDropletAutoscaleListMembersResponse, error)
/v2/droplets/autoscale/{autoscale_pool_id}/members
List history events
client.GPUDroplets.Autoscale.ListHistory(ctx, autoscalePoolID, query) (*GPUDropletAutoscaleListHistoryResponse, error)
/v2/droplets/autoscale/{autoscale_pool_id}/history
Models
GPU DropletsFirewalls
List All Firewalls
client.GPUDroplets.Firewalls.List(ctx, query) (*GPUDropletFirewallListResponse, error)
/v2/firewalls
Create a New Firewall
client.GPUDroplets.Firewalls.New(ctx, body) (*GPUDropletFirewallNewResponse, error)
/v2/firewalls
Retrieve an Existing Firewall
client.GPUDroplets.Firewalls.Get(ctx, firewallID) (*GPUDropletFirewallGetResponse, error)
/v2/firewalls/{firewall_id}
Update a Firewall
client.GPUDroplets.Firewalls.Update(ctx, firewallID, body) (*GPUDropletFirewallUpdateResponse, error)
/v2/firewalls/{firewall_id}
Delete a Firewall
client.GPUDroplets.Firewalls.Delete(ctx, firewallID) error
/v2/firewalls/{firewall_id}
Models
GPU DropletsFirewallsDroplets
Add Droplets to a Firewall
client.GPUDroplets.Firewalls.Droplets.Add(ctx, firewallID, body) error
/v2/firewalls/{firewall_id}/droplets
Remove Droplets from a Firewall
client.GPUDroplets.Firewalls.Droplets.Remove(ctx, firewallID, body) error
/v2/firewalls/{firewall_id}/droplets
GPU DropletsFirewallsTags
Add Tags to a Firewall
client.GPUDroplets.Firewalls.Tags.Add(ctx, firewallID, body) error
/v2/firewalls/{firewall_id}/tags
Remove Tags from a Firewall
client.GPUDroplets.Firewalls.Tags.Remove(ctx, firewallID, body) error
/v2/firewalls/{firewall_id}/tags
GPU DropletsFirewallsRules
Add Rules to a Firewall
client.GPUDroplets.Firewalls.Rules.Add(ctx, firewallID, body) error
/v2/firewalls/{firewall_id}/rules
Remove Rules from a Firewall
client.GPUDroplets.Firewalls.Rules.Remove(ctx, firewallID, body) error
/v2/firewalls/{firewall_id}/rules
GPU DropletsFloating IPs
List All Floating IPs
client.GPUDroplets.FloatingIPs.List(ctx, query) (*GPUDropletFloatingIPListResponse, error)
/v2/floating_ips
Create a New Floating IP
client.GPUDroplets.FloatingIPs.New(ctx, body) (*GPUDropletFloatingIPNewResponse, error)
/v2/floating_ips
Retrieve an Existing Floating IP
client.GPUDroplets.FloatingIPs.Get(ctx, floatingIP) (*GPUDropletFloatingIPGetResponse, error)
/v2/floating_ips/{floating_ip}
Delete a Floating IP
client.GPUDroplets.FloatingIPs.Delete(ctx, floatingIP) error
/v2/floating_ips/{floating_ip}
Models
GPU DropletsFloating IPsActions
List All Actions for a Floating IP
client.GPUDroplets.FloatingIPs.Actions.List(ctx, floatingIP) (*GPUDropletFloatingIPActionListResponse, error)
/v2/floating_ips/{floating_ip}/actions
Initiate a Floating IP Action
client.GPUDroplets.FloatingIPs.Actions.New(ctx, floatingIP, body) (*GPUDropletFloatingIPActionNewResponse, error)
/v2/floating_ips/{floating_ip}/actions
Retrieve an Existing Floating IP Action
client.GPUDroplets.FloatingIPs.Actions.Get(ctx, floatingIP, actionID) (*GPUDropletFloatingIPActionGetResponse, error)
/v2/floating_ips/{floating_ip}/actions/{action_id}
GPU DropletsImages
List All Images
client.GPUDroplets.Images.List(ctx, query) (*GPUDropletImageListResponse, error)
/v2/images
Create a Custom Image
client.GPUDroplets.Images.New(ctx, body) (*GPUDropletImageNewResponse, error)
/v2/images
Retrieve an Existing Image
client.GPUDroplets.Images.Get(ctx, imageID) (*GPUDropletImageGetResponse, error)
/v2/images/{image_id}
Update an Image
client.GPUDroplets.Images.Update(ctx, imageID, body) (*GPUDropletImageUpdateResponse, error)
/v2/images/{image_id}
GPU DropletsImagesActions
List All Actions for an Image
client.GPUDroplets.Images.Actions.List(ctx, imageID) (*GPUDropletImageActionListResponse, error)
/v2/images/{image_id}/actions
Initiate an Image Action
client.GPUDroplets.Images.Actions.New(ctx, imageID, body) (*Action, error)
/v2/images/{image_id}/actions
Retrieve an Existing Action
client.GPUDroplets.Images.Actions.Get(ctx, imageID, actionID) (*Action, error)
/v2/images/{image_id}/actions/{action_id}
GPU DropletsLoad Balancers
Create a New Load Balancer
client.GPUDroplets.LoadBalancers.New(ctx, body) (*GPUDropletLoadBalancerNewResponse, error)
/v2/load_balancers
List All Load Balancers
client.GPUDroplets.LoadBalancers.List(ctx, query) (*GPUDropletLoadBalancerListResponse, error)
/v2/load_balancers
Retrieve an Existing Load Balancer
client.GPUDroplets.LoadBalancers.Get(ctx, lbID) (*GPUDropletLoadBalancerGetResponse, error)
/v2/load_balancers/{lb_id}
Update a Load Balancer
client.GPUDroplets.LoadBalancers.Update(ctx, lbID, body) (*GPUDropletLoadBalancerUpdateResponse, error)
/v2/load_balancers/{lb_id}
Delete a Load Balancer
client.GPUDroplets.LoadBalancers.Delete(ctx, lbID) error
/v2/load_balancers/{lb_id}
Delete a Global Load Balancer CDN Cache
client.GPUDroplets.LoadBalancers.DeleteCache(ctx, lbID) error
/v2/load_balancers/{lb_id}/cache
Models
GPU DropletsLoad BalancersDroplets
Add Droplets to a Load Balancer
client.GPUDroplets.LoadBalancers.Droplets.Add(ctx, lbID, body) error
/v2/load_balancers/{lb_id}/droplets
Remove Droplets from a Load Balancer
client.GPUDroplets.LoadBalancers.Droplets.Remove(ctx, lbID, body) error
/v2/load_balancers/{lb_id}/droplets
GPU DropletsLoad BalancersForwarding Rules
Add Forwarding Rules to a Load Balancer
client.GPUDroplets.LoadBalancers.ForwardingRules.Add(ctx, lbID, body) error
/v2/load_balancers/{lb_id}/forwarding_rules
Remove Forwarding Rules from a Load Balancer
client.GPUDroplets.LoadBalancers.ForwardingRules.Remove(ctx, lbID, body) error
/v2/load_balancers/{lb_id}/forwarding_rules
GPU DropletsSizes
List All Droplet Sizes
client.GPUDroplets.Sizes.List(ctx, query) (*GPUDropletSizeListResponse, error)
/v2/sizes
GPU DropletsSnapshots
List All Snapshots
client.GPUDroplets.Snapshots.List(ctx, query) (*GPUDropletSnapshotListResponse, error)
/v2/snapshots
Retrieve an Existing Snapshot
client.GPUDroplets.Snapshots.Get(ctx, snapshotID) (*GPUDropletSnapshotGetResponse, error)
/v2/snapshots/{snapshot_id}
Delete a Snapshot
client.GPUDroplets.Snapshots.Delete(ctx, snapshotID) error
/v2/snapshots/{snapshot_id}
GPU DropletsVolumes
List All Block Storage Volumes
client.GPUDroplets.Volumes.List(ctx, query) (*GPUDropletVolumeListResponse, error)
/v2/volumes
Create a New Block Storage Volume
client.GPUDroplets.Volumes.New(ctx, body) (*GPUDropletVolumeNewResponse, error)
/v2/volumes
Delete a Block Storage Volume by Name
client.GPUDroplets.Volumes.DeleteByName(ctx, body) error
/v2/volumes
Retrieve an Existing Block Storage Volume
client.GPUDroplets.Volumes.Get(ctx, volumeID) (*GPUDropletVolumeGetResponse, error)
/v2/volumes/{volume_id}
Delete a Block Storage Volume
client.GPUDroplets.Volumes.Delete(ctx, volumeID) error
/v2/volumes/{volume_id}
GPU DropletsVolumesActions
Initiate A Block Storage Action By Volume Name
client.GPUDroplets.Volumes.Actions.InitiateByName(ctx, params) (*GPUDropletVolumeActionInitiateByNameResponse, error)
/v2/volumes/actions
List All Actions for a Volume
client.GPUDroplets.Volumes.Actions.List(ctx, volumeID, query) (*GPUDropletVolumeActionListResponse, error)
/v2/volumes/{volume_id}/actions
Initiate A Block Storage Action By Volume Id
client.GPUDroplets.Volumes.Actions.InitiateByID(ctx, volumeID, params) (*GPUDropletVolumeActionInitiateByIDResponse, error)
/v2/volumes/{volume_id}/actions
Retrieve an Existing Volume Action
client.GPUDroplets.Volumes.Actions.Get(ctx, volumeID, actionID, query) (*GPUDropletVolumeActionGetResponse, error)
/v2/volumes/{volume_id}/actions/{action_id}
Models
GPU DropletsVolumesSnapshots
Retrieve an Existing Volume Snapshot
client.GPUDroplets.Volumes.Snapshots.Get(ctx, snapshotID) (*GPUDropletVolumeSnapshotGetResponse, error)
/v2/volumes/snapshots/{snapshot_id}
Delete a Volume Snapshot
client.GPUDroplets.Volumes.Snapshots.Delete(ctx, snapshotID) error
/v2/volumes/snapshots/{snapshot_id}
List Snapshots for a Volume
client.GPUDroplets.Volumes.Snapshots.List(ctx, volumeID, query) (*GPUDropletVolumeSnapshotListResponse, error)
/v2/volumes/{volume_id}/snapshots
Create Snapshot from a Volume
client.GPUDroplets.Volumes.Snapshots.New(ctx, volumeID, body) (*GPUDropletVolumeSnapshotNewResponse, error)
/v2/volumes/{volume_id}/snapshots
GPU DropletsAccount
GPU DropletsAccountKeys
List All SSH Keys
client.GPUDroplets.Account.Keys.List(ctx, query) (*GPUDropletAccountKeyListResponse, error)
/v2/account/keys
Create a New SSH Key
client.GPUDroplets.Account.Keys.New(ctx, body) (*GPUDropletAccountKeyNewResponse, error)
/v2/account/keys
Retrieve an Existing SSH Key
client.GPUDroplets.Account.Keys.Get(ctx, sshKeyIdentifier) (*GPUDropletAccountKeyGetResponse, error)
/v2/account/keys/{ssh_key_identifier}
Update an SSH Key's Name
client.GPUDroplets.Account.Keys.Update(ctx, sshKeyIdentifier, body) (*GPUDropletAccountKeyUpdateResponse, error)
/v2/account/keys/{ssh_key_identifier}
Delete an SSH Key
client.GPUDroplets.Account.Keys.Delete(ctx, sshKeyIdentifier) error
/v2/account/keys/{ssh_key_identifier}