All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::CDDC::DedicatedHostAccount

Last Updated:Apr 09, 2026

The ALIYUN::CDDC::DedicatedHostAccount resource creates a dedicated host account.

Syntax

{
  "Type": "ALIYUN::CDDC::DedicatedHostAccount",
  "Properties": {
    "AccountPassword": String,
    "AccountName": String,
    "DedicatedHostId": String,
    "AccountType": String,
    "BastionInstanceId": String
  }
}

Properties

Parameter

Type

Required

Update allowed

Description

Constraint

AccountName

String

Yes

No

The name of the account.

Length: 2 to 16 characters.

AccountPassword

String

Yes

No

The password for the account.

None

DedicatedHostId

String

Yes

No

The ID of the dedicated host.

None

AccountType

String

No

No

The type of the account.

Valid values: Normal, Admin.

BastionInstanceId

String

No

No

The ID of the bastion instance.

None

Return values

Fn::GetAtt

No attributes are returned.

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DedicatedHostId:
    Type: String
    Description: The ID of the dedicated host.
    Required: true
  AccountName:
    Type: String
    Description: The name of the account.
    Required: true
    AllowedPattern: ^[a-z][a-z0-9_]{0,14}[a-z0-9]$
    MinLength: 2
    MaxLength: 16
  AccountPassword:
    Type: String
    Description: The password for the account.
    Required: true
Resources:
  DedicatedHostAccount:
    Type: ALIYUN::CDDC::DedicatedHostAccount
    Properties:
      DedicatedHostId:
        Ref: DedicatedHostId
      AccountName:
        Ref: AccountName
      AccountPassword:
        Ref: AccountPassword
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DedicatedHostId": {
      "Type": "String",
      "Description": "The ID of the dedicated host.",
      "Required": true
    },
    "AccountName": {
      "Type": "String",
      "Description": "The name of the account.",
      "Required": true,
      "AllowedPattern": "^[a-z][a-z0-9_]{0,14}[a-z0-9]$",
      "MinLength": 2,
      "MaxLength": 16
    },
    "AccountPassword": {
      "Type": "String",
      "Description": "The password for the account.",
      "Required": true
    }
  },
  "Resources": {
    "DedicatedHostAccount": {
      "Type": "ALIYUN::CDDC::DedicatedHostAccount",
      "Properties": {
        "DedicatedHostId": {
          "Ref": "DedicatedHostId"
        },
        "AccountName": {
          "Ref": "AccountName"
        },
        "AccountPassword": {
          "Ref": "AccountPassword"
        }
      }
    }
  }
}