Connected systems
Inventory
What this sandbox has and what it wants, as declared deployment intent
On this page(3 sections)
The entries in the workspace's deployment configuration. Adding or removing one rewrites that file and commits it, exactly as an agent editing it by hand would, and answers with the whole updated list so a caller redraws from one response.
GET/inventoryMachines and services you have declared
What the deployment configuration says this setup owns and what it wants provisioned.
What you send
Nothing. Call it as it is.
What comes back
| Field | Type |
|---|---|
entriesEverything declared: what you have, and… | object[] |
when kind is "backend" | shape |
providerWhich provider it is with | "host" | "cloudflare" | "github" | "gitlab" … (5) |
nameWhat to call it, which is… | string |
valuesIts settings | object |
when kind is "service" | shape |
serviceWhich service | "signoz" | "outline" | "paperless" | "openproject" … (6) |
nameWhat to call it | string |
valuesIts settings | object |
onWhich of your machines to put… | string |
exposeHow it should be reachable | string |
when kind is "app" | shape |
nameWhat to call it | string |
valuesIts settings, including the address it… | object |
onWhich of your machines to put… | string |
exposeHow it should be reachable | string |
answered in this tab
curl "$SANDBOX/inventory" \
-H "x-intentic-control: $INTENTIC_TOKEN"import { sandbox } from "@intentic/sandbox-client";
const result = await sandbox.inventory.list();POST/inventoryDeclare a machine or service
Writes the entry into the configuration file and commits it, exactly as an agent editing that file by hand would. Answers with the whole updated list, so a screen redraws from one response.
What you send
| Field | Type | Where |
|---|---|---|
when kind is "backend" | shape | body |
providerrequiredWhich provider it is with | "host" | "cloudflare" | "github" | "gitlab" … (5) | body |
namerequired | string | body |
valuesrequiredIts settings | object | body |
when kind is "service" | shape | body |
servicerequiredWhich service | "signoz" | "outline" | "paperless" | "openproject" … (6) | body |
namerequired | string | body |
valuesrequiredIts settings | object | body |
onrequiredWhich of your machines to put… | string | body |
exposerequiredHow it should be reachable | string | body |
when kind is "app" | shape | body |
namerequired | string | body |
valuesrequiredIts settings, including the address it… | object | body |
onrequiredWhich of your machines to put… | string | body |
exposerequiredHow it should be reachable | string | body |
What comes back
| Field | Type |
|---|---|
entriesEverything declared: what you have, and… | object[] |
when kind is "backend" | shape |
providerWhich provider it is with | "host" | "cloudflare" | "github" | "gitlab" … (5) |
nameWhat to call it, which is… | string |
valuesIts settings | object |
when kind is "service" | shape |
serviceWhich service | "signoz" | "outline" | "paperless" | "openproject" … (6) |
nameWhat to call it | string |
valuesIts settings | object |
onWhich of your machines to put… | string |
exposeHow it should be reachable | string |
when kind is "app" | shape |
nameWhat to call it | string |
valuesIts settings, including the address it… | object |
onWhich of your machines to put… | string |
exposeHow it should be reachable | string |
answered in this tab
curl -X POST "$SANDBOX/inventory" \
-H "x-intentic-control: $INTENTIC_TOKEN" \
-H "content-type: application/json" \
-d '{"kind":"backend","provider":"host","name":"nightly changelog","values":{"src/app.ts":"…","README.md":"…"}}'import { sandbox } from "@intentic/sandbox-client";
const result = await sandbox.inventory.add({
"kind": "backend",
"provider": "host",
"name": "nightly changelog",
"values": {
"src/app.ts": "…",
"README.md": "…"
}
});DELETE/inventory/{name}Undeclare a machine or service
Takes the entry back out of the configuration and commits that too. Answers with the whole updated list.
What you send
| Field | Type | Where |
|---|---|---|
namerequiredWhich entry, by name | string | address |
What comes back
| Field | Type |
|---|---|
entriesEverything declared: what you have, and… | object[] |
when kind is "backend" | shape |
providerWhich provider it is with | "host" | "cloudflare" | "github" | "gitlab" … (5) |
nameWhat to call it, which is… | string |
valuesIts settings | object |
when kind is "service" | shape |
serviceWhich service | "signoz" | "outline" | "paperless" | "openproject" … (6) |
nameWhat to call it | string |
valuesIts settings | object |
onWhich of your machines to put… | string |
exposeHow it should be reachable | string |
when kind is "app" | shape |
nameWhat to call it | string |
valuesIts settings, including the address it… | object |
onWhich of your machines to put… | string |
exposeHow it should be reachable | string |
answered in this tab
curl -X DELETE "$SANDBOX/inventory/nightly%20changelog" \
-H "x-intentic-control: $INTENTIC_TOKEN"import { sandbox } from "@intentic/sandbox-client";
const result = await sandbox.inventory.remove({
"name": "nightly changelog"
});More in Connected systems