Get desktop application:
View/edit binary Protocol Buffers messages
Pod service defines the pod related methods.
Methods which mutate the state of the pod.
Start the pod. Will be a no-op for pod that is currently running. The pod is started asynchronously after the API call returns.
Request message for PodService.StartPod method
The pod name.
Response message for PodService.StartPod method Return errors: NOT_FOUND: if the pod is not found.
(message has no fields)
Stop the pod. Will be no-op for a pod that is currently stopped. The pod is stopped asynchronously after the API call returns.
Request message for PodService.StopPod method
The pod name.
Response message for PodService.StopPod method Return errors: NOT_FOUND: if the pod is not found.
(message has no fields)
Restart a the pod. Will start a pod that is currently stopped. Will first stop the pod that is currently running and then start it again. This is an asynchronous call.
Request message for PodService.RestartPod method
The pod name.
When set to true, restart would fail with error, if it is going to violate job SLA
Response message for PodService.RestartPod method Return errors: NOT_FOUND: if the pod is not found. ABORTED: if check_sla is set to true, and the pod restart would violate job SLA
(message has no fields)
Get the info of a pod in a job. Return the current run as well as the terminal state of previous runs.
Request message for PodService.GetPod method
The pod name.
If set to true, only return the pod status and not the configuration.
If set to true, only return current run of the pod.
Response message for PodService.GetPod method Return errors: NOT_FOUND: if the pod is not found.
Returns the status and configuration (if requested) for the current run of the pod.
Returns the status and configuration (if requested) for previous runs of the pod.
Get the state transitions for a pod (pod events) for a given run of the pod.
Request message for PodService.GetPodEvents method
The pod name.
Get the events of a particular pod identified using the pod identifier. If not provided, events for the latest pod are returned.
Response message for PodService.GetPodEvents method Return errors: NOT_FOUND: if the pod is not found.
Return the list of file paths inside the sandbox for a given run of a pod. The client can use the Mesos Agent HTTP endpoints to read and download the files. http://mesos.apache.org/documentation/latest/endpoints/
Request message for PodService.BrowsePodSandbox method
The pod name.
Get the sandbox path of a particular pod identified using the pod identifier. If not provided, the sandbox path for the latest pod is returned.
Response message for PodService.BrowsePodSandbox method Return errors: NOT_FOUND: if the pod is not found. ABORT: if the pod has not been run.
The hostname of the sandbox.
The port of the sandbox.
The list of sandbox file paths. TODO: distinguish files and directories in the sandbox
Mesos Master hostname and port.
Allows user to load pod runtime state from DB and re-execute the action associated with current state.
Request message for PodService.RefreshPod method
The pod name.
Response message for PodService.RefreshPod method Return errors: NOT_FOUND: if the pod is not found.
(message has no fields)
Get the cache of a pod stored in Peloton.
Request message for PodService.GetPodCache method
The pod name.
Response message for PodService.GetPodCache method Return errors: NOT_FOUND: if the pod is not found.
The runtime status of the pod.
The labels of the pod.
Delete the events of a given run of a pod. This is used to prevent the events for a given pod from growing without bounds.
Request message for PodService.DeletePodEvents method
The pod name.
Delete the events of a particular pod identified using the pod identifier.
Response message for PodService.DeletePodEvents method Return errors: NOT_FOUND: if the pod is not found.
(message has no fields)