v1

latestOpenAPI 3.1.0raw.githubusercontent.com2024-09-27192307552.2 KB
services

Create Service

Creates a new service.

Args: service: The model containing the attributes of the new service.

Returns: The created service object.

post/api/v1/services

Request body

userstring uuid required
workspacestring uuid required
namestring required
service_sourcestring nullable

The fully qualified class name of the service implementation.

admin_state'inactive' | 'active' | 'pending_startup' | 'pending_shutdown' | 'error' | 'scaled_to_zero'

Possible states for the service and service endpoint.

configobject required

A dictionary containing configuration parameters for the service.

labelsobject nullable
statusobject nullable
endpointobject nullable
prediction_urlstring nullable
health_check_urlstring nullable
model_version_idstring uuid nullable

Response

Successful Response

resourcesServiceResponseResources

Class for all resource models associated with the service entity.

idstring uuid required
permission_deniedboolean
namestring required