Publish Assets
{
"name": "demo-model",
"version": "1.0",
"type": "file",
"asset_path": "model.bin",
"license": "apache-2.0",
"tags": ["vision"]
}
deploy/scripts/storage.sh asset publish asset.json
deploy/scripts/storage.sh asset publish asset.json --asset other.bin
| Field |
Meaning |
name |
Lowercase letters and digits, separated by ., _ or - |
version |
Letters, digits, ., _ and -, at most 128 characters |
type |
file (default) or oci |
asset_path |
Path relative to the metadata file |
hash, size, hyperdrive_key |
Instead of a path, for data that is already stored |
| any other |
Metadata |
Types
| Type |
Content |
When pulled |
file |
Any file |
Packed into an OCI artifact |
oci |
Archive of an OCI image layout |
Image |
Find
deploy/scripts/storage.sh asset find --name demo-model
curl "http://l2-query:8080/v1/assets?search=model"
GraphQL is available at /graphql:
{ assets(search: "model", limit: 10) { name version hash size publisher metadata } }