Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::CloudPhone::KeyPair

Última atualização: Jun 27, 2026

Consulta informações sobre um par de chaves do CloudPhone.

Sintaxe

{
  "Type": "DATASOURCE::CloudPhone::KeyPair",
  "Properties": {
    "KeyPairName": String,
    "RefreshOptions": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

KeyPairName

String

Sim

Sim

Nome do par de chaves.

Nenhuma.

RefreshOptions

String

Não

Sim

Estratégia de atualização dos recursos da fonte de dados ao atualizar a pilha.

Valores válidos:

  • Never (padrão): não atualize os recursos da fonte de dados ao atualizar a pilha.

  • Always: atualize os recursos da fonte de dados ao atualizar a pilha.

Valores de retorno

Fn::GetAtt

  • KeyPairFingerPrint: impressão digital do par de chaves.

  • KeyPairName: nome do par de chaves.

  • CreateTime: hora de criação do par de chaves.

Exemplos

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  KeyPairName:
    Description:
      en: The Key Name.
    Required: true
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      KeyPairName:
        Ref: KeyPairName
    Type: DATASOURCE::CloudPhone::KeyPair
Outputs:
  CreateTime:
    Description: The creation time of the resource.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - CreateTime
  KeyPairFingerPrint:
    Description: The Private Key of the Fingerprint.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - KeyPairFingerPrint
  KeyPairName:
    Description: The Key Name.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - KeyPairName
                        

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "KeyPairName": {
      "Type": "String",
      "Description": {
        "en": "The Key Name."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::CloudPhone::KeyPair",
      "Properties": {
        "KeyPairName": {
          "Ref": "KeyPairName"
        }
      }
    }
  },
  "Outputs": {
    "KeyPairFingerPrint": {
      "Description": "The Private Key of the Fingerprint.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "KeyPairFingerPrint"
        ]
      }
    },
    "KeyPairName": {
      "Description": "The Key Name.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "KeyPairName"
        ]
      }
    },
    "CreateTime": {
      "Description": "The creation time of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    }
  }
}