id: jira-serverinfo

info:
  name: Jira Rest API Server Information
  author: pdteam
  severity: info
  metadata:
    max-request: 1
  tags: jira,tech

http:
  - method: GET
    path:
      - "{{BaseURL}}/rest/api/latest/serverInfo"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"baseUrl"'
          - '"deploymentType"'
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: json
        json:
          - ".baseUrl"
          - ".version"
# digest: 490a0046304402206b2326bbed975e201d2958c9d4a18df02b0869a798fabcbf00ab5b955c0942d0022007a036c4921d4ed82fa0527e8eb7c8f9efe57b4384e127ca85f5ec6487f7e751:922c64590222798bb761d5b6d8e72950