Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::BastionHost::PasswordTask

Última atualização: Jun 27, 2026

Cria uma tarefa de senha para gerenciar credenciais automaticamente em uma instância do BastionHost.

Sintaxe

{
  "Type": "ALIYUN::BastionHost::PasswordTask",
  "Properties": {
    "InstanceId": String,
    "Name": String,
    "TaskScheduleType": String,
    "Comment": String,
    "CredentialType": String,
    "KeyPairGenerateConfig": String,
    "PasswordGenerateConfig": Map,
    "PasswordGenerateType": String,
    "TaskScheduleConfig": Map
  }
}

Propriedades

Parâmetro

Tipo

Obrigatório

Atualize permitida

Descrição

Restrições

InstanceId

String

Sim

Não

ID da instância do BastionHost.

Nenhuma

Name

String

Sim

Não

Nome da tarefa de senha.

Nenhuma

TaskScheduleType

String

Sim

Não

Tipo de agendamento da tarefa de senha.

Nenhuma

Comment

String

Não

Não

Comentário da tarefa.

Nenhuma

CredentialType

String

Não

Não

Tipo de credencial.

Nenhuma

KeyPairGenerateConfig

String

Não

Não

Configuração de geração de par de chaves.

Nenhuma

PasswordGenerateConfig

Map

Não

Não

Configuração de geração de senha.

Nenhuma

PasswordGenerateType

String

Não

Não

Tipo de geração de senha.

Nenhuma

TaskScheduleConfig

Map

Não

Não

Configuração de agendamento da tarefa.

Nenhuma

Valor de retorno

Use o ID lógico deste recurso na função intrínseca Fn::GetAtt para obter o seguinte atributo:

TaskId: ID da tarefa de senha.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  TaskScheduleType:
    Type: String
    Description: The schedule type of the password task.
    Required: true
  InstanceId:
    Type: String
    Description: The ID of the BastionHost instance.
    Required: true
  Name:
    Type: String
    Description: The name of the password task.
    Required: true
Resources:
  PasswordTask:
    Type: ALIYUN::BastionHost::PasswordTask
    Properties:
      TaskScheduleType:
        Ref: TaskScheduleType
      InstanceId:
        Ref: InstanceId
      Name:
        Ref: Name
Outputs:
  TaskId:
    Description: The ID of the password task.
    Value:
      Fn::GetAtt:
        - PasswordTask
        - TaskId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "TaskScheduleType": {
      "Type": "String",
      "Description": "The schedule type of the password task.",
      "Required": true
    },
    "InstanceId": {
      "Type": "String",
      "Description": "The ID of the BastionHost instance.",
      "Required": true
    },
    "Name": {
      "Type": "String",
      "Description": "The name of the password task.",
      "Required": true
    }
  },
  "Resources": {
    "PasswordTask": {
      "Type": "ALIYUN::BastionHost::PasswordTask",
      "Properties": {
        "TaskScheduleType": {
          "Ref": "TaskScheduleType"
        },
        "InstanceId": {
          "Ref": "InstanceId"
        },
        "Name": {
          "Ref": "Name"
        }
      }
    }
  },
  "Outputs": {
    "TaskId": {
      "Description": "The ID of the password task.",
      "Value": {
        "Fn::GetAtt": [
          "PasswordTask",
          "TaskId"
        ]
      }
    }
  }
}