Docs
api
Cloud PostgreSQL Database(UDB NVMe)
GetUPgSQLInstanceLog

Query Log - GetUPgSQLInstanceLog

Overview

You can query the error logs and full query logs of the DB

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetUPgSQLInstanceLog.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
ZoneIDintAvailability ZoneYes
DBIdstringInstance ClusterIDYes
LogTypestringLog TypeYes
CompanyIDintYes
AccountIDintYes
BeginTimeintStart time, timestamp requiredYes
EndTimeintEnd time, timestamp required, end time must be greater than start timeYes

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
LogstringReturned log informationYes

Example

Request Example

https://api.dezai.com/?Action=GetUPgSQLInstanceLog
&Region=cn-zj
&ProjectId=hjoEHCAh
&ZoneID=666003001
&DBId=hZkoNEiZ
&LogType=sDVQeSdg
&CompanyID=6
&AccountID=6
&BeginTime=9
&EndTime=3

Response Example

{
  "Action": "GetUPgSQLInstanceLogResponse",
  "Log": "qxfLrSZN",
  "RetCode": 0
}