Create a service

View as Markdown
Creates a service from an Agent Machines service manifest.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

namespacestringRequired>=1 character
Project, organization, or tenant namespace that owns the service.

Request

This endpoint expects an object.
apiVersionenumRequired
Agent Machines service API version.
kindenumRequired
Resource kind.
metadataobjectRequired
Metadata common to persisted Agent Machines resources.
specobjectRequired
Desired service state.
statusobjectOptional
Observed state of a service.

Response

The created service.
apiVersionenum
Agent Machines service API version.
kindenum
Resource kind.
metadataobject
Metadata common to persisted Agent Machines resources.
specobject
Desired service state.
statusobject
Observed state of a service.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error