Updated on 2025-07-25 GMT+08:00

The server event list is returned.

Function

This API is used to obtain a server event list.

Calling Method

For details, see Calling APIs.

URI

GET /v1/{project_id}/physicalservers/events

Table 1 URI parameter

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

The project ID.

Constraints

N/A

Range

The project ID of the account

Default Value

N/A

Table 2 Query parameters

Parameter

Mandatory

Type

Description

offset

No

Integer

Definition

Pagination offset.

Constraints

N/A

Range

N/A

Default Value

N/A

limit

No

Integer

Definition

Page size.

Constraints

N/A

Range

N/A

Default Value

N/A

event_level

No

String

Definition

Event level.

Constraints

N/A

Range

  • critical

  • major

  • minor

  • info

Default Value

N/A

resource_id

No

String

Definition

Alarm resource ID.

Constraints

N/A

Range

N/A

Default Value

N/A

from

No

Integer

Definition

Query start timestamp, in seconds.

Constraints

N/A

Range

The value is in timestamp format.

Default Value

N/A

to

No

Integer

Definition

Query end timestamp, in seconds.

Constraints

N/A

Range

The value is in timestamp format.

Default Value

N/A

Request Parameters

Table 3 Request header parameter

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition

Requests for calling an API can be authenticated using a token. If token-based authentication is used, this parameter is mandatory and must be set to a user token.

Constraints

N/A

Range

N/A

Default Value

N/A

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

events

Array of EventInfo objects

Definition

Event list object.

Constraints

N/A

count

Integer

Definition

The total number of events in an event list.

Constraints

N/A

Range

N/A

Default Value

N/A

Table 5 EventInfo

Parameter

Type

Description

event_id

String

Definition

Event ID.

Constraints

N/A

Range

N/A

Default Value

N/A

message_id

String

Definition

Description ID.

Constraints

N/A

Range

N/A

Default Value

N/A

event_message

String

Definition

Event description.

Constraints

N/A

Range

N/A

Default Value

N/A

event_level

String

Definition

Event level.

Constraints

N/A

Range

  • critical

  • major

  • minor

  • info

Default Value

N/A

status

String

Definition

Event status.

Constraints

N/A

Range

N/A

Default Value

N/A

resource_id

String

Definition

Resource ID.

Constraints

N/A

Range

Maximum length: 128 bytes

Default Value

N/A

time

Integer

Definition

Event time, recorded in milliseconds using a Unix timestamp.

Constraints

N/A

Range

The value is in Unix timestamp format.

Default Value

N/A

origin_event

String

Definition

Original event.

Constraints

N/A

Range

Maximum length: 4,096 bytes

Default Value

N/A

Status code: 400

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Definition

Error code.

Constraints

N/A

Range

N/A

Default Value

N/A

error_msg

String

Definition

Error message.

Constraints

N/A

Range

N/A

Default Value

N/A

Status code: 401

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Definition

Error code.

Constraints

N/A

Range

N/A

Default Value

N/A

error_msg

String

Definition

Error message.

Constraints

N/A

Range

N/A

Default Value

N/A

Status code: 429

Table 8 Response body parameter

Parameter

Type

Description

-

String

-

Status code: 500

Table 9 Response body parameters

Parameter

Type

Description

error_code

String

Definition

Error code.

Constraints

N/A

Range

N/A

Default Value

N/A

error_msg

String

Definition

Error message.

Constraints

N/A

Range

N/A

Default Value

N/A

Example Requests

Request for querying the server event list

GET https://{endpoint}/v1/{project_id}/physicalservers/events

Example Responses

Status code: 200

Server event list returned.

{
  "events" : [ ],
  "count" : 0
}

Status Codes

Status Code

Description

200

The server event list is returned.

400

Invalid request parameter.

401

The request is not authenticated.

429

The request is overloaded.

500

Internal server error.

Error Codes

For details, see Error Codes.