2022-06-21 20:25:28 +00:00
|
|
|
id: api-digitalocean
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: DigitalOcean API Test
|
|
|
|
author: geeknik
|
|
|
|
severity: info
|
|
|
|
reference:
|
|
|
|
- https://docs.digitalocean.com/reference/api/
|
|
|
|
tags: token-spray,digitalocean
|
|
|
|
|
|
|
|
self-contained: true
|
|
|
|
requests:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET https://api.digitalocean.com/v2/droplets HTTP/1.1
|
|
|
|
Host: api.digitalocean.com
|
|
|
|
Authorization: Bearer {{token}}
|
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
2022-06-22 03:50:22 +00:00
|
|
|
- '"droplets":'
|
|
|
|
- '"meta":'
|
|
|
|
condition: and
|