Assistant

Preview — pending review

This reference is generated from the platform API contract and is still under review. Operations, fields, and descriptions can change before publication.

Confirm an assistant proposal (create the proposed instance)

POST
/scopes/{scopeId}/assistant/proposals/{proposalId}/actions/confirm

The user's click that executes a proposal the assistant prepared. Only the principal the proposal was made to can confirm it, only in its own project, once, within 10 minutes. The stored create request is sent to POST /scopes/{scopeId}/compute/instances through the edge with the CALLER's own credential and an idempotency key derived from the proposal, so that route's role check, quota, subscription pause guard and Activity Log (compute.instance.create by the caller) apply exactly as for the console wizard; its answer is relayed verbatim (202 + the accepted Instance, or its own error such as 403 for a role without compute manage). Validation: MANAGE on compute -> 403 (compute:write for tokens); unreachable scope or a proposal that is not the caller's / not in this scope -> 404; expired -> 409 PROPOSAL_EXPIRED; already confirmed / cancelled / being confirmed -> 409 PROPOSAL_NOT_PENDING. Feature flag: 404 while the assistant service is disabled. Async & state: Asynchronous like the create it relays (202); a refused create leaves the proposal pending. Errors: 401; 403; 404; 409; 422 (relayed); 429; 500; 503 when the create route cannot be reached. Idempotency/Concurrency: Takes an optional Idempotency-Key header; a repeated confirm of a confirmed proposal is 409, and the derived create key makes a retried confirm replay the one accepted create.

Authorization

bearerToken
headerAuthorizationBearer <token>

An API token (pc_live_…) or a service-account key (sak_live_…), created in Identity & Access Management and sent as Authorization: Bearer <token>. Requests are rate limited per credential and per tenant: every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset, and a refused request gets 429 RATE_LIMITED with Retry-After.

Path Parameters

scopeId*string

Opaque ownership+authorization scope resolving to tenant + subscription + project.

proposalId*string
Lengthlength <= 64

Header Parameters

Idempotency-Key?string

Optional; recommended for safe retries. When sent, the same key+body within 24h replays the original result and the same key with a different body is 409 CONFLICT; keys are unique per tenant. When an API token or service-account (bearer) caller omits it, the request is applied once with no replay protection (a retry may apply it again). A console session gets one from the edge.

Formatuuid

Response Body

The create was accepted (the compute route's own answer).

application/json
  1. response

Virtual machine Instance read model backing the Instances page and the instance detail page. Carries the resource scope fields (subscriptionId/projectId/region) and the timestamps (createdAt/updatedAt).

subscriptionId*string
projectId*string
region*RegionId

Platform region code (a DNS-label-shaped slug, e.g. ist-1). No longer a closed enum: the set of valid region codes is operator-managed in the platform-region registry, so this carries only a shape guard. The authoritative set of activated regions is read from GET /regions; invalid-shape codes are VALIDATION_FAILED and codes absent from the registry are rejected at the resolving endpoint.

Match^[a-z][a-z0-9-]{1,39}$
createdAt*string
updatedAt*string
origin?string

Where the resource was made -- portal for a create on the console, api for an object made straight against the OpenStack API (CLI, Terraform, the Kubernetes cloud provider) that discovery adopted. Informational; nothing behaves differently. Absent from a backend that predates it, which means portal.

Value in"portal""api""system""imported"
id*string
name*string
status*InstanceStatus

Lifecycle status of a compute instance (drives polling and available actions in the UI).

Value in"BUILD""ACTIVE""STOPPED""PAUSED""SUSPENDED""RESIZE""VERIFY_RESIZE""RESCUE""ERROR""DELETING"
statusReason*|

Human-readable reason for the current status when it is a failure (e.g. "instance build failed on the provider" on an ERROR instance); null while the instance is healthy or the failure carried no detail. Mirrors Volume.statusReason: an ERROR row explains itself on the read model instead of forcing the console to go read the tracking Operation.

statusReasonCode*|

Machine-readable companion to statusReason: a small, OPEN vocabulary of codes the console can branch on without parsing the human text, deliberately a plain string rather than a closed enum so a code the client does not recognize yet degrades to the generic failure message. Today the only value is cancelled: the resource is in its failure state because its create operation was CANCELLED; a provider object the create had already built may be left in place, and the resource's DELETE removes it. Reported only while the resource is in that failure state; null otherwise.

powerState*PowerState

Hypervisor power state of the instance, shown alongside the lifecycle status.

Value in"RUNNING""SHUTDOWN""PAUSED""CRASHED"
taskState*|

In-flight task indicator (e.g. powering_on, disk_attaching); null when idle.

flavor*

Compute size (flavor) embedded in the Instance read model and offered by the size picker.

image*

Reference to the machine image an instance was provisioned from.

fixedIp*string|null
floatingIp*string|null
keyPairs*array<string>

Names of the SSH key pairs whose PUBLIC keys were injected into this instance at first boot via cloud-init. Empty when the instance was launched with a password only. Platform-owned: the value is recorded by the create route and is NOT re-derived from the provider (Nova's single-valued key_name is no longer used), so the collector never overwrites it.

Default[]
passwordAuth?boolean

True when the create provisioned an admin account with a password (adminUsername + adminPassword). The access METHOD only: neither the password nor the account name is stored or returned. Together with keyPairs it tells a client how the instance is reached -- keys only, password only, or both. Platform-owned and set once at create; false for an instance created without a password and for one adopted by discovery.

Defaultfalse
monitoringEnabled*boolean

Whether VM metrics are collected for customer display and billed. While true the instance's Monitoring tab serves metrics and the monitoring.instance.hour SKU is metered per hour (free unless the operator prices it); while false neither happens. Toggled with the metadata PATCH or set at create.

deletionProtection*boolean

Deletion guard. While true, compute.instance.delete is refused with 409 DELETION_PROTECTED before any work starts AND the Nova server carries a platform ADMIN lock (locked_reason publiccloud:deletion-protection), so the project's own OpenStack API credentials can neither delete the server nor lift the lock; the console's start / stop / restart / resize and NIC / disk actions keep working. Turn it off with the metadata PATCH, then delete. False for every instance unless a caller turned it on; the collector never writes it.

tags*array<>
securityGroups?array<string>

Attached security-group ids (bound at boot and via the attach/detach actions).

Default[]
networkInterfaces?array<>

Secondary NICs attached post-boot via the interface-attach action (the primary NIC is reported via fixedIp).

Default[]
availabilityZone?|

Nova availability zone the instance runs in (OS-EXT-AZ:availability_zone, typically "nova"); null when the provider does not report it.

bootsFromVolume?boolean

True when the instance boots from a Cinder root volume (block_device_mapping_v2) sized by the create-time osDiskGb rather than the flavor's ephemeral disk. Lets the Disks tab surface the real root volume instead of the flavor's root disk.

Defaultfalse
rootDiskGb?|

Size in GB of the boot-from-volume root volume when bootsFromVolume is true; null for an ephemeral (flavor root disk) boot or a collector-discovered instance whose root volume size is unknown.

rootVolumeName?|

Display name of the standalone Cinder root volume the instance boots from (shown as 'Boot from volume ()' on the Disks tab); null for an instance whose root volume has not been adopted (e.g. a collector-discovered instance) or a legacy ephemeral instance.

rootVolumeId?|

Storage read-model id of the standalone root volume the instance boots from (for deep-linking to the Volumes page); null when not adopted.

curl -X POST "https://example.com/scopes/string/assistant/proposals/string/actions/confirm"
{  "subscriptionId": "string",  "projectId": "string",  "region": "string",  "createdAt": "string",  "updatedAt": "string",  "origin": "portal",  "id": "string",  "name": "string",  "status": "BUILD",  "statusReason": "string",  "statusReasonCode": "string",  "powerState": "RUNNING",  "taskState": "string",  "flavor": {    "id": "string",    "name": "string",    "family": "string",    "restricted": true,    "entitled": true,    "vcpus": 0,    "ramMb": 0,    "diskGb": 0,    "priceMonthly": {      "amount": 0,      "currency": "USD"    },    "priceHourly": {      "amount": 0,      "currency": "USD"    },    "gpu": {      "count": 1,      "model": "string"    }  },  "image": {    "id": "string",    "name": "string",    "os": "string",    "osVersion": "string"  },  "fixedIp": "string",  "floatingIp": "string",  "keyPairs": [],  "passwordAuth": false,  "monitoringEnabled": true,  "deletionProtection": true,  "tags": [    {      "key": "string",      "value": "string"    }  ],  "securityGroups": [],  "networkInterfaces": [],  "availabilityZone": "string",  "bootsFromVolume": false,  "rootDiskGb": 0,  "rootVolumeName": "string",  "rootVolumeId": "string"}