Skip to content

Plan a simulated component

GET
/outposts/{name}/simulation/components:plan
curl --request GET \
--url 'https://example.com/api/v1/outposts/example/simulation/components:plan?product=example'

Previews what adding a simulated component of a product would create (see add-outpost-simulation-component): the lowest free address in the simulated block (127.60.0.0/16) and the endpoints the collector would reach it through, a driver attach with its inputs (a secret input names the platform secret, never its value) or a reachability probe with its target, planned exactly as the add plans them. Creates nothing and reserves nothing: the address is not held, so an add or another plan in between may take it, and an add made after this plan then lands on the next free address instead. Gated by simulation:read, and needs outpost:read on the outpost. An outpost that does not exist is a 404, one with no simulator connected a 409, a product no profile simulates a 422, and a full block or a profile with no surface the collector can reach a 409.

name
required

The outpost whose simulator would serve the component

string

The outpost whose simulator would serve the component

product
required

A product a simulator profile simulates

string
>= 1 characters

A product a simulator profile simulates

OK

Media type application/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
address
required

The loopback address the simulated component would answer on.

string
endpoints
required

The endpoints an add would create for the collector to reach it.

Array<object> | null
object
driver

The driver the endpoint would attach; empty for a reachability probe.

string
inputs

The driver’s inputs the attach would send; a secret input holds the secret’s NAME, never its value.

object
key
additional properties
string
target

The host:port a reachability probe would reach; empty for a driver attach.

string
transport

The transport a reachability probe would speak; empty for a driver attach.

string
outpost
required

The outpost whose simulator would serve the component.

string
product
required

The simulated product planned.

string

Example

{
"$schema": "/api/v1/schemas/PlanSimComponentOutputBody.json"
}

Error

Media type application/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank

Example

{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}