All Products
Search
Document Center

ApsaraDB RDS:DescribeModifyPGHbaConfigLog

Last Updated:Jul 05, 2024

Queries the details about the modifications to the pg_hba.conf file of an ApsaraDB RDS for PostgreSQL instance.

Operation description

Supported database engines

RDS PostgreSQL

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ClientTokenstringNo

A reserved parameter. You do not need to specify this parameter.

1
DBInstanceIdstringYes

The instance ID. You can call the DescribeDBInstances operation to query the instance ID.

pgm-bp1lymyn1v3i****
StartTimestringNo

The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in Coordinated Universal Time (UTC).

2021-11-25T05:00:40Z
EndTimestringNo

The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.

2021-11-25T06:00:40Z
ResourceGroupIdstringNo

The ID of the resource group.

rg-acfmy*****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

DBInstanceIdstring

The instance ID.

pgm-bp1lymyn1v3i****
RequestIdstring

The request ID.

6D797E6B-E157-510C-A27F-6F9E6DA40633
LogItemCountinteger

The number of modification records.

1
HbaLogItemsarray<object>

An array that consists of the modifications to the pg_hba.conf file.

object
ModifyStatusstring

The status of the modification.

  • success: The modification is successful.
  • failed: The modification failed.
  • setting: The modification is being applied.
success
StatusReasonstring

The reason why the modification failed.

null
ModifyTimestring

The time when the pg_hba.conf file was modified. The time is displayed in UTC.

2021-11-25T06:00:40Z
BeforeHbaItemsarray<object>

The configurations of the pg_hba.conf file before modification.

object
Typestring

The connection type.

host
Maskstring

The mask of the IP address.

null
Databasestring

The name of the database.

all
PriorityIdinteger

The priority.

0
Addressstring

The IP address.

0.0.0.0/0
Optionstring

The value of this parameter varies based on the value of the Method parameter.

null
Methodstring

The authentication method.

md5
Userstring

The username of the account.

all
AfterHbaItemsarray<object>

The configurations of the pg_hba.conf file after modification.

object
Typestring

The connection type.

host
Maskstring

The mask of the IP address.

null
Databasestring

The name of the database.

all
PriorityIdinteger

The priority.

0
Addressstring

The IP address.

0.0.0.0/0
Optionstring

The value of this parameter was set based on the value of the Method parameter.

null
Methodstring

The authentication method.

ldap
Userstring

The username of the account.

ldapuser

Examples

Sample success responses

JSONformat

{
  "DBInstanceId": "pgm-bp1lymyn1v3i****",
  "RequestId": "6D797E6B-E157-510C-A27F-6F9E6DA40633",
  "LogItemCount": 1,
  "HbaLogItems": {
    "HbaLogItem": [
      {
        "ModifyStatus": "success",
        "StatusReason": "null",
        "ModifyTime": "2021-11-25T06:00:40Z",
        "BeforeHbaItems": {
          "HbaItem": [
            {
              "Type": "host",
              "Mask": "null",
              "Database": "all",
              "PriorityId": 0,
              "Address": "0.0.0.0/0",
              "Option": "null",
              "Method": "md5",
              "User": "all"
            }
          ]
        },
        "AfterHbaItems": {
          "HbaItem": [
            {
              "Type": "host",
              "Mask": "null",
              "Database": "all",
              "PriorityId": 0,
              "Address": "0.0.0.0/0",
              "Option": "null",
              "Method": "ldap",
              "User": "ldapuser"
            }
          ]
        }
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidStartTime.FormatSpecified start time is not valid.The start time is invalid.
400InvalidEndTime.FormatSpecified end time is not valid.The end time is invalid. Check the end time.
400IncorrectDBInstanceTypeCurrent DB instance type does not support this operation.The operation failed. The RDS instance is not in a ready state.
400InvalidDBInstanceName.NotFoundThe 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 timeSummary of changesOperation
2022-08-04The Error code has changed. The request parameters of the API has changedView Change Details
2022-02-14The Error code has changedView Change Details