Fortify DAST Automated Scans API

Configure and start DAST automated scans

OpenAPI Specification

fortify-dast-automated-scans-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Fortify on Demand Alert Definitions DAST Automated Scans API
  description: REST API for Fortify on Demand (FoD), the cloud-based application security testing service from OpenText. Provides programmatic access to manage applications, releases, initiate static, dynamic, and mobile scans, retrieve vulnerability results, and manage tenant-level settings. Supports OAuth2 client credentials and resource owner password grant flows for authentication.
  version: v3
  contact:
    name: OpenText Fortify Support
    url: https://www.opentext.com/support
    email: fortify-support@microfocus.com
  license:
    name: Proprietary
    url: https://www.opentext.com/about/legal/website-terms-of-use
  x-logo:
    url: https://www.microfocus.com/brand/fortify-logo.png
servers:
- url: https://api.ams.fortify.com
  description: Fortify on Demand - Americas
- url: https://api.emea.fortify.com
  description: Fortify on Demand - EMEA
- url: https://api.apac.fortify.com
  description: Fortify on Demand - APAC
security:
- bearerAuth: []
tags:
- name: DAST Automated Scans
  description: Configure and start DAST automated scans
paths:
  /api/v3/releases/{releaseId}/dast-automated-scans/scan-setup:
    get:
      operationId: getDastAutomatedScanSetup
      summary: Fortify Get DAST automated scan setup
      description: Retrieves the current DAST automated scan setup configuration for the specified release.
      tags:
      - DAST Automated Scans
      parameters:
      - $ref: '#/components/parameters/ReleaseId'
      responses:
        '200':
          description: Successful response with DAST scan setup details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetDastAutomatedScanSetupResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /api/v3/releases/{releaseId}/dast-automated-scans/website-scan-setup:
    put:
      operationId: saveDastAutomatedWebsiteScanSetup
      summary: Fortify Save DAST automated website scan setup
      description: Saves the DAST automated website scan setup configuration for the specified release.
      tags:
      - DAST Automated Scans
      parameters:
      - $ref: '#/components/parameters/ReleaseId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutDastAutomatedWebsiteScanSetupRequest'
      responses:
        '200':
          description: Website scan setup saved successfully
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /api/v3/releases/{releaseId}/dast-automated-scans/openapi-scan-setup:
    put:
      operationId: saveDastAutomatedOpenApiScanSetup
      summary: Fortify Save DAST automated OpenAPI scan setup
      description: Saves the DAST automated OpenAPI scan setup configuration for the specified release.
      tags:
      - DAST Automated Scans
      parameters:
      - $ref: '#/components/parameters/ReleaseId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutDastAutomatedOpenApiScanSetupRequest'
      responses:
        '200':
          description: OpenAPI scan setup saved successfully
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /api/v3/releases/{releaseId}/dast-automated-scans/start-scan:
    post:
      operationId: startDastAutomatedScan
      summary: Fortify Start DAST automated scan
      description: Initiates a DAST automated scan for the specified release using the current scan setup configuration.
      tags:
      - DAST Automated Scans
      parameters:
      - $ref: '#/components/parameters/ReleaseId'
      - name: networkName
        in: query
        description: Name of the Fortify on Demand Connect network to use for scanning
        schema:
          type: string
      responses:
        '200':
          description: DAST automated scan started successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StartScanResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  responses:
    Forbidden:
      description: Forbidden - insufficient permissions or scopes
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    TooManyRequests:
      description: Too many requests - rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Unauthorized - authentication required or token expired
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    BadRequest:
      description: Bad request - invalid parameters or request body
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Not found - the specified resource does not exist
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    GetDastAutomatedScanSetupResponse:
      type: object
      description: DAST automated scan setup configuration
      properties:
        dynamicScanEnvironmentFacingType:
          type: string
        scanType:
          type: string
        scanPolicy:
          type: string
        websiteUrl:
          type: string
        requiresNetworkAuthentication:
          type: boolean
        networkAuthenticationUserName:
          type: string
        timeZone:
          type: string
    PutDastAutomatedWebsiteScanSetupRequest:
      type: object
      description: Request body for saving DAST website scan setup
      properties:
        dynamicScanEnvironmentFacingType:
          type: string
          enum:
          - Internal
          - External
        websiteUrl:
          type: string
          description: URL of the website to scan
        scanPolicy:
          type: string
          description: Scan policy to use
        requiresNetworkAuthentication:
          type: boolean
        networkAuthenticationUserName:
          type: string
        networkAuthenticationPassword:
          type: string
        timeZone:
          type: string
        assessmentTypeId:
          type: integer
          format: int32
        entitlementId:
          type: integer
          format: int32
        entitlementFrequencyType:
          type: string
    ErrorResponse:
      type: object
      description: Error response
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              errorCode:
                type: integer
                format: int32
              message:
                type: string
    PutDastAutomatedOpenApiScanSetupRequest:
      type: object
      description: Request body for saving DAST OpenAPI scan setup
      properties:
        dynamicScanEnvironmentFacingType:
          type: string
          enum:
          - Internal
          - External
        openApiUrl:
          type: string
          description: URL of the OpenAPI specification
        apiKey:
          type: string
          description: API key for authentication
        assessmentTypeId:
          type: integer
          format: int32
        entitlementId:
          type: integer
          format: int32
        entitlementFrequencyType:
          type: string
        timeZone:
          type: string
    StartScanResponse:
      type: object
      description: Response after starting a scan
      properties:
        scanId:
          type: integer
          format: int32
          description: Identifier of the newly created scan
        analysisStatusType:
          type: string
          description: Initial analysis status
        success:
          type: boolean
  parameters:
    ReleaseId:
      name: releaseId
      in: path
      required: true
      description: Unique identifier of the release
      schema:
        type: integer
        format: int32
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2 Bearer token obtained from POST /oauth/token using either client_credentials or password grant type.
externalDocs:
  description: Fortify on Demand API Reference
  url: https://api.ams.fortify.com/swagger/ui/index