Skip to main content
Version: 1.x

NATS Subjects

This page provides an overview of NATS subjects used by wasmCloud.

wRPC

NATS Subjects used for wRPC communication adopt the following subject pattern:

plaintext
{lattice}.{component_id}.wrpc.{protocol_version}.{namespace}:{package}/{interface}@{version}.{function}

See RPC page for more details.

Control Interface

The complete Control Interface documentation can be found here, and follows the following pattern:

plaintext
wasmbus.ctl.{version}.{lattice}.{noun}.{verb}.{optional_name}
SubjectGroupDetails
wasmbus.ctl.v1.{lattice}.provider.auctionAuctionsProvider
wasmbus.ctl.v1.{lattice}.component.auctionAuctionsComponent
wasmbus.ctl.v1.{lattice}.component.scale.{host-id}CommandsScale component
wasmbus.ctl.v1.{lattice}.component.update.{host-id}CommandsUpdate component
wasmbus.ctl.v1.{lattice}.provider.start.{host-id}CommandsStart provider
wasmbus.ctl.v1.{lattice}.provider.stop.{host-id}CommandsStop provider
wasmbus.ctl.v1.{lattice}.host.stop.{host-id}CommandsStop host
wasmbus.ctl.v1.{lattice}.config.put.{config-name}ConfigPut config
wasmbus.ctl.v1.{lattice}.config.del.{config-name}ConfigDelete config
wasmbus.ctl.v1.{lattice}.config.get.{config-name}ConfigGet config
wasmbus.ctl.v1.{lattice}.label.put.{host-id}LabelsPut label
wasmbus.ctl.v1.{lattice}.label.del.{host-id}LabelsDelete label
wasmbus.ctl.v1.{lattice}.link.getQueriesLinks
wasmbus.ctl.v1.{lattice}.claims.getQueriesClaims
wasmbus.ctl.v1.{lattice}.host.get.{host-id}QueriesHost inventory
wasmbus.ctl.v1.{lattice}.host.pingQueriesPing hosts
wasmbus.ctl.v1.{lattice}.link.putLink operationsPut link
wasmbus.ctl.v1.{lattice}.link.delLink operationsDelete link

wadm API

The wadm API uses the "model" term for brevity; each model is an individual application manifest. The complete wadm API documentation can be found here takes requests in the following format:

plaintext
wadm.api.{lattice}.{category}.{operation}.{object}
SubjectGroupDetails
wadm.api.{lattice}.model.putModelsStore model
wadm.api.{lattice}.model.listModelsList models
wadm.api.{lattice}.model.get.{name}ModelsGet model
wadm.api.{lattice}.model.versions.{name}ModelsVersion history
wadm.api.{lattice}.model.del.{name}ModelsDelete model
wadm.api.{lattice}.model.deploy.{name}DeploymentsDeploy
wadm.api.{lattice}.model.undeploy.{name}DeploymentsUndeploy
wadm.api.{lattice}.model.status.{name}DeploymentsDeployment status