Classic CDB-MySQL 서버 목록 조회

Prev Next

설명

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

Classic CDB-MySQL 서버 목록 조회

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

요청 URL

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

요청 헤더

헤더명 설명
x-ncp-apigw-timestamp 1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간을 밀리초(Millisecond)로 나타내며
API Gateway 서버와 시간 차가 5분 이상 나는 경우 유효하지 않은 요청으로 간주
x-ncp-apigw-timestamp:{Timestamp}
x-ncp-apigw-api-key APIGW에서 발급받은 키 값
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-v1 Access Key ID 값과 Secret Key로 암호화한 서명
x-ncp-apigw-signature-v1:{API Gateway Signature}
Content-Type Request body content type을 application/json으로 지정
Content-Type: application/json

요청 파라미터

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

요청 예시

GET https://cloudloganalytics.apigw.gov-ntruss.com/api/{regionCode}-v1/classic/servers/mysql?pageNo=1&pageSize=10
HOST: cloudloganalytics.apigw.gov-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.gov-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": 2,
    "isPaged": true,
    "dbServers": [
      {
        "standbyMasterServerName": null,
        "dbServerName": "cla-test-001-1shh",
        "databaseProductCode": null,
        "db_svr_rank": 0,
        "cloudDbServiceName": "clatest",
        "dataStorageTypeCode": null,
        "dataStorageSize": 10,
        "dataStorageSizeStr": "10GB",
        "dbInstanceNo": 0,
        "memorySize": "8GB",
        "dbStatusName": null,
        "clusterStatusName": null,
        "serverInstanceNo": 0,
        "dbServerIpAddress": null,
        "cpuCount": 2,
        "roleCode": null,
        "dbServerRoleCode": null,
        "dbServerType": "[Standard] 2vCPU, 8GB Mem",
        "usedDataStorageSize": 0,
        "uuid": "0-cla-test-001-1shh",
        "dbStatusNameValue": "creating",
        "dbStatusNameColor": "yellow",
        "dbServerRoleValue": "Master",
        "zoneNo": null,
        "zoneName": null
      },
      {
        "standbyMasterServerName": null,
        "dbServerName": "cla-test-002-1shi",
        "databaseProductCode": null,
        "db_svr_rank": 0,
        "cloudDbServiceName": "clatest",
        "dataStorageTypeCode": null,
        "dataStorageSize": 10,
        "dataStorageSizeStr": "10GB",
        "dbInstanceNo": 0,
        "memorySize": "8GB",
        "dbStatusName": null,
        "clusterStatusName": null,
        "serverInstanceNo": 0,
        "dbServerIpAddress": null,
        "cpuCount": 2,
        "roleCode": null,
        "dbServerRoleCode": null,
        "dbServerType": "[Standard] 2vCPU, 8GB Mem",
        "usedDataStorageSize": 0,
        "uuid": "0-cla-test-002-1shi",
        "dbStatusNameValue": "creating",
        "dbStatusNameColor": "yellow",
        "dbServerRoleValue": "Standby Master",
        "zoneNo": null,
        "zoneName": null
      }
    ]
  }
}