Flint provides out-of-the-box or ready to use workflows for operations on cloud infrastructure/resources. Here are the details of workflows or Flintbits for DigitalOcean provider-

Flintbox nameLocationDigitalOcean Flintbits
fb-cloudhttps://github.com/getflint/fb-cloud.gitfb-cloud > digitalocean > operation

Available Flintbits

Perform all standard application operations available through the DigitalOcean, Some of them are listed below:

DigitalOcean available Flintbits

  • Create_instance.rb
  • start_instance.rb
  • stop_instance.rb
  • reboot_instance.rb
  • reset_instance.rb
  • describe_instance.rb
  • list_instance.rb
  • delete_instance.rb
  • check_action_status.rb
  • list_regions.rb

Create Droplet

To create a new Droplet in DigitalOcean data center.

Input and output JSON for the Create Droplet operation

This section illustrates the Flintbit Input and output for Create Droplet operation.

Sample Input JSON for the Create Droplet operation
{
  "connector_name" : "digitalocean",
  "token" : "b7d03a6947b217efb6f3ec3bd3504582",
  "name" : "example.com",
  "region" : "nyc3",
  "image" : "ubuntu-14-04-x64",
  "size" : "512mb",
  "ssh_keys": null,
  "backups" : false,
  "ipv6" : false,
  "user_data" : null,
  "private_networking":true 
} 

 

Flintbit input elements for the Create Droplet operation
ParameterDescriptionrequired
connector_nameName of the DigitalOcean Connector to be configured.true
tokenDigitalOcean client tokentrue
nameThe human-readable string you wish to use when displaying the Droplet name.true
regionThe region where DigitalOcean droplet will be created.true
sizeThe size of the DigitalOcean droplet e.g. 512mbtrue
imageThe image id of the operating system which you want in your DigitalOcean droplettrue
ssh_keysArray of SSH key that you wants to embed in droplet.false
backupsAutometed backup should be enable or notfalse
ipv6IPV6 enable or notfalse
user_dataUser data for the dropletfalse
private_networkingPrivate networking enable or notfalse
Sample JSON output for the Create Droplet operations
{
  "meta": { "job-id": "job-d6b2e442-84b8-4fb1-91fe-c50faf5299ec", "exit-code": 0, "context": "fb-cloud:digitalocean:operation:create_instance.rb", "message": "success", "timeout": 60000, "timestamp": 1465889969381, "status": "complete", "content-type": "application/json" },
  "output": { "response": { "image": { "min_disk_size": 20, "regions": [ "nyc1", "sfo1", "nyc2", "ams2", "sgp1", "lon1", "nyc3", "ams3", "fra1", "tor1", "sfo2", "blr1" ], "public": true, "name": "14.04.4 x64", "created_at": "2016-05-04T22:25:47Z", "id": 17154032, "distribution": "Ubuntu", "type": "snapshot", "size_gigabytes": 19.68, "slug": "ubuntu-14-04-x64" }, "snapshot_ids": [], "memory": 512, "backup_ids": [], "drive_ids": [], "kernel": null, "created_at": "2016-06-14T07:39:29Z", "vcpus": 1, "networks": { "v6": [], "v4": [] }, "next_backup_window": null, "tags": [], "features": [ "virtio" ], "disk": 20, "size_slug": "512mb", "size": { "price_monthly": 5, "disk": 20, "memory": 512, "transfer": 1, "regions": [ "ams1", "ams2", "ams3", "blr1", "fra1", "lon1", "nyc1", "nyc2", "nyc3", "sfo1", "sgp1", "tor1" ], "available": true, "vcpus": 1, "slug": "512mb", "price_hourly": 0.00744 }, "name": "example.com", "id": 17385493, "locked": true, "region": { "name": "New York 3", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "512mb", "1gb", "2gb", "4gb", "8gb", "16gb", "32gb", "48gb", "64gb" ], "slug": "nyc3" }, "status": "new" } } } 


 

Start Droplet operation

Start DigitalOcean droplet.

Input and output JSON for the Start Droplet operation

This section illustrates the Flintbit Input and output for Start Droplet operation.

Sample Input JSON for the Start Droplet operation
{
  "connector_name" : "digitalocean",
  "id" : 3164450,
  "token" : "b7d03a6947b217efb6f3ec3bd3504582",
  "timeout" : 60000 
} 

 

Flintbit input elements for the Start Droplet operation
ParameterDescriptionRequired
connector_nameName of the DigitalOcean Connector to be configured.true
idContains Droplet ID corresponding to the Droplet that you want to starttrue
tokenSpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Start Droplet operation
{
  "meta": { "job-id": "job-95eda937-54e3-4f3c-ac26-3a0b6adfa640", "exit-code": 0, "context": "fb-cloud:digitalocean:operation:start_instance.rb", "message": "success", "timeout": 60000, "timestamp": 1465896036957, "status": "complete", "content-type": "application/json" },
  "output": { "message": "success", "response": { "completed_at": null, "resource_type": "droplet", "region_slug": "nyc3", "started_at": "2016-06-14T09:20:36Z", "resource_id": 17385493, "id": 113103676, "type": "power_on", "region": { "name": "New York 3", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "512mb", "1gb", "2gb", "4gb", "8gb", "16gb", "32gb", "48gb", "64gb" ], "slug": "nyc3" }, "status": "in-progress" }, "exit-code": 0 } } 


 

Stop Droplet operation

Stops DigitalOcean Droplet.

Input and output JSON for the Stop Droplets operation

This section illustrates the Flintbit Input and output for Stop Droplet operation.

Sample Input JSON for the Stop Droplets operations
{
  "connector_name" : "digitalocean",
  "id" : 3164450,
  "token" : "b7d03a6947b217efb6f3ec3bd3504582",
  "timeout" : 60000 
}
 
Flintbit input elements for the Stop Droplet operation
ParameterDescriptionRequired
connector_nameName of the DigitalOcean Connector to be configured.true
idContains Droplet ID corresponding to the Droplet that you want to stoptrue
tokenSpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Stop Droplet operation
{
  "meta": { "job-id": "job-db3f9477-2299-44ba-b3f6-e741c8822950", "exit-code": 0, "context": "fb-cloud:digitalocean:operation:stop_instance.rb", "message": "success", "timeout": 60000, "timestamp": 1465892140676, "status": "complete", "content-type": "application/json" },
  "output": { "message": "success", "response": { "completed_at": null, "resource_type": "droplet", "region_slug": "nyc3", "started_at": "2016-06-14T08:15:40Z", "resource_id": 17385493, "id": 113093058, "type": "power_off", "region": { "name": "New York 3", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "512mb", "1gb", "2gb", "4gb", "8gb", "16gb", "32gb", "48gb", "64gb" ], "slug": "nyc3" }, "status": "in-progress" }, "exit-code": 0 } } 


 

Reboot Droplet operation

Reboot DigitalOcean Droplet.

Input and output JSON for the Reboot Droplet operation

This section illustrates the Flintbit Input and output for Reboot Droplet operation.

Sample Input JSON for the Reboot Droplet operation

 

{
  "connector_name" : "digitalocean",
  "id" : 3164450,
  "token" : "b7d03a6947b217efb6f3ec3bd3504582",
  "timeout" : 60000
 } 

 

 
Flintbit input elements for the Reboot Droplet operation
ParameterDescriptionRequired
connector_nameName of the DigitalOcean Connector to be configured.true
idContains Droplet ID corresponding to the Droplet that you want to reboottrue
tokenSpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Reboot Droplet operation

 

{
  "meta": { "job-id": "job-0c8cc102-58e2-45d3-a272-18652a6d2c56", "exit-code": 0, "context": "fb-cloud:digitalocean:operation:start_instance.rb", "message": "success", "timeout": 60000, "timestamp": 1465895512711, "status": "complete", "content-type": "application/json" },
  "output": { "message": "success", "response": { "completed_at": null, "resource_type": "droplet", "region_slug": "nyc3", "started_at": "2016-06-14T09:11:52Z", "resource_id": 17385493, "id": 113102169, "type": "power_on", "region": { "name": "New York 3", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "512mb", "1gb", "2gb", "4gb", "8gb", "16gb", "32gb", "48gb", "64gb" ], "slug": "nyc3" }, "status": "in-progress" }, "exit-code": 0 } } 


 

Reset Droplet operation

Reset DigitalOcean Droplet.

Input and output JSON for the Reset Droplet operation

This section illustrates the Flintbit Input and output for Reset Droplet operation.

Sample Input JSON for the Reset Droplet operation
{
  "connector_name" : "digitalocean",
  "id" : 3164450,
  "token" : "b7d03a6947b217efb6f3ec3bd3504582",
  "timeout" : 60000 
} 

 

Flintbit input elements for the Reset Droplets operation
ParameterDescriptionRequired
connector_nameName of the DigitalOcean Connector to be configured.true
idContains Droplet ID corresponding to the Droplet that you want to resettrue
tokenSpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Reset Droplets

 

{
  "meta": { "job-id": "job-3a435993-8dec-4184-baca-8940ddaf9bdf", "exit-code": 0, "context": "fb-cloud:digitalocean:operation:reset_instance.rb", "message": "success", "timeout": 60000, "timestamp": 1465895643871, "status": "complete", "content-type": "application/json" },
  "output": { "response": { "completed_at": null, "resource_type": "droplet", "region_slug": "nyc3", "started_at": "2016-06-14T09:14:03Z", "resource_id": 17385493, "id": 113102428, "type": "power_cycle", "region": { "name": "New York 3", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "512mb", "1gb", "2gb", "4gb", "8gb", "16gb", "32gb", "48gb", "64gb" ], "slug": "nyc3" }, "status": "in-progress" } } } 


 

Describe Droplet operation

Get DigitalOcean Droplet Details.

Input and output JSON for the Describe Droplet operation

This section illustrates the Flintbit Input and output for Describe Droplet operation.

Sample Input JSON for the Describe Droplet operation
{
  "connector_name" : "digitalocean",
  "id" : 3164450,
  "token" : "b7d03a6947b217efb6f3ec3bd3504582",
  "timeout" : 60000 
} 

 

Flintbit input elements for the Describe Droplet operation
ParameterDescriptionRequired
connector_nameName of the DigitalOcean Connector to be configured.true
idContains Droplet ID corresponding to the Droplet that you want to Describetrue
tokenSpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Reboot Droplets
{
  "meta": { "job-id": "job-c0d417c9-1b04-4a20-a22c-4aab0f64d234", "exit-code": 0, "context": "fb-cloud:digitalocean:operation:describe_instance.rb", "message": "success", "timeout": 60000, "timestamp": 1465896118386, "status": "complete", "content-type": "application/json" },
  "output": { "message": "success", "droplet-info": { "image": { "min_disk_size": 20, "regions": [ "nyc1", "sfo1", "nyc2", "ams2", "sgp1", "lon1", "nyc3", "ams3", "fra1", "tor1", "sfo2", "blr1" ], "public": true, "name": "14.04.4 x64", "created_at": "2016-05-04T22:25:47Z", "id": 17154032, "distribution": "Ubuntu", "type": "snapshot", "size_gigabytes": 19.68, "slug": "ubuntu-14-04-x64" }, "snapshot_ids": [], "memory": 512, "backup_ids": [], "drive_ids": [], "kernel": null, "created_at": "2016-06-14T07:39:29Z", "vcpus": 1, "networks": { "v6": [], "v4": [ { "ip_address": "10.132.37.199", "type": "private", "netmask": "255.255.0.0", "gateway": "10.132.0.1" }, { "ip_address": "104.131.66.199", "type": "public", "netmask": "255.255.192.0", "gateway": "104.131.64.1" } ] }, "next_backup_window": null, "tags": [], "features": [ "private_networking", "virtio" ], "disk": 20, "size_slug": "512mb", "size": { "price_monthly": 5, "disk": 20, "memory": 512, "transfer": 1, "regions": [ "ams1", "ams2", "ams3", "blr1", "fra1", "lon1", "nyc1", "nyc2", "nyc3", "sfo1", "sgp1", "tor1" ], "available": true, "vcpus": 1, "slug": "512mb", "price_hourly": 0.00744 }, "name": "example.com", "id": 17385493, "locked": false, "region": { "name": "New York 3", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "32gb", "16gb", "2gb", "1gb", "4gb", "8gb", "512mb", "64gb", "48gb" ], "slug": "nyc3" }, "status": "active" }, "exit-code": 0 } } 


 

List Droplets operation

List out and returns information for all relevant Droplets.

Input and output JSON for the List Droplets operation

This section illustrates the Flintbit Input and output for List Droplets operation.

Sample Input JSON for the List Droplets operation

 

{
  "connector_name" : "digitalocean",
  "token" : "b7d03a6947b217efb6f3ec3bd3504582",
  "timeout" : 60000 
} 

 

Flintbit input elements for the List Droplets operation
ParameterDescriptionRequired
connector_nameName of the DigitalOcean Connector to be configured.true
tokenSpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the List Droplets
{
  "meta": { "job-id": "job-a0bde5b7-2e91-42e2-9ed8-53bc7e9ac86d", "exit-code": 0, "context": "fb-cloud:digitalocean:operation:list_instance.rb", "message": "success", "timeout": 60000, "timestamp": 1465896181954, "status": "complete", "content-type": "application/json" },
  "output": { "list": [ { "image": { "min_disk_size": 20, "regions": [ "nyc1", "sfo1", "nyc2", "ams2", "sgp1", "lon1", "nyc3", "ams3", "fra1", "tor1", "sfo2", "blr1" ], "public": true, "name": "14.04.4 x64", "created_at": "2016-05-04T22:25:47Z", "id": 17154032, "distribution": "Ubuntu", "type": "snapshot", "size_gigabytes": 19.68, "slug": "ubuntu-14-04-x64" }, "snapshot_ids": [], "memory": 512, "backup_ids": [], "drive_ids": [], "kernel": null, "created_at": "2016-06-14T07:39:29Z", "vcpus": 1, "networks": { "v6": [], "v4": [ { "ip_address": "10.132.37.199", "type": "private", "netmask": "255.255.0.0", "gateway": "10.132.0.1" }, { "ip_address": "104.131.66.199", "type": "public", "netmask": "255.255.192.0", "gateway": "104.131.64.1" } ] }, "next_backup_window": null, "tags": [], "features": [ "private_networking", "virtio" ], "disk": 20, "size_slug": "512mb", "size": { "price_monthly": 5, "disk": 20, "memory": 512, "transfer": 1, "regions": [ "ams1", "ams2", "ams3", "blr1", "fra1", "lon1", "nyc1", "nyc2", "nyc3", "sfo1", "sgp1", "tor1" ], "available": true, "vcpus": 1, "slug": "512mb", "price_hourly": 0.00744 }, "name": "example.com", "id": 17385493, "locked": false, "region": { "name": "New York 3", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "32gb", "16gb", "2gb", "1gb", "4gb", "8gb", "512mb", "64gb", "48gb" ], "slug": "nyc3" }, "status": "active" } ], "message": "success", "exit-code": 0 } } 


 

Delete Droplet operation

Delete DigitalOcean Droplet.

Input and output JSON for the Delete Droplet operation

This section illustrates the Flintbit Input and output for Delete Droplet operation.

Sample Input JSON for the Delete Droplet operation

 

{
  "connector_name" : "digitalocean",
  "id" : 3164450,
  "token" : "b7d03a6947b217efb6f3ec3bd3504582",
  "timeout" : 60000 
} 

 

Flintbit input elements for the Delete Droplet operation
ParameterDescriptionRequired
connector_nameName of the DigitalOcean Connector to be configured.true
idContains Droplet ID corresponding to the Droplet that you want to Deletetrue
tokenSpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Delete Droplet operation

 

{
  "meta": { "job-id": "job-d985d630-e838-42c6-889d-6828d16bd563", "exit-code": 0, "context": "fb-cloud:digitalocean:operation:delete_instance.rb", "message": "success", "timeout": 60000, "timestamp": 1465897612274, "status": "complete", "content-type": "application/json" },
  "output": { "message": "success", "request-access": {}, "exit-code": 0 } } 


 

Check action status Operation

Check status of action performed on DigitalOcean droplet.

Input and output JSON for the Check action status Operation

This section illustrates the Flintbit Input and output for Check action status Operation.

Sample Input JSON for the Check action status Operation

 

{
  "connector_name" : "digitalocean",
  "id" : 3164450,
  "action_id" : 79986003,
  "token" : "b7d03a6947b217efb6f3ec3bd3504582",
  "timeout" : 60000
 } 

 

 
Flintbit input elements for the Check action status Operation
ParameterDescriptionRequired
connector_nameName of the DigitalOcean Connector to be configured.true
idContains Droplet ID corresponding to the Droplet that you want to Check action statustrue
action_idUnique identifier for each Droplet action eventtrue
tokenSpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Check action status Operation

 

{
  "meta": { "job-id": "job-b7fed2c7-d58a-4595-838a-066441774fab", "exit-code": 0, "context": "fb-cloud:digitalocean:operation:check_action_status.rb", "message": "success", "timeout": 60000, "timestamp": 1465896583030, "status": "complete", "content-type": "application/json" },
  "output": { "message": "success", "response": { "completed_at": "2016-06-14T09:28:06Z", "resource_type": "droplet", "region_slug": "nyc3", "started_at": "2016-06-14T09:27:55Z", "resource_id": 17385493, "id": 113104852, "type": "power_off", "region": { "name": "New York 3", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "512mb", "1gb", "2gb", "4gb", "8gb", "16gb", "32gb", "48gb", "64gb" ], "slug": "nyc3" }, "status": "completed" }, "exit-code": 0 } } 


 

Get Regions Operation

Get all regions of DigitalOcean droplet.

Input and output JSON for the Get Regions Operation

This section illustrates the Flintbit Input and output for Get Regions Operation.

Sample Input JSON for the Get Regions Operation
{
  "connector_name" : "digitalocean",
  "token" : "b7d03a6947b217efb6f3ec3bd3504582",
  "timeout" : 60000
 } 

 

 
Flintbit input elements for the Get Regions Operation
ParameterDescriptionRequired
connector_nameName of the DigitalOcean Connector to be configured.true
tokenSpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Get Regions Operation

 

{
  "meta": { "job-id": "job-021de6c0-79b0-4dc5-a8a1-7bdf379534df", "exit-code": 0, "context": "fb-cloud:digitalocean:operation:list_regions.rb", "message": "success", "timeout": 60000, "timestamp": 1465896699512, "status": "complete", "content-type": "application/json" },
  "output": { "message": "success", "exit-code": 0, "regions-list": [ { "name": "New York 1", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "32gb", "16gb", "2gb", "1gb", "4gb", "8gb", "512mb", "64gb", "48gb" ], "slug": "nyc1" }, { "name": "San Francisco 1", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "32gb", "16gb", "2gb", "1gb", "4gb", "8gb", "512mb", "64gb", "48gb" ], "slug": "sfo1" }, { "name": "New York 2", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "32gb", "16gb", "2gb", "1gb", "4gb", "8gb", "512mb", "64gb", "48gb" ], "slug": "nyc2" }, { "name": "Amsterdam 2", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "32gb", "16gb", "2gb", "1gb", "4gb", "8gb", "512mb", "64gb", "48gb" ], "slug": "ams2" }, { "name": "Singapore 1", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "32gb", "16gb", "2gb", "1gb", "4gb", "8gb", "512mb", "64gb", "48gb" ], "slug": "sgp1" }, { "name": "London 1", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "32gb", "16gb", "2gb", "1gb", "4gb", "8gb", "512mb", "64gb", "48gb" ], "slug": "lon1" }, { "name": "New York 3", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "32gb", "16gb", "2gb", "1gb", "4gb", "8gb", "512mb", "64gb", "48gb" ], "slug": "nyc3" }, { "name": "Amsterdam 3", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "32gb", "16gb", "2gb", "1gb", "4gb", "8gb", "512mb", "64gb", "48gb" ], "slug": "ams3" }, { "name": "Frankfurt 1", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "32gb", "16gb", "2gb", "1gb", "4gb", "8gb", "512mb", "64gb", "48gb" ], "slug": "fra1" }, { "name": "Toronto 1", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "32gb", "16gb", "2gb", "1gb", "4gb", "8gb", "512mb", "64gb", "48gb" ], "slug": "tor1" }, { "name": "Bangalore 1", "available": true, "features": [ "private_networking", "backups", "ipv6", "metadata" ], "sizes": [ "32gb", "16gb", "2gb", "1gb", "4gb", "8gb", "512mb", "64gb", "48gb" ], "slug": "blr1" } ] } }

 

 

On this page: