31 lines
740 B
YAML
31 lines
740 B
YAML
id: api-digitalocean
|
|
|
|
info:
|
|
name: DigitalOcean API Test
|
|
author: geeknik
|
|
severity: info
|
|
reference:
|
|
- https://docs.digitalocean.com/reference/api/
|
|
metadata:
|
|
max-request: 1
|
|
tags: token-spray,digitalocean
|
|
|
|
self-contained: true
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
GET https://api.digitalocean.com/v2/droplets HTTP/1.1
|
|
Host: api.digitalocean.com
|
|
Authorization: Bearer {{token}}
|
|
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- '"droplets":'
|
|
- '"meta":'
|
|
condition: and
|
|
|
|
# digest: 4a0a004730450220048c9f87a81205b7fbead8ed3955e8806ccd16bcc988ae8ce7e5e17774cbc1a3022100e79769686477ac1a59c495ad3dc4f57ca5a1dbbd69cc2a83d786348b8d95c2f9:922c64590222798bb761d5b6d8e72950
|