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
https://oos.cn-hangzhou.aliyuncs.com/?Action=ListExecutionLogs
&ExecutionId=exec-8a2aaf460fdf47c6b5ef
&<Common request parameters>
Sample success response JSON
format
{
"ExecutionLogs": [
{
"Message": "The task CheckDiskCategory completed.",
"Timestamp": "2019-05-24T02:29:07Z"
},
{
"Message": "The task CheckDiskCategory completed.",
"Timestamp": "2019-05-24T02:29:07Z"
},
{
"Message": "The task CheckDiskCategory completed.",
"Timestamp": "2019-05-24T02:29:07Z"
},
{
"Message": "The task CheckDiskCategory (loop item d-bp12nd75slrxf) completed.",
"Timestamp": "2019-05-24T02:29:07Z"
},
{
"Message": "The task CheckDiskCategory (loop item d-bp1275slrxf) output: {}",
"Timestamp": "2019-05-24T02:29:07Z"
},
{
"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'}]}}",
"Timestamp": "2019-05-24T02:29:07Z"
},
{
"Message": "The task CheckDiskCategory (loop item d-bp12475slrxf) started.",
"Timestamp": "2019-05-24T02:29:07Z"
},
{
"Message": "The task CheckDiskCategory (loop item d-bp13pn08358) completed.",
"Timestamp": "2019-05-24T02:29:07Z"
},
{
"Message": "The task CheckDiskCategory (loop item d-bp1446mcjvf5wbu4p1vx) completed.",
"Timestamp": "2019-05-24T02:29:07Z"
},
{
"Message": "The task CheckDiskCategory (loop item d-bppn08358) output: {}",
"Timestamp": "2019-05-24T02:29:07Z"
},
{
"Message": "The task CheckDiskCategory (loop item d-bp15wbu4p1vx) output: {}",
"Timestamp": "2019-05-24T02:29:07Z"
},
{
"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'}]}}",
"Timestamp": "2019-05-24T02:29:07Z"
},
{
"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'}]}}",
"Timestamp": "2019-05-24T02:29:07Z"
},
{
"Message": "The task CheckDiskCategory (loop item d-bp13pn08358) started.",
"Timestamp": "2019-05-24T02:29:06Z"
},
{
"Message": "The task CheckDiskCategory output: {}",
"Timestamp": "2019-05-24T02:29:06Z"
},
{
"Message": "The task CheckDiskCategory (loop item d-bp1wbu4p1vx) started.",
"Timestamp": "2019-05-24T02:29:06Z"
},
{
"Message": "The task CheckDiskCategory started.",
"Timestamp": "2019-05-24T02:29:06Z"
},
{
"Message": "The task describeDisks completed.",
"Timestamp": "2019-05-24T02:29:06Z"
},
{
"Message": "The task describeDisks output: {'DiskIds': ['d-bp144wbu4p1vx', 'd-bp1de6yp8358', 'd-bp12n5slrxf'], 'ZoneId': 'cn-hangzhou-h', 'Size': 50, 'DiskCategory': 'cloud_essd', 'DiskChargeType': 'PrePaid'}",
"Timestamp": "2019-05-24T02:29:06Z"
},
{
"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'}]}}",
"Timestamp": "2019-05-24T02:29:06Z"
},
{
"Message": "The task describeDisks started.",
"Timestamp": "2019-05-24T02:29:06Z"
},
{
"Message": "The task checkInstanceReady completed.",
"Timestamp": "2019-05-24T02:29:06Z"
},
{
"Message": "The task checkInstanceReady output: {}",
"Timestamp": "2019-05-24T02:29:06Z"
},
{
"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': ''}]}}",
"Timestamp": "2019-05-24T02:29:06Z"
},
{
"Message": "The task checkInstanceReady started.",
"Timestamp": "2019-05-24T02:29:06Z"
}
],
"MaxResults": 50,
"NextToken": "gAAAAABc68oiY2KprBVtAOVCNGWOMM7QIVzHFOhxneoi78biGnqJuxBnGISFqK5neTHFPgrs3jK7rqjF3qaN_4ysSzyVr_y6vQ==",
"RequestId": "BD3B1827-7494-407E-9454-64150572843A"
}
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. |