Skip to content

Download an artifact file from the underlying container.

GET https://api.sandbox-gameye.gameye.net/artifacts

Section titled “GET https://api.sandbox-gameye.gameye.net/artifacts”

Initiates a download of an artifact which could be a file or a folder inside the underlying container. The path should be an absolute Unix path to a specific file or folder.

The artifact will be provided in the form of a .tar.gz archive that contains your requested file or folder. Please limit your download in size to a maximum of 100mb.

Please note that the artifact is only available for download after the session has been terminated and will be downloaded directly from the container itself.

The artifacts are available for download from the underlying container up until the container is removed from its host machine. This means that your logs may or may not be available post-termination.

cURL
curl --location 'https://api.sandbox-gameye.gameye.net/artifacts?session=string&path=string' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
javascript
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Content-Type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.sandbox-gameye.gameye.net/artifacts?session=string&path=string", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
Ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.sandbox-gameye.gameye.net/artifacts?session=string&path=string")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
request["Content-Type"] = "application/json"
response = https.request(request)
puts response.read_body
Python
import requests
import json
url = "https://api.sandbox-gameye.gameye.net/artifacts?session=string&path=string"
payload = {}
headers = {
'Accept': 'application/json',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)

A download of the artifact in .tar.gz format has been initiated.

// A download of the artifact in .tar.gz format has been initiated.

You are not authorized to fetch an artifact. Please make sure that the included bearer token is correct.

FieldTypeRequired
statusCodeintegerYes
codestringYes
messagestringYes
detailsstringYes
pathstringYes
timestampstringYes
identifierstringYes
violationsarrayNo
// You are not authorized to fetch an artifact. Please make sure that the included bearer token is correct.
{
"statusCode": 0,
"code": "",
"message": "",
"details": "",
"path": "",
"timestamp": "",
"identifier": "",
"violations": [
{
"field": "",
"description": ""
}
]
}

Could not find a session with the given session id. It is possible that either the session has never existed at all or the container’s lifespan on the machine has expired.

FieldTypeRequired
statusCodeintegerYes
codestringYes
messagestringYes
detailsstringYes
pathstringYes
timestampstringYes
identifierstringYes
violationsarrayNo
// Could not find a session with the given session id. It is possible that either the session has never existed at all or the container's lifespan on the machine has expired.
{
"statusCode": 0,
"code": "",
"message": "",
"details": "",
"path": "",
"timestamp": "",
"identifier": "",
"violations": [
{
"field": "",
"description": ""
}
]
}