Skip to main content
POST
Reinstall instance
Requires the IAM action compute:ReinstallInstance. See COMPUTE permissions for the full list, what each one covers, and an example policy.

Authorizations

Authorization
string
header
required

An OAuth 2.0 bearer token, sent as Authorization: Bearer <token>. This is the recommended way to authenticate.

Get one by exchanging a service account's access key pair at POST /v1/oauth/token with grant_type=client_credentials. It is the standard client-credentials grant, so any OAuth-aware library will obtain and refresh it for you.

Tokens last an hour by default. The same access key pair is separately your AWS SigV4 credential for the S3-compatible object endpoint, which speaks nothing else.

Headers

Idempotency-Key
string

Optional client-generated key that makes a create replay-safe. Retrying a request with the same key returns the original outcome verbatim instead of creating a duplicate resource. Reusing a key with a different request body is rejected (422); a request whose key is still being processed returns 409. Records are honored for 24 hours. Use a UUID or similarly unique token.

Maximum string length: 255

Path Parameters

instance_id
string<uuid>
required

Instance ID

Body

application/json
image
string

Replacement image reference (UUID, architecture-qualified CRN, name or name:version). Omit to reinstall from the instance's current image.

Example:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"

size_gb
integer

Replacement boot disk size; omitted = the image's min_disk_gb. Must be within the volume size range (1..16384) and at least the image's min_disk_gb.

Required range: 1 <= x <= 16384
Example:

40

volume_type
enum<string>

Replacement boot disk tier; omitted = the region default.

Available options:
ssd,
nvme

Response

Request accepted, processing asynchronously. The action is fire-and-forget — the body is empty; poll the resource to observe the resulting state transition.