Tarsana docsDashboard

Install a built image on one of your servers

Change · POST /v1/tenants/{tenant}/submissions/{submission}/provision · MCP tool provision

Installs the image that this submission's build produced on a server in your own cloud account. You name the provider, the target and the server's addresses; the image always comes from this submission's finished build. Tarsana uses the provider credential you stored. This step is optional: your image is built, checked and published whether or not you install it.

Roles that can call it: deployer.

Parameters

NameInRequiredDescription
tenantpathyesYour tenant ID
submissionpathyesThe submission ID that submit returned
request bodybodyyesYour provisioning request (tarsana.provisioning-request/v1): the provider, the target and the server's addresses

Returns

A JSON object with these keys: submission, tenant, provisioning, guarantee, caller_authenticated.

Example request

curl -X POST https://api.tarsana.io/v1/tenants/acme/submissions/sha256:cdff062988d4722b2ff052c97ebefb8b571858c493ce47b159df73b1c88809b1/provision \
  -H "X-Tarsana-Access-Token: $ACCESS_TOKEN" \
  -H 'X-Tarsana-Tenant: acme' \
  -H "Content-Type: application/json" \
  --data @request.json

Example response

{
  "submission": "sha256:cdff062988d4722b2ff052c97ebefb8b571858c493ce47b159df73b1c88809b1",
  "tenant": "acme",
  "provisioning": {
    "state": "provisioned",
    "provider": "hetzner",
    "target": "1",
    "mechanism": "rescue-dd",
    "attested": true,
    "correlation_id": "selfservice.cdff0629...",
    "what": "A sentence about the installation."
  },
  "guarantee": "namespaces are separated, callers are not authenticated",
  "caller_authenticated": false
}

Errors

CodeHTTPWhat it means
invalid_parameter400A value in your request does not have the expected format, for example a submission ID that is not a spec hash. Check the value against the field's description and try again.
no_acting_tenant400Your request does not say which tenant you are acting for. Send your tenant ID in the X-Tarsana-Tenant header, or with --as on the command line.
isolation_refused403This address belongs to a tenant ID you do not have access to. Check the tenant ID in the address and in your request header.
no_such_submission404You have no submission with this ID. Check the ID that submit returned.
provisioning_not_configured503Installing images on servers is not available on this Tarsana deployment. Contact Tarsana support if you need it.
provisioning_request_invalid400Your provisioning request is not valid: a field is missing, or a value is not supported. Correct the request and send it again.
not_provisionable409This submission has no finished build that can be installed. Check its status, and try again when its build has succeeded.
provisioning_refused409The provider cannot install this image in any of the ways your request allows. The response says why and what you can change, because sending the same request again will not help.
provisioning_failed502The installation did not complete, for example because the provider returned an error. The response says where it stopped and whether trying again can help.
unauthenticated401Your request has no credential, or one that Tarsana does not recognise. Sign in with login, or send a valid access token.
forbidden403Your role does not allow this operation. The response names the roles that do; ask for a credential with one of them.
rate_limited429You sent too many requests in a short time. Wait for the number of seconds in retry_after_seconds, then try again.
surface_fault500Something went wrong on our side. Try again later, and contact Tarsana support if it keeps happening.

View this page as Markdown