• Announcements

    • MannDude

      Current state of vpsBoard   02/04/2017

      Dear vpsBoard members and guests:

      Over the last year or two vpsBoard activity and traffic has dwindled. I have had a change of career and interests, and as such am no longer an active member of the web hosting industry.

      Due to time constraints and new interests I no longer wish to continue to maintain vpsBoard. The web site will remain only as an archive to preserve and showcase some of the great material, guides, and industry news that has been generated by members, some of which I remain in contact to this very day and now regard as personal friends.

      I want to thank all of our members who helped make vpsBoard the fastest growing industry forum. In it's prime it was an active and ripe source of activity, news, guides and just general off-topic banter and fun.

      I wish all members and guests the very best, whether it be with your business or your personal projects.

      -MannDude
VATruica

Bash + DigitalOcean API

2 posts in this topic

I've been using the DO API to automate some things like 

  • VPS reboot and snapshoot
  • adding DNS records to configure email with Zoho

You can find the scripts on my github. Feel free to fork away / come with other examples / use cases that you've automated or need automation.

 

 

1 person likes this

Share this post


Link to post
Share on other sites

  • Similar Content

    • By Aurimas
      Black Friday Sale - Powerful VPS hosting 30% OFF | Cloud Server plans up to 60% OFF!
       
      Host1Plus is an international virtualization solutions provider, offering VPS and Cloud Servers ßeta hosting services. Host1Plus provides affordable and customizable solutions to meet the needs of developers, web designers, SMBs in managing their own assets while utilizing Host1Plus in-house developed and well documented powerful API.  The values Host1Plus owns today – reliability, tolerance, partnership - were rooted by their customers over the years of successful collaboration. Their team strives to ensure immaculate network stability, solid server reliability and excellent customer care.
      Founded in London, UK, in 2008, the company now has a global presence with multiple data centers and local support teams in Africa, Europe, North & South America.
      Host1Plus.com is offering high quality VPS and Cloud Servers ßeta services with a great Black Friday discount!
       
      LIMITED TIME SALE
       
      Powerful VPS hosting 30% OFF
       
      Coupon: BLACK30 - get 30 % OFF for any VPS plan (Except Amber) for 3-6 months billing cycles!
       
       
      Cloud Servers ßeta up to 60% OFF
       
      Coupon: CS50OFF – receive up to 60% discount on any of our Cloud Servers ßeta plans for a selected time period (from 1 to 6 month billing cycles)!
       
       
      If you would like to make a custom order or would like to receive a professional consultation regarding our services, contact our sales team via online sales chat on our website or contact us by email at [email protected]

      We provide 24/7 technical assistance in English and Portuguese via support ticket system at [email protected] We are always ready to help!
      You can see our client reviews here.
       
      Data Center Locations
       
      Host1Plus is an international web hosting company which offers VPS and Cloud Servers ßeta services worldwide.
       
      VPS hosting locations:
       
      United States (Los Angeles, Chicago), Germany (Frankfurt), Brazil (Sao Paulo), South Africa (Johannesburg)
       
      Cloud Server locations worldwide:
       
      United States (Chicago), Germany (Frankfurt), Brazil (soon)
      -----------------------------------------------------------------
      All our hosting packages:
      VPS Hosting
       
      Cloud Servers ßeta
       
      -----------------------------------------------------------------
      Accepted Forms of Payment:
      PayPal, Visa, MasterCard, American Express, Boleto Bancário, Alipay, Bitcoin, Ebanx, Paysera.
       
       
      VPS HOSTING PLANS
       
       All our VPS packages come with:
      ·         24/7 Support via email or tickets
      ·         High-capacity, high-speed, highly redundant network
      ·         Powerful Intel® Xeon® E5 v3 processors
      ·         Easy to use control panel
      ·         Full root access
      ·         Popular Linux distributions such as CentOS, Debian, Fedora, Suse & Ubuntu
      ·         Dedicated IP address
      ·         Easy to upgrade
      ·         DNS & rDNS records management
      ·         Additional IP's - $1/each
      ·         cPanel license - $15/mo
      ·         Labeled WHMCS license - $14.00/mo
      ·         Unlabeled WHMCS license - $16.00/mo
      With our easy to use resource selection tool you can customize your VPS hosting plan for the resources you need (CPU, RAM, Disk space, Bandwidth, Dedicated IP's).
      The following VPS hosting plans are just for a reference with up to 30% discount applied.
      Amber
      0.5 Core
      RAM: 256 MB
      Disk: 20 GB
      Bandwidth: 500 GB
      Free Dedicated IP: 1
       
      1 Month: $2.00/month
      3 Months: $1.90/month
      6 Months: $1.80/month
      12 Months: $1.70/month
      Order Now
       
       
      Bronze
      1 Core
      RAM: 768 MB
      Disk: 60 GB
      Bandwidth: 1000 GB
      Free Dedicated IP: 1
      1 Month: $5.00/month
      3 Months: $9.97, 30% off with code BLACK30 (Normally $14.24)
      6 Months: $18.90, 30% off with code BLACK30 (Normally $27.00)
      12 Months: $51.00
      Order Now
       
       
      Silver
      2 Cores
      RAM: 2048 MB
      Disk: 80 GB
      Bandwidth: 2000 GB
      Free Dedicated IP: 1
      1 Month: $10.00/month
      3 Months: $19.94, 30% off with code BLACK30 (Normally $28.49)
      6 Months: $37.80, 30% off with code BLACK30 (Normally $54.00)
      12 Months: $102.00
      Order Now
       
       
      Gold
      4 Cores
      RAM: 4096 MB
      Disk: 200 GB
      Bandwidth: 3000 GB
      Free Dedicated IP: 1
      1 Month: $20.00/month
      3 Months: $39.91, 30% off with code BLACK30 (Normally $57.10)
      6 Months: $75.60, 30% off with code BLACK30 (Normally $108.00)
      12 Months: $204.00
      Order Now
       
       
      Platinum
      6 Cores
      RAM: 8192 MB
      Disk: 500 GB
      Bandwidth: 7000 GB
      Free Dedicated IP: 1
      1 Month: $45.00/month
      3 Months: $89.78, 30% off with code BLACK30 (Normally $128.26)
      6 Months: $170.1, 30% off with code BLACK30 (Normally $243.00)
      12 Months: $459.00
      Order Now
       
       
      Diamond
      8 Cores
      RAM: 16384 MB
      Disk: 1000 GB
      Bandwidth: 12000 GB
      Free Dedicated IP: 1
      1 Month: $85.00/month
      3 Months: $169.58 30% off with code BLACK30 (Normally $242.26)
      6 Months: $321.30, 30% off with code BLACK30 (Normally $459.00)
      12 Months: $459.00
      Order Now
       
       
       
       
       
      CLOUD SERVERS ßETA PLANS
       
      Included Features in all Cloud ServerS ßeta plans:
       
      ·   Intel® Xeon® E5 v3 processors
      ·   DDR4 error correcting-code RAM
      ·   Up to 32 Ipv4 addresses
      ·   KVM virtualization technology
      ·  1 free backup
      ·   API
      ·   Ipv6 support
      ·  10G network
      ·   Additional IP's - $1/each
      ·   DNS Management
      ·   VNC Console
      ·   Rescue Mode
      ·   Custom ISO
       
       
      The following Cloud Servers ßeta plans are just for a reference with up to 60% discount applied.
       
      Linux plans
       
      LIN1
      1 Core
      RAM: 512 MB
      Disk: 20 GB Disk space
      Bandwidth: 2 TB
      Free Dedicated IP: 1
      1 Month: $4.00, 50% off with code CS50OFF (Normally $8.00)
      3 Months: $11.40, 55% off with code CS50OFF
      6 Months: $21.60, 60% off with code CS50OFF
      12 Months: $81.60
      Order Now
       
       
      LIN2
      2 Core
      RAM: 2048 MB
      Disk: 40 GB
      Bandwidth: 4 TB
      Free Dedicated IP: 1
      1 Month:  $8.00, 50% off with code CS50OFF (Normally $16.00)
      3 Months: $22.81, 55% off with code CS50OFF
      6 Months: $43.20, 60% off with code CS50OFF
      12 Months:: $163.20
      Order Now
       
       
      LIN4
      4 Core
      RAM: 4096 MB
      Disk: 100 GB
      Bandwidth: 7 TB
      Free Dedicated IP: 1
      1 Month:  $15.00, 50% off with code CS50OFF (Normally $30.00)
      3 Months: $42.78, 55% off with code CS50OFF
      6 Months:  $81.00, 60% off with code CS50OFF
      12 Months:: $306.00
      Order Now
       
       
      LIN8
      4 Core
      RAM: 8192 MB
      Disk: 200 GB
      Bandwidth: 14 TB
      Free Dedicated IP: 1
      1 Month:  $25.00, 50% off with code CS50OFF (Normally $50.00)
      3 Months: $71.30, 55% off with code CS50OFF
      6 Months: $135.00, 60% off with code CS50OFF
      12 Months:: $510.00
      Order Now
       
       
      LIN16
      6 Core
      RAM: 16384 MB
      Disk: 500 GB
      Bandwidth: 19 TB
      Free Dedicated IP: 1
      1 Month:  $45.00, 50% off with code CS50OFF (Normally $90.00)
      3 Months: $128.38, 55% off with code CS50OFF
      6 Months: $243.00, 60% off with code CS50OFF
      12 Months:: $918
      Order Now
       
       
      LIN32
      8 Core
      RAM: 32768 MB
      Disk: 1000 GB
      Bandwidth: 24 TB
      Free Dedicated IP: 1
      1 Month: $78.00, 50% off with code CS50OFF (Normally $156.00)
      3 Months: $222.55, 55% off with code CS50OFF
      6 Months: $421.20, 60% off with code CS50OFF
      12 Months:: $1591.20
      Order Now
       
       
      Windows plans
       
      WIN4
      2 Core
      RAM: 4096 MB
      Disk: 100 GB
      Bandwidth: 6 TB
      Free Dedicated IP: 1
      1 Month:  $12.50, 50% off with code CS50OFF (Normally $25.00)
      3 Months:  $35.65, 55% off with code CS50OFF
      6 Months: $67.50, 60% off with code CS50OFF
      12 Months:: $255.00
      Order Now
       
       
       
      WIN8
      4 Core
      RAM: 8192 MB
      Disk: 200 GB
      Bandwidth: 8 TB
      Free Dedicated IP: 1
      1 Month:  $22.00, 50% off with code CS50OFF (Normally $44.00)
      3 Months:  $62.75, 55% off with code CS50OFF
      6 Months: $118.80, 60% off with code CS50OFF
      12 Months:: $448.80
      Order Now
       
       
       
      WIN16
      6 Core
      RAM: 16384 MB
      Disk: 500 GB
      Bandwidth: 15 TB
      Free Dedicated IP: 1
      1 Month: $43.00, 50% off with code CS50OFF (Normally $86.00)
      3 Months: $122.68, 55% off with code CS50OFF
      6 Months: $232.20, 60% off with code CS50OFF
      12 Months:: $877.20
      Order Now
       
       
       
      WIN32
      8 Core
      RAM: 32768 MB
      Disk: 1000 GB
      Bandwidth: 20 TB
      Free Dedicated IP: 1
      1 Month:  $76.00, 50% off with code CS50OFF (Normally $152.00)
      3 Months: $216.85, 55% off with code CS50OFF
      6 Months: $410.40, 60% off with code CS50OFF
      12 Months:: $1550.40
      Order Now
       
       
       
      Make your ideas and projects come to life with tools and features offered by Cloud Server. Don’t sleep as the offers is for a limited time only!
      We are trusted by more than 50,000 clients worldwide to deliver them high quality and performance hosting services with superb customer support!
       
       
       
      Have any questions? Email us at [email protected] or write to us at our live sales chat.
       
      You can also join Host1Plus social networks for the latest news.          
      Facebook - www.facebook.com/Host1Plus
      Twitter - www.twitter.com/Host1Plus
      Google+ - https://plus.google.com/+Host1Plus
       
      LinkedIn - https://www.linkedin.com/company/digital-energy-technologies-ltd.
      YouTube - https://www.youtube.com/user/Host1Plus
      Instagram -  https://www.instagram.com/host1plus/
    • By DomainBop
      TL;DR:  DO decided to go the debt route rather than begging for more VC funding, and it just took out a loan of $130 million which is more than the $123 million an assortment of venture capitalists had previously coughed up.
      full article: http://www.forbes.com/sites/alexkonrad/2016/04/14/digital-ocean-borrows-131-million/#5576b2835022
      Probably the most interesting thing is this quote from Uretsky who once again said he's not interested in competing with AMZN/MSFT/GOOG for the big enterprise customers:
      The big question going forward is whether there will be enough profits in that small developer fish pool to allow DO to keep its creditors and VC investors happy and remain an independent company...
    • By fm7
      DigitalOcean's DNS disruption post-mortem
       
    • By MannDude
      For example, say you want to create an archive of a directory to back it up:
      tar -zcf /some/backup/folder/yoursite_www_$(date +"%m_%d-%Y_%H:%M").tar.gz /home/someuser/somesite/public_html So that'll create an an archive of everything located in /home/someuser/somesite/public_html. Great. But what if you have a folder with large files in it that you want to exclude from being backed up? For example: /home/someuser/somesite/public_html/bigfiles ? How would you exclude that from being archived?
    • By perennate
      Luna Node Dynamic - the Canadian cloud virtualization platform (KVM)

      Luna Node Dynamic is a powerful cloud virtualization platform featuring rapid virtual machine deployment, snapshotting capabilities, an API for automation, complementary minimal server monitoring and DNS hosting, security groups, detachable volumes, and more. We have locations in Toronto and Montreal, providing reliable virtual private server hosting using the KVM hypervisor and the OpenStack software suite. Sign up today!

      Pricing

      All plans come with a 1gbps network port, unmetered internal traffic, KVM virtualization (with support for installation from custom ISO's), and optional storage on a distributed Ceph RADOS cluster.
      512 MB - 1 vCPU, 15 GB storage, 1000 GB bandwidth, $0.005 hourly ($3.6 monthly) 1024 MB - 2 vCPU, 20 GB storage, 1500 GB bandwidth, $0.0072 hourly ($5.18 monthly) Special 2048 - 2 vCPU, 20 GB storage, 2000 GB bandwidth, $0.0097 hourly ($7.00 monthly) Special 1536 - 1 vCPU, 15 GB storage, 2000 GB bandwidth, $0.0072 hourly ($5.18 monthly) 2048 MB - 3 vCPU, 35 GB storage, 2000 GB bandwidth, $0.0139 hourly ($10.01 monthly) 4096 MB - 3 vCPU, 70 GB storage, 2500 GB bandwidth, $0.0267 hourly ($19.22 monthly) 8192 MB - 4 vCPU, 125 GB storage, 3000 GB bandwidth, $0.0514 hourly ($37.01 monthly) 16384 MB - 6 vCPU, 250 GB storage, 4000 GB bandwidth, $0.1 hourly ($72.00 monthly) See full plan list here.

      Features

      We offer a rich set of cloud features to fit your needs, no matter the application.
      Hourly billing: create and destroy virtual machines at any time, and only pay for the hours used. Our service is prepaid, and payments can be made via Paypal or Bitcoin. Custom operating systems: add custom ISO and qcow2 images directly from the panel by submitting a URL to the image; once the panel has finished downloading your image, you can begin provisioning VMs from it immediately. Live snapshots: snapshot your running VM at any time (no need to even turn it off!). The disk state will then be saved on a distributed filesystem, and can be cloned to provision more instances with the same configuration, or simply kept as a backup. API: a powerful API is available to programatically manage your servers and other cloud services. Private virtual networks: isolate your network traffic and get more control over your network configuration. Load balancers: HTTP(S) and TCP load balancers can be created within virtual networks to easily set up a distributed and redundant service. Detachable volumes: create arbitrary-sized block devices (volumes) and attach/detach them to virtual machine instances on the fly. Volumes are stored on a reliable, distributed Ceph RADOS cluster. Security groups: define external traffic restrictions on a VM-group level to make securing your software easy. Startup scripts: specify shell or cloud-config scripts to be run the first time your new VM instances boot. Server monitoring and DNS hosting: we offer complementary server monitoring (with various checks such as ping, TCP connect, and HTTP substring, and alerts over e-mail or SMS) and DNS hosting. Get started by registering an account in our panel!

      You can open a ticket within the first week to request a refund of remaining credit on your account, no questions asked.

      Locations

      All standard plans and cloud features are available in both our Toronto and Montreal locations. We feature premium DDoS filtering in Montreal, capable of protecting against large network-level attacks.
      Toronto (245 Consumers Rd 300 Toronto; Cogent DC): http://toronto-test.lunanode.com/100MB.test Montreal (OVH BHS): http://montreal-test.lunanode.com/100MB.test About

      Based in British Columbia, Canada, LunaNode Hosting Inc. first launched in August 2013, focusing on low-cost, reliable KVM virtual private server hosting. We use OpenStack for our back-end and an in-house billing / VM management panel called lndynamic on the front-end. We are committed to security and privacy and believe in the necessity of free software (see our GitHub). Our staff consists of experienced developers, system administrators, and network engineers; we are constantly monitoring and improving our infrastructure to ensure maximal uptime, and developing new tools to help you better manage your virtual machines.

      Upload your PGP key to https://lunanode.com/gpgmw to receive encrypted email from our mail server.

      New Features

      Here's a few features we've rolled out within the last few weeks:
      Volumes can now be extended in size; volume creation from volume snapshots has also been implemented We've redesigned and simplified the virtual machine details page Various service functions have been added to the API Links
      More information Wiki Terms of service Privacy policy Contact us: [email protected] Register an account