Skip to main content
Client examples use CLI v0.27.0 and Go SDK v0.32.0. See CLI setup and Go configuration. Go snippets assume a configured cfg, a ctx from context.Background(), and imports for log, basaltic (github.com/basaltic-sh/sdk-go) and compute (github.com/basaltic-sh/sdk-go/compute).
Go to Compute → Instances and choose Create instance. The form is one card per decision — Details, Flavor, Boot volume, Data volumes, Networking, IAM role, User data — with a running summary alongside them.Networking is the card to slow down on. Every interface carries its own VPC, Subnet, Security groups and Public floating IPs; Add network interface adds another, and the first in the list is the primary NIC.
The call answers 202 with the instance in pending. Building the boot disk, the interfaces and the seed happens after the response, so poll GET /v1/instances/{instance_id} and watch current_state.
Security groups are per interface. They belong in networks[].security_groups, not in a top-level field. A NIC provisioned with an empty list gets no per-interface filtering at all, which is not the same thing as a closed instance.
An instance with no networks entry boots with no networking. Nothing fails and nothing warns you — the guest comes up with no interface, so nothing reaches it and it reaches nothing. Send at least one entry; index 0 becomes the primary NIC, the one carrying the guest’s default route and its route to the metadata service.

Sizing: flavors

A flavor is CPU and memory, and nothing else. It carries no disk size — the boot disk is a volume sized at launch — so GET /v1/flavors is a catalog of compute shapes, not of machine types. The catalog omits disabled flavors. status is active when capacity is currently available, or unavailable when the flavor cannot currently be scheduled. Availability can change before launch; listing a flavor does not reserve capacity. Flavor responses omit created_at and updated_at. Instance responses use resource references for flavor, image and iam_role: each reference contains id, crn and an optional name. flavor is always present; image and iam_role are null when absent. Read the flavor or image resource for its details.
shared | dedicated
shared oversubscribes CPU for higher density. dedicated pins each vCPU 1:1 to a physical core. Both classes run on the same hosts; the class decides how the instance draws on a host’s threads.
general | loadbalancer | database
Only general flavors can run instances and instance pools. The other two are reserved for the managed products, whose nodes are operated and priced by the platform, and are refused here. Pass ?family=general when listing.
percent of one vCPU
The guaranteed floor and the ceiling. The instance is entitled to vcpus × cpu_baseline_pct / 100 cores however busy its neighbours get, and may not exceed the burst ceiling even on an idle host. Absent means the flavor guarantees no floor, or imposes no ceiling beyond the vCPU count.
aggregate throughput
The instance’s network ceiling, in megabits/s, across all its interfaces. Absent means uncapped. A resize moves this with the flavor.
The catalog is small and comes back in one page — GET /v1/flavors is not paginated.

Choosing an image

image takes four forms, and the difference matters for reproducibility:
"image": "debian-13" follows the tag. You get whichever build is current at the moment the instance is created, so two launches a month apart can boot different bits.
Names resolve across your own images plus the public platform catalog, and use the request architecture (default amd64). A complete image CRN pins its architecture. See Images for how a tag moves and what the listing does and does not show you.

Disks

volumes is one list, and the boot disk is the entry that says so:
boolean
Marks the boot disk, either cloned from image or selected with volume. At most one entry may set it. A boot entry takes no mount_path or fstype; its filesystem comes from the image or existing disk.When using image, omit the boot entry and you get its min_disk_gb on the region’s default tier.
integer, 1–16384
Required for new data disks; omitted for existing disks. On a new boot entry, this may not go below the image’s min_disk_gb. Anything smaller is a 400 before the instance row exists, not a failed build.
string
With a mount path set, the in-guest agent formats the disk — only if it is blank — and mounts it there, using fstype: ext4 by default, or xfs.
boolean
New launch-time volumes default to true. Existing disks default to false and cannot set this to true during launch. Disks attached after launch also default to false.
New boot and data volumes are deleted with the instance by default. Set delete_on_termination: false in their launch entries to retain them, or change the attachment after launch — see what survives a delete. Existing disks selected during launch are retained.

Performance and existing disks

New boot and data disks can provision IOPS and throughput independently of capacity. The included allowance is 3,000 IOPS / 125 MiB/s. SSD supports up to 8,000 IOPS / 250 MiB/s, and NVMe up to 12,000 IOPS / 500 MiB/s, subject to account quotas and regional capacity. The summary shows additional performance separately from storage capacity; 3,500 IOPS / 250 MiB/s adds R$35/month. See volume pricing for rates and proration. You can also launch from an existing bootable disk and attach existing data disks. They must be available in the same account and region, without a pending performance change. Each disk can appear only once. Existing disks retain their data, performance, snapshot schedules, and current charges. They are retained if launch fails or the instance is deleted, and their ongoing charges are excluded from the new-resource estimate. This requires compute:AttachVolume in addition to compute:CreateInstance.
In Create instance, use Boot volume to choose New volume from image or Existing volume. A new boot disk offers Provisioned IOPS and Provisioned throughput (MiB/s). Each entry under Data volumes offers the same choice. Existing disks show their current performance. The summary lists Additional performance separately.
These options apply to individual instances. Instance-pool templates cannot reuse existing disks or provision additional performance at launch.

Snapshot schedules at launch

Each new boot or data volume can have up to 16 independent snapshot schedules. This requires storage:CreateSnapshotPolicy in addition to the permissions for launching an instance. Schedule names must be unique within each volume. Different volumes in the same request can use the same schedule name.
Under Boot volume or a new Data volumes entry, use Add snapshot schedule. Set Schedule name, Every (minutes), Keep snapshots, and optionally Maximum age (days). Clear Enabled to create a paused schedule. The launch summary includes the requested schedules.
The full schedule set is created during provisioning. Retrying provisioning does not create duplicate schedules. If launch fails and is rolled back, its schedules are removed; snapshots already dispatched are preserved. Volumes attached later keep their existing schedules. Instance-pool templates do not support snapshot_schedules.

SSH access and cloud-init

Use SSH access with IAM for human and automation logins. Add a public key to the identity and grant it access to the instance. The platform installs IAM SSH during first boot on supported images; instance creation has no key attachment field and creates no shared login user. user_data is base64-encoded cloud-init. The base configuration disables password and root login. Customer top-level keys replace base values, while the platform adds its metadata route and guest-agent installation afterward. Your own users: block can create local application users without changing the identity and permissions of IAM users.
Your user-data must decode to a document whose first line is #cloud-config. A shell script or MIME multipart bundle is not merged. Put shell commands in cloud-init’s runcmd instead.
A #cloud-config document containing invalid YAML fails provisioning.

Giving the instance an identity

At launch, iam_role accepts a role name, UUID or CRN and attaches that IAM role. Software inside the guest then fetches short-lived credentials from the metadata service at 169.254.169.254 — no access key is written to the instance, and nothing has to be rotated.
Two conditions, and both are easy to miss. The role’s trust policy must accept crn:compute:*:*:instance/* (or the specific instance CRN), and the principal making the launch call needs iam:PassRole on the role, separately from compute:CreateInstance. Without the trust policy the instance launches and the credentials never mint; without iam:PassRole the launch itself is denied. Roles and instance identity walks through both.
Instance responses return iam_role as an optional summary instead of a string reference or iam_role_id:
The summary is visible with instance read access; it does not require iam:GetRole. It contains only id, crn and name, excluding sensitive role fields such as policies. The field is omitted when no role is attached, the role has been deleted or it belongs to another account. Opening the role’s IAM details still requires iam:GetRole.

Change an existing instance’s role

You can attach, replace, or remove a workload role while an instance is running or stopped, with no operation in progress. These changes require no reboot. There is one attached role per instance. Replacement is atomic; if validation fails, the previous role stays attached.
Open the instance and select Settings. In IAM role, select a role and click Save IAM role. To detach it, click Remove role, then Remove IAM role.
Every edit requires compute:UpdateInstance on the instance. Attach and replace also require iam:PassRole on the selected role, which must belong to the same account and trust this instance. The console’s role list requires iam:ListRoles. Detach does not require passing a role. New metadata requests observe the saved association immediately. A request already in flight can complete with the previous association. Detaching stops subsequent credential retrieval; reattaching the same role gets a fresh credential set. Requests that overlap a role change may need to retry role discovery. Concurrent edits apply in commit order, and repeating the current association leaves it unchanged.
Previously issued credentials are not revoked when you replace or detach a role. They remain valid until their existing expiry, for up to one hour. Applications caching credentials may keep using the old role until refresh.
Service-managed instances cannot be edited this way. For an instance-pool member, change the pool’s launch template; the template sets the role used by replacement instances. An instance edit never modifies its pool template.

Names, tags and metadata

unique per account
1–128 characters, DNS-safe: letters, digits, dot, dash, underscore, starting and ending alphanumeric. A name that collides with another instance in the account is a 409.
not supported
PATCH /v1/instances/{instance_id} edits description, metadata, tags and iam_role. A name is fixed for the life of the instance.In the console these are the Details, Tags, Metadata and IAM role cards on the instance’s Settings tab. None has a name field.
IAM and cost
Read by IAM policy conditions as basalt:RequestTag/<key> on the create and basalt:ResourceTag/<key> afterwards, and used for cost attribution. See policies.
replaced, not merged
The map you PATCH becomes the whole set of your keys.
Metadata keys under the basalt: namespace are control-plane state — how an instance proves which pool or managed resource it belongs to. You cannot set them, and you cannot remove them: they are preserved through a PATCH whether or not you echo them back, and proposing a different value for one is a 400 rather than a silent drop. Read-modify-write against the whole metadata map is therefore safe.

Reading instance addresses

The instances table shows Private IPv4, Public IPv4, and IPv6 from the primary NIC. Instance details show those same values individually. The Networking tab lists each NIC with its primary addresses. An attached IPv6 floating IP is shown instead of the NIC’s directly attached IPv6 address. The overview shows one address per instance, preferring public IPv4, then public IPv6, then private IPv4.

Resource references

See Resource references for classification, image versions and fetching an instance by name or CRN. flavor, iam_role, and per-NIC security_groups accept a UUID, a CRN, or an exact name. Flavors are regional; security groups belong to your account, and IAM roles belong to your account. subnet accepts a UUID or a complete VPC/subnet CRN. A bare subnet name cannot be resolved without its VPC parent. Interface attachment likewise requires a UUID or complete VPC/subnet/interface CRN. Every compute list accepts exact name and crn filters. They intersect with other filters and pagination. A foreign or mismatched CRN matches no rows; a malformed or empty CRN returns 400. Empty names do not broaden the list. Instance lists also accept flavor and image references. NIC-list names match interface names within the instance bindings; duplicate names can return multiple interfaces. Floating IPs have no name identity.