edit-icon download-icon

Query event lists

Last Updated: May 18, 2018

Call /stacks/{StackName}/{StackId}/events by GET method to query the events of a stack and the resources in the stack.

Request parameters

Name Location Type Required Description
StackName URI String Yes Name of the stack, which must comply with the regular expression ^[a-zA-Z][a-zA-Z0-9_.-]*$. It can contain up to 255 characters.
StackId URI String Yes Stack ID.
ResourceStatus Query String Yes Resource status. Value options: COMPLETE, FAILED, and IN_PROGRESS.
ResourceName Query String Yes Resource name.
ResourceType Query String Yes Resource type.
PageNumber Query Integer Yes Page number of the event list. The start value is 1, and the default value is 1.
PageSize Query Integer Yes Number of rows per page in the case of querying by page. The maximum value is 100, and the default value is 10.

Returned parameters

Name Parameter type Description
TotalCount Integer Total number of events.
PageNumber Integer Page number of the event list.
PageSize Integer Number of rows per page.
Events List Event list. For more information about specific attributes, see the table of Event.

Event

Name Parameter type Description
ResourceStatus String Resource status.
ResourceName String Resource name.
StatusReason String Reason of the status.
Id String Event ID.
ResourceType String Resource type.
ResourcePhysicalId String Physical ID of the resource.
Time String Event creation time, which follows the ISO8601 standard and uses UTC time. The format is YYYY-MM-DDThh:mm:ssZ.

Error codes

Error code Description HTTP status code Meaning
InternalError Server error. 500 Server-side unknown exception.
StackNotFound The Stack (%(stack_name)s) could not be found. 404 The stack cannot be found.

Example

Request example

  1. GET http://ros.aliyuncs.com/ stacks/myStack/378826b1-a71b-4c14-aa91-9b36351fbea9/events HTTP/1.1
  2. x-acs-signature-method: HMAC-SHA1
  3. Authorization: acs ACSTQDkNtSMrZtwL:fWkOnYo6QzK3KvMANKE0VFeBos4=
  4. Date: Fri, 11 Sep 2015 05:31:53 GMT
  5. x-acs-signature-version: 1.0
  6. x-sdk-client: Java/2.0.0
  7. Accept: application/octet-stream
  8. x-acs-version: 2015-09-01
  9. Cache-Control: no-cache
  10. Pragma: no-cache
  11. User-Agent: Java/1.6.0_27
  12. Host: ros.aliyuncs.com
  13. Connection: keep-alive

Response example

  1. HTTP/1.1 200 OK
  2. Date: Fri, 11 Sep 2015 05:31:53 GMT
  3. Content-Type: application/json; charset=UTF-8
  4. Content-Length: 10197
  5. Connection: close
  6. Vary: Accept-Encoding
  7. Access-Control-Allow-Origin: *
  8. Access-Control-Allow-Methods: POST, GET, OPTIONS
  9. Access-Control-Allow-Headers: X-Requested-With, X-Sequence, _aop_secret, _aop_signature
  10. Access-Control-Max-Age: 172800
  11. X-Acs-Request-Id: 1A1EB9B8-AB3A-4E48-877F-CDC225A98876
  12. Server: Jetty(7.2.2.v20101205)
  13. {
  14. "TotalCount" : 4,
  15. "PageNumber" : 1,
  16. "Events" : [{
  17. "Status" : "CREATE_IN_PROGRESS",
  18. "ResourceType" : "ALIYUN::ECS::Disk",
  19. "ResourceId" : "DataDisk",
  20. "StatusReason" : "state changed",
  21. "Time" : "2015-10-23T07:54:31",
  22. "ResourceName" : "DataDisk",
  23. "Id" : "2ea04369-4c54-4b97-b91c-a0d80cd8a879",
  24. "ResourcePhysicalId" : null
  25. }, {
  26. "Status" : "CREATE_IN_PROGRESS",
  27. "ResourceType" : "ALIYUN::ROS::Stack",
  28. "ResourceId" : "hope_test_chinese",
  29. "StatusReason" : "Stack CREATE started",
  30. "Time" : "2015-10-23T07:54:30",
  31. "ResourceName" : "hope_test_chinese",
  32. "Id" : "e3e485fb-3d2f-4ce6-9518-a3f6f5ada6c3",
  33. "ResourcePhysicalId" : "2669808f-c5e1-4777-85b9-5a2a39718cc4"
  34. }
  35. ],
  36. "PageSize" : 2
  37. }
Thank you! We've received your feedback.