You need to enable JavaScript to run this app.
导航
GetTask - 通过此接口查询任务执行详情
最近更新时间:2025.09.25 17:18:07首次发布时间:2025.09.25 16:37:12
复制全文
我的收藏
有用
有用
无用
无用

通过此接口查询任务执行详情

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

GetTask

要执行的操作,取值:GetTask。

Version
String

2025-06-01

API的版本,取值:2025-06-01。

TaskId
String

task-3e4ec995-6956-4907-b925-f92dd964636f

资源操作的任务ID,可以通过 ListTasks 获取任务列表

返回参数

本接口无特有的返回参数。更多信息请见返回结构

请求示例

{
    "TaskId": "task-3e4ec995-6956-4907-b925-f92dd964636f"
}

返回示例

{
  "ResponseMetadata": {
    "RequestId": "202509191727433211B595692D557C311E",
    "Region": "cn-beijing"
  },
  "Result": {
    "EventTime": "2025-09-19T16:47:22+08:00",
    "TypeName": "Volcengine::IAM::User",
    "Identifier": "user-cc",
    "Operation": "CREATE",
    "OperationStatus": "SUCCESS",
    "TaskID": "task-3e4ec995-6956-4907-b925-f92dd964636f",
    "ResourceModel": "{\"AccountId\":2000000191,\"CreateDate\":\"20250919T084713Z\",\"Description\":\"this is a iam user created by ccapi\",\"DisplayName\":\"demo\",\"Email\":\"\",\"EmailIsVerify\":false,\"LoginProfile\":{\"CreateDate\":\"20250919T084721Z\",\"LastLoginDate\":\"00010101T000000Z\",\"LastLoginIp\":\"\",\"LastResetPasswordTime\":1758271641,\"LoginAllowed\":false,\"LoginLocked\":false,\"PasswordExpireAt\":0,\"PasswordResetRequired\":true,\"SafeAuthExemptDuration\":10,\"SafeAuthExemptRequired\":1,\"SafeAuthExemptUnit\":0,\"SafeAuthFlag\":false,\"SafeAuthType\":\"\",\"UpdateDate\":\"20250919T084721Z\"},\"MobilePhone\":\"\",\"MobilePhoneIsVerify\":false,\"Policies\":[{\"PolicyName\":\"IAMReadOnlyAccess\",\"PolicyType\":\"System\"}],\"SecurityConfig\":{\"SafeAuthClose\":0,\"SafeAuthExemptDuration\":10,\"SafeAuthType\":\"phone,email,vmfa\"},\"Tags\":[{\"Key\":\"usage\",\"Value\":\"ccapi\"}],\"Trn\":\"trn:iam::2000000191:user/user-cc\",\"UpdateDate\":\"20250919T084713Z\",\"UserId\":1819738,\"UserName\":\"user-cc\"}"
  }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
404
EntityNotFound

taskID %s was not found

未查询到

500
InternalError

Some internal service error occurred, please wait and try again.

系统错误,请稍后重试