Updated on 2026-11-27 GMT+08:00

Querying Events

Function

This API is used to query events.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.

URI

GET /v1/{project_id}/cloud-phone/scheduled-events

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

limit

No

Integer

Specifies the number of events returned per page. The value ranges from 1 to 100. The default value is 10.

marker

No

String

Specifies the pagination marker. The query starts from the next data record specified by marker.

event_id

No

String

Specifies the event ID.

server_id

No

String

Specifies the unique identifier of a cloud phone server.

publish_since

No

String

Specifies the start time of publishing an event. The value is filtered by time range.

publish_until

No

String

Specifies the end time of publishing an event. The value is filtered by time range.

state

No

Array of strings

Specifies the event status. Multi-value query and filtering are supported. Value range:

inquiring: to be authorized

scheduled: to be executed

executing: being executed

completed: execution succeeded

failed: execution failed

canceled: canceled

type

No

Array of strings

Specifies the event type. Multi-value query and filtering are supported. Value range:

localdisk-recovery: local disk replacement

system-maintenance: system maintenance

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Specifies the user token.

It can be obtained by calling an Identity and Access Management (IAM) API. The value of X-Subject-Token in the response header is the user token.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

request_id

String

Specifies the unique request ID.

count

Integer

Specifies the total number of events.

scheduled_events

Array of scheduled_events objects

Specifies the event information.

page_info

page_info object

Specifies the page marker.

Table 5 scheduled_events

Parameter

Type

Description

event_id

String

Specifies the unique identifier of an event. A maximum of 36 characters is allowed.

server_id

String

Specifies the unique identifier of a cloud phone server. A maximum of 32 characters is allowed.

server_name

String

Specifies the name of a cloud phone server. It can contain a maximum of 65 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed.

server_model_name

String

Specifies the flavor name of a cloud phone server. A maximum of 64 characters is allowed.

server_state

Integer

Specifies the server status.

  • 0, 1, 3, and 4: creating

  • 2: abnormal

  • 5: normal

  • 8: frozen

  • 10: stopped

  • 11: being stopped

  • 12: stop failed

  • 13: starting

type

String

Specifies the event type. The value can be localdisk-recovery (local disk replacement) or system-maintenance (system maintenance).

authorization_type

String

Specifies the authorization type. The value can be maintenance (authorized maintenance) or redeploy (authorized redeployment).

state

String

Specifies the event status. The value can be inquiring (to be authorized), scheduled (to be executed), executing (being executed), completed (execution succeeded), failed (execution failed), or canceled.

publish_time

String

Specifies the time when an event was published.

start_time

String

Specifies the event start time.

finish_time

String

Specifies the event end time.

not_before

String

Specifies the scheduled start time of event execution.

not_after

String

Specifies the scheduled end time of event execution.

not_before_deadline

String

Specifies the deadline for the scheduled start time of event execution.

description

String

Specifies the event description.

Table 6 page_info

Parameter

Type

Description

next_marker

String

Specifies the marker for next page query.

Example Requests

Querying events

GET https://{CPH Endpoint}/v1/{project_id}/cloud-phone/scheduled-events

Example Responses

Status code: 200

{
  "page_info" : {
    "next_marker" : "MTEzMzA2MTgtOWI3Mi00OTkxLWIxYWEtNDJjNmQyZDZiZWFjIzE3ODA4MDE1NjMwMDA"
  },
  "request_id" : "039061fe179d479d4b13ca668ed6b75b",
  "scheduled_events" : [ {
    "event_id" : "a7cc9295-b102-4673-a8fe-6374ac9aca4c",
    "type" : "localdisk-recovery",
    "authorization_type" : null,
    "state" : "inquiring",
    "publish_time" : "2026-06-07T08:01:18Z",
    "start_time" : null,
    "finish_time" : null,
    "not_before" : null,
    "not_after" : null,
    "not_before_deadline" : "2026-07-07T08:01:18Z",
    "description" : "{\"en-us\":\"Local disks are faulty\"}",
    "server_id" : "3b814471f9c448ba8b0e44fff6a33222",
    "server_name" : "cph-rx1",
    "server_model_name" : "physical.rx1.xlarge",
    "server_state" : 5
  }, {
    "event_id" : "11330618-9b72-4991-b1aa-42c6d2d6beac",
    "type" : "system-maintenance",
    "authorization_type" : "redeploy",
    "state" : "failed",
    "publish_time" : "2026-06-07T03:06:03Z",
    "start_time" : "2026-06-07T03:09:03Z",
    "finish_time" : "2026-06-07T03:41:00Z",
    "not_before" : "2026-06-07T03:08:12Z",
    "not_after" : null,
    "not_before_deadline" : "2026-07-07T03:06:03Z",
    "description" : "{\"en-us\":\"As being affected by underlying hardware or system OM, ECSs will be repaired\"}",
    "server_id" : "a6dac71bff444df480050ac9f4d8ac3d",
    "server_name" : "cph-ql",
    "server_model_name" : "physical.rx2.32xlarge.4.dedicated",
    "server_state" : 2
  } ],
  "count" : 2
}

Status Codes

Status Code

Description

200

ok

Error Codes

See Error Codes.