> This page is for Remediation Orchestrator.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/llms.txt.

# List screen test results

GET //api/v1/screen-test/test-results

Returns individual screen test results with filtering, sorting and pagination. Each row carries its result_id and parent workflow_id, and total_count reports the unpaginated match count.

Reference: https://docs.nvidia.com/remediation-orchestrator/reference/rest-api/screen-test/list-screen-test-results

## Request

### Query parameters

- `host_status` (list of enum, optional) — Comma-separated per-host statuses, e.g. FAILED,ERRORED. Matches the row's host_status, not its result_status; results recorded before per-host status existed report UNKNOWN.
  - Allowed values: `PASSED`, `FAILED`, `SKIPPED`, `ERRORED`, `UNKNOWN`, `CANCELLED`
- `datacenter_node_id` (string, optional) — Exact datacenter node ID (serial number). The identifier to query a node by; hostnames are reused across hardware.
- `workflow_id` (string, optional) — Exact parent orchestration workflow ID, as reported in each row's workflow_id. This is how results are scoped to one orchestration.
- `child_run_id` (string, optional) — Exact Temporal run ID of the group child workflow that produced the result, as reported in each row's child_run_id. This is the child workflow's own run, not the orchestration's; to scope results to one orchestration use workflow_id.
- `tags` (string, optional) — Comma-separated tags; a row matches if it carries any of them
- `from` (string, optional) — Lower bound on test_timestamp, RFC3339
- `to` (string, optional) — Upper bound on test_timestamp, RFC3339
- `sort` (enum, optional, default: test_timestamp) — Sort column
  - Allowed values: `test_timestamp`, `hostname`, `test_name`, `phase_name`, `host_status`, `result_status`, `child_run_id`
- `sort_dir` (enum, optional, default: desc) — Sort direction
  - Allowed values: `asc`, `desc`
- `page` (integer, optional, default: 1) — 1-based page number
- `page_size` (integer, optional, default: 100) — Rows per page (1-200)

## Response

### 200

OK

- `data` (list of testResultResponse, optional)
- `has_more` (boolean, optional)
- `page` (integer, optional)
- `page_size` (integer, optional)
- `total_count` (integer, optional)

## Errors

### 400 Bad Request Error

Bad Request

- `string`

### 500 Internal Server Error

Internal Server Error

- `string`

## Types

### testResultResponse

- `child_run_id` (string, optional)
- `datacenter_node_id` (string, optional)
- `host_status` (string, optional)
- `hostname` (string, optional)
- `overridden` (boolean, optional)
- `phase_name` (string, optional)
- `result_id` (integer, optional)
- `result_status` (string, optional)
- `tags` (list of string, optional)
- `test_name` (string, optional)
- `test_step` (string, optional)
- `test_timestamp` (string, optional)
- `test_type` (string, optional)
- `workflow_id` (string, optional)

## Examples

**Response**

```json
{
  "data": [
    {
      "child_run_id": "string",
      "datacenter_node_id": "string",
      "host_status": "string",
      "hostname": "string",
      "overridden": true,
      "phase_name": "string",
      "result_id": 1,
      "result_status": "string",
      "tags": [
        "string"
      ],
      "test_name": "string",
      "test_step": "string",
      "test_timestamp": "string",
      "test_type": "string",
      "workflow_id": "string"
    }
  ],
  "has_more": true,
  "page": 1,
  "page_size": 1,
  "total_count": 1
}
```

**SDK Code**

```python
import requests

url = "https://api.example.com/api/v1/screen-test/test-results"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.example.com/api/v1/screen-test/test-results';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/api/v1/screen-test/test-results"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.example.com/api/v1/screen-test/test-results")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/screen-test/test-results")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.example.com/api/v1/screen-test/test-results');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.example.com/api/v1/screen-test/test-results");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/api/v1/screen-test/test-results")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```