サーバリストの照会
    • PDF

    サーバリストの照会

    • PDF

    Article Summary

    説明

    Cloud Log Analyticsサービスで確認できるサーバリストを照会します。

    Classicサーバリスト照会

    Classic Platformにあるサーバインスタンス(VM)リストを照会します。ログ収集設定状態でも照会でき、ページング処理が可能です。

    リクエスト URL

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

    リクエストヘッダ

    ヘッダ名説明
    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

    リクエストパラメータ

    パラメータタイプ要否説明
    pageNoIntegerYページ番号
    ex) 1, 2
    pageSizeIntegerYページサイズ
    ex) 10, 20

    リクエスト例

    GET https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/classic/servers?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.beta-apigw.ntruss.com/api/{regionCode}-v1/classic/servers?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,
        "serverInfos": [
          {
            "servername": "testServer",
            "publicIp": null,
            "osName": "Windows Server 2012(64bit) R2 English Edition",
            "createYmdt": 1590567779655,
            "privateIp": "123.123.123.123",
            "serverStatusCode": "RUN",
            "serverStatusName": "RUNNING",
            "serverStatusKorean": "運用中",
            "serverStatusValue": "運用中",
            "serverStatusColor": "green",
            "serverImageName": "win-2012-64-R2-en",
            "uptime": 1593676970380,
            "message": null,
            "occuredTime": null,
            "logType": null,
            "zoneNo": "2",
            "zoneName": "KR-1",
            "secureZoneNo": null,
            "platformTypeCode": "WND64",
            "cpuCount": 2,
            "osDiskType2Code": "NET",
            "returnProtectionYn": "N",
            "virtualNetworkInterfaceIp": null,
            "portForwardingIp": "123.123.123.123",
            "virtualNetworkDomainNo": "3",
            "hostName": "test",
            "gpuCount": null,
            "softwareProductCode": "SPSW0WINNTEN0015A",
            "virtualNetworkDomainName": "MND001",
            "virtualNetworkInterfaceNo": null,
            "internalDnsHostName": null,
            "regionName": "Korea",
            "serverInstanceDetailTypeCode": null,
            "operationCode": "NULL",
            "macAddr": "FF:FF:FF:FF:FF:FF",
            "alisRaidTypeName": null,
            "networkMonitoringYn": null,
            "lastServerStateSyncYmdt": null,
            "instanceProductType2Code": "STAND",
            "accessControlGroupList": [],
            "lastLbServerStatusSyncYmdt": null,
            "objectMonitoringInstanceNo": null,
            "secureZoneName": null,
            "loginKeyName": "pub",
            "publicIpInstanceNo": null,
            "serverInstanceTypeCode": "SVR",
            "instanceNo": 1207563,
            "portForwardingIpBackboneCode": "PUBLC",
            "osDiskType2DetailCode": "SSD",
            "feeChargingMonitoringYn": "N",
            "regionCode": "KR",
            "internalPort": "3389",
            "rootPassword": "1231321321312313131313213213213213213123213",
            "cncNo": 5,
            "productCode": "SPSVRSSD00000003A",
            "memorySize": {
              "json.expansion@key": "json.bigdecimal",
              "json.expansion@value": "4294967296"
            },
            "instanceDesc": "Administrator\nF5NdU9yaHci",
            "regionNo": "1",
            "isSsdStorageAddable": true,
            "externalPort": "3948",
            "baseBlockStorageSize": {
              "json.expansion@key": "json.bigdecimal",
              "json.expansion@value": "107374182400"
            },
            "backboneCode": "PUBLC",
            "isSupportOS": true,
            "collectingInfo": {
              "collectorAgentVersion": "5.5.1",
              "logTypeCount": 3,
              "collectionStatus": "未設定",
              "settingStatus": "設定完了",
              "settingStatusColor": "green",
              "servername": "test",
              "logCollectorDate": "2020-07-03 18:07:16",
              "logTypeList": "apache_error,apache_access,wineventlog",
              "configKey": "e9be6af58a6d49e9ba8b42aedacf233c",
              "isCollecting": true
            }
          }
        ],
        "collectingCount": 1
      }
    }
    

    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

    リクエストパラメータ

    パラメータタイプ要否説明
    pageNoIntegerYページ番号
    ex) 1, 2
    pageSizeIntegerYページサイズ
    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"
          }
        ]
      }
    }
    

    Classic CDB-MSSQLサーバリスト照会

    Classic Platformにある CDB-MSSQLサーバインスタンス(VM)リストを照会します。ページング処理できます。

    リクエスト URL

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

    リクエストヘッダ

    ヘッダ名説明
    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

    リクエストパラメータ

    パラメータタイプ要否説明
    pageNoIntegerYページ番号
    ex) 1, 2
    pageSizeIntegerYページサイズ
    ex) 10, 20

    リクエスト例

    GET https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/classic/servers/mssql?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/mssql?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": "m-1267980-002",
            "dbServerName": "m-1267980-001",
            "databaseProductCode": "SPSVRDBAAS000013",
            "db_svr_rank": 1,
            "cloudDbServiceName": "bbn",
            "dataStorageTypeCode": "SSD",
            "dataStorageSize": 100,
            "dataStorageSizeStr": "100GB",
            "dbInstanceNo": 1267980,
            "memorySize": "4GB",
            "zoneNo": 2,
            "dbStatusName": "creating",
            "serverInstanceNo": 1267981,
            "dbServerIpAddress": "123.123.123.123",
            "dbServerType": "2vCPU, 4GB Mem",
            "cpuCount": 2,
            "dbServerRoleCode": "M",
            "zoneName": "KR-1",
            "dbStatusNameValue": "運用中",
            "dbStatusNameColor": "green",
            "dbServerRoleValue": "Principal"
          }
        ]
      }
    }
    

    Classic Baremetalサーバリスト照会

    Classic Platformにある Baremetalサーバインスタンスリストを照会します。ログ収集設定状態でも照会でき、ページング処理が可能です。

    リクエスト URL

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

    リクエストヘッダ

    ヘッダ名説明
    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

    リクエストパラメータ

    パラメータタイプ要否説明
    pageNoIntegerYページ番号
    ex) 1, 2
    pageSizeIntegerYページサイズ
    ex) 10, 20

    リクエスト例

    GET https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/classic/servers/baremetal?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/baremetal?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,
        "serverInfos": [
          {
            "servername": "testbmServer",
            "publicIp": null,
            "osName": "Windows Server 2012(64bit) R2 English Edition",
            "createYmdt": 1590567779655,
            "privateIp": "123.123.123.123",
            "serverStatusCode": "RUN",
            "serverStatusName": "RUNNING",
            "serverStatusKorean": "運用中",
            "serverStatusValue": "運用中",
            "serverStatusColor": "green",
            "serverImageName": "win-2012-64-R2-en",
            "uptime": 1593676970380,
            "message": null,
            "occuredTime": null,
            "logType": null,
            "zoneNo": "2",
            "zoneName": "KR-1",
            "secureZoneNo": null,
            "platformTypeCode": "WND64",
            "cpuCount": 16,
            "osDiskType2Code": "NET",
            "returnProtectionYn": "N",
            "virtualNetworkInterfaceIp": null,
            "portForwardingIp": "123.123.123.123",
            "virtualNetworkDomainNo": "3",
            "hostName": "test",
            "gpuCount": null,
            "softwareProductCode": "SPSW0WINNTEN0015A",
            "virtualNetworkDomainName": "MND001",
            "virtualNetworkInterfaceNo": null,
            "internalDnsHostName": null,
            "regionName": "Korea",
            "serverInstanceDetailTypeCode": null,
            "operationCode": "NULL",
            "macAddr": "FF:FF:FF:FF:FF:FF",
            "alisRaidTypeName": null,
            "networkMonitoringYn": null,
            "lastServerStateSyncYmdt": null,
            "instanceProductType2Code": "STAND",
            "accessControlGroupList": [],
            "lastLbServerStatusSyncYmdt": null,
            "objectMonitoringInstanceNo": null,
            "secureZoneName": null,
            "loginKeyName": "pub",
            "publicIpInstanceNo": null,
            "serverInstanceTypeCode": "SVR",
            "instanceNo": 1207632,
            "portForwardingIpBackboneCode": "PUBLC",
            "osDiskType2DetailCode": "SSD",
            "feeChargingMonitoringYn": "N",
            "regionCode": "KR",
            "internalPort": "3389",
            "rootPassword": "1231321321312313131313213213213213213123213",
            "cncNo": 5,
            "productCode": "SPSVRSSD00000003A",
            "memorySize": {
              "json.expansion@key": "json.bigdecimal",
              "json.expansion@value": "4294967296"
            },
            "instanceDesc": "Administrator\nF5NdU9yaHci",
            "regionNo": "1",
            "isSsdStorageAddable": true,
            "externalPort": "3948",
            "baseBlockStorageSize": {
              "json.expansion@key": "json.bigdecimal",
              "json.expansion@value": "107374182400"
            },
            "backboneCode": "PUBLC",
            "isSupportOS": true,
            "collectingInfo": {
              "collectorAgentVersion": "5.5.1",
              "logTypeCount": 3,
              "collectionStatus": "未設定",
              "settingStatus": "設定完了",
              "settingStatusColor": "green",
              "servername": "test",
              "logCollectorDate": "2020-07-03 18:07:16",
              "logTypeList": "apache_error,apache_access,wineventlog",
              "configKey": "e9be6af58a6d49e9ba8b42aedacf233c",
              "isCollecting": true
            }
          }
        ],
        "collectingCount": 1
      }
    }
    

    VPCサーバリスト照会

    VPC Platformにあるサーバインスタンス(VM)リストを照会します。ログ収集設定状態でも照会でき、ページング処理が可能です。

    リクエスト URL

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

    リクエストヘッダ

    ヘッダ名説明
    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

    リクエストパラメータ

    パラメータタイプ要否説明
    pageNoIntegerYページ番号
    ex) 1, 2
    pageSizeIntegerYページサイズ
    ex) 10, 20

    リクエスト例

    GET https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/vpc/servers?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/vpc/servers?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,
        "vpcServerInfos": [
          {
            "additionalParameterMap": {
              "networkInterfaceList": [
                {
                  "attachedDeviceName": "eth0",
                  "subnet": "172.16.200.0/24",
                  "vpcName": "vpc",
                  "macAddress": "FF:FF:FF:FF:FF:FF",
                  "subnetNo": 600,
                  "igwYn": "Y",
                  "vpcNo": 402,
                  "networkInterfaceNo": 8077,
                  "internalIp": "123.123.123.123",
                  "subnetName": "sub",
                  "networkInterfaceName": "nic-8077"
                }
              ],
              "vpcName": "vpc",
              "subnetNo": 600,
              "igwYn": "Y",
              "vpcNo": 402,
              "subnetName": "sub"
            },
            "baseBlockStorageSize": 0,
            "carrierNetworkIp": null,
            "cncNo": 71,
            "computeInstanceDetailTypeCode": null,
            "computeInstanceName": null,
            "computeInstanceTypeCode": null,
            "computeInstanceUuid": null,
            "computeSpec": null,
            "contractNo": 354946,
            "cpuCount": 2,
            "createYmdt": 1593756715015,
            "feeChargeMonitoringYn": null,
            "hostNameInitConfigYn": null,
            "instanceNo": 1267544,
            "instanceProductType2Code": "STAND",
            "instanceStatusCode": "INIT",
            "instanceStatusName": "init",
            "instanceTypeCode": "VSVR",
            "instanceUuid": null,
            "ip": null,
            "launchDateTime": 0,
            "macAddress": null,
            "nsiName": "win-2016-64-en",
            "operationCode": "NULL",
            "operationYmdt": "1593756715015",
            "osDiskTypeCode": "NET",
            "osDiskTypeDetailCode": "SSD",
            "osInformation": "Windows Server 2016 (64-bit) English Edition",
            "osName": "Windows Server 2016 (64-bit) English Edition",
            "overlayNetworkIp": "132.123.123.213",
            "parameters": null,
            "platformTypeCode": "WND64",
            "productCode": "SVR.VSVR.STAND.C002.M008.NET.SSD.B100.G002",
            "publicIp": null,
            "publicIpInstanceNo": null,
            "regionCode": "KR",
            "regionName": "Korea",
            "regionNo": "1",
            "returnProtectionYn": "N",
            "serverName": "clatest",
            "serverSpec": "[STAND] 2vCPU, 8GB Mem",
            "softwareProductCode": "SW.VSVR.OS.WND64.WND.SVR2016EN.B100",
            "subnetName": null,
            "subAccountNo": 0,
            "upTime": null,
            "vpcName": null,
            "zoneName": "KR-1",
            "zoneNo": 2,
            "serverStatusColor": "green",
            "serverStatusKorean": "運用中",
            "serverStatusValue": "運用中",
            "isSupportOS": false,
            "collectingInfo": {
              "collectorAgentVersion": null,
              "logTypeCount": 0,
              "collectionStatus": "未収集状態",
              "settingStatus": "未設定",
              "settingStatusColor": "grey",
              "servername": "s173134d875e",
              "logCollectorDate": null,
              "logTypeList": null,
              "configKey": null,
              "isCollecting": false
            }
          }
        ],
        "collectingCount": 1
      }
    }
    

    VPC CDB-MySQLサーバリスト照会

    VPC Platformにある CDB-MySQLサーバインスタンス(VM)リストを照会します。ページング処理できます。

    リクエスト URL

    GET https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/vpc/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

    リクエストパラメータ

    パラメータタイプ要否説明
    pageNoIntegerYページ番号
    ex) 1, 2
    pageSizeIntegerYページサイズ
    ex) 10, 20

    リクエスト例

    GET https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/vpc/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/vpc/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",
            "dbServerName": "test-cla",
            "databaseProductCode": "SW.VDBAS.DBAAS.LNX64.CNTOS.0703.MYSQL.5729.B050",
            "db_svr_rank": 0,
            "cloudDbServiceName": "test-cla",
            "dataStorageTypeCode": "SSD",
            "dataStorageSize": 10,
            "dataStorageSizeStr": "10GB",
            "dbInstanceNo": 1265456,
            "memorySize": "8GB",
            "dbStatusName": "running",
            "serverInstanceNo": 1265457,
            "dbServerIpAddress": "123.123.213.123",
            "cpuCount": 2,
            "dbServerRoleCode": "M",
            "dbServerType": "2vCPU, 8GB Mem",
            "usedDataStorageSize": 0,
            "uuid": "1265456-test-cla",
            "dbStatusNameValue": "運用中",
            "dbStatusNameColor": "green",
            "dbServerRoleValue": "Master",
            "zoneNo": "2",
            "zoneName": null
          }
        ]
      }
    }
    

    この記事は役に立ちましたか?

    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.