MENU
      getCloudMysqlEventHistoryList

        getCloudMysqlEventHistoryList


        Article summary

        Available in VPC

        Get the event history list for a Cloud DB for MySQL instance.

        Request

        This section describes the request format. The method and URI are as follows:

        MethodURI
        GET, POST/getCloudMysqlEventHistoryList

        Request headers

        For information about the headers common to all Cloud DB for MySQL (VPC) APIs, see Cloud DB for MySQL (VPC) request headers.

        Request parameters

        The following describes the parameters.

        FieldTypeRequiredDescription
        regionCodeStringOptionalRegion code
        • Region code of the Cloud DB for MySQL server instance to view
        • Check through getRegionList
        • First Region of the getRegionList query result (default)
        cloudMysqlServerNameStringOptionalFilter by Cloud DB for MySQL server name
        startDateStringRequiredQuery start date
        • Query start date format: yyyy-MM-dd HH:mm:ss
        • <e.g.> 2024-01-01 00:00:00
        endDateStringRequiredQuery end date
        • Query end date format: yyyy-MM-dd HH:mm:ss
        • <e.g.> 2024-12-31 23:59:59
        pageNoIntegerOptionalPage numbers in paged results
        • Page the result values using pageNo and pageSize
        • 0 (minimum)
        • 0 (default)
        pageSizeIntegerOptionalNumber of results to display on a page
        • Page the result values using pageNo and pageSize
        • 1 (minimum)
        • 20 (default)
        i
        responseFormatTypeStringOptionalFormat of the response result
        • xml (default) | json

        Request example

        The request example is as follows:

        curl --location --request GET 'https://ncloud.apigw.ntruss.com/vmysql/v2/getCloudMysqlEventHistoryList
        ?regionCode=KR
        &cloudMysqlServerName=abcd
        &startDate=2024-08-13 17:00:00
        &endDate=2024-08-13 18:00:00
        &pageNo=0
        &pageSize=10
        --header 'x-ncp-apigw-timestamp: {Timestamp}'
        --header 'x-ncp-iam-access-key: {Access Key}'
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
        Curl

        Response

        This section describes the response format.

        Response body

        See CloudMysqlEventHistoryList for the response body.

        Response status codes

        For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.

        Response example

        The response example is as follows:

        • If responseFormatType=json
        {
            "getCloudMysqlEventHistoryListResponse": {
                "totalRows": 2,
                "cloudMysqlEventHistoryList": [
                    {
                        "cloudMysqlInstanceNo": "****890",
                        "cloudMysqlServerInstanceNo": "****891",
                        "cloudMysqlServerName": "abcd-001-****",
                        "eventTime": "2024-08-13 17:10:00",
                        "eventType": "DB Server",
                        "eventName": "DB",
                        "eventContent": "DB start",
                        "clientIp": "10.x.x.x"
                    },
                    {
                        "cloudMysqlInstanceNo": "****890",
                        "cloudMysqlServerInstanceNo": "****891",
                        "cloudMysqlServerName": "abcd-001-****",
                        "eventTime": "2024-08-13 17:20:00",
                        "eventType": "DB Server",
                        "eventName": "DB",
                        "eventContent": "Change Spec MySQL Completed",
                        "clientIp": "10.x.x.x"
                    }
                ],
                "requestId": "36cc2f85-****-****-****-5d2511df4e45",
                "returnCode": "0",
                "returnMessage": "success"
            }
        }
        JSON
        • If responseFormatType=xml (default)
        <?xml version="1.0" encoding="UTF-8"?>
        <cloudMysqlEventHistoryList>
            <requestId>36cc2f85-****-****-****-5d2511df4e45</requestId>
            <returnCode>0</returnCode>
            <returnMessage>success</returnMessage>
            <totalRows>2</totalRows>
            <cloudMysqlEventHistoryList>
                <CloudMysqlEventHistory>
                    <cloudMysqlInstanceNo>****890</cloudMysqlInstanceNo>
                    <cloudMysqlServerInstanceNo>****891</cloudMysqlServerInstanceNo>
                    <cloudMysqlServerName>abcd-001-****</cloudMysqlServerName>
                    <eventTime>2024-08-13 17:10:00</eventTime>
                    <eventType>DB Server</eventType>
                    <eventName>DB</eventName>
                    <eventContent>DB start</eventContent>
                    <clientIp>10.x.x.x</clientIp>
                </CloudMysqlEventHistory>
                <CloudMysqlEventHistory>
                    <cloudMysqlInstanceNo>****890</cloudMysqlInstanceNo>
                    <cloudMysqlServerInstanceNo>****891</cloudMysqlServerInstanceNo>
                    <cloudMysqlServerName>abcd-001-****</cloudMysqlServerName>
                    <eventTime>2024-08-13 17:10:00</eventTime>
                    <eventType>DB Server</eventType>
                    <eventName>DB</eventName>
                    <eventContent>Change Spec MySQL Completed</eventContent>
                    <clientIp>10.x.x.x</clientIp>
                </CloudMysqlEventHistory>
            </cloudMysqlEventHistoryList>
        </cloudMysqlEventHistoryList>
        XML

        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.