vcenter namespace management events events: get
Returns Kubernetes events related to a specific cluster.
Request:
HTTP request
GET https://{server}/rest/vcenter/namespace-management/events/{cluster}
Path Parameters
Name | Type | Description |
---|---|---|
Required | ||
cluster | string | Identifier for the cluster on which Namespaces are enabled. |
Response:
HTTP Status Code: 200
Representation:
{
"value" : [
{
"reason" : "string",
"component" : "string",
"last_timestamp" : 1,
"kind" : "string",
"name" : "string",
"count" : 1,
"type" : "string",
"message" : "string"
},
{
"reason" : "string",
"component" : "string",
"last_timestamp" : 1,
"kind" : "string",
"name" : "string",
"count" : 1,
"type" : "string",
"message" : "string"
}
]
}
"value" : [
{
"reason" : "string",
"component" : "string",
"last_timestamp" : 1,
"kind" : "string",
"name" : "string",
"count" : 1,
"type" : "string",
"message" : "string"
},
{
"reason" : "string",
"component" : "string",
"last_timestamp" : 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_timestamp | long | The time at which the most recent occurrence of this event was recorded. |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
404 | not_found | if cluster 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. |