Docs
api
Cloud Database(UDB)
ClearUDBLog

Clear Log - ClearUDBLog

Overview

Clear the log of the UDB instance

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ClearUDBLog.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
ZonestringAvailability Zone. See Availability Zone ListNo
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
DBIdstringThe id of the DB instance, this value can be obtained through DescribeUDBInstanceYes
LogTypeintLog type, 10-error (not supported yet), 20-slow (not supported yet), 30-binlogYes
BeforeTimeintDelete logs before the deletion time point (at least the previous day), using timestamp (seconds), default to the day before the current time point.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

Example

Request Example

https://api.dezai.com/?Action=ClearUDBLog
&Region=cn-bj2
&DBId=udb-xxxxx
&LogType=30    

Response Example

{
  "Action": "ClearUDBLogResponse",
  "RetCode": 0
}