Listing the Scheduled Events
Function
This API is used to list the scheduled events of an instance.
URI
GET /v3/{project_id}/instance-scheduled-events
Table 1 describes the parameters in the URI.
Parameter |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID. For details about how to obtain the ID, see Obtaining a Project ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
limit |
No |
Integer |
Specifies the limit on the number of events that can be returned. Range: 1–100 |
marker |
No |
String |
Specifies the unique ID of the last record on the previous page. |
id |
No |
String |
Specifies the event ID. |
instance_id |
No |
String |
Specifies the instance ID. |
type |
No |
Array of strings |
Specifies the event type. |
state |
No |
Array of string |
Specifies the event status. |
publish_since |
No |
String |
Specifies the start time of publishing an event. The value is filtered by time range. The value is in the format of "yyyy-MM-ddTHH:mm:ssZ" in UTC+0 and complies with ISO8601. |
publish_until |
No |
String |
Specifies the end time of publishing an event. The value is filtered by time range. The value is in the format of "yyyy-MM-ddTHH:mm:ssZ" in UTC+0 and complies with ISO8601. |
Request
None.
Response
Table 3 describes the response parameter.
Parameter |
Type |
Description |
---|---|---|
events |
Array of objects |
Specifies the event list. For details, see Table 4. |
page_info |
Object |
Specifies the pagination marker. For details, see Table 5. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the event ID. |
type |
String |
Specifies the event type. |
state |
String |
Specifies the event status.
|
publish_time |
String |
Specifies when the event is published. |
start_time |
String |
Specifies the event start time. |
finish_time |
String |
Specifies the event completion time. |
not_before |
String |
Specifies when the event is scheduled to start. |
not_after |
String |
Specifies when the event is scheduled to end. |
not_before_deadline |
String |
Specifies the deadline of starting a scheduled event. |
description |
String |
Specifies the event description. |
instance_id |
String |
Specifies the instance ID. |
Example Request
List the scheduled events.
GET https://{endpoint}/v3/{project_id}/instance-scheduled-events?state=inquiring,scheduled,executing&limit=1
Example Response
{ "events": [ { "id": "0ead944a-72e8-494f-89ba-5846fb7ac5c0", "type": "instance-redeploy", "state": "scheduled", "publish_time": "2025-03-13T12:55:36Z", "start_time": null, "finish_time": null, "not_before": "2025-03-21T09:22:41Z", "not_after": "2025-03-21T11:22:41Z", "not_before_deadline": "2025-03-21T09:22:41Z", "description": "{\"en-us\":\"As being affected by underlying hardware or system OM, ECSs will be redeployed on new hosts\"}", "instance_id": "c51b9e4f-0469-4c6f-ad03-22b23247b7a8" } ], "page_info": { "next_marker": "0ead944a-72e8-494f-89ba-5846fb7ac5c0" } }
Returned Values
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot