Queries the information about a task.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TaskId | string | Yes | The ID of the task. | task-bp1dmg242c**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0FEEF92D-4052-5202-87D0-3D8EC16F81BF",
"TaskDetail": {
"TaskId": "task-bp1dmg242c****",
"TaskType": "LaunchProduct",
"PortfolioId": "port-bp1yt7582g****",
"ProductId": "prod-bp18r7q127****",
"ProductName": "DEMO-Create an ECS instance\n",
"ProductVersionId": "pv-bp15e79d26****",
"ProductVersionName": "1.0",
"ProvisionedProductId": "pp-bp1ddg1n2a****",
"ProvisionedProductName": "DEMO-ECS instance\n",
"Parameters": [
{
"ParameterKey": "instance_type",
"ParameterValue": "ecs.s6-c1m1.small"
}
],
"Outputs": [
{
"OutputKey": "instance_id",
"OutputValue": "i-xxxxxx",
"Description": "The ECS instance ID."
}
],
"Log": {
"TerraformLogs": [
{
"Command": "apply",
"Stream": "stdout",
"Content": "Apply complete! Resources: 42 added, 0 changed, 0 destroyed."
}
]
},
"Status": "Succeeded",
"StatusMessage": "Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...",
"CreateTime": "2022-05-23T09:46:27Z",
"UpdateTime": "2022-05-23T09:47:29Z",
"TaskTags": [
{
"Key": "k1",
"Value": "v1"
}
]
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
500 | InternalError | A system error occurred. |
For a list of error codes, visit the Service error codes.