Configure les services de domaine Active Directory (AD DS) pour une instance ApsaraDB RDS.
Syntaxe
{
"Type": "ALIYUN::RDS::ADInfo",
"Properties": {
"ADServerIpAddress": String,
"ADDNS": String,
"DBInstanceId": String,
"ADPassword": String,
"ADAccountName": String
}
}
Propriétés
| Propriété | Type | Obligatoire | Modifiable | Description | Contrainte |
| ADServerIpAddress | String | Oui | Non | Adresse IP du serveur AD. | Le serveur AD et l'instance ApsaraDB RDS doivent se trouver dans le même VPC. |
| ADDNS | String | Oui | Non | Nom de domaine AD. | Aucune |
| DBInstanceId | String | Oui | Non | ID de l'instance ApsaraDB RDS. | Aucune |
| ADPassword | String | Oui | Non | Mot de passe du compte de domaine AD. | Aucune |
| ADAccountName | String | Oui | Non | Nom du compte de domaine AD. | Aucune |
Paramètres de réponse
Fn::GetAtt
ADDNS : nom de domaine AD.
DBInstanceId : ID de l'instance ApsaraDB RDS.
Exemples
Format 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"
]
}
}
}
}
Format 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