Skip to Content

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 Console Yes
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
ZonestringAvailability Zone. See Availability Zone ListYes
LogTypestringLog TypeYes
CompanyIDintCompany IDYes
AccountIDintAccount IDYes
BeginTimeintStart time, timestamp requiredYes
InstanceIDstringInstance Resource IDYes
EndTimeintEnd time, timestamp should be used, end time should be greater than start time
No need to pass when querying in real time.
No

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.sigcalcloud.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 }