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/
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: token-spray,digitalocean
|
2022-06-21 20:25:28 +00:00
|
|
|
|
|
|
|
self-contained: true
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-06-21 20:25:28 +00:00
|
|
|
- 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
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4a0a004730450220048c9f87a81205b7fbead8ed3955e8806ccd16bcc988ae8ce7e5e17774cbc1a3022100e79769686477ac1a59c495ad3dc4f57ca5a1dbbd69cc2a83d786348b8d95c2f9:922c64590222798bb761d5b6d8e72950
|