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-keyNAVERクラウドプラットフォームポータルから発行された 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.