- Print
- PDF
Bare Metal Server
- Print
- PDF
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:
Method | URI |
---|---|
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:
Field | Type | Required | Description |
---|---|---|---|
regionCode | String | Required | Region code
|
Request query parameters
You can use the following path parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
pageNo | Integer | Optional | Page number
|
pageSize | Integer | Optional | Number of items per page
|
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:
Field | Type | Required | Description |
---|---|---|---|
code | Integer | - | Response status codes |
message | String | - | Response status message |
result | Object | - | Response result |
result.pageSize | Integer | - | Number of items per page |
result.currentPage | Integer | - | Current page number |
result.totalPage | Integer | - | Total number of pages |
result.totalCount | Integer | - | Total item count |
result.isPaged | Boolean | - | Whether to page
|
result.serverInfos | Array | - | Server list
|
result.collectingCount | Integer | - | Number of servers whose collection settings are complete |
serverInfos
The following describes serverInfos
.
Field | Type | Required | Description |
---|---|---|---|
collectingInfo | Object | - | Log collection settings information |
collectingInfo.collectorAgentVersion | String | - | Log collection agent version |
collectingInfo.logTypeCount | Integer | - | Number of log types to be collected |
collectingInfo.collectionStatus | String | - | Log collection status |
collectingInfo.settingStatus | String | - | Log collection settings status |
collectingInfo.settingStatusColor | String | - | Log collection settings status color display value |
collectingInfo.servername | String | - | Name of server to collect logs from |
collectingInfo.logCollectorDate | String | - | Log collection settings date and time |
collectingInfo.logTypeList | String | - | List of log types to be collected |
collectingInfo.configKey | String | - | Log collection agent install key |
collectingInfo.isCollecting | Boolean | - | Whether log collection is enabled
|
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
}
}