Consulta as informações sobre uma tarefa.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
servicecatalog:GetTask |
get |
*ProvisionedProduct
|
|
Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| TaskId |
string |
Sim |
O ID da tarefa. |
task-bp1dmg242c**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| RequestId |
string |
O ID da solicitação. |
0FEEF92D-4052-5202-87D0-3D8EC16F81BF |
| TaskDetail |
object |
Os detalhes da tarefa. |
|
| TaskId |
string |
O ID da tarefa. |
task-bp1dmg242c**** |
| TaskType |
string |
O tipo da tarefa. Valores válidos:
|
LaunchProduct |
| PortfolioId |
string |
O ID do portfólio de produtos. |
port-bp1yt7582g**** |
| ProductId |
string |
O ID do produto. |
prod-bp18r7q127**** |
| ProductName |
string |
O nome do produto. |
DEMO-Create ECS |
| ProductVersionId |
string |
O ID da versão do produto. |
pv-bp15e79d26**** |
| ProductVersionName |
string |
O nome da versão do produto. |
1.0 |
| ProvisionedProductId |
string |
O ID da instância do produto. |
pp-bp1ddg1n2a**** |
| ProvisionedProductName |
string |
O nome da instância do produto. |
DEMO-ECS-Instance |
| Parameters |
array<object> |
Os parâmetros especificados no modelo. |
|
|
object |
|||
| ParameterKey |
string |
The name of the input parameter for the template. |
instance_type |
| ParameterValue |
string |
The value of the input parameter for the template. |
ecs.s6-c1m1.small |
| Outputs |
array<object> |
Os parâmetros de saída do modelo. |
|
|
object |
|||
| OutputKey |
string |
The name of the output parameter for the template. |
instance_id |
| OutputValue |
string |
The value of the output parameter for the template. |
i-xxxxxx |
| Description |
string |
The description of the output parameter for the template. |
The ECS instance ID. |
| Log |
object |
Os logs da instância. |
|
| TerraformLogs |
array<object> |
The Terraform logs. |
|
|
object |
|||
| Command |
string |
The name of the Terraform command that is run. Valid values:
For more information about Terraform commands, see Basic CLI Features. |
apply |
| Stream |
string |
The output stream. Valid values:
|
stdout |
| Content |
string |
The content of the output stream that is returned after the command is run. |
Apply complete! Resources: 42 added, 0 changed, 0 destroyed. |
| Status |
string |
O status da tarefa. Valores válidos:
|
Succeeded |
| StatusMessage |
string |
A mensagem retornada para o status da tarefa. Nota
Este parâmetro é retornado apenas quando Failed é retornado para o parâmetro Status. |
Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure... |
| CreateTime |
string |
A hora em que a tarefa foi criada. A hora segue o padrão ISO 8601 no formato yyyy-MM-ddTHH:mm:ssZ. A hora é exibida em UTC. |
2022-05-23T09:46:27Z |
| UpdateTime |
string |
A hora em que a tarefa foi modificada pela última vez. A hora segue o padrão ISO 8601 no formato yyyy-MM-ddTHH:mm:ssZ. A hora é exibida em UTC. |
2022-05-23T09:47:29Z |
| TaskTags |
array<object> |
As tags personalizadas. |
|
|
object |
|||
| Key |
string |
The custom tag key. The tag key can be up to 128 characters in length and cannot contain |
k1 |
| Value |
string |
The custom tag value. The value must be 1 to 128 characters in length. It cannot start with |
v1 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "0FEEF92D-4052-5202-87D0-3D8EC16F81BF",
"TaskDetail": {
"TaskId": "task-bp1dmg242c****",
"TaskType": "LaunchProduct",
"PortfolioId": "port-bp1yt7582g****",
"ProductId": "prod-bp18r7q127****",
"ProductName": "DEMO-Create ECS",
"ProductVersionId": "pv-bp15e79d26****",
"ProductVersionName": "1.0",
"ProvisionedProductId": "pp-bp1ddg1n2a****",
"ProvisionedProductName": "DEMO-ECS-Instance",
"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"
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 500 | InternalError | A system error occurred. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.