Bookmarks
Get a single artifact file
Get an artifact file from a bookmarked artifact version from an execution.
GET
/
artifacts
/
v1
/
artifacts
/
{artifact-id}
/
bookmarks
/
{execution-name}
/
files
/
{file-name}
Get a single artifact file
curl --request GET \
--url https://mycluster.domino.tech/flows/api/artifacts/v1/artifacts/{artifact-id}/bookmarks/{execution-name}/files/{file-name}import requests
url = "https://mycluster.domino.tech/flows/api/artifacts/v1/artifacts/{artifact-id}/bookmarks/{execution-name}/files/{file-name}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://mycluster.domino.tech/flows/api/artifacts/v1/artifacts/{artifact-id}/bookmarks/{execution-name}/files/{file-name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mycluster.domino.tech/flows/api/artifacts/v1/artifacts/{artifact-id}/bookmarks/{execution-name}/files/{file-name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/flows/api/artifacts/v1/artifacts/{artifact-id}/bookmarks/{execution-name}/files/{file-name}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://mycluster.domino.tech/flows/api/artifacts/v1/artifacts/{artifact-id}/bookmarks/{execution-name}/files/{file-name}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/flows/api/artifacts/v1/artifacts/{artifact-id}/bookmarks/{execution-name}/files/{file-name}")
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{
"createdAt": "2023-11-07T05:31:56Z",
"format": "<string>",
"jobId": "<string>",
"name": "<string>",
"nodeId": "<string>",
"nodeVariable": "<string>",
"sizeBytes": 123,
"source": "<string>",
"taskName": "<string>",
"$schema": "https://example.com/schemas/ArtifactFileInfo.json"
}{
"$schema": "https://example.com/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Path Parameters
Response
OK
Was this page helpful?
⌘I
Get a single artifact file
curl --request GET \
--url https://mycluster.domino.tech/flows/api/artifacts/v1/artifacts/{artifact-id}/bookmarks/{execution-name}/files/{file-name}import requests
url = "https://mycluster.domino.tech/flows/api/artifacts/v1/artifacts/{artifact-id}/bookmarks/{execution-name}/files/{file-name}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://mycluster.domino.tech/flows/api/artifacts/v1/artifacts/{artifact-id}/bookmarks/{execution-name}/files/{file-name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mycluster.domino.tech/flows/api/artifacts/v1/artifacts/{artifact-id}/bookmarks/{execution-name}/files/{file-name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/flows/api/artifacts/v1/artifacts/{artifact-id}/bookmarks/{execution-name}/files/{file-name}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://mycluster.domino.tech/flows/api/artifacts/v1/artifacts/{artifact-id}/bookmarks/{execution-name}/files/{file-name}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/flows/api/artifacts/v1/artifacts/{artifact-id}/bookmarks/{execution-name}/files/{file-name}")
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{
"createdAt": "2023-11-07T05:31:56Z",
"format": "<string>",
"jobId": "<string>",
"name": "<string>",
"nodeId": "<string>",
"nodeVariable": "<string>",
"sizeBytes": 123,
"source": "<string>",
"taskName": "<string>",
"$schema": "https://example.com/schemas/ArtifactFileInfo.json"
}{
"$schema": "https://example.com/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}