Consulta informações sobre uma conta do PolarDB for Xscale (PolarDB-X).
Sintaxe
{
"Type": "DATASOURCE::PolarDBX::Account",
"Properties": {
"DBInstanceId": String,
"PolarDBXAccountName": String,
"RefreshOptions": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
DBInstanceId |
String |
Sim |
Sim |
ID da instância do PolarDB-X. |
Nenhuma. |
|
PolarDBXAccountName |
String |
Sim |
Sim |
Nome da conta do PolarDB-X. |
Nenhuma. |
|
RefreshOptions |
String |
Não |
Sim |
Política de atualização dos recursos da fonte de dados ao atualizar a pilha. Valor padrão: Never. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
PolarDBXAccountName: nome da conta do PolarDB-X.
AccountDescription: descrição da conta do PolarDB-X.
DBInstanceId: ID da instância do PolarDB-X.
CreateTime: hora de criação da conta.
AccountType: tipo da conta do PolarDB-X.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
PolarDBXAccountName:
Type: String
Description:
en: The username of the account that you want to query. If you want to query information about a specific account, you must specify this parameter.
Required: true
DBInstanceId:
Type: String
Description:
en: The ID of the PolarDB-X 2.0 instance.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::PolarDBX::Account
Properties:
PolarDBXAccountName:
Ref: PolarDBXAccountName
DBInstanceId:
Ref: DBInstanceId
Outputs:
PolarDBXAccountName:
Description: The username of the account.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PolarDBXAccountName
AccountDescription:
Description: The description of the account.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AccountDescription
DBInstanceId:
Description: The ID of the PolarDB-X 2.0 instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DBInstanceId
CreateTime:
Description: The point in time when the account was created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
AccountType:
Description: The type of the account.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AccountType
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"PolarDBXAccountName": {
"Type": "String",
"Description": {
"en": "The username of the account that you want to query. If you want to query information about a specific account, you must specify this parameter."
},
"Required": true
},
"DBInstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the PolarDB-X 2.0 instance."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::PolarDBX::Account",
"Properties": {
"PolarDBXAccountName": {
"Ref": "PolarDBXAccountName"
},
"DBInstanceId": {
"Ref": "DBInstanceId"
}
}
}
},
"Outputs": {
"PolarDBXAccountName": {
"Description": "The username of the account.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PolarDBXAccountName"
]
}
},
"AccountDescription": {
"Description": "The description of the account.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AccountDescription"
]
}
},
"DBInstanceId": {
"Description": "The ID of the PolarDB-X 2.0 instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DBInstanceId"
]
}
},
"CreateTime": {
"Description": "The point in time when the account was created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"AccountType": {
"Description": "The type of the account.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AccountType"
]
}
}
}
}