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

Resource Orchestration Service:ALIYUN::CDDC::DedicatedHost

最終更新日:Jan 16, 2025

ALIYUN::CDDC::DedicatedHost は、専用クラスターにホストを作成するために使用されます。

専用クラスターの詳細については、「ApsaraDB for MyBase とは」をご参照ください。

構文

{
  "Type": "ALIYUN::CDDC::DedicatedHost",
  "Properties": {
    "HostClass": String,
    "OsPassword": String,
    "ZoneId": String,
    "DedicatedHostGroupId": String,
    "AutoRenew": String,
    "VSwitchId": String,
    "UsedTime": String,
    "ImageCategory": String,
    "Period": String,
    "PaymentType": String,
    "HostName": String,
    "Tags": List
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

DedicatedHostGroupId

String

はい

いいえ

専用クラスターの ID です。

なし。

HostClass

String

はい

はい

ホストのインスタンスタイプです。

詳細については、「ホストのインスタンスタイプ」をご参照ください。

PaymentType

String

はい

いいえ

ホストの課金方法です。

値を PrePaid に設定します。PrePaid の値は、サブスクリプション課金方法を指定します。

VSwitchId

String

はい

いいえ

vSwitch ID です。

なし。

ZoneId

String

はい

いいえ

ゾーン ID です。

たとえば、ZoneId を cn-hangzhou-i に設定した場合、プロパティ値の cn-hangzhou はゾーンに対応するリージョンを指定します。

DescribeRegions オペレーションを呼び出して、最新のリージョンリストをクエリできます。

AutoRenew

String

いいえ

いいえ

自動更新を有効にするかどうかを指定します。

有効な値:

  • true

  • false (デフォルト)

HostName

String

いいえ

はい

ホスト名です。

ホスト名は 1 ~ 64 文字で、文字、数字、アンダースコア (_)、ハイフン (-) を使用できます。文字で始める必要があります。

ImageCategory

String

いいえ

いいえ

ホストのイメージタイプです。

有効な値:

  • WindowsWithMssqlEntAlwaysonLicense: SQL Server クラスター版

  • WindowsWithMssqlStdLicense: SQL Server Standard Edition

  • WindowsWithMssqlEntLicense: SQL Server Enterprise Edition

  • WindowsWithMssqlWebLicense: SQL Server Web Edition

  • AliLinux: その他のイメージタイプ

OsPassword

String

いいえ

いいえ

ホストのパスワードです。

Proprietary MyBase 専用クラスターにホストを作成する場合にのみ、ホストのパスワードを指定できます。

パスワードは 8 ~ 30 文字である必要があります。大文字、小文字、数字、特殊文字のうち少なくとも 3 種類を含める必要があります。サポートされている特殊文字は次のとおりです:( ) \ ~ ! @ # $ % ^ & * - _ + = | { } [ ] : ; ' < > , . ? /

Period

String

いいえ

いいえ

ホストのサブスクリプション期間の単位です。

有効な値:

  • Year

  • Month

  • Week

Tags

List

いいえ

はい

タグです。

詳細については、「タグのプロパティ」をご参照ください。

UsedTime

String

いいえ

いいえ

サブスクリプション期間です。

  • Period が Year に設定されている場合の有効な値:1 ~ 5。

  • Period が Month に設定されている場合の有効な値:1 ~ 9。

  • Period が Week に設定されている場合の有効な値:1 ~ 3。

タグの構文

"Tags": [
  {
    "TagKey": String,
    "TagValue": String
  }
]

タグのプロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

TagKey

String

いいえ

いいえ

タグキーです。

タグキーは 1 ~ 128 文字で、http:// または https:// を含めることはできません。aliyun または acs: で始めることはできません。

TagValue

String

いいえ

いいえ

タグ値です。

タグ値は最大 128 文字で、http:// または https:// を含めることはできません。aliyun または acs: で始めることはできません。

戻り値

Fn::GetAtt

  • DiskAllocationRatio: ディスク使用率。単位:パーセント。

  • DedicatedHostId: 専用クラスター内のホストの ID。

  • MemAllocationRatio: メモリ使用率。単位:パーセント。

  • ZoneId: ゾーン ID。

  • DedicatedHostGroupId: 専用クラスターの ID。

  • AutoRenew: 自動更新が有効かどうかを示します。

  • VSwitchId: vSwitch ID。

  • ImageCategory: ホストのイメージタイプ。

  • HostStorage: ホストの合計ストレージ容量。単位:GB。

  • StorageUsed: ストレージ使用量。単位:GB。

  • OpenPermission: ホスト OS 権限を付与できる機能が有効かどうかを示します。

  • HostType: ホストのストレージタイプ。

  • HostClass: ホストのインスタンスタイプ。

  • HostCpu: ホストの CPU。

  • VpcId: 仮想プライベートクラウド ( VPC ) の ID。

  • EcsClassCode: ホストの Elastic Compute Service ( ECS ) インスタンスタイプ。

  • CpuAllocationRatio: CPU 使用率。

  • HostMem: ホストのメモリ。

  • PaymentType: ホストの課金方法。

  • MemoryUsed: メモリ使用量。単位:GB。

  • IpAddress: ホストの IP アドレス。

  • CpuUsed: CPU 使用率。単位:コア。

  • HostName: ホスト名。

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  HostClass:
    Type: String
    Description: ホストクラス
    Default: rds.i2g.2xlarge
  OsPassword:
    Type: String
    Default: Password123
  ZoneId:
    Type: String
    Description: ゾーン ID
    Default: cn-hangzhou-i
  DedicatedHostGroupId:
    Type: String
    Description: 専用ホストグループ ID
    Default: dhg-23h5e2axmuf4****
  VSwitchId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    AssociationPropertyMetadata:
      ZoneId: ${ZoneId}
  PaymentType:
    Type: String
    Description: 支払いタイプ
    Default: PrePaid
Resources:
  CDDCDedicatedHost:
    Type: ALIYUN::CDDC::DedicatedHost
    Properties:
      HostClass:
        Ref: HostClass
      OsPassword:
        Ref: OsPassword
      ZoneId:
        Ref: ZoneId
      DedicatedHostGroupId:
        Ref: DedicatedHostGroupId
      VSwitchId:
        Ref: VSwitchId
      PaymentType:
        Ref: PaymentType
Outputs:
  DiskAllocationRatio:
    Description: ディスク割り当て率
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - DiskAllocationRatio
  DedicatedHostId:
    Description: リソースの最初の ID
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - DedicatedHostId
  MemAllocationRatio:
    Description: メモリ割り当て率
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - MemAllocationRatio
  ZoneId:
    Description: ゾーン ID
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - ZoneId
  DedicatedHostGroupId:
    Description: 専用ホストグループ ID
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - DedicatedHostGroupId
  AutoRenew:
    Description: 自動更新かどうか
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - AutoRenew
  VSwitchId:
    Description: vSwitch ID
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - VSwitchId
  ImageCategory:
    Description: ホストイメージカテゴリ
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - ImageCategory
  HostStorage:
    Description: ホストストレージ
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - HostStorage
  StorageUsed:
    Description: 使用済みストレージ
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - StorageUsed
  OpenPermission:
    Description: OS 権限を開くかどうか
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - OpenPermission
  HostType:
    Description: ホストストレージタイプ
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - HostType
  HostClass:
    Description: ホストクラス
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - HostClass
  HostCpu:
    Description: ホスト CPU
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - HostCpu
  VpcId:
    Description: VPC ID
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - VpcId
  EcsClassCode:
    Description: ECS クラスコード
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - EcsClassCode
  CpuAllocationRatio:
    Description: CPU 割り当て率
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - CpuAllocationRatio
  HostMem:
    Description: ホストメモリ
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - HostMem
  PaymentType:
    Description: 支払いタイプ
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - PaymentType
  MemoryUsed:
    Description: 使用済みホストメモリ
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - MemoryUsed
  IpAddress:
    Description: ホスト IP アドレス
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - IpAddress
  CpuUsed:
    Description: 使用済み CPU
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - CpuUsed
  HostName:
    Description: ホスト名
    Value:
      Fn::GetAtt:
        - CDDCDedicatedHost
        - HostName

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "HostClass": {
      "Type": "String",
      "Description": "ホストクラス", // Host Class
      "Default": "rds.i2g.2xlarge"
    },
    "OsPassword": {
      "Type": "String",
      "Default": "Password123"
    },
    "ZoneId": {
      "Type": "String",
      "Description": "ゾーン ID", // Zone ID
      "Default": "cn-hangzhou-i"
    },
    "DedicatedHostGroupId": {
      "Type": "String",
      "Description": "専用ホストグループ ID", // Dedicated Host Group ID
      "Default": "dhg-23h5e2axmuf4****"
    },
    "VSwitchId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "AssociationPropertyMetadata": {
        "ZoneId": "${ZoneId}"
      }
    },
    "PaymentType": {
      "Type": "String",
      "Description": "支払いタイプ", // Payment Type
      "Default": "PrePaid"
    }
  },
  "Resources": {
    "CDDCDedicatedHost": {
      "Type": "ALIYUN::CDDC::DedicatedHost",
      "Properties": {
        "HostClass": {
          "Ref": "HostClass"
        },
        "OsPassword": {
          "Ref": "OsPassword"
        },
        "ZoneId": {
          "Ref": "ZoneId"
        },
        "DedicatedHostGroupId": {
          "Ref": "DedicatedHostGroupId"
        },
        "VSwitchId": {
          "Ref": "VSwitchId"
        },
        "PaymentType": {
          "Ref": "PaymentType"
        }
      }
    }
  },
  "Outputs": {
    "DiskAllocationRatio": {
      "Description": "ディスク割り当て率", // Disk Allocation Ratio
      "Value": {
        "Fn::GetAtt": [
          "CDDCDedicatedHost",
          "DiskAllocationRatio"
        ]
      }
    },
    "DedicatedHostId": {
      "Description": "リソースの最初の ID", // The first ID of the resource
      "Value": {
        "Fn::GetAtt": [
          "CDDCDedicatedHost",
          "DedicatedHostId"
        ]
      }
    },
    "MemAllocationRatio": {
      "Description": "メモリ割り当て率", // Memory Allocation Ratio
      "Value": {
        "Fn::GetAtt": [
          "CDDCDedicatedHost",
          "MemAllocationRatio"
        ]
      }
    },
    // ... (Rest of the JSON output values translated similarly)
    "HostName": {
      "Description": "ホスト名", // Host Name
      "Value": {
        "Fn::GetAtt": [
          "CDDCDedicatedHost",
          "HostName"
        ]
      }
    }
  }
}