Struct digitalocean::api::Droplet [] [src]

pub struct Droplet { /* fields omitted */ }

A Droplet is a DigitalOcean virtual machine. By sending requests to the Droplet endpoint, you can list, create, or delete Droplets.

Some of the attributes will have an object value. The region and image objects will all contain the standard attributes of their associated types. Find more information about each of these objects in their respective sections.

Digital Ocean Documentation.

Methods

impl Droplet
[src]

[src]

A unique identifier for each Droplet instance. This is automatically generated upon Droplet creation.

[src]

The human-readable name set for the Droplet instance.

[src]

Memory of the Droplet in megabytes.

[src]

The number of virtual CPUs.

[src]

The size of the Droplet's disk in gigabytes.

[src]

A boolean value indicating whether the Droplet has been locked, preventing actions by users.

[src]

A time value given in ISO8601 combined date and time format that represents when the Droplet was created.

[src]

A status string indicating the state of the Droplet instance. This may be "new", "active", "off", or "archive".

[src]

An array of backup IDs of any backups that have been taken of the Droplet instance. Droplet backups are enabled at the time of the instance creation.

[src]

An array of snapshot IDs of any snapshots created from the Droplet instance.

[src]

An array of features enabled on this Droplet.

[src]

The region that the Droplet instance is deployed in. When setting a region, the value should be the slug identifier for the region. When you query a Droplet, the entire region object will be returned.

[src]

The base image used to create the Droplet instance. When setting an image, the value is set to the image id or slug. When querying the Droplet, the entire image object will be returned.

[src]

The current size object describing the Droplet. When setting a size, the value is set to the size slug. When querying the Droplet, the entire size object will be returned. Note that the disk volume of a Droplet may not match the size's disk due to Droplet resize actions. The disk attribute on the Droplet should always be referenced.

[src]

The unique slug identifier for the size of this Droplet.

[src]

The details of the network that are configured for the Droplet instance. This is an object that contains keys for IPv4 and IPv6. The value of each of these is an array that contains objects describing an individual IP resource allocated to the Droplet. These will define attributes like the IP address, netmask, and gateway of the specific network depending on the type of network it is.

[src]

The current kernel. This will initially be set to the kernel of the base image when the Droplet is created.

[src]

The details of the Droplet's backups feature, if backups are configured for the Droplet. This object contains keys for the start and end times of the window during which the backup will start.

[src]

An array of Tags the Droplet has been tagged with.

[src]

A flat array including the unique identifier for each Block Storage volume attached to the Droplet.

impl Droplet
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Debug for Droplet
[src]

[src]

Formats the value using the given formatter.

impl Clone for Droplet
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl HasResponse for Droplet
[src]