> 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 node groups for a screen test orchestration

GET //api/v1/screen-test/runs/{workflowID}/node-groups

Returns the per-node-group rows of one orchestration, oldest phase first and oldest group first within a phase. When a validator fails during setup, its reason is recorded on the node group and never reaches the results tables, so /summaries, /failures and /test-results all return zero rows for the same workflow while the groups here carry error and validator_result.failed_test. /runs reports the same class of failure, but only as group_counts.first_error: one error per run, truncated to 200 characters. This endpoint carries the full text and the per-group detail. Read outcome rather than status: status is what the phase runner last recorded for the child workflow, not a value read back from Temporal, so it reports COMPLETED for a group whose validator failed. error is set on every failure the phase runner observes and checkpoints; a group left at outcome queuing or running with a null error was abandoned, its phase killed before it could record one. validator_result is null when the group failed before a validator produced one, such as a child workflow that errored or was canceled. Rows are returned for every attempt of the workflow; partition by screentest_run_id to separate them. child_workflow_id and child_run_id together address the group's execution for /api/v1/script/debug, and both are required, since the child workflow ID carries no orchestration discriminator and repeats across re-runs of the same script over the same nodes.

Reference: https://docs.nvidia.com/remediation-orchestrator/reference/rest-api/screen-test/list-node-groups-for-a-screen-test-orchestration

## Request

### Path parameters

- `workflowID` (string, required) — Orchestration workflow ID

### Query parameters

- `phase_number` (integer, optional) — Restrict to a single phase
- `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 nodeGroupResponse, optional)
- `has_more` (boolean, optional)
- `page` (integer, optional)
- `page_size` (integer, optional)
- `total_count` (integer, optional)

## Errors

### 400 Bad Request Error

Bad Request

- `string`

### 404 Not Found Error

Not Found

- `string`

### 500 Internal Server Error

Internal Server Error

- `string`

## Types

### nodeGroupResponse

- `child_run_id` (string, optional)
- `child_workflow_id` (string, optional)
- `completed_at` (string, optional, nullable)
- `error` (string, optional, nullable)
- `group_id` (string, optional)
- `group_type` (string, optional)
- `node_hostnames` (list of string, optional)
- `outcome` (string, optional)
- `phase_name` (string, optional)
- `phase_number` (integer, optional)
- `screentest_run_id` (string, optional)
- `started_at` (string, optional, nullable)
- `status` (string, optional)
- `test_status` (string, optional, nullable)
- `validator_result` (validatorResultResponse, optional, nullable)

### validatorResultResponse

- `failed_test` (string, optional)
- `failure_reason` (string, optional)
- `known_bad_nodes` (map from string to string, optional)
- `log_path` (string, optional)
- `non_fatal_errors` (list of string, optional)
- `repro_cmd` (string, optional)
- `result` (boolean, optional)
- `skipped_nodes` (map from string to string, optional)

## Examples

**Response**

```json
{
  "data": [
    {
      "child_run_id": "string",
      "child_workflow_id": "string",
      "completed_at": "string",
      "error": "string",
      "group_id": "string",
      "group_type": "string",
      "node_hostnames": [
        "string"
      ],
      "outcome": "string",
      "phase_name": "string",
      "phase_number": 1,
      "screentest_run_id": "string",
      "started_at": "string",
      "status": "string",
      "test_status": "string",
      "validator_result": {
        "failed_test": "string",
        "failure_reason": "string",
        "known_bad_nodes": {},
        "log_path": "string",
        "non_fatal_errors": [
          "string"
        ],
        "repro_cmd": "string",
        "result": true,
        "skipped_nodes": {}
      }
    }
  ],
  "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/runs/workflowID/node-groups"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.example.com/api/v1/screen-test/runs/workflowID/node-groups';
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/runs/workflowID/node-groups"

	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/runs/workflowID/node-groups")

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/runs/workflowID/node-groups")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

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

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

```csharp
using RestSharp;

var client = new RestClient("https://api.example.com/api/v1/screen-test/runs/workflowID/node-groups");
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/runs/workflowID/node-groups")! 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()
```