Artifacts
dedalus machines artifacts list --machine-id <machine_id>
arts = client.machines.artifacts.list(machine_id="<machine_id>")
for a in arts.items or []:
print(a.artifact_id, a.download_url)
const arts = await client.machines.artifacts.list({ machine_id: "<machine_id>" });
for (const a of arts.items ?? []) {
console.log(a.artifact_id, a.download_url);
}
arts, _ := client.Machines.Artifacts.List(ctx, dedalus.MachineArtifactListParams{
MachineID: machineID,
})
for _, a := range arts.Items {
fmt.Println(a.ArtifactID, a.DownloadURL)
}
An artifact is a file produced by an that you can download after the command finishes. Use artifact_id to refer to the file in Dedalus. Use download_url to fetch the bytes; if it expires, retrieve the artifact again.
Parameters
machine_id · string · required
The machine whose artifacts you want to list.
cursor · string
Pagination cursor from a prior page's next_cursor.
limit · integer
Max items per page.
Manage artifacts
dedalus machines artifacts retrieve --machine-id <machine_id> --artifact-id <artifact_id>
dedalus machines artifacts delete --machine-id <machine_id> --artifact-id <artifact_id>
client.machines.artifacts.retrieve(machine_id="<machine_id>", artifact_id="<artifact_id>")
client.machines.artifacts.delete(machine_id="<machine_id>", artifact_id="<artifact_id>")
await client.machines.artifacts.retrieve({
machine_id: "<machine_id>",
artifact_id: "<artifact_id>",
});
await client.machines.artifacts.delete({
machine_id: "<machine_id>",
artifact_id: "<artifact_id>",
});
client.Machines.Artifacts.Get(ctx, dedalus.MachineArtifactGetParams{
MachineID: machineID,
ArtifactID: "<artifact_id>",
})
client.Machines.Artifacts.Delete(ctx, dedalus.MachineArtifactDeleteParams{
MachineID: machineID,
ArtifactID: "<artifact_id>",
})
Parameters
machine_id · string · required
The machine that owns the artifact.
artifact_id · string · required
The artifact to retrieve or delete.
