Get a list of all status updates
get
/api/v2/status/
Returns a list of all the status updates generated by Container Cloud Service events. Only the last 250 status are retained by the system.
Request
There are no request parameters for this operation.
Security
-
Authorization: apiKey
Type:
apiKey
Response
Supported Media Types
- application/json
200 Response
200 Response
Nested Schema : items
Type:
Show Source
object
-
actor_id:
string
-
actor_label:
string
-
actor_type:
string
-
clear_event_id:
integer
-
count:
integer
-
details:
object details
-
event_key:
string
-
fingerprint:
string
-
first_seen:
string
-
generation:
integer
-
host_id:
string
-
last_event_id:
integer
-
last_seen:
string
-
message:
string
-
severity:
integer
-
severity_description:
string
-
sub_actor_id:
string
-
sub_actor_label:
string
-
sub_actor_type:
string
-
summary:
string
-
username:
string
Nested Schema : details
Type:
Show Source
object
-
action(optional):
string
-
caller:
string
-
container_id(optional):
string
-
container_name(optional):
string
-
deployment_id(optional):
string
-
deployment_name(optional):
string
-
error(optional):
string
-
errors(optional):
string
-
host_group(optional):
string
-
host_id(optional):
string
-
hostname(optional):
string
-
image(optional):
string
-
phase(optional):
string
-
phase_id(optional):
string
-
provider_name(optional):
string
-
repo(optional):
string
-
service_id(optional):
string
-
service_slot(optional):
string
-
stack_id(optional):
string
-
state(optional):
string
-
tag(optional):
string
-
task_id(optional):
string
-
ttl(optional):
string
-
ttl_enabled(optional):
string
-
ttl_summary(optional):
string
Default Response
Error Payload
Examples
The following example shows how to retrieve a list of all the status updates generated by Container Cloud Service events. You perform this task by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the manager node for the Oracle Cloud Container instance. See Send Requests for the appropriate URL structure to use for Oracle Public Cloud.
cURL Command
curl -sk
-X "GET"
-H "Authorization: Bearer b39f09c71c297f1d"
"https://rest_server_url/api/v2/status/?q=%2Bgeneration:%3E26422"
This example uses the q parameter, which allows you to fine-tune the results using a search query.
Example of Response Body
{
"request": {
"query": "+generation:>26422",
"start": 0,
"limit": 100
},
"statuses": [
{
"fingerprint": "host||||plugin_docker_health_check",
"actor_id": "",
"actor_type": "host",
"actor_label": "demowkr0",
"sub_actor_id": "",
"sub_actor_type": "",
"sub_actor_label": "",
"event_key": "plugin_docker_health_check",
"summary": "successfully communicating with docker on host demowkr0",
"message": "successfully communicating with docker on host demowkr0",
"severity": 1,
"severity_description": "Debug",
"first_seen": "2016-10-25T04:05:18.685430826-04:00",
"last_seen": "2016-10-26T23:03:16.122786081-04:00",
"last_event_id": 26492,
"clear_event_id": 0,
"generation": 26445,
"count": 15410,
"details": {
"caller": "reportLoop from abcdefghijklmnopqrstuvwzyx012345/occs/common/wharf.(*Server)/wharf_server.go:119",
"host_id": "",
"hostname": "demowkr0",
"ttl": "20",
"ttl_enabled": "true",
"ttl_summary": "controller timeout error in communicating with docker on host demowkr0"
},
"host_id": "",
"username": ""
},
{
"fingerprint": "host|host_id|||plugin_system_health_check",
"actor_id": "host_id",
"actor_type": "host",
"actor_label": "demowkr0",
"sub_actor_id": "",
"sub_actor_type": "",
"sub_actor_label": "",
"event_key": "plugin_system_health_check",
"summary": "successfully retrieving system info on host demowkr0",
"message": "successfully retrieving system info on host demowkr0",
"severity": 1,
"severity_description": "Debug",
"first_seen": "2016-10-25T04:05:18.685167408-04:00",
"last_seen": "2016-10-26T23:03:09.276832442-04:00",
"last_event_id": 26489,
"clear_event_id": 0,
"generation": 26442,
"count": 10236,
"details": {
"caller": "getCurrentHostInfo from abcdefghijklmnopqrstuvwzyx012345/occs/cluster-agent/hostinforeporter.(*hostInfoReporter)/hostinforeporter.go:158",
"host_id": "host_id",
"hostname": "demowkr0",
"ttl": "60",
"ttl_enabled": "true",
"ttl_summary": "controller timeout error in retrieving system info on host demowkr0"
},
"host_id": "",
"username": ""
},
{
"fingerprint": "deployment|Redis-20161026-165916|||deployment_phase",
"actor_id": "Redis-20161026-165916",
"actor_type": "deployment",
"actor_label": "Redis",
"sub_actor_id": "",
"sub_actor_type": "",
"sub_actor_label": "",
"event_key": "deployment_phase",
"summary": "Success: started deployment phase 0",
"message": "Success: started deployment phase 0",
"severity": 0,
"severity_description": "Clear",
"first_seen": "2016-10-26T17:59:03.909299663-04:00",
"last_seen": "2016-10-26T23:03:14.379371733-04:00",
"last_event_id": 26491,
"clear_event_id": 26491,
"generation": 26444,
"count": 1,
"details": {
"action": "started_deployment_phase",
"caller": "SendDeploymentPhaseStarted from abcdefghijklmnopqrstuvwzyx012345/occs/common/stack/status/deployments.go:239",
"deployment_id": "Redis-20161026-165916",
"deployment_name": "Redis",
"error": "",
"phase": "started",
"phase_id": "0"
},
"host_id": "",
"username": ""
}
],
"total_results": 3,
"elapsed_seconds": 0.000994574
}