Consulta contas do PolarDB-X (PolarDB for Xscale).
Sintaxe
{
"Type": "DATASOURCE::PolarDBX::Accounts",
"Properties": {
"DBInstanceId": String,
"AccountType": Integer,
"PolarDBXAccountName": String,
"RefreshOptions": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
DBInstanceId |
String |
Sim |
Sim |
ID da instância PolarDB-X. |
Nenhuma. |
|
AccountType |
Integer |
Não |
Sim |
Tipo da conta. |
Valores válidos:
|
|
PolarDBXAccountName |
String |
Não |
Sim |
Nome da conta. |
Nenhuma. |
|
RefreshOptions |
String |
Não |
Sim |
Política de atualização dos recursos da fonte de dados durante a atualização da pilha. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
PolarDBXAccountNames: nomes das contas.
PolarDBXAccounts: detalhes das contas.
|
Propriedade |
Tipo |
Descrição |
Restrição |
|
PolarDBXAccountNames |
List |
Nomes das contas. |
Nenhuma. |
|
PolarDBXAccounts |
List |
Detalhes das contas. |
Nenhuma. |
|
PolarDBXAccountName |
String |
Nome da conta. |
Nenhuma. |
|
AccountDescription |
String |
Descrição da conta. |
Nenhuma. |
|
DBInstanceId |
String |
ID da instância PolarDB-X. |
Nenhuma. |
|
CreateTime |
String |
Horário de criação da conta. |
Nenhuma. |
|
AccountType |
String |
Tipo da conta. |
Nenhuma. |
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: false
DBInstanceId:
Type: String
Description:
en: The ID of the PolarDB-X 2.0 instance.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::PolarDBX::Accounts
Properties:
PolarDBXAccountName:
Ref: PolarDBXAccountName
DBInstanceId:
Ref: DBInstanceId
Outputs:
PolarDBXAccountNames:
Description: The list of PolarDB-X 2.0 account names.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PolarDBXAccountNames
PolarDBXAccounts:
Description: The list of PolarDB-X 2.0 accounts.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PolarDBXAccounts
{
"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": false
},
"DBInstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the PolarDB-X 2.0 instance."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::PolarDBX::Accounts",
"Properties": {
"PolarDBXAccountName": {
"Ref": "PolarDBXAccountName"
},
"DBInstanceId": {
"Ref": "DBInstanceId"
}
}
}
},
"Outputs": {
"PolarDBXAccountNames": {
"Description": "The list of PolarDB-X 2.0 account names.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PolarDBXAccountNames"
]
}
},
"PolarDBXAccounts": {
"Description": "The list of PolarDB-X 2.0 accounts.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PolarDBXAccounts"
]
}
}
}
}