All Products
Search
Document Center

ListExecutionLogs

Last Updated: Sep 05, 2019

You can call this operation to obtain a detailed list of execution logs entries.

Request parameters

Parameter Type Required Example Description
Action String Yes ListExecutionLogs The operation that you want to perform. Set this parameter to ListExecutionLogs.
ExecutionId String Yes exec-xxx The ID of the execution.
MaxResults Integer No 50 The maximum number of log entries that are displayed on each page.
NextToken String No MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ3NjFENDdB The token that is required to retrieve the next page of results.

Response parameters

Parameter Type Example Description
RequestId String 14A07460-EBE7-47CA-9757-12CC4761D47A The ID of the request.
ExecutionLogs - - The log entries of the execution.
└ Timestamp String 2019-05-24T:02:29:07Z The timestamp.
└ Message String The task CheckDiskCategory completed. The information that is logged.

Example

Sample request

  1. https://oos.cn-hangzhou.aliyuncs.com/?Action=ListExecutionLogs
  2. &ExecutionId=exec-8a2aaf460fdf47c6b5ef
  3. &<Common request parameters>

Sample success response
JSON format

  1. {
  2. "ExecutionLogs": [
  3. {
  4. "Message": "The task CheckDiskCategory completed.",
  5. "Timestamp": "2019-05-24T02:29:07Z"
  6. },
  7. {
  8. "Message": "The task CheckDiskCategory completed.",
  9. "Timestamp": "2019-05-24T02:29:07Z"
  10. },
  11. {
  12. "Message": "The task CheckDiskCategory completed.",
  13. "Timestamp": "2019-05-24T02:29:07Z"
  14. },
  15. {
  16. "Message": "The task CheckDiskCategory (loop item d-bp12nd75slrxf) completed.",
  17. "Timestamp": "2019-05-24T02:29:07Z"
  18. },
  19. {
  20. "Message": "The task CheckDiskCategory (loop item d-bp1275slrxf) output: {}",
  21. "Timestamp": "2019-05-24T02:29:07Z"
  22. },
  23. {
  24. "Message": "api call: DescribeDisks request:{'InstanceId': 'i-bp1d2k1yttp', 'DiskIds': ['d-bp12n475slrxf']} response: {'PageNumber': 1, 'TotalCount': 1, 'PageSize': 10, 'RequestId': '92282CEB-A65C-4B2D-A653-8B2FA46E04BF', 'Disks': {'Disk': [{'DiskChargeType': 'PrePaid', 'ImageId': '', 'Device': '/dev/xvdb', 'DetachedTime': '', 'Type': 'data', 'InstanceId': 'i-bpxnrnk1yttp', 'Encrypted': False, 'EnableAutoSnapshot': True, 'ZoneId': 'cn-hangzhou-h', 'AttachedTime': '2019-04-28T12:14:00Z', 'SourceSnapshotId': '', 'DeleteAutoSnapshot': False, 'KMSKeyId': '', 'Size': 20, 'Description': '', 'BdfId': '', 'Portable': False, 'ProductCode': '', 'EnableAutomatedSnapshotPolicy': False, 'ResourceGroupId': '', 'DiskName': '', 'AutoSnapshotPolicyId': '', 'CreationTime': '2019-04-28T12:13:55Z', 'Tags': {'Tag': []}, 'MountInstances': {'MountInstance': []}, 'Status': 'In_use', 'Category': 'cloud_essd', 'RegionId': 'cn-hangzhou', 'DeleteWithInstance': True, 'OperationLocks': {'OperationLock': []}, 'ExpiredTime': '2019-05-28T16:00Z', 'DiskId': 'd-bp12nxf'}]}}",
  25. "Timestamp": "2019-05-24T02:29:07Z"
  26. },
  27. {
  28. "Message": "The task CheckDiskCategory (loop item d-bp12475slrxf) started.",
  29. "Timestamp": "2019-05-24T02:29:07Z"
  30. },
  31. {
  32. "Message": "The task CheckDiskCategory (loop item d-bp13pn08358) completed.",
  33. "Timestamp": "2019-05-24T02:29:07Z"
  34. },
  35. {
  36. "Message": "The task CheckDiskCategory (loop item d-bp1446mcjvf5wbu4p1vx) completed.",
  37. "Timestamp": "2019-05-24T02:29:07Z"
  38. },
  39. {
  40. "Message": "The task CheckDiskCategory (loop item d-bppn08358) output: {}",
  41. "Timestamp": "2019-05-24T02:29:07Z"
  42. },
  43. {
  44. "Message": "The task CheckDiskCategory (loop item d-bp15wbu4p1vx) output: {}",
  45. "Timestamp": "2019-05-24T02:29:07Z"
  46. },
  47. {
  48. "Message": "api call: DescribeDisks request:{'InstanceId': 'i-bp1d2k1yttp', 'DiskIds': ['d-bp1de6358']} response: {'PageNumber': 1, 'TotalCount': 1, 'PageSize': 10, 'RequestId': 'FEDA9E36-EFF2-426F-93B8-97D01C4A00D6', 'Disks': {'Disk': [{'DiskChargeType': 'PrePaid', 'ImageId': '', 'Device': '/dev/xvdc', 'DetachedTime': '', 'Type': 'data', 'InstanceId': 'i-bp1rnk1yttp', 'Encrypted': False, 'ZoneId': 'cn-hangzhou-h', 'EnableAutoSnapshot': True, 'AttachedTime': '2019-04-28T12:33:42Z', 'SourceSnapshotId': '', 'DeleteAutoSnapshot': True, 'KMSKeyId': '', 'Size': 50, 'Description': '', 'BdfId': '', 'ProductCode': '', 'Portable': False, 'EnableAutomatedSnapshotPolicy': False, 'ResourceGroupId': '', 'DiskName': 'OOS_test_000', 'AutoSnapshotPolicyId': '', 'CreationTime': '2019-04-28T12:30:27Z', 'MountInstances': {'MountInstance': []}, 'Status': 'In_use', 'Tags': {'Tag': [{'TagValue': 'Automation (OOS)', 'TagKey': '\u9879\u76ee'}]}, 'Category': 'cloud_essd', 'RegionId': 'cn-hangzhou', 'DeleteWithInstance': True, 'OperationLocks': {'OperationLock': []}, 'ExpiredTime': '2019-05-28T16:00Z', 'DiskId': 'd-bp1den08358'}]}}",
  49. "Timestamp": "2019-05-24T02:29:07Z"
  50. },
  51. {
  52. "Message": "api call: DescribeDisks request:{'InstanceId': 'i-bp1d24yttp', 'DiskIds': ['d-bp145w1vx']} response: {'PageNumber': 1, 'TotalCount': 1, 'PageSize': 10, 'RequestId': '68AB877B-7AF2-4216-8F78-63DB3C40C5F1', 'Disks': {'Disk': [{'DiskChargeType': 'PrePaid', 'ImageId': '', 'Device': '/dev/xvde', 'DetachedTime': '', 'Type': 'data', 'InstanceId': 'i-bp1dnk1yttp', 'Encrypted': False, 'ZoneId': 'cn-hangzhou-h', 'EnableAutoSnapshot': True, 'AttachedTime': '2019-05-23T07:23:20Z', 'SourceSnapshotId': 's-bp1h2ia26oxp8', 'DeleteAutoSnapshot': True, 'KMSKeyId': '', 'Size': 50, 'Description': '', 'BdfId': '', 'Portable': False, 'ProductCode': '', 'EnableAutomatedSnapshotPolicy': False, 'ResourceGroupId': '', 'DiskName': 'OOS_test-\u6570\u636e\u76d8', 'AutoSnapshotPolicyId': '', 'CreationTime': '2019-05-23T07:22:53Z', 'Tags': {'Tag': []}, 'MountInstances': {'MountInstance': []}, 'Status': 'In_use', 'Category': 'cloud_essd', 'RegionId': 'cn-hangzhou', 'DeleteWithInstance': True, 'OperationLocks': {'OperationLock': []}, 'ExpiredTime': '2019-05-28T16:00Z', 'DiskId': 'd-bp144p1vx'}]}}",
  53. "Timestamp": "2019-05-24T02:29:07Z"
  54. },
  55. {
  56. "Message": "The task CheckDiskCategory (loop item d-bp13pn08358) started.",
  57. "Timestamp": "2019-05-24T02:29:06Z"
  58. },
  59. {
  60. "Message": "The task CheckDiskCategory output: {}",
  61. "Timestamp": "2019-05-24T02:29:06Z"
  62. },
  63. {
  64. "Message": "The task CheckDiskCategory (loop item d-bp1wbu4p1vx) started.",
  65. "Timestamp": "2019-05-24T02:29:06Z"
  66. },
  67. {
  68. "Message": "The task CheckDiskCategory started.",
  69. "Timestamp": "2019-05-24T02:29:06Z"
  70. },
  71. {
  72. "Message": "The task describeDisks completed.",
  73. "Timestamp": "2019-05-24T02:29:06Z"
  74. },
  75. {
  76. "Message": "The task describeDisks output: {'DiskIds': ['d-bp144wbu4p1vx', 'd-bp1de6yp8358', 'd-bp12n5slrxf'], 'ZoneId': 'cn-hangzhou-h', 'Size': 50, 'DiskCategory': 'cloud_essd', 'DiskChargeType': 'PrePaid'}",
  77. "Timestamp": "2019-05-24T02:29:06Z"
  78. },
  79. {
  80. "Message": "api call: DescribeDisks request:{'InstanceId': 'i-bp1yttp', 'DiskType': 'data', 'PageNumber': 1} response: {'PageNumber': 1, 'TotalCount': 3, 'PageSize': 10, 'RequestId': '4ED1DD8F-B231-4DA9-A11E-904D29E88E4C', 'Disks': {'Disk': [{'DiskChargeType': 'PrePaid', 'ImageId': '', 'Device': '/dev/xvde', 'DetachedTime': '', 'Type': 'data', 'InstanceId': 'i-bp1dk1yttp', 'Encrypted': False, 'ZoneId': 'cn-hangzhou-h', 'EnableAutoSnapshot': True, 'AttachedTime': '2019-05-23T07:23:20Z', 'SourceSnapshotId': 's-bp1h2iba8', 'DeleteAutoSnapshot': True, 'KMSKeyId': '', 'Size': 50, 'Description': '', 'BdfId': '', 'Portable': False, 'ProductCode': '', 'EnableAutomatedSnapshotPolicy': False, 'ResourceGroupId': '', 'DiskName': 'OOS_test-\u6570\u636e\u76d8', 'AutoSnapshotPolicyId': '', 'CreationTime': '2019-05-23T07:22:53Z', 'Tags': {'Tag': []}, 'MountInstances': {'MountInstance': []}, 'Status': 'In_use', 'Category': 'cloud_essd', 'RegionId': 'cn-hangzhou', 'DeleteWithInstance': True, 'OperationLocks': {'OperationLock': []}, 'ExpiredTime': '2019-05-28T16:00Z', 'DiskId': 'd-bp144wbu4p1vx'}, {'DiskChargeType': 'PrePaid', 'ImageId': '', 'Device': '/dev/xvdc', 'DetachedTime': '', 'Type': 'data', 'InstanceId': 'i-bpk1yttp', 'Encrypted': False, 'ZoneId': 'cn-hangzhou-h', 'EnableAutoSnapshot': True, 'AttachedTime': '2019-04-28T12:33:42Z', 'SourceSnapshotId': '', 'DeleteAutoSnapshot': True, 'KMSKeyId': '', 'Size': 50, 'Description': '', 'BdfId': '', 'ProductCode': '', 'Portable': False, 'EnableAutomatedSnapshotPolicy': False, 'ResourceGroupId': '', 'DiskName': 'OOS_test_000', 'AutoSnapshotPolicyId': '', 'CreationTime': '2019-04-28T12:30:27Z', 'MountInstances': {'MountInstance': []}, 'Status': 'In_use', 'Tags': {'Tag': [{'TagValue': 'Automation (OOS)', 'TagKey': '\u9879\u76ee'}]}, 'Category': 'cloud_essd', 'RegionId': 'cn-hangzhou', 'DeleteWithInstance': True, 'OperationLocks': {'OperationLock': []}, 'ExpiredTime': '2019-05-28T16:00Z', 'DiskId': 'd-bp1ds3pn08358'}, {'DiskChargeType': 'PrePaid', 'ImageId': '', 'Device': '/dev/xvdb', 'DetachedTime': '', 'Type': 'data', 'InstanceId': 'i-bp1k1yttp', 'Encrypted': False, 'EnableAutoSnapshot': True, 'ZoneId': 'cn-hangzhou-h', 'AttachedTime': '2019-04-28T12:14:00Z', 'SourceSnapshotId': '', 'DeleteAutoSnapshot': False, 'KMSKeyId': '', 'Size': 20, 'Description': '', 'BdfId': '', 'Portable': False, 'ProductCode': '', 'EnableAutomatedSnapshotPolicy': False, 'ResourceGroupId': '', 'DiskName': '', 'AutoSnapshotPolicyId': '', 'CreationTime': '2019-04-28T12:13:55Z', 'Tags': {'Tag': []}, 'MountInstances': {'MountInstance': []}, 'Status': 'In_use', 'Category': 'cloud_essd', 'RegionId': 'cn-hangzhou', 'DeleteWithInstance': True, 'OperationLocks': {'OperationLock': []}, 'ExpiredTime': '2019-05-28T16:00Z', 'DiskId': 'd-bp12nrxf'}]}}",
  81. "Timestamp": "2019-05-24T02:29:06Z"
  82. },
  83. {
  84. "Message": "The task describeDisks started.",
  85. "Timestamp": "2019-05-24T02:29:06Z"
  86. },
  87. {
  88. "Message": "The task checkInstanceReady completed.",
  89. "Timestamp": "2019-05-24T02:29:06Z"
  90. },
  91. {
  92. "Message": "The task checkInstanceReady output: {}",
  93. "Timestamp": "2019-05-24T02:29:06Z"
  94. },
  95. {
  96. "Message": "api call: DescribeInstances request:{'InstanceIds': ['i-bp1dyttp']} response: {'PageNumber': 1, 'TotalCount': 1, 'PageSize': 10, 'RequestId': 'DB025342-06DD-4B69-B316-A0671097ACB6', 'Instances': {'Instance': [{'ImageId': 'centos_7_06_64_20G_alibase_20190218.vhd', 'VlanId': '', 'EipAddress': {'IpAddress': '', 'AllocationId': '', 'InternetChargeType': ''}, 'ZoneId': 'cn-hangzhou-h', 'IoOptimized': True, 'SerialNumber': '3317f43a-4e4b-41df-983a-ec7224dd2eb8', 'Cpu': 2, 'Memory': 4096, 'DeviceAvailable': True, 'SecurityGroupIds': {'SecurityGroupId': ['sg-bp19qbpsf']}, 'SaleCycle': '', 'AutoReleaseTime': '', 'ResourceGroupId': '', 'OSType': 'linux', 'OSName': 'CentOS 7.6 64\u4f4d', 'InstanceNetworkType': 'vpc', 'HostName': 'iZbp1d246bcnxnrnk1yttpZ', 'CreationTime': '2019-04-28T12:13Z', 'Tags': {'Tag': [{'TagValue': 'automation', 'TagKey': 'automation'}, {'TagValue': 'installlogtail', 'TagKey': 'oostest'}]}, 'EcsCapacityReservationAttr': {'CapacityReservationPreference': '', 'CapacityReservationId': ''}, 'RegionId': 'cn-hangzhou', 'DeletionProtection': False, 'OperationLocks': {'LockReason': []}, 'ExpiredTime': '2019-05-28T16:00Z', 'InnerIpAddress': {'IpAddress': []}, 'InstanceTypeFamily': 'ecs.c5', 'InstanceId': 'i-bp1yttp', 'NetworkInterfaces': {'NetworkInterface': [{'MacAddress': '00:16:3e:09:60:56', 'PrimaryIpAddress': '192.168.31.184', 'NetworkInterfaceId': 'eni-bp1de6ox'}]}, 'InternetMaxBandwidthIn': -1, 'CreditSpecification': '', 'InternetChargeType': 'PayByBandwidth', 'SpotStrategy': 'NoSpot', 'StoppedMode': 'Not-applicable', 'InternetMaxBandwidthOut': 0, 'VpcAttributes': {'NatIpAddress': '', 'PrivateIpAddress': {'IpAddress': ['192.168.31.184']}, 'VSwitchId': 'vsw-bp1rioiiez', 'VpcId': 'vpc-bp1foh56'}, 'SpotPriceLimit': 0.0, 'StartTime': '2019-05-23T07:24Z', 'InstanceName': 'OOS_test', 'Description': 'new description three', 'OSNameEn': 'CentOS 7.6 64 bit', 'PublicIpAddress': {'IpAddress': []}, 'InstanceType': 'ecs.c5.large', 'Status': 'Running', 'Recyclable': False, 'ClusterId': '', 'GPUSpec': '', 'InstanceChargeType': 'PrePaid', 'GPUAmount': 0, 'DedicatedHostAttribute': {'DedicatedHostId': '', 'DedicatedHostName': ''}, 'DedicatedInstanceAttribute': {'Affinity': '', 'Tenancy': ''}, 'DeploymentSetId': ''}]}}",
  97. "Timestamp": "2019-05-24T02:29:06Z"
  98. },
  99. {
  100. "Message": "The task checkInstanceReady started.",
  101. "Timestamp": "2019-05-24T02:29:06Z"
  102. }
  103. ],
  104. "MaxResults": 50,
  105. "NextToken": "gAAAAABc68oiY2KprBVtAOVCNGWOMM7QIVzHFOhxneoi78biGnqJuxBnGISFqK5neTHFPgrs3jK7rqjF3qaN_4ysSzyVr_y6vQ==",
  106. "RequestId": "BD3B1827-7494-407E-9454-64150572843A"
  107. }

Error codes

Error code HTTP status code Error message Description
InvalidVersion 400 Specified parameter Version is not valid. The error message returned because the specified version is invalid. Specify a valid version in the URL and try again.
InvalidAction.NotFound 400 Specified api is not found, please check your url and method. The error message returned because the specified operation does not exist. Enter the correct Action in the URL.
User.NoPermission 401 User has no permission to do the action: ({api_name}) The error message returned because the user does not have the permission to call this operation. Check whether the current user has the permission to call the OOS API in the RAM console.
InvalidStsToken 400 Invalid STS token to do the action: ({api_name}) The error message returned because the specified STS token is invalid.
ExpiredStsToken 400 Expired STS token to do the action: ({api_name}) The error message returned because the specified STS token has expired.
InvalidAccountType 400 The account type ({account_type}) was not supported. The error message returned because the specified account type is not supported.
EntityNotExists.Execution 404 The specific execution {{key}} does not exist. The error message returned because the specified execution does not exist.
InvalidNextToken 400 The NextToken is invalid. The error message returned because the NextToken is invalid. Enter a valid token and try again.
InvalidNextTokenQuery 400 Query parameters changed for the next token The error message returned because the parameter settings used in the current request with NextToken specified are different from the parameter settings used in the first request.