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
Back to Top

Response

Supported Media Types

200 Response

200 Response
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : request
Type: object
Show Source
Nested Schema : statuses
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : details
Type: object
Show Source

Default Response

Error Payload
Body ()
Root Schema : schema
Type: array
Show Source
Back to Top

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
}
Back to Top