全部产品
云市场

ListExecutionLogs

更新时间:2019-07-19 19:39:54

ListExecutionLogs

获取执行的详细日志

请求参数

名称 类型 是否必选 示例值 描述
Action String ListExecutionLogs 系统规定参数。取值:ListExecutionLogs
ExecutionId String exec-xxx 执行ID
MaxResults Integer 50 分页大小
NextToken String MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ3NjFENDdB 翻页标记的Token

返回参数

名称 类型 示例值 描述
RequestId String 14A07460-EBE7-47CA-9757-12CC4761D47A 请求 ID。
ExecutionLogs - - 执行日志
└ Timestamp String 2019-05-24T:02:29:07Z 时间戳
└ Message String The task CheckDiskCategory completed. 详细信息

示例

请求示例

  1. https://oos.cn-hangzhou.aliyuncs.com/?Action=ListExecutionLogs
  2. &ExecutionId=exec-8a2aaf460fdf47c6b5ef
  3. &<公共请求参数>

正常返回示例
JSON 格式

  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-bp1234567abcdfprxf) completed.",
  17. "Timestamp": "2019-05-24T02:29:07Z"
  18. },
  19. {
  20. "Message": "The task CheckDiskCategory (loop item d-bp1234567abcdfprxf) output: {}",
  21. "Timestamp": "2019-05-24T02:29:07Z"
  22. },
  23. {
  24. "Message": "api call: DescribeDisks request:{'InstanceId': 'i-bp123456ttp', 'DiskIds': ['d-bp1234565slrxf']} 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-bpx23456k1yttp', '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-bp234562nxf'}]}}",
  25. "Timestamp": "2019-05-24T02:29:07Z"
  26. },
  27. {
  28. "Message": "The task CheckDiskCategory (loop item d-bp1242345675slrxf) started.",
  29. "Timestamp": "2019-05-24T02:29:07Z"
  30. },
  31. {
  32. "Message": "The task CheckDiskCategory (loop item d-bp2345613pn08358) completed.",
  33. "Timestamp": "2019-05-24T02:29:07Z"
  34. },
  35. {
  36. "Message": "The task CheckDiskCategory (loop item d-bp1423456bu4p1vx) completed.",
  37. "Timestamp": "2019-05-24T02:29:07Z"
  38. },
  39. {
  40. "Message": "The task CheckDiskCategory (loop item d-bpp23456358) output: {}",
  41. "Timestamp": "2019-05-24T02:29:07Z"
  42. },
  43. {
  44. "Message": "The task CheckDiskCategory (loop item d-bp1523456wbu4p1vx) output: {}",
  45. "Timestamp": "2019-05-24T02:29:07Z"
  46. },
  47. {
  48. "Message": "api call: DescribeDisks request:{'InstanceId': 'i-bp1d23456yttp', 'DiskIds': ['d-bp123456de6358']} 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-bp1r23456nk1yttp', '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-bp123456den08358'}]}}",
  49. "Timestamp": "2019-05-24T02:29:07Z"
  50. },
  51. {
  52. "Message": "api call: DescribeDisks request:{'InstanceId': 'i-bp123456d24yttp', 'DiskIds': ['d-bp23456145w1vx']} 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-bp23456nk1yttp', 'Encrypted': False, 'ZoneId': 'cn-hangzhou-h', 'EnableAutoSnapshot': True, 'AttachedTime': '2019-05-23T07:23:20Z', 'SourceSnapshotId': 's-bp123456h2oxp8', '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-bp23456144p1vx'}]}}",
  53. "Timestamp": "2019-05-24T02:29:07Z"
  54. },
  55. {
  56. "Message": "The task CheckDiskCategory (loop item d-bp1234563pn08358) 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-bp123456wbu4p1vx) 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-bp123456bu4p1vx', 'd-bp123456de6yp8358', 'd-bp1234562n5slrxf'], '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-bp123456yttp', '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-bp234561dk1yttp', 'Encrypted': False, 'ZoneId': 'cn-hangzhou-h', 'EnableAutoSnapshot': True, 'AttachedTime': '2019-05-23T07:23:20Z', 'SourceSnapshotId': 's-bp123456h2iba8', '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-bp123456u4p1vx'}, {'DiskChargeType': 'PrePaid', 'ImageId': '', 'Device': '/dev/xvdc', 'DetachedTime': '', 'Type': 'data', 'InstanceId': 'i-bp23456k1yttp', '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-bp12345608358'}, {'DiskChargeType': 'PrePaid', 'ImageId': '', 'Device': '/dev/xvdb', 'DetachedTime': '', 'Type': 'data', 'InstanceId': 'i-bp1234561yttp', '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-bp1234562nrxf'}]}}",
  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-bp1234dyttp']} 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-bp1234d19qbpsf']}, 'SaleCycle': '', 'AutoReleaseTime': '', 'ResourceGroupId': '', 'OSType': 'linux', 'OSName': 'CentOS 7.6 64\u4f4d', 'InstanceNetworkType': 'vpc', 'HostName': 'iZbp1d2nk1yttpZ', '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-bp1234d1yttp', 'NetworkInterfaces': {'NetworkInterface': [{'MacAddress': '00:16:3e:09:60:56', 'PrimaryIpAddress': '192.168.31.184', 'NetworkInterfaceId': 'eni-bp1234d1de6ox'}]}, 'InternetMaxBandwidthIn': -1, 'CreditSpecification': '', 'InternetChargeType': 'PayByBandwidth', 'SpotStrategy': 'NoSpot', 'StoppedMode': 'Not-applicable', 'InternetMaxBandwidthOut': 0, 'VpcAttributes': {'NatIpAddress': '', 'PrivateIpAddress': {'IpAddress': ['192.168.31.184']}, 'VSwitchId': 'vsw-bp1234d1rioiiez', 'VpcId': 'vpc-bp1234d1foh56'}, '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. }

错误码

错误代码 HTTP 状态码 错误信息 描述
InvalidVersion 400 Specified parameter Version is not valid. 给定的Version非法。请检查URL中指定的Version的正确性。
InvalidAction.NotFound 400 Specified api is not found, please check your url and method. 给定的API不存在。请检查URL中指定的Action的正确性。
User.NoPermission 401 User has no permission to do the action: ({api_name}) 用户没有调用某个API的权限。请检查是否在RAM中给当前用户赋予了OOS的API的权限。
InvalidStsToken 400 Invalid STS token to do the action: ({api_name}) 给定的STS Token非法。
ExpiredStsToken 400 Expired STS token to do the action: ({api_name}) 给定的STS Token过期。
InvalidAccountType 400 The account type ({account_type}) was not supported. 不支持给定的账号类型。
EntityNotExists.Execution 404 The specific execution {{key}} does not exist. Execution不存在
InvalidNextToken 400 The NextToken is invalid. NextToken非法。
InvalidNextTokenQuery 400 Query parameters changed for the next token 携带NextToken查询所用的条件和第一次查询时不一致。