Classic CDB-MySQL 서버 목록 조회
    • PDF

    Classic CDB-MySQL 서버 목록 조회

    • PDF

    Article Summary

    Cloud Log Analytics 서비스에서 확인할 수 있는 서버 목록을 조회합니다.

    Classic CDB-MySQL 서버 목록 조회

    Classic Platform에 있는 CDB-MySQL 서버 인스턴스(VM) 리스트를 조회합니다. 페이징 처리가 가능합니다.

    요청 URL

    GET https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/classic/servers/mysql
    

    요청 헤더

    헤더명설명
    x-ncp-apigw-timestamp1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간을 밀리초(Millisecond)로 나타내며
    API Gateway 서버와 시간 차가 5분 이상 나는 경우 유효하지 않은 요청으로 간주
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-apigw-api-keyAPIGW에서 발급받은 키 값
    x-ncp-apigw-api-key:{API Gateway API Key}
    x-ncp-iam-access-key네이버 클라우드 플랫폼 포털에서 발급받은 Access Key ID 값
    x-ncp-iam-access-key:{Account Access Key}
    x-ncp-apigw-signature-v2Access Key ID 값과 Secret Key로 암호화한 서명
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    Content-TypeRequest body content type을 application/json으로 지정
    Content-Type: application/json

    요청 파라미터

    파라미터타입필수 여부설명
    pageNoIntegerN페이지 번호
    ex) 1, 2
    pageSizeIntegerN페이지 사이즈
    ex) 10, 20

    요청 예시

    GET https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/classic/servers/mysql?pageNo=1&pageSize=10
    HOST: cloudloganalytics.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-signature-v2: FJSBB4K3XnaGAvVe0Hzj3/2hfNWvgLHR1rQHW2Et2Rs=
    x-ncp-apigw-timestamp: 1593848345548
    x-ncp-iam-access-key: 11IKBWgQegM4DwiJL4mo
    
    curl -X GET "https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/classic/servers/mysql?pageNo=1&pageSize=10" 
    -H "accept: application/json" 
    -H "x-ncp-iam-access-key: 11IKBWgQegM4DwiJL4mo" 
    -H "x-ncp-apigw-timestamp: 1593849262194" 
    -H "x-ncp-apigw-signature-v2: m/hJOfg92TqzOGyHJ++4vkimGT7un1/4+zLrLTvaVT4=" 
    

    응답 예시

    {
      "code": 0,
      "message": "요청이 정상적으로 처리되었습니다",
      "result": {
        "pageSize": 10,
        "currentPage": 1,
        "totalPage": 1,
        "totalCount": 1,
        "isPaged": true,
        "dbServers": [
          {
            "standbyMasterServerName": "test-cla-002",
            "dbServerName": "test-cla-001",
            "databaseProductCode": "SPSVRDBAAS000001",
            "db_svr_rank": 1,
            "cloudDbServiceName": "test-cla",
            "dataStorageTypeCode": "SSD",
            "dataStorageSize": 10,
            "dataStorageSizeStr": "10GB",
            "dbInstanceNo": 1265426,
            "memorySize": "4GB",
            "dbStatusName": "running",
            "serverInstanceNo": 1265427,
            "dbServerIpAddress": "123.123.123.123",
            "cpuCount": 2,
            "dbServerRoleCode": "M",
            "dbServerType": "2vCPU, 4GB Mem",
            "usedDataStorageSize": 0,
            "uuid": "1265426-test-cla-001",
            "dbStatusNameValue": "운영중",
            "dbStatusNameColor": "green",
            "dbServerRoleValue": "Master",
            "zoneNo": "2",
            "zoneName": "KR-1"
          }
        ]
      }
    }
    

    이 문서가 도움이 되었습니까?

    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.