Configura o Active Directory Domain Services (AD DS) em uma instância do ApsaraDB RDS.
Sintaxe
{
"Type": "ALIYUN::RDS::ADInfo",
"Properties": {
"ADServerIpAddress": String,
"ADDNS": String,
"DBInstanceId": String,
"ADPassword": String,
"ADAccountName": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
ADServerIpAddress |
String |
Sim |
Não |
Endereço IP do servidor AD. |
O servidor AD e a instância do ApsaraDB RDS devem pertencer à mesma VPC. |
|
ADDNS |
String |
Sim |
Não |
Nome de domínio do AD. |
Nenhuma |
|
DBInstanceId |
String |
Sim |
Não |
ID da instância do ApsaraDB RDS. |
Nenhuma |
|
ADPassword |
String |
Sim |
Não |
Senha da conta de domínio do AD. |
Nenhuma |
|
ADAccountName |
String |
Sim |
Não |
Conta do domínio do AD. |
Nenhuma |
Parâmetros de resposta
Fn::GetAtt
ADDNS: nome de domínio do AD.
DBInstanceId: ID da instância do ApsaraDB RDS.
Exemplos
Formato 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"
]
}
}
}
}
Formato 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