Get All Event Metadata

GET/zstack/v1/zwatch/events/meta-data

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/events/meta-data?name=VMHAProcess

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
name (Optional)StringqueryThe event name. 3.9.0
namespace (Optional)StringqueryThe event namespace. 3.9.0
systemTags (Optional)ListquerySystem tags. 0.6
userTags (Optional)ListqueryUser tags. 0.6

API Response

Response Example

{
  "events": [
    {
      "namespace": "ZStack/VM",
      "name": "org.zstack.zwatch.datatype.EventFamily@631b5229",
      "description": "VMHAProcess",
      "labelNames": [
        "HAProcess",
        "HADetails"
      ]
    }
  ]
}
NameTypeDescriptionStarting Version
errorErrorCodeThe error code. If not null, the operation failed. This field is null when the operation succeeds. See error for details.2.3
eventsListSee events for details.2.3

error

NameTypeDescriptionStarting Version
codeStringThe error code number. A globally unique identifier for the error, e.g., SYS.1000, HOST.1001.0.6
descriptionStringA brief description of the error.0.6
detailsStringThe detailed error information.0.6
elaborationStringA reserved field. Default is null.0.6
opaqueLinkedHashMapA reserved field. Default is null.0.6
causeErrorCodeThe root error. The source error that caused the current error. This field is null if there is no root cause.0.6

events

NameTypeDescriptionStarting Version
namespaceStringThe namespace.2.3
nameStringThe resource name.2.3
descriptionStringThe description.3.9.0
labelNamesListThe label names.2.3

SDK Examples

Java SDK

GetAllEventMetadataAction action = new GetAllEventMetadataAction();
action.name = "VMHAProcess";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetAllEventMetadataAction.Result res = action.call();

Python SDK

GetAllEventMetadataAction action = GetAllEventMetadataAction()
action.name = "VMHAProcess"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetAllEventMetadataAction.Result res = action.call()