DigitalOcean API and CLI (doctl)

Subscribe to DigitalOcean API and CLI (doctl)
Get notified when new articles on DigitalOcean API and CLI (doctl) are published.
  • 20 Results
    • Question

      What Slack URL To Use When Creating an Alert Policy via API?

      When using the DigitalOcean API (or terraform) to create an Alert Policy for droplets with a Slack Notification, you need to provide the Slack Hook URL. I tried the following: (1) Creating an own custom Slack App with...
      1 answer17 days agoBy Max HeroldDigitalOcean API and CLI (doctl)
    • Question

      How to Integrate doctl with Jenkins CICD?

      I’m trying to use doctl with a jenkins pipeline script to push a docker image to my digitalocean image registry and I’m having a lot of trouble. I’ve downloaded and installed the doctl util via git (since the snap ins...
      2 answers19 days agoBy decapo01DigitalOcean API and CLI (doctl)
    • Question

      Documentation around SSH Keys and Password Auth for Droplets

      I’ve been using the DigitalOcean API and specifying SSH keys for my droplets and I saw some posts about disabling password auth, so I went digging and all my droplets had it off already. I assume this is because I spe...
      2 answers30 days agoBy Sebastian ChlopeckiDigitalOcean API and CLI (doctl)DigitalOcean DropletsProduct Documentation
    • Question

      Limit Scope of API Token to Resource(s)

      I’m looking to use the DO API to update Firewall entries from a web-application. The hope is to allow clients to access critical application services 24/7 without worrying about anything like DDoS from an external sou...
      1 answer1 month agoBy EthanAPIDigitalOcean API and CLI (doctl)DigitalOcean Cloud Firewalls
    • Question

      App Platform - Get database access via API

      Hi, I’ve set up a script to deploy automatically new instaces of our app using DigitalOcean Apis. The script provisiones automatically a MongoDB database and connects it to the app, and everything works fine. I would ...
      1 answer2 months agoBy SimtechDigitalOcean API and CLI (doctl)DigitalOcean App PlatformDigitalOcean Managed MongoDB Database
    • Question

      500 server error while creating lets_encrypt certificate from DOCTL or Dashboard

      Hello! I want to create certificate from GitLab CI through doctl but I keep having this error: Error: POST 500 (request "f32ffe16-3163-49b4-b6e2-a2691db085c7") Server Erro...
      1 answer3 months agoBy JonasDigitalOcean API and CLI (doctl)Let's Encrypt
    • Question

      Certified Circle CI doctl implementation

      Is there a certified Circle CI doctl implementation?
      Accepted Answer: Hello, I would personally go for the one listed on the official Circle CI documentation here: Hope that this helps! Regards, Bobby
      1 answer4 months agoBy haydenmcparlaneCI/CDDigitalOcean API and CLI (doctl)
    • Question

      Rest API, creating containers

      Hello Digitalocean, We are a SaaS company based on Canada, we host our product on AWS, we are thinking to migrate every think to digitalocean ASAP. We would like to know if there is a REST API that we can use to creat...
      1 answer4 months agoBy restunurafipahKubernetesDockerAPIDigitalOcean API and CLI (doctl)
    • Question

      Is it possible to use different signed URLs share the same CDN cache.

      We have implemented signed URLs with spaces and DO CDN. The overall implementation is working well. We are trying to see if different signed URLs to the same asset will use the same CDN cache or will it create a diffe...
      1 answer4 months agoBy jonaseliassonCachingCDNDigitalOcean API and CLI (doctl)
    • Others

      JotJpn - Cloud Hosting Management

      Jotjpn provide white label solution to manage digitalocean droplets. Clients can create & manage droplets in your portal. You can charge as per usage.
      5 months agoBy Savsoft TechnologiesAPIApplicationsAutomated SetupsDigitalOcean API and CLI (doctl)DigitalOcean App Platform
    • Question

      API based web application to manage digitaocean droplets

      Hi, I found APIs based web application to manage digitalocean droplets as SAAS. Currently it has limited features, is there any other similar solution available?
      2 answers5 months agoBy SandeepDigitalOcean API and CLI (doctl)
    • Question

      Error with doctl: secret env value must not be encrypted before app is created

      I am receiving the following error when doing a subsequent deployment through doctl: errors validating app spec; first error in field "envs.0.value": secret env value must not be encrypted before app is created This i...
      No answers yet5 months agoBy JemDigitalOcean API and CLI (doctl)Security
    • Question

      How To Clean Up Container Registry

      I’m looking for a way to automatically clean up old files from my Docker Container Registry. Currently I’m using the following: doctl registry repository list-tags myrepo Then I can delete old tags like this: doctl re...
      Accepted Answer: I have resolved this after reading more carefully through the documentation. By adding the --include-untagged-manifests I’m able to r...
      1 answer6 months agoBy overloadDigitalOcean Container Registry (DOCR)DigitalOcean API and CLI (doctl)
    • Question

      How to access droplet-specific bandwidth usage via API?

      I am planning to create a managed hosting solution for my clients using DigitalOcean droplets. I could successfully go through all the operation/billing options using digitalocean API, except the overuse of bandwidth....
      Accepted Answer: Hey @sdriyaz712 ! You should be able to access droplet specific, bandwidth, CPU and RAM usage through the api. It is available under the monitoring section here: Droplet Bandwidth API That data should be able to be qu...
      1 answer6 months agoBy sdriyaz712DigitalOcean API and CLI (doctl)DigitalOcean Droplets
    • Question

      How to use environment variables specified in the app spec as values for fields inside the app spec?

      Lets say you have specified an encrypted app wide environment variable in the app spec. Now you wish to use this environment variable as a value for a field inside the app spec. Is it possible? Concrete example:I wish...
      1 answer7 months agoBy SkovisenDigitalOcean API and CLI (doctl)DigitalOcean App PlatformCI/CD
    • Question

      How to link a droplet data to Mongodb?

      Hello, Hope this message finds you well. I have created a droplet and installed a Mosquitto MQTT broker so our sensor would send data to the cloud/droplet. So far so good as we can see the sensor data in the droplet c...
      1 answer7 months agoBy ritaCoralDigitalOcean DropletsMongoDBNode.jsDigitalOcean API and CLI (doctl)
    • Question

      unauthorized: authentication required for docker compose with doctl

      i use this sentence with my github action: - name: Install doctl uses: digitalocean/action-doctl@v2.1.0 with: token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} - name: Log in to DigitalOcean Container Registry run: doct...
      1 answer8 months agoBy Konstantin KlepikovGitHub ActionsDigitalOcean API and CLI (doctl)Docker
    • Question

      Creating a site on a droplet via the DigitalOcean API

      I have been looking through the documentation and read through all the support and question channels and have yet to find something to point me in the right direction. I wish to be able to create an ngninx entry (in /...
      Accepted Answer: Hi there, The DigitalOcean API lets you manage your infrastructures like server provisioning, creation of Load balancers, clusters and etc. The server configuration itself needs to be done via an automation tool like ...
      1 answer9 months agoBy weareframeworkDigitalOceanDigitalOcean API and CLI (doctl)APIDigitalOcean Droplets
    • Question

      Load Balancer: Get number of healthy nodes through API

      For my deployment, I want to check the health state of the Load Balancer first, then remove all “green” nodes, deploy to those, then add them to the LB again, then wait for 100% health before proceeding to deploy to “...
      1 answer10 months agoBy MineralWormDigitalOcean API and CLI (doctl)DigitalOcean Managed Load Balancers
    • Question

      Hack to change bootdevice

      As i was trying to automate some filesystem changes on multiple hosts, i need to send droplets into recovery state, connect via ssh into recovery image and make changes to original droplets FS and than boot back into ...
      1 answer10 months agoBy shmelAPIDigitalOcean API and CLI (doctl)DevelopmentConfiguration ManagementAnsible