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 を DescribeRegions オペレーションを呼び出して、最新のリージョンリストをクエリできます。 |
AutoRenew | String | いいえ | いいえ | 自動更新を有効にするかどうかを指定します。 | 有効な値:
|
HostName | String | いいえ | はい | ホスト名です。 | ホスト名は 1 ~ 64 文字で、文字、数字、アンダースコア (_)、ハイフン (-) を使用できます。文字で始める必要があります。 |
ImageCategory | String | いいえ | いいえ | ホストのイメージタイプです。 | 有効な値:
|
OsPassword | String | いいえ | いいえ | ホストのパスワードです。 | Proprietary MyBase 専用クラスターにホストを作成する場合にのみ、ホストのパスワードを指定できます。 パスワードは 8 ~ 30 文字である必要があります。大文字、小文字、数字、特殊文字のうち少なくとも 3 種類を含める必要があります。サポートされている特殊文字は次のとおりです: |
Period | String | いいえ | いいえ | ホストのサブスクリプション期間の単位です。 | 有効な値:
|
Tags | List | いいえ | はい | タグです。 | 詳細については、「タグのプロパティ」をご参照ください。 |
UsedTime | String | いいえ | いいえ | サブスクリプション期間です。 |
|
タグの構文
"Tags": [
{
"TagKey": String,
"TagValue": String
}
]タグのプロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
TagKey | String | いいえ | いいえ | タグキーです。 | タグキーは 1 ~ 128 文字で、 |
TagValue | String | いいえ | いいえ | タグ値です。 | タグ値は最大 128 文字で、 |
戻り値
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"
]
}
}
}
}