REST API - get

vcenter namespaces events events: get

Returns Kubernetes events related to a specific namespace.

Request:

HTTP request

GET https://{server}/rest/vcenter/namespaces/events/{namespace}

Path Parameters

Name Type Description
Required
namespace string Identifier for the Namespace.

Response:

HTTP Status Code: 200

Representation:

{
    "value"[
        {
            "reason""string",
            "component""string",
            "last_time_stamp"1,
            "kind""string",
            "name""string",
            "count"1,
            "type""string",
            "message""string"
        },
        {
            "reason""string",
            "component""string",
            "last_time_stamp"1,
            "kind""string",
            "name""string",
            "count"1,
            "type""string",
            "message""string"
        }
    ]
}

Response Type:

Name Type Description
bold = required
value event[] List of latest Kubernetes events by 'lastTimestamp', with a limit of 1000 events.
value[].name string The name of the involved Kubernetes object.

value[].kind string The kind of the involved Kubernetes object.

value[].type string The type of event.

value[].message string The message in the event.

value[].reason string The reason for this event.

value[].component string The Kubernetes component that generated this event.

value[].count long Number of times this event occurred.

value[].last_time_stamp long The time at which the most recent occurrence of this event was recorded.

Errors:

HTTP Status Code Type Description
404 not_found if namespace could not be located.
400 unsupported if the specified cluster does not have Namespaces enabled.
500 error if the system reports an error while responding to the request.
401 unauthenticated if the user can not be authenticated.
403 unauthorized if the user does not have System.Read privilege.