Skip to content
Open console

Enter a topic to search documentation.

    Infrastructure API reference

    Resource operations, examples, and schema definitions.

    Prerequisites and scope

    Use the workspace where Infrastructure is enabled. Authenticate with a credential authorized for the requested resource and operation. Inspect your deployed API discovery for the exact schema in your hub.

    Interfaces

    Template and Instance use infrastructure.faros.sh/v1alpha1. Set Instance.spec.template to the template name and put template inputs in spec.values. The template is immutable. Inspect conditions after every update; validation occurs during reconciliation.

    MCP tools

    Connect through MCP setup . The aggregate endpoint prefixes these names with infrastructure__. Tool availability depends on provider enablement and the endpoint credential’s workspace permissions; use your client’s tool discovery for the deployed input schemas.

    ToolUse it to
    list_templatesDiscover the workspace catalog, optionally filtered by category or cloud.
    describe_templateInspect input schemas, prerequisites, outputs, exposure, and development support before provisioning.
    provisionCreate an Instance from a template and its values; reconciliation follows asynchronously.
    list_instancesList instances in the caller’s workspace.
    get_instanceInspect phase, conditions, and child-resource status.
    update_instanceMerge-patch supported values in place; immutable inputs are rejected.
    delete_instanceRequest instance deletion and associated cleanup.
    dev_syncPush files into a development instance, respecting template component paths.
    dev_logsRead a development component’s server logs.
    dev_restartRestart a development component’s server process.

    The development tools require a development-capable template, an instance created with values.farosMode="development", and a configured provider data plane. Internal instances do not get a public URL; inspect the template’s exposure before waiting for one. Definitions: catalog and lifecycle tools , development tools .

    Resource schemas

    Resource fields and validation rules are generated from the checked-in schemas, with a downloadable JSON bundle.

    Inspect templates and instances

    Use a workspace-authenticated context. Read the catalog and lifecycle conditions before provisioning or updating an instance.

    Terminal
    kubectl faros use
    kubectl api-resources --api-group=infrastructure.faros.sh
    kubectl get templates.infrastructure.faros.sh,instances.infrastructure.faros.sh
    kubectl explain instances.infrastructure.faros.sh.spec --api-version=infrastructure.faros.sh/v1alpha1
    kubectl describe instance.infrastructure.faros.sh/<instance-name>

    The MCP provision tool creates an Instance asynchronously. First call list_templates, then describe_template; use the returned template name and its declared input schema in provision. Read the resulting Instance with get_instance or the command above. A failed condition contains the actionable reconciliation message; do not repeatedly update immutable template inputs. Delete only after checking the template’s cleanup behavior and the instance’s final status.

    Authoritative definitions

    API definitions contain fields and contracts. For Kubernetes-style resources, use kubectl api-resources and kubectl explain RESOURCE against the intended workspace to inspect the installed schema.

    Instance lifecycle . Return to Infrastructure for prerequisites and the provider’s quickstart.