すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::CloudPhone::KeyPair

最終更新日:Mar 17, 2025

ALIYUN::CloudPhone::KeyPair は、サードパーティツールによって生成された Rivest-Shamir-Adleman(RSA)暗号化キーペアの公開鍵をインポートするために使用されます。

構文

{
  "Type": "ALIYUN::CloudPhone::KeyPair",
  "Properties": {
    "KeyPairName": String,
    "PublicKeyBody": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

KeyPairName

String

はい

いいえ

キーペアの名前。

名前はグローバルに一意である必要があります。 2 ~ 128 文字である必要があります。文字で始まり、http:// または https:// で始めることはできません。文字、数字、コロン(:)、アンダースコア(_)、ハイフン(-)を含めることができます。

PublicKeyBody

String

はい

いいえ

キーペアの公開鍵。

なし。

戻り値

Fn::GetAtt

  • KeyPairFingerPrint: キーペアのフィンガープリント。メッセージダイジェスト アルゴリズム 5(MD5)は、Request for Comments(RFC)4716 で定義されている公開鍵フィンガープリント形式に基づいて使用されます。

  • KeyPairName: キーペアの名前。

  • CreateTime: キーペアが生成された時刻。

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  KeyPairName:
    Description:
      en: The name of the key pair. The name must be globally unique. The name must
        be 2 to 128 characters in length. The name must start with a letter but cannot
        start with http:// or https://. The name can contain letters, digits, colons
        (:), underscores (_), and hyphens (-).
    Required: true
    Type: String
  PublicKeyBody:
    Description:
      en: The public key content of the key pair.
    Required: true
    Type: String
Resources:
  ExtensionResource:
    Properties:
      KeyPairName:
        Ref: KeyPairName
      PublicKeyBody:
        Ref: PublicKeyBody
    Type: ALIYUN::CloudPhone::KeyPair
Outputs:
  CreateTime:
    Description: リソースの作成時間。
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - CreateTime
  KeyPairFingerPrint:
    Description: キーペアのフィンガープリント。メッセージダイジェスト アルゴリズム 5(MD5)は、RFC 4716 で定義されている公開鍵フィンガープリント形式に基づいて使用されます。
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - KeyPairFingerPrint
  KeyPairName:
    Description: キーペアの名前。
    Value:
      Fn::GetAtt:
      - ExtensionResource
      - KeyPairName               

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "KeyPairName": {
      "Type": "String",
      "Description": {
        "en": "The name of the key pair. The name must be globally unique. The name must be 2 to 128 characters in length. The name must start with a letter but cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-)."
      },
      "Required": true
    },
    "PublicKeyBody": {
      "Type": "String",
      "Description": {
        "en": "The public key content of the key pair."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::CloudPhone::KeyPair",
      "Properties": {
        "KeyPairName": {
          "Ref": "KeyPairName"
        },
        "PublicKeyBody": {
          "Ref": "PublicKeyBody"
        }
      }
    }
  },
  "Outputs": {
    "KeyPairFingerPrint": {
      "Description": "キーペアのフィンガープリント。メッセージダイジェスト アルゴリズム 5(MD5)は、RFC 4716 で定義されている公開鍵フィンガープリント形式に基づいて使用されます。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "KeyPairFingerPrint"
        ]
      }
    },
    "KeyPairName": {
      "Description": "キーペアの名前。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "KeyPairName"
        ]
      }
    },
    "CreateTime": {
      "Description": "リソースの作成時間。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      }
    }
  }
}