getBuild

@GET(value = "api/builds/{id}")
abstract suspend fun getBuild(@Path(value = "id") id: String, @Query(value = "models") models: List<BuildModelName>? = null, @Query(value = "allModels") allModels: Boolean? = false, @Query(value = "availabilityWaitTimeoutSecs") availabilityWaitTimeoutSecs: Int? = null): Build

Get the common attributes of a build. The contained attributes are build tool agnostic. Responses:

  • 200: The common attributes of a build.

  • 400: The request cannot be fulfilled due to a problem.

  • 404: The referenced resource either does not exist or the permissions to know about it are missing.

  • 500: The server encountered an unexpected error.

  • 503: The server is not ready to handle the request.

Return

Build

Parameters

id

The Build Scan ID.

models

The list of build models to return in the response for each build. If not provided, no models are returned. (optional)

allModels

Whether to include all build models for the build. If set to `true`, the value of the `models` parameter is ignored. (optional, default to false)

availabilityWaitTimeoutSecs

The time in seconds the server should wait for ingestion before returning a wait timeout response. (optional)