ALIYUN::RDS::ADInfo類型用于配置AD域服務。
語法
{
"Type": "ALIYUN::RDS::ADInfo",
"Properties": {
"ADServerIpAddress": String,
"ADDNS": String,
"DBInstanceId": String,
"ADPassword": String,
"ADAccountName": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
---|---|---|---|---|---|
ADServerIpAddress | String | 是 | 否 | AD服務器所在IP地址。 | 必須與RDS處于同一專有網絡。 |
ADDNS | String | 是 | 否 | 域名。 | 無 |
DBInstanceId | String | 是 | 否 | RDS實例ID。 | 無 |
ADPassword | String | 是 | 否 | 域密碼。 | 無 |
ADAccountName | String | 是 | 否 | 域賬號。 | 無 |
返回值
Fn::GetAtt
- ADDNS:域名。
- DBInstanceId:RDS實例ID。
示例
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ADServerIpAddress": {
"Type": "String",
"Description": "The IP address of the AD server, it must be in the same VPC as the RDS."
},
"ADDNS": {
"Type": "String",
"Description": "Active directory domain name."
},
"DBInstanceId": {
"Type": "String",
"Description": "The ID of the instance."
},
"ADPassword": {
"Type": "String",
"Description": "Domain password. "
},
"ADAccountName": {
"Type": "String",
"Description": "Domain account name. "
}
},
"Resources": {
"AdInfo": {
"Type": "ALIYUN::RDS::ADInfo",
"Properties": {
"ADServerIpAddress": {
"Ref": "ADServerIpAddress"
},
"ADDNS": {
"Ref": "ADDNS"
},
"DBInstanceId": {
"Ref": "DBInstanceId"
},
"ADPassword": {
"Ref": "ADPassword"
},
"ADAccountName": {
"Ref": "ADAccountName"
}
}
}
},
"Outputs": {
"ADDNS": {
"Description": "Active directory domain name.",
"Value": {
"Fn::GetAtt": [
"AdInfo",
"ADDNS"
]
}
},
"DBInstanceId": {
"Description": "The ID of the instance.",
"Value": {
"Fn::GetAtt": [
"AdInfo",
"DBInstanceId"
]
}
}
}
}
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ADServerIpAddress:
Type: String
Description: 'The IP address of the AD server, it must be in the same VPC as the RDS.'
ADDNS:
Type: String
Description: Active directory domain name.
DBInstanceId:
Type: String
Description: The ID of the instance.
ADPassword:
Type: String
Description: 'Domain password. '
ADAccountName:
Type: String
Description: 'Domain account name. '
Resources:
AdInfo:
Type: 'ALIYUN::RDS::ADInfo'
Properties:
ADServerIpAddress:
Ref: ADServerIpAddress
ADDNS:
Ref: ADDNS
DBInstanceId:
Ref: DBInstanceId
ADPassword:
Ref: ADPassword
ADAccountName:
Ref: ADAccountName
Outputs:
ADDNS:
Description: Active directory domain name.
Value:
'Fn::GetAtt':
- AdInfo
- ADDNS
DBInstanceId:
Description: The ID of the instance.
Value:
'Fn::GetAtt':
- AdInfo
- DBInstanceId