GPU Droplets
GPU Droplets
Create a New Droplet
gpu_droplets.create(GPUDropletCreateParams**kwargs) -> GPUDropletCreateResponse
post/v2/droplets
Deleting Droplets by Tag
gpu_droplets.delete_by_tag(GPUDropletDeleteByTagParams**kwargs)
delete/v2/droplets
List All Droplets
gpu_droplets.list(GPUDropletListParams**kwargs) -> GPUDropletListResponse
get/v2/droplets
List all Firewalls Applied to a Droplet
gpu_droplets.list_firewalls(intdroplet_id, GPUDropletListFirewallsParams**kwargs) -> GPUDropletListFirewallsResponse
get/v2/droplets/{droplet_id}/firewalls
List All Available Kernels for a Droplet
gpu_droplets.list_kernels(intdroplet_id, GPUDropletListKernelsParams**kwargs) -> GPUDropletListKernelsResponse
get/v2/droplets/{droplet_id}/kernels
List Neighbors for a Droplet
gpu_droplets.list_neighbors(intdroplet_id) -> GPUDropletListNeighborsResponse
get/v2/droplets/{droplet_id}/neighbors
List Snapshots for a Droplet
gpu_droplets.list_snapshots(intdroplet_id, GPUDropletListSnapshotsParams**kwargs) -> GPUDropletListSnapshotsResponse
get/v2/droplets/{droplet_id}/snapshots
Retrieve an Existing Droplet
gpu_droplets.retrieve(intdroplet_id) -> GPUDropletRetrieveResponse
get/v2/droplets/{droplet_id}
Models
GPU DropletsAccount
GPU DropletsAccountKeys
Create a New SSH Key
gpu_droplets.account.keys.create(KeyCreateParams**kwargs) -> KeyCreateResponse
post/v2/account/keys
Delete an SSH Key
gpu_droplets.account.keys.delete(Union[int, str]ssh_key_identifier)
delete/v2/account/keys/{ssh_key_identifier}
List All SSH Keys
gpu_droplets.account.keys.list(KeyListParams**kwargs) -> KeyListResponse
get/v2/account/keys
Retrieve an Existing SSH Key
gpu_droplets.account.keys.retrieve(Union[int, str]ssh_key_identifier) -> KeyRetrieveResponse
get/v2/account/keys/{ssh_key_identifier}
Update an SSH Key's Name
gpu_droplets.account.keys.update(Union[int, str]ssh_key_identifier, KeyUpdateParams**kwargs) -> KeyUpdateResponse
put/v2/account/keys/{ssh_key_identifier}
GPU DropletsActions
Acting on Tagged Droplets
gpu_droplets.actions.bulk_initiate(ActionBulkInitiateParams**kwargs) -> ActionBulkInitiateResponse
post/v2/droplets/actions
Initiate a Droplet Action
gpu_droplets.actions.initiate(intdroplet_id, ActionInitiateParams**kwargs) -> ActionInitiateResponse
post/v2/droplets/{droplet_id}/actions
List Actions for a Droplet
gpu_droplets.actions.list(intdroplet_id, ActionListParams**kwargs) -> ActionListResponse
get/v2/droplets/{droplet_id}/actions
Retrieve a Droplet Action
gpu_droplets.actions.retrieve(intaction_id, ActionRetrieveParams**kwargs) -> ActionRetrieveResponse
get/v2/droplets/{droplet_id}/actions/{action_id}
GPU DropletsAutoscale
Create a New Autoscale Pool
gpu_droplets.autoscale.create(AutoscaleCreateParams**kwargs) -> AutoscaleCreateResponse
post/v2/droplets/autoscale
Delete autoscale pool
gpu_droplets.autoscale.delete(strautoscale_pool_id)
delete/v2/droplets/autoscale/{autoscale_pool_id}
Delete autoscale pool and resources
gpu_droplets.autoscale.delete_dangerous(strautoscale_pool_id, AutoscaleDeleteDangerousParams**kwargs)
delete/v2/droplets/autoscale/{autoscale_pool_id}/dangerous
List All Autoscale Pools
gpu_droplets.autoscale.list(AutoscaleListParams**kwargs) -> AutoscaleListResponse
get/v2/droplets/autoscale
List history events
gpu_droplets.autoscale.list_history(strautoscale_pool_id, AutoscaleListHistoryParams**kwargs) -> AutoscaleListHistoryResponse
get/v2/droplets/autoscale/{autoscale_pool_id}/history
List members
gpu_droplets.autoscale.list_members(strautoscale_pool_id, AutoscaleListMembersParams**kwargs) -> AutoscaleListMembersResponse
get/v2/droplets/autoscale/{autoscale_pool_id}/members
Retrieve an Existing Autoscale Pool
gpu_droplets.autoscale.retrieve(strautoscale_pool_id) -> AutoscaleRetrieveResponse
get/v2/droplets/autoscale/{autoscale_pool_id}
Update Autoscale Pool
gpu_droplets.autoscale.update(strautoscale_pool_id, AutoscaleUpdateParams**kwargs) -> AutoscaleUpdateResponse
put/v2/droplets/autoscale/{autoscale_pool_id}
Models
GPU DropletsBackups
List Backups for a Droplet
gpu_droplets.backups.list(intdroplet_id, BackupListParams**kwargs) -> BackupListResponse
get/v2/droplets/{droplet_id}/backups
List Backup Policies for All Existing Droplets
gpu_droplets.backups.list_policies(BackupListPoliciesParams**kwargs) -> BackupListPoliciesResponse
get/v2/droplets/backups/policies
List Supported Droplet Backup Policies
gpu_droplets.backups.list_supported_policies() -> BackupListSupportedPoliciesResponse
get/v2/droplets/backups/supported_policies
Retrieve the Backup Policy for an Existing Droplet
gpu_droplets.backups.retrieve_policy(intdroplet_id) -> BackupRetrievePolicyResponse
get/v2/droplets/{droplet_id}/backups/policy
GPU DropletsDestroy With Associated Resources
Check Status of a Droplet Destroy with Associated Resources Request
gpu_droplets.destroy_with_associated_resources.check_status(intdroplet_id) -> DestroyWithAssociatedResourceCheckStatusResponse
get/v2/droplets/{droplet_id}/destroy_with_associated_resources/status
Destroy a Droplet and All of its Associated Resources (Dangerous)
gpu_droplets.destroy_with_associated_resources.delete_dangerous(intdroplet_id, DestroyWithAssociatedResourceDeleteDangerousParams**kwargs)
delete/v2/droplets/{droplet_id}/destroy_with_associated_resources/dangerous
Selectively Destroy a Droplet and its Associated Resources
gpu_droplets.destroy_with_associated_resources.delete_selective(intdroplet_id, DestroyWithAssociatedResourceDeleteSelectiveParams**kwargs)
delete/v2/droplets/{droplet_id}/destroy_with_associated_resources/selective
List Associated Resources for a Droplet
gpu_droplets.destroy_with_associated_resources.list(intdroplet_id) -> DestroyWithAssociatedResourceListResponse
get/v2/droplets/{droplet_id}/destroy_with_associated_resources
Retry a Droplet Destroy with Associated Resources Request
gpu_droplets.destroy_with_associated_resources.retry(intdroplet_id)
post/v2/droplets/{droplet_id}/destroy_with_associated_resources/retry
Models
GPU DropletsFirewalls
Create a New Firewall
gpu_droplets.firewalls.create(FirewallCreateParams**kwargs) -> FirewallCreateResponse
post/v2/firewalls
List All Firewalls
gpu_droplets.firewalls.list(FirewallListParams**kwargs) -> FirewallListResponse
get/v2/firewalls
Retrieve an Existing Firewall
gpu_droplets.firewalls.retrieve(strfirewall_id) -> FirewallRetrieveResponse
get/v2/firewalls/{firewall_id}
Update a Firewall
gpu_droplets.firewalls.update(strfirewall_id, FirewallUpdateParams**kwargs) -> FirewallUpdateResponse
put/v2/firewalls/{firewall_id}
Models
GPU DropletsFirewallsDroplets
Add Droplets to a Firewall
gpu_droplets.firewalls.droplets.add(strfirewall_id, DropletAddParams**kwargs)
post/v2/firewalls/{firewall_id}/droplets
Remove Droplets from a Firewall
gpu_droplets.firewalls.droplets.remove(strfirewall_id, DropletRemoveParams**kwargs)
delete/v2/firewalls/{firewall_id}/droplets
GPU DropletsFirewallsRules
Add Rules to a Firewall
gpu_droplets.firewalls.rules.add(strfirewall_id, RuleAddParams**kwargs)
post/v2/firewalls/{firewall_id}/rules
Remove Rules from a Firewall
gpu_droplets.firewalls.rules.remove(strfirewall_id, RuleRemoveParams**kwargs)
delete/v2/firewalls/{firewall_id}/rules
GPU DropletsFirewallsTags
Add Tags to a Firewall
gpu_droplets.firewalls.tags.add(strfirewall_id, TagAddParams**kwargs)
post/v2/firewalls/{firewall_id}/tags
Remove Tags from a Firewall
gpu_droplets.firewalls.tags.remove(strfirewall_id, TagRemoveParams**kwargs)
delete/v2/firewalls/{firewall_id}/tags
GPU DropletsFloating IPs
Create a New Floating IP
gpu_droplets.floating_ips.create(FloatingIPCreateParams**kwargs) -> FloatingIPCreateResponse
post/v2/floating_ips
Delete a Floating IP
gpu_droplets.floating_ips.delete(strfloating_ip)
delete/v2/floating_ips/{floating_ip}
List All Floating IPs
gpu_droplets.floating_ips.list(FloatingIPListParams**kwargs) -> FloatingIPListResponse
get/v2/floating_ips
Retrieve an Existing Floating IP
gpu_droplets.floating_ips.retrieve(strfloating_ip) -> FloatingIPRetrieveResponse
get/v2/floating_ips/{floating_ip}
Models
GPU DropletsFloating IPsActions
Initiate a Floating IP Action
gpu_droplets.floating_ips.actions.create(strfloating_ip, ActionCreateParams**kwargs) -> ActionCreateResponse
post/v2/floating_ips/{floating_ip}/actions
List All Actions for a Floating IP
gpu_droplets.floating_ips.actions.list(strfloating_ip) -> ActionListResponse
get/v2/floating_ips/{floating_ip}/actions
Retrieve an Existing Floating IP Action
gpu_droplets.floating_ips.actions.retrieve(intaction_id, ActionRetrieveParams**kwargs) -> ActionRetrieveResponse
get/v2/floating_ips/{floating_ip}/actions/{action_id}
GPU DropletsImages
Create a Custom Image
gpu_droplets.images.create(ImageCreateParams**kwargs) -> ImageCreateResponse
post/v2/images
Retrieve an Existing Image
gpu_droplets.images.retrieve(Union[int, str]image_id) -> ImageRetrieveResponse
get/v2/images/{image_id}
Update an Image
gpu_droplets.images.update(intimage_id, ImageUpdateParams**kwargs) -> ImageUpdateResponse
put/v2/images/{image_id}
GPU DropletsImagesActions
Initiate an Image Action
gpu_droplets.images.actions.create(intimage_id, ActionCreateParams**kwargs) -> Action
post/v2/images/{image_id}/actions
List All Actions for an Image
gpu_droplets.images.actions.list(intimage_id) -> ActionListResponse
get/v2/images/{image_id}/actions
Retrieve an Existing Action
gpu_droplets.images.actions.retrieve(intaction_id, ActionRetrieveParams**kwargs) -> Action
get/v2/images/{image_id}/actions/{action_id}
GPU DropletsLoad Balancers
Create a New Load Balancer
gpu_droplets.load_balancers.create(LoadBalancerCreateParams**kwargs) -> LoadBalancerCreateResponse
post/v2/load_balancers
Delete a Global Load Balancer CDN Cache
gpu_droplets.load_balancers.delete_cache(strlb_id)
delete/v2/load_balancers/{lb_id}/cache
List All Load Balancers
gpu_droplets.load_balancers.list(LoadBalancerListParams**kwargs) -> LoadBalancerListResponse
get/v2/load_balancers
Retrieve an Existing Load Balancer
gpu_droplets.load_balancers.retrieve(strlb_id) -> LoadBalancerRetrieveResponse
get/v2/load_balancers/{lb_id}
Update a Load Balancer
gpu_droplets.load_balancers.update(strlb_id, LoadBalancerUpdateParams**kwargs) -> LoadBalancerUpdateResponse
put/v2/load_balancers/{lb_id}
Models
GPU DropletsLoad BalancersDroplets
Add Droplets to a Load Balancer
gpu_droplets.load_balancers.droplets.add(strlb_id, DropletAddParams**kwargs)
post/v2/load_balancers/{lb_id}/droplets
Remove Droplets from a Load Balancer
gpu_droplets.load_balancers.droplets.remove(strlb_id, DropletRemoveParams**kwargs)
delete/v2/load_balancers/{lb_id}/droplets
GPU DropletsLoad BalancersForwarding Rules
Add Forwarding Rules to a Load Balancer
gpu_droplets.load_balancers.forwarding_rules.add(strlb_id, ForwardingRuleAddParams**kwargs)
post/v2/load_balancers/{lb_id}/forwarding_rules
Remove Forwarding Rules from a Load Balancer
gpu_droplets.load_balancers.forwarding_rules.remove(strlb_id, ForwardingRuleRemoveParams**kwargs)
delete/v2/load_balancers/{lb_id}/forwarding_rules
GPU DropletsSizes
List All Droplet Sizes
gpu_droplets.sizes.list(SizeListParams**kwargs) -> SizeListResponse
get/v2/sizes
GPU DropletsSnapshots
Delete a Snapshot
gpu_droplets.snapshots.delete(Union[int, str]snapshot_id)
delete/v2/snapshots/{snapshot_id}
List All Snapshots
gpu_droplets.snapshots.list(SnapshotListParams**kwargs) -> SnapshotListResponse
get/v2/snapshots
Retrieve an Existing Snapshot
gpu_droplets.snapshots.retrieve(Union[int, str]snapshot_id) -> SnapshotRetrieveResponse
get/v2/snapshots/{snapshot_id}
GPU DropletsVolumes
Create a New Block Storage Volume
gpu_droplets.volumes.create(VolumeCreateParams**kwargs) -> VolumeCreateResponse
post/v2/volumes
Delete a Block Storage Volume
gpu_droplets.volumes.delete(strvolume_id)
delete/v2/volumes/{volume_id}
Delete a Block Storage Volume by Name
gpu_droplets.volumes.delete_by_name(VolumeDeleteByNameParams**kwargs)
delete/v2/volumes
List All Block Storage Volumes
gpu_droplets.volumes.list(VolumeListParams**kwargs) -> VolumeListResponse
get/v2/volumes
Retrieve an Existing Block Storage Volume
gpu_droplets.volumes.retrieve(strvolume_id) -> VolumeRetrieveResponse
get/v2/volumes/{volume_id}
GPU DropletsVolumesActions
Initiate A Block Storage Action By Volume Id
gpu_droplets.volumes.actions.initiate_by_id(strvolume_id, ActionInitiateByIDParams**kwargs) -> ActionInitiateByIDResponse
post/v2/volumes/{volume_id}/actions
Initiate A Block Storage Action By Volume Name
gpu_droplets.volumes.actions.initiate_by_name(ActionInitiateByNameParams**kwargs) -> ActionInitiateByNameResponse
post/v2/volumes/actions
List All Actions for a Volume
gpu_droplets.volumes.actions.list(strvolume_id, ActionListParams**kwargs) -> ActionListResponse
get/v2/volumes/{volume_id}/actions
Retrieve an Existing Volume Action
gpu_droplets.volumes.actions.retrieve(intaction_id, ActionRetrieveParams**kwargs) -> ActionRetrieveResponse
get/v2/volumes/{volume_id}/actions/{action_id}
Models
GPU DropletsVolumesSnapshots
Create Snapshot from a Volume
gpu_droplets.volumes.snapshots.create(strvolume_id, SnapshotCreateParams**kwargs) -> SnapshotCreateResponse
post/v2/volumes/{volume_id}/snapshots
Delete a Volume Snapshot
gpu_droplets.volumes.snapshots.delete(strsnapshot_id)
delete/v2/volumes/snapshots/{snapshot_id}
List Snapshots for a Volume
gpu_droplets.volumes.snapshots.list(strvolume_id, SnapshotListParams**kwargs) -> SnapshotListResponse
get/v2/volumes/{volume_id}/snapshots
Retrieve an Existing Volume Snapshot
gpu_droplets.volumes.snapshots.retrieve(strsnapshot_id) -> SnapshotRetrieveResponse
get/v2/volumes/snapshots/{snapshot_id}