Retrieval of shared disks (v2)

Available from 9.2.12. You use the GET operation on the api/sam/v2/shared_disks element to request information about shared disks that are used in your infrastructure.


Before you can retrieve information about shared disks by using the REST API, discover the shared disks in your infrastructure. For more information, see: Step 1: Discovering remote shared disks.


User You must have the View Shared Disks permissions to use this API.

Resource URL


Resource information

Table 1. Resource information

The table consists of two columns and seven rows.

Operation details Description
HTTP method GET
Request headers
Accept-Language (optional)
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

Specifies the content type of the response.

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 Shared Disks element
Response format application/json
Response codes

200 – OK

403 – “Forbidden” if the user is not authorized to perform the action

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/shared_disk.json?token=<token>

Available columns

Table 2. Available columns

The table consists of four columns and 8 rows.

Column Description Displayed by default Type
id Identifier of the shared disk instance. Integer
status Indicates the status of the computer that is designated to scan the shared disk instance. Possible values are:
  • 0 - Shared disk detected
  • 1 - Child shared disk
  • 2 - Designating a computer
  • 3 - Waiting for software scan
  • 4 - OK
  • 5 - Designating new top-level directory
  • 6 - Designating a new computer
  • 7 - Waiting for software scan on the newly designated computer
parent_id Identifier of the parent of the shared disk instance. Integer
top_level Indicates whether the shared disk is a top-level directory in the shared disk structure. Possible values are:
  • 0 - The directory is not top-level
  • 1 - The directory is top-level
exported_directory Exported directory of the shared disk. String
type Type of the shared disk. Possible values are:
  • 0 - Network File System
  • 1- Samba File System
computers_count Number of computers on which the shared disk is mounted. Integer

Applicable associations

You can additionally retrieve data from the following associations:

Query parameters

Table 3. Query parameters

The table consists of four columns and six rows.

Parameter Description Required Value
columns[] Specify which columns to retrieve. If you do not specify this parameter, only default columns are retrieved.
Example: Retrieve product name and release
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
limit Specify the number of rows to retrieve. If you omit this parameter, all rows are retrieved.
Example: Retrieve 100 records
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
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-number> | <json-null>

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

Example: Retrieve software instances whose product name contains "BigFix" OR the discovery start is within a specific date range
URL?criteria={ "or": [ ["product_name", "contains", "BigFix"], 
{ "and": [ ["discovery_start", ">", "1970-01-01T00:00:00+00:00Z"], 
["discovery_start", "<", "1970-01-02T00:00:00+00:00Z"] ] } ] }

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.

Example: Retrieve software instances that were first reported within the last 7 days

Example conversation - default columns

GET api/sam/v2/shared_disks?token=7adc3efb175e2bc0f4484bdd2efca54a8fa04623
Host: localhost:9081 
Accept: application/json 
Accept-Language: en-US
Response body

Example conversation - all columns

GET api/sam/v2/shared_disks?columns[]=id&columns[]=status
Response body

Example conversation - association

GET api/sam/v2/shared_disks?columns[]=exported_directory
Host: localhost:9081 
Accept: application/json 
Accept-Language: en-US
Response body