Bare Metal Server
    • PDF

    Bare Metal Server

    • PDF

    Article summary

    Available in Classic and VPC

    Get the list of bare metal server instances (VMs) in the Classic environment and check the status of log collection settings through the Cloud Log Analytics service for each server.

    Request

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

    MethodURI
    GET/api/{regionCode}-v1/classic/baremetal

    Request headers

    For information about the headers common to all Cloud Log Analytics APIs, see Cloud Log Analytics request headers.

    Request path parameters

    You can use the following path parameters with your request:

    FieldTypeRequiredDescription
    regionCodeStringRequiredRegion code
    • kr | sgn | jpn | uswn | den
      • kr: Korea Region
      • sgn: Singapore Region
      • jpn: Japan Region
      • uswn: US West Region
      • den: Germany Region

    Request query parameters

    You can use the following path parameters with your request:

    FieldTypeRequiredDescription
    pageNoIntegerOptionalPage number
    • 1 - 100 (default: 1)
    pageSizeIntegerOptionalNumber of items per page
    • 20 - 100 (default: 20)

    Request example

    The request example is as follows:

    curl --location --request GET 'https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/classic/servers/baremetal' \
    --header 'x-ncp-apigw-timestamp: {Timestamp}' \
    --header 'x-ncp-iam-access-key: {Access Key}' \
    --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
    --header 'Content-Type: application/json' \
    

    Response

    This section describes the response format.

    Response body

    The response body includes the following data:

    FieldTypeRequiredDescription
    codeInteger-Response status codes
    messageString-Response status message
    resultObject-Response result
    result.pageSizeInteger-Number of items per page
    result.currentPageInteger-Current page number
    result.totalPageInteger-Total number of pages
    result.totalCountInteger-Total item count
    result.isPagedBoolean-Whether to page
    • true | false
      • true: paged
      • false: not paged
    result.serverInfosArray-Server list
    • Server information
    • Log collection settings information
    result.collectingCountInteger-Number of servers whose collection settings are complete

    serverInfos

    The following describes serverInfos.

    FieldTypeRequiredDescription
    collectingInfoObject-Log collection settings information
    collectingInfo.collectorAgentVersionString-Log collection agent version
    collectingInfo.logTypeCountInteger-Number of log types to be collected
    collectingInfo.collectionStatusString-Log collection status
    collectingInfo.settingStatusString-Log collection settings status
    collectingInfo.settingStatusColorString-Log collection settings status color display value
    collectingInfo.servernameString-Name of server to collect logs from
    collectingInfo.logCollectorDateString-Log collection settings date and time
    collectingInfo.logTypeListString-List of log types to be collected
    collectingInfo.configKeyString-Log collection agent install key
    collectingInfo.isCollectingBoolean-Whether log collection is enabled
    • true | false
      • true: enabled
      • false: disabled
    Note

    For more information about the fields related to server information, see the Server API Guide and Server User Guide.

    Response status codes

    For response status codes common to all Cloud Log Analytics APIs, see Cloud Log Analytics response status codes.

    Response example

    The response example is as follows:

    {
      "code": 0,
      "message": "The request has been successfully processed.",
      "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": 1731946617857,
            "privateIp": "***.***.***.***",
            "serverStatusCode": "RUN",
            "serverStatusName": "RUNNING",
            "serverStatusKorean": "In operation",
            "serverStatusValue": "In operation",
            "serverStatusColor": "green",
            "serverImageName": "win-2012-64-R2-en",
            "uptime": 1751946617857,
            "message": null,
            "occuredTime": null,
            "logType": null,
            "zoneNo": "2",
            "zoneName": "KR-1",
            "secureZoneNo": null,
            "platformTypeCode": "WND64",
            "cpuCount": 16,
            "osDiskType2Code": "NET",
            "returnProtectionYn": "N",
            "virtualNetworkInterfaceIp": null,
            "portForwardingIp": "***.***.***.***",
            "virtualNetworkDomainNo": "3",
            "hostName": "test",
            "gpuCount": null,
            "softwareProductCode": "SPSW0WINNTEN0015A",
            "virtualNetworkDomainName": "MND001",
            "virtualNetworkInterfaceNo": null,
            "internalDnsHostName": null,
            "regionName": "Korea",
            "serverInstanceDetailTypeCode": null,
            "operationCode": "NULL",
            "macAddr": "**:**:**:**:**:**",
            "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": "*********",
            "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": "Not set",
              "settingStatus": "On",
              "settingStatusColor": "green",
              "servername": "test",
              "logCollectorDate": "2024-11-13 13:37:11",
              "logTypeList": "apache_error,apache_access,wineventlog",
              "configKey": "*********",
              "isCollecting": true
            }
          }
        ],
        "collectingCount": 1
      }
    }
    

    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.