Container Service
Container State

Apply event on the container.

1min
PUT

This API will apply an event to an instance. If the event is transitionable, then the instance will transition to the particular state. Otherwise it will remain in the existing state.

PARAMETERDESCRIPTIONTYPEVALIDATION
name*Represents name of the event for state transition.stringminLength: 3 maxLength: 64
timestampRepresents the timestamp of the event occured.integer
propagatePropagate flag indicates whether these events need to propagate on child containers or not.booleanDefault: false
dataRepresents event data values, if any, for this event.
sourceRepresents the source which triggered the event. It can be an app, a user or some location from where the event was triggered.
ㅤ↳appId*Application ID which is responsible for calling this event.stringminLength: 1 maxLength: 64
ㅤ↳userIdUser ID which is responsible for calling this event.stringminLength: 1 maxLength: 64
ㅤ↳locIdLocationId of the event.string
callbackRepresents callback URL, which can be called to get any info about state change of a container and notify status(success/failed) of API.stringA valid URL.
*This is required.
HTTP Status Code Summary
CodeDescription
200 - OKEverything worked as expected.
400 - Bad RequestThe request was unacceptable, often due to missing a required parameter.
401 - UnauthorizedNo valid API key provided.
404 - Not FoundThe requested resource doesn't exist.
503 - Server ErrorSomething went wrong.. (These are rare.)
Path Parameters
containerId
*
Header Parameters
X-COREOS-REQUEST-ID
*
X-COREOS-TID
*
X-COREOS-ACCESS
*
X-COREOS-CALLBACK-SECRET
X-COREOS-USERINFO
Body Parameters
body
*
Description
Event for container state transition.
eventCode
*
reasonCode
timestamp
*
propagate
data
*
source
*
callback
Responses
200
OK
data
request
400
Bad Request
error
request
401
Unauthorized
error
request
404
Not Found
error
request
503
Server Error
error
request
Curl
JS
Ruby
Python
Responses
200
400
401
404
503