Get VirtualModel

View as Markdown
Get a VirtualModel by workspace and name.

Path parameters

workspacestringRequired
namestringRequired

Response

VirtualModel details
workspacestringformat: "^[\w\-\+.@:]+$"
Workspace identifier
idstringRead-only
created_atdatetimeRead-only
created_bystring or nullRead-only
updated_atdatetimeRead-only
updated_bystring or nullRead-only
entity_idstringRead-only
Alias for id for backwards compatibility.
parentstringRead-only
Parent entity ID for nested entities.
db_versionintegerRead-only
Database version of the entity for optimistic locking.
namestringOptionalDefaults to
Entity name within the workspace
projectstringOptional
The name of the project associated with this entity.
default_model_entitystringOptional
autoprovisionedbooleanOptionalDefaults to false

Marks this VirtualModel as controller-managed. The Models controller will delete it once no ModelProvider serves the matching entity. Setting this manually opts the VirtualModel into that cleanup behavior.

modelslist of objectsOptional
request_middlewarelist of objectsOptionalDefaults to []
response_middlewarelist of objectsOptionalDefaults to []
post_response_middlewarelist of objectsOptionalDefaults to []
override_proxystringOptional
guardrail_config_idslist of stringsOptional

System-managed. Guardrail configs applied by this VirtualModel’s middleware, as “workspace/name” references. Derived from the middleware pipelines on every write and ignored if supplied on a create or update body. Filter on it with filter[guardrail_config].

Errors

404
Not Found Error
422
Unprocessable Entity Error