Plan a simulated component
const url = 'https://example.com/api/v1/outposts/example/simulation/components:plan?product=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The outpost whose simulator would serve the component
The outpost whose simulator would serve the component
Query Parameters
Section titled “ Query Parameters ”A product a simulator profile simulates
A product a simulator profile simulates
Responses
Section titled “ Responses ”OK
object
A URL to the JSON Schema for this object.
The loopback address the simulated component would answer on.
The endpoints an add would create for the collector to reach it.
object
The driver the endpoint would attach; empty for a reachability probe.
The driver’s inputs the attach would send; a secret input holds the secret’s NAME, never its value.
object
The host:port a reachability probe would reach; empty for a driver attach.
The transport a reachability probe would speak; empty for a driver attach.
The outpost whose simulator would serve the component.
The simulated product planned.
Example
{ "$schema": "/api/v1/schemas/PlanSimComponentOutputBody.json"}default
Section titled “ default ”Error
object
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
object
Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
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"}