getDbServerLogList
    • PDF

    getDbServerLogList

    • PDF

    Article summary

    Available in VPC

    View the list of Cloud DB for MongoDB database server logs.

    Commands

    The command statement is as follows.

    ncloud vmongodb getDbServerLogList [regionCode] [logType] [cloudMongoDbServerInstanceNo] [pageNo] [pageSize] [output]
    

    Parameter

    The following describes the parameters.

    ParameterTypeRequiredDescriptionRestrictions
    regionCodeStringNRegion code
    - regionCode can be obtained through the getRegionList action
    - Default: It selects the first region of the getRegionList search result
    -
    logTypeStringYDatabase server log file type
    - Options: log,audit
    -
    cloudMongoDbServerInstanceNoStringYCloud DB for MongoDB server instance number
    - cloudMongoDbServerInstanceNo can be obtained through the getCloudMongoDbInstanceList action
    -
    pageNoIntegerNPage number of the paged results
    - The results can be paged using pageNo and pageSize
    - Min: 0
    pageSizeIntegerNSize of each page to be displayed when paging
    - The results can be paged using pageNo and pageSize
    - This field must be entered when pageNo is entered
    - Min: 1
    - Max: 1000
    outputStringNFormat type of the response result
    - Options: xml | json
    - Default: json
    -

    Response

    Response data type

    • CloudMongoDbDbServerLogList type
    CloudMongoDbDbServerLogList extends CommonResponseDescription
    private Integer totalRows;Total number of lists searched
    private List<CloudMongoDbDbServerLog> cloudMongoDbDbServerLogList = new ArrayList<>();List of Cloud DB for MongoDB database server logs
    • CloudMongoDbDbServerLog type
    CloudMongoDbDbServerLogDescription
    private String fileName;Database server log file name
    private Long fileSize;Database server log file size
    private Date fileDate;Date and time when database server log file was modified

    Examples

    It describes call and response examples.

    Call examples

    The following is a call example.

    ncloud vmongodb getDbServerLogList --regionCode KR --logType log --cloudMongoDbServerInstanceNo ****891
    

    Response example

    The following is a sample response.

    When the response result format type (output) is JSON

    {
      "getDbServerLogListResponse": {
        "requestId": "d733e677-ad69-4cbe-8351-711d0e0124bc",
        "returnCode": "0",
        "returnMessage": "success",
        "totalRows": "1",
        "cloudMongoDbDbServerLogList": {
          "cloudMongoDbDbServerLog": {
            "fileName": "mongodb.log",
            "fileSize": "194",
            "fileDate": "2021-05-27T18:10:00+0900"
          }
        }
      }
    }
    

    When the response result format type (output) is XML

    <getDbServerLogListResponse>
        <requestId>d733e677-ad69-4cbe-8351-711d0e0124bc</requestId>
        <returnCode>0</returnCode>
        <returnMessage>success</returnMessage>
        <totalRows>1</totalRows>
        <cloudMongoDbDbServerLogList>
            <cloudMongoDbDbServerLog>
                <fileName>mongodb.log</fileName>
                <fileSize>194</fileSize>
                <fileDate>2021-05-27T18:10:00+0900</fileDate>
            </cloudMongoDbDbServerLog>
        </cloudMongoDbDbServerLogList>
    </getDbServerLogListResponse>
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.