You can call the DescribePGHbaConfig operation to query the configuration of the pg_hba.conf file of an ApsaraDB RDS for PostgreSQL instance.
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClientToken | string | No | This parameter is reserved. You do not need to specify this parameter. | 1 |
DBInstanceId | string | Yes | The ID of the instance. You can call the DescribeDBInstances operation to query the ID of instance. | pgm-bp1lymyn1v3i**** |
ResourceGroupId | string | No | The ID of the resource group. | rg-acfmy***** |
Response parameters
Examples
Sample success responses
JSON
format
{
"HbaModifyTime": "2021-11-25T06:00:40Z",
"ModifyStatusReason": "The specified users (testuser) is not exist.",
"RequestId": "A147A124-A147-5CCF-9609-B73C028848DF",
"LastModifyStatus": "success",
"DefaultHbaItems": {
"HbaItem": [
{
"Type": "host",
"Mask": "null",
"Database": "all",
"PriorityId": 0,
"Address": "0.0.0.0/0",
"Option": "null",
"Method": "md5",
"User": "all"
}
]
},
"RunningHbaItems": {
"HbaItem": [
{
"Type": "host",
"Mask": "null",
"Database": "all",
"PriorityId": 3,
"Address": "0.0.0.0/0",
"Option": "null",
"Method": "md5",
"User": "all"
}
]
},
"DBInstanceId": "rm-bp1*****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IncorrectDBInstanceType | Current DB instance type does not support this operation. | The operation failed. The RDS instance is not in a ready state. |
400 | InvalidDBInstanceName.NotFound | The specified DB instance name does not exist. | The instance name does not exist. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
2022-08-04 | The error codes of the API operation change.,The input parameters of the API operation change.,The response structure of the API operation changes. | |||||||||||
| ||||||||||||
2022-02-14 | The error codes of the API operation change. | |||||||||||
|