> 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.

# Get a time-limited download URL for a run-level artifact

GET //api/v1/screen-test/run-artifacts/{artifactID}/download-url

Returns a presigned, read-only URL for one artifact's bytes: the same link the report page redirects to. Fetch it with a plain GET and no Remediation Orchestrator credentials. It is a bearer credential for that single object until expires_at, so treat it like a secret. name is producer-supplied, reduced to a bare file name server-side; choose the output file name yourself rather than building a command from it. The link is valid for one hour. 404 when the artifact is unknown, not yet downloadable, or its artifact_id went stale after a re-ingest; 503 when the instance has no object storage configured.

Reference: https://docs.nvidia.com/remediation-orchestrator/reference/rest-api/screen-test/get-a-time-limited-download-url-for-a-run-level-artifact

## Request

### Path parameters

- `artifactID` (integer, required) — Artifact ID, from /api/v1/screen-test/runs/\{workflowID}/artifacts

## Response

### 200

OK

- `artifact_id` (integer, optional)
- `expires_at` (string, optional)
- `method` (string, optional)
- `name` (string, optional)
- `url` (string, optional)

## Errors

### 400 Bad Request Error

Bad Request

- `string`

### 404 Not Found Error

Not Found

- `string`

### 500 Internal Server Error

Internal Server Error

- `string`

### 503 Service Unavailable Error

Service Unavailable

- `string`

## Examples

**Response**

```json
{
  "artifact_id": 1,
  "expires_at": "string",
  "method": "string",
  "name": "string",
  "url": "string"
}
```

**SDK Code**

```python
import requests

url = "https://api.example.com/api/v1/screen-test/run-artifacts/1/download-url"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.example.com/api/v1/screen-test/run-artifacts/1/download-url';
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/run-artifacts/1/download-url"

	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/run-artifacts/1/download-url")

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/run-artifacts/1/download-url")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.example.com/api/v1/screen-test/run-artifacts/1/download-url');

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

```csharp
using RestSharp;

var client = new RestClient("https://api.example.com/api/v1/screen-test/run-artifacts/1/download-url");
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/run-artifacts/1/download-url")! 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()
```