Inspect a registered set's manifest
GET
/
api
/
v1
/
datasets
/
{digest}
Inspect a registered set's manifest
curl --request GET \
--url http://127.0.0.1:18000/api/v1/datasets/{digest} \
--header 'Authorization: Bearer <token>'import requests
url = "http://127.0.0.1:18000/api/v1/datasets/{digest}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://127.0.0.1:18000/api/v1/datasets/{digest}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:18000/api/v1/datasets/{digest}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"dataset": {
"content_digest": "<string>",
"expired": true,
"kind": "capture",
"manifest": {
"authorship": {
"written_by": "people",
"generators": [
{
"model": "<string>",
"terms": "<string>",
"training_allowed": true
}
]
},
"bytes": 2,
"content_digest": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"kind": "capture",
"license": {
"spdx": "LicenseRef-Customer-Owned"
},
"location": {
"kind": "customer-volume",
"uri": "<string>",
"revision": "<string>"
},
"name": "<string>",
"records": 5000000,
"schema": "infercrane.dev/dataset/v1",
"source": "traffic_capture",
"uses": [
"training"
],
"version": "<string>",
"consent": {
"capture_id": "<string>",
"endpoint": "<string>",
"sample_rate": 0,
"turned_on_at": "2023-11-07T05:31:56Z"
},
"derived_from": [
"<string>"
],
"expires_at": "2023-11-07T05:31:56Z"
},
"name": "<string>",
"records": 2,
"registered_at": "2023-11-07T05:31:56Z",
"stored_by_infercrane": true,
"expires_at": "2023-11-07T05:31:56Z"
},
"created": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"category": "<string>",
"remediation": "<string>",
"request_id": "<string>",
"retryable": true
}
}⌘I
Inspect a registered set's manifest
curl --request GET \
--url http://127.0.0.1:18000/api/v1/datasets/{digest} \
--header 'Authorization: Bearer <token>'import requests
url = "http://127.0.0.1:18000/api/v1/datasets/{digest}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://127.0.0.1:18000/api/v1/datasets/{digest}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:18000/api/v1/datasets/{digest}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"dataset": {
"content_digest": "<string>",
"expired": true,
"kind": "capture",
"manifest": {
"authorship": {
"written_by": "people",
"generators": [
{
"model": "<string>",
"terms": "<string>",
"training_allowed": true
}
]
},
"bytes": 2,
"content_digest": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"kind": "capture",
"license": {
"spdx": "LicenseRef-Customer-Owned"
},
"location": {
"kind": "customer-volume",
"uri": "<string>",
"revision": "<string>"
},
"name": "<string>",
"records": 5000000,
"schema": "infercrane.dev/dataset/v1",
"source": "traffic_capture",
"uses": [
"training"
],
"version": "<string>",
"consent": {
"capture_id": "<string>",
"endpoint": "<string>",
"sample_rate": 0,
"turned_on_at": "2023-11-07T05:31:56Z"
},
"derived_from": [
"<string>"
],
"expires_at": "2023-11-07T05:31:56Z"
},
"name": "<string>",
"records": 2,
"registered_at": "2023-11-07T05:31:56Z",
"stored_by_infercrane": true,
"expires_at": "2023-11-07T05:31:56Z"
},
"created": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"category": "<string>",
"remediation": "<string>",
"request_id": "<string>",
"retryable": true
}
}