Retrieval of information related to SMBIOS (v2)

9.2.12 Available from 9.2.12. You use the GET operation on the api/sam/v2/detailed_hw_smbios element to request information related to SMBIOS of the scanned system.

Permissions

User You must have the View Endpoints and View Hardware Inventory permission to use this API.

Resource URL

https://hostname:port/api/sam/v2/detailed_hw_smbios?token=token

Resource information

Table 1. Resource information
Operation details Description
HTTP method GET
Request headers
Header
Accept-Language (optional)
Values
en-US (only English is supported)

Negotiates the language of the response. If the header is not specified, the content is returned in the server language.

Request format application/json
Response headers
Header
Content-Type
Values
application/json

Specifies the content type of the response.

Header
Content-Language
Values
en-US, …

Specifies the language of the response content. If the header is not specified, the content is returned in the server language.

Response payload SMBIOS element
Response format application/json
Response codes

200 – OK

500 – "Bad Request" if a query parameter contains errors or is missing

Schema description

To retrieve the list of all columns that are returned by this REST API together with their descriptions, use the following request.
GET api/sam/v2/schemas/detailed_hw_smbios.json?token=token

Available columns

The list of attributes related to SMBIOS of the scanned system.

The scan output contains a single instance of each attribute from this group.

Table 2. Columns with information about SMBIOS
Property Description Type
id Identifier of the record. Integer
computer_id Identifier of the computer as specified in the BigFix Inventory database Integer
updated_at Date and time when the current information was imported to BigFix Inventory. String
Linux Windows bios_vendor The manufacturer of the BIOS system. String
Linux Windows bios_version The version of the BIOS system. String
Linux system_version The version of the system. String
Linux Windows system_serial_number The serial number of the system. String

Related APIs

This API can be associated with the following API:

Query parameters

Table 3. Query parameters
Parameter Description Required Value
columns[] Specify which columns to retrieve. If you do not specify this parameter, only default columns are retrieved.
Example: Retrieve the computer id:
URL?columns[]=computer_id
String
order Specify how to sort the returned data. The default direction for sorting columns is ascending. If you want to specify a descending sort, append desc to the column name.
Example: Order by computer ID descending:
URL?order[]=computer_id desc
String
limit Specify the number of rows to retrieve. If you omit this parameter, all rows are retrieved.
Example: Retrieve 100 records
URL?limit=100
Note: By default the limit parameter for this API is set to 100000.
Numeric
offset Specify the number of rows to skip for retrieving results. You can use it together with the limit parameter to paginate results.
Example: Retrieve 50 records starting after record 150
URL?limit=50&offset=150
Numeric
token A unique user authentication identifier. You can retrieve it by using REST API for retrieving authentication token. You can also log in to BigFix Inventory, hover over the User icon User icon, and click Profile. Then, click Show token. Alphanumeric
criteria Retrieve records which match specific conditions. The parameter should have the following structure, written in one line:
<criteria> ::= <left-brace> <boolean-operator><colon> <left-bracket> 
<criterion> [{ <comma> <criterion> }...] <right-bracket> <right-brace>
<boolean-operator> ::= "and" | "or"
<criterion> ::= <criteria> | <left-bracket> <column> <comma> <operator> <comma> <value> <right-bracket>
<column> ::= <json-string>
<operator> ::= <json-string>
<value> ::= <json-array> | <json-string> | <json-numver> | <json-null>

For more information about operators, see: Common connectors and operators.

Example: retrieve computers with computer ID greater than 1000.
URL?criteria={"and":[["computer_id", ">", "1000"]]}

For columns that use the date and time values, you can retrieve data also for a period instead of a specific date. To do so, use last or next as <operator>, and then specify the time value in the following convention: PxD/PxW/PxM/PxY, where x is a number in the 1-999 range, and D, W, M, or Y is a designator that represents days, weeks, months, or years respectively.

String

Example conversation - default columns

Request
GET api/sam/v2/detailed_hw_smbios?token=7adc3efb175e2bc0f4484bdd2efca54a8fa04623
Host: localhost:9081 
Accept: application/json 
Accept-Language: en-US
Response body
[{
"id":12,
"computer_id":19,
"updated_at":"2018-05-28T01:22:16Z",
"bios_vendor":"Phoenix Technologies LTD",
"bios_version":"6.00",
"system_version":"None",
"system_serial_number":"VMware-42 14 ea ea 03 c0 d5 03-fd f6 43 d6 44 a2 f8 52"
}]

Example conversation - selected columns

Request
GET api/sam/v2/detailed_hw_smbios?columns[]=computer_id
&columns[]=bios_vendor&columns[]=bios_version
&token=7adc3efb175e2bc0f4484bdd2efca54a8fa04623
Host: localhost:9081 
Accept: application/json 
Accept-Language: en-US
Response body
[{
"computer_id":19,
"bios_vendor":"Phoenix Technologies LTD",
"bios_version":"6.00"
}]