id: api-fortitoken-cloud

info:
  name: FortiToken Cloud API Test
  author: dwisiswant0
  severity: info
  reference:
    - https://docs.fortinet.com/document/fortitoken-cloud/latest/rest-api/456035/overview
  metadata:
    max-request: 1
  tags: token-spray,fortinet,fortitoken

self-contained: true

http:
  - method: GET
    path:
      - "https://ftc.fortinet.com:9696/api/v1/user"

    headers:
      Authorization: Bearer {{token}}

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: regex
        part: body
        regex:
          - "error_(code|message|name)"
        negative: true
# digest: 4a0a0047304502206e72b6c2e823b64d1085055a8df5e302055f7a5931c8ecb727ad8ef7bdf483cc022100bbb892be5616c418be9cf93f3e9e6e063be138650d4fae5a3a038c96e77803a8:922c64590222798bb761d5b6d8e72950