En IT Asset Management Data API

IT Asset Management Data API

Applications

applicationsIndex

Retrieves a list of installed applications identified during the last software inventory import. The installed applications are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all installed applications.

List Applications


/fnms/v1/orgs/{orgId}/installed-applications

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json,application/vnd.goa.error"\
"https://api.flexera.com/fnms/v1/orgs/{orgId}/installed-applications?offset=&limit="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;

import java.io.File;
import java.util.*;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ApplicationsApi apiInstance = new ApplicationsApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        Integer offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
        Integer limit = 56; // Integer | Specify the number of records to return in the request response
        try {
            IndexResponseBody result = apiInstance.applicationsIndex(orgId, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#applicationsIndex");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationsApi;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        ApplicationsApi apiInstance = new ApplicationsApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        Integer offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
        Integer limit = 56; // Integer | Specify the number of records to return in the request response
        try {
            IndexResponseBody result = apiInstance.applicationsIndex(orgId, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#applicationsIndex");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
Integer *offset = 56; // Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional) (default to 0)
Integer *limit = 56; // Specify the number of records to return in the request response (optional) (default to 10000)

ApplicationsApi *apiInstance = [[ApplicationsApi alloc] init];

// Retrieves a list of installed applications identified during the last software inventory import. The installed applications are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all installed applications.
[apiInstance applicationsIndexWith:orgId
    offset:offset
    limit:limit
              completionHandler: ^(IndexResponseBody output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ItAssetManagementDataApi = require('it_asset_management_data_api');
var defaultClient = ItAssetManagementDataApi.ApiClient.instance;


var api = new ItAssetManagementDataApi.ApplicationsApi()
var orgId = 56; // {{Integer}} Specify the unique identifier, as provided by Flexera, that defines your organization
var opts = { 
  'offset': 56, // {{Integer}} Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
  'limit': 56 // {{Integer}} Specify the number of records to return in the request response
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.applicationsIndex(orgId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class applicationsIndexExample
    {
        public void main()
        {


            var apiInstance = new ApplicationsApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var offset = 56;  // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional)  (default to 0)
            var limit = 56;  // Integer | Specify the number of records to return in the request response (optional)  (default to 10000)

            try
            {
                // Retrieves a list of installed applications identified during the last software inventory import. The installed applications are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all installed applications.
                IndexResponseBody result = apiInstance.applicationsIndex(orgId, offset, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationsApi.applicationsIndex: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiApplicationsApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
$limit = 56; // Integer | Specify the number of records to return in the request response

try {
    $result = $api_instance->applicationsIndex($orgId, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ApplicationsApi->applicationsIndex: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationsApi;


my $api_instance = WWW::SwaggerClient::ApplicationsApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $offset = 56; # Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
my $limit = 56; # Integer | Specify the number of records to return in the request response

eval { 
    my $result = $api_instance->applicationsIndex(orgId => $orgId, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ApplicationsApi->applicationsIndex: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ApplicationsApi()
orgId = 56 # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
offset = 56 # Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional) (default to 0)
limit = 56 # Integer | Specify the number of records to return in the request response (optional) (default to 10000)

try: 
    # Retrieves a list of installed applications identified during the last software inventory import. The installed applications are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all installed applications.
    api_response = api_instance.applications_index(orgId, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ApplicationsApi->applicationsIndex: %s\n" % e)

Parameters

Path parameters
Name Description
orgId*
Integer
Specify the unique identifier, as provided by Flexera, that defines your organization
Required
Query parameters
Name Description
offset
Integer
Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
limit
Integer
Specify the number of records to return in the request response

Responses

Status: 200 -

{"limit":5000,"offset":500,"request":{"orgId":12832,"requestedAt":"2000-04-25T21:24:10Z"},"total":9246797851289666000,"values":[{"category":"Software/Development","classification":"Commercial","edition":"Unspecified","flexeraId":"app://MGC-APPP-0350159-REFYB","installed":0,"isLocked":false,"licensed":true,"name":"InstallShield 2019 R3","product":"InstallShield","publisher":"Flexera","source":"Flexera","status":"Unauthorized","suite":false,"usage":0,"version":"2.0"},{"category":"Software/Development","classification":"Commercial","edition":"Unspecified","flexeraId":"app://MGC-APPP-0350159-REFYB","installed":0,"isLocked":false,"licensed":true,"name":"InstallShield 2019 R3","product":"InstallShield","publisher":"Flexera","source":"Flexera","status":"Unauthorized","suite":false,"usage":0,"version":"2.0"}]}

Status: 400 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":false}

Status: 401 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":false}

Status: 403 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":true}

Status: 500 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":true}

Status: 502 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":false}

Assets

assetsIndex

Retrieves a list of device-related assets (such as Laptop, Workstation, and Server). The assets are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all assets.

List assets


/fnms/v1/orgs/{orgId}/assets

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json,application/vnd.goa.error"\
"https://api.flexera.com/fnms/v1/orgs/{orgId}/assets?offset=&limit=&status=&assetType=&location="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetsApi;

import java.io.File;
import java.util.*;

public class AssetsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        AssetsApi apiInstance = new AssetsApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        Integer offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
        Integer limit = 56; // Integer | Specify the number of records to return in the request response
        String status = status_example; // String | Filters assets by status
        String assetType = assetType_example; // String | Filters assets by asset type
        String location = location_example; // String | Filter assets by location
        try {
            IndexResponseBody2 result = apiInstance.assetsIndex(orgId, offset, limit, status, assetType, location);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#assetsIndex");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetsApi;

public class AssetsApiExample {

    public static void main(String[] args) {
        AssetsApi apiInstance = new AssetsApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        Integer offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
        Integer limit = 56; // Integer | Specify the number of records to return in the request response
        String status = status_example; // String | Filters assets by status
        String assetType = assetType_example; // String | Filters assets by asset type
        String location = location_example; // String | Filter assets by location
        try {
            IndexResponseBody2 result = apiInstance.assetsIndex(orgId, offset, limit, status, assetType, location);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#assetsIndex");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
Integer *offset = 56; // Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional) (default to 0)
Integer *limit = 56; // Specify the number of records to return in the request response (optional) (default to 10000)
String *status = status_example; // Filters assets by status (optional)
String *assetType = assetType_example; // Filters assets by asset type (optional)
String *location = location_example; // Filter assets by location (optional)

AssetsApi *apiInstance = [[AssetsApi alloc] init];

// Retrieves a list of device-related assets (such as Laptop, Workstation, and Server). The assets are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all assets.
[apiInstance assetsIndexWith:orgId
    offset:offset
    limit:limit
    status:status
    assetType:assetType
    location:location
              completionHandler: ^(IndexResponseBody2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ItAssetManagementDataApi = require('it_asset_management_data_api');
var defaultClient = ItAssetManagementDataApi.ApiClient.instance;


var api = new ItAssetManagementDataApi.AssetsApi()
var orgId = 56; // {{Integer}} Specify the unique identifier, as provided by Flexera, that defines your organization
var opts = { 
  'offset': 56, // {{Integer}} Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
  'limit': 56, // {{Integer}} Specify the number of records to return in the request response
  'status': status_example, // {{String}} Filters assets by status
  'assetType': assetType_example, // {{String}} Filters assets by asset type
  'location': location_example // {{String}} Filter assets by location
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.assetsIndex(orgId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class assetsIndexExample
    {
        public void main()
        {


            var apiInstance = new AssetsApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var offset = 56;  // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional)  (default to 0)
            var limit = 56;  // Integer | Specify the number of records to return in the request response (optional)  (default to 10000)
            var status = status_example;  // String | Filters assets by status (optional) 
            var assetType = assetType_example;  // String | Filters assets by asset type (optional) 
            var location = location_example;  // String | Filter assets by location (optional) 

            try
            {
                // Retrieves a list of device-related assets (such as Laptop, Workstation, and Server). The assets are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all assets.
                IndexResponseBody2 result = apiInstance.assetsIndex(orgId, offset, limit, status, assetType, location);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetsApi.assetsIndex: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiAssetsApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
$limit = 56; // Integer | Specify the number of records to return in the request response
$status = status_example; // String | Filters assets by status
$assetType = assetType_example; // String | Filters assets by asset type
$location = location_example; // String | Filter assets by location

try {
    $result = $api_instance->assetsIndex($orgId, $offset, $limit, $status, $assetType, $location);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetsApi->assetsIndex: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetsApi;


my $api_instance = WWW::SwaggerClient::AssetsApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $offset = 56; # Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
my $limit = 56; # Integer | Specify the number of records to return in the request response
my $status = status_example; # String | Filters assets by status
my $assetType = assetType_example; # String | Filters assets by asset type
my $location = location_example; # String | Filter assets by location

eval { 
    my $result = $api_instance->assetsIndex(orgId => $orgId, offset => $offset, limit => $limit, status => $status, assetType => $assetType, location => $location);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetsApi->assetsIndex: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.AssetsApi()
orgId = 56 # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
offset = 56 # Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional) (default to 0)
limit = 56 # Integer | Specify the number of records to return in the request response (optional) (default to 10000)
status = status_example # String | Filters assets by status (optional)
assetType = assetType_example # String | Filters assets by asset type (optional)
location = location_example # String | Filter assets by location (optional)

try: 
    # Retrieves a list of device-related assets (such as Laptop, Workstation, and Server). The assets are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all assets.
    api_response = api_instance.assets_index(orgId, offset=offset, limit=limit, status=status, assetType=assetType, location=location)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetsApi->assetsIndex: %s\n" % e)

Parameters

Path parameters
Name Description
orgId*
Integer
Specify the unique identifier, as provided by Flexera, that defines your organization
Required
Query parameters
Name Description
offset
Integer
Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
limit
Integer
Specify the number of records to return in the request response
status
String
Filters assets by status
assetType
String
Filters assets by asset type
location
String
Filter assets by location

Responses

Status: 200 -

{"limit":5000,"offset":500,"request":{"assetType":"Laptop","location":"Flexera/IL","orgId":12832,"requestedAt":"1989-06-28T14:26:52Z","status":"Installed"},"total":2262821803752174000,"values":[{"acquisitionMethod":"Purchased","assetCompany":"IBM","assetId":6479189361554715000,"assetName":"AssetNameExample","assetTag":"123ABC","assetType":"Workstation","category":"Hardware","computerId":6602352765534166000,"deliveryDate":"1982-11-25T22:26:09Z","electronicLastInventoryBy":"FNMS","electronicLastInventoryDate":"1977-04-30T06:43:07Z","expiryDate":"1990-03-22T01:52:57Z","installedOn":"1977-04-18T20:34:36Z","manufacturer":"IBM","modelNumber":"123-ABC","ownership":{"costCenter":"ABC123","department":"IT","location":"Datacenter"},"physicalLastInventoryBy":"FNMS","physicalLastInventoryDate":"1996-02-18T17:36:25Z","purchaseData":{"orderDate":"1978-01-31T16:38:27Z","orderNumber":"123ABC"},"serialNumber":"123ABC","status":"Installed","userData":{"assigned":"John Doe","samAccountName":"ABC123"}},{"acquisitionMethod":"Purchased","assetCompany":"IBM","assetId":6479189361554715000,"assetName":"AssetNameExample","assetTag":"123ABC","assetType":"Workstation","category":"Hardware","computerId":6602352765534166000,"deliveryDate":"1982-11-25T22:26:09Z","electronicLastInventoryBy":"FNMS","electronicLastInventoryDate":"1977-04-30T06:43:07Z","expiryDate":"1990-03-22T01:52:57Z","installedOn":"1977-04-18T20:34:36Z","manufacturer":"IBM","modelNumber":"123-ABC","ownership":{"costCenter":"ABC123","department":"IT","location":"Datacenter"},"physicalLastInventoryBy":"FNMS","physicalLastInventoryDate":"1996-02-18T17:36:25Z","purchaseData":{"orderDate":"1978-01-31T16:38:27Z","orderNumber":"123ABC"},"serialNumber":"123ABC","status":"Installed","userData":{"assigned":"John Doe","samAccountName":"ABC123"}},{"acquisitionMethod":"Purchased","assetCompany":"IBM","assetId":6479189361554715000,"assetName":"AssetNameExample","assetTag":"123ABC","assetType":"Workstation","category":"Hardware","computerId":6602352765534166000,"deliveryDate":"1982-11-25T22:26:09Z","electronicLastInventoryBy":"FNMS","electronicLastInventoryDate":"1977-04-30T06:43:07Z","expiryDate":"1990-03-22T01:52:57Z","installedOn":"1977-04-18T20:34:36Z","manufacturer":"IBM","modelNumber":"123-ABC","ownership":{"costCenter":"ABC123","department":"IT","location":"Datacenter"},"physicalLastInventoryBy":"FNMS","physicalLastInventoryDate":"1996-02-18T17:36:25Z","purchaseData":{"orderDate":"1978-01-31T16:38:27Z","orderNumber":"123ABC"},"serialNumber":"123ABC","status":"Installed","userData":{"assigned":"John Doe","samAccountName":"ABC123"}}]}

Status: 400 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":true}

Status: 401 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":true}

Status: 403 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":true}

Status: 500 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":false}

Status: 502 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":true}

Devices

devicesCreate

Create a file containing active devices with installed software

``` { "computerId": 7682181994159115074, "computerName": "Suscipit culpa perferendis quod a praesentium inventore.", "deviceStatus": "Tempore beatae tenetur.", "ipAddress": "Velit id qui omnis consequatur nulla accusamus.", "os": "Optio sunt sapiente omnis magnam ut.", "serialNo": "Cupiditate quo rerum corrupti ullam quod.", "softwareTitles": [ { "edition": "Quisquam consequatur.", "publisher": "Rerum ut asperiores quibusdam et est.", "softwareStatus": "Dolor alias doloremque enim id nesciunt iusto.", "softwareTitleName": "Ab laudantium eos aspernatur.", "version": "Voluptas soluta id." }, { "edition": "Quisquam consequatur.", "publisher": "Rerum ut asperiores quibusdam et est.", "softwareStatus": "Dolor alias doloremque enim id nesciunt iusto.", "softwareTitleName": "Ab laudantium eos aspernatur.", "version": "Voluptas soluta id." }, { "edition": "Quisquam consequatur.", "publisher": "Rerum ut asperiores quibusdam et est.", "softwareStatus": "Dolor alias doloremque enim id nesciunt iusto.", "softwareTitleName": "Ab laudantium eos aspernatur.", "version": "Voluptas soluta id." }, { "edition": "Quisquam consequatur.", "publisher": "Rerum ut asperiores quibusdam et est.", "softwareStatus": "Dolor alias doloremque enim id nesciunt iusto.", "softwareTitleName": "Ab laudantium eos aspernatur.", "version": "Voluptas soluta id." } ] } ```


/fnms/v1/orgs/{orgId}/devices/installed-software

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json,application/vnd.goa.error"\
"https://api.flexera.com/fnms/v1/orgs/{orgId}/devices/installed-software?os=&softwareTitle=&publisher=&softwareStatus="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

import java.io.File;
import java.util.*;

public class DevicesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        DevicesApi apiInstance = new DevicesApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        array[String] os = ; // array[String] | Limit the request response to devices with the specified operating system installed
        array[String] softwareTitle = ; // array[String] | Limit the request response to devices with the specified software titles installed
        array[String] publisher = ; // array[String] | Limit the request response to devices with installed software created by the specified publisher
        array[String] softwareStatus = ; // array[String] | Limit the request response to devices with installed software with the specified software status
        try {
            CreateResponseBody result = apiInstance.devicesCreate(orgId, os, softwareTitle, publisher, softwareStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#devicesCreate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        array[String] os = ; // array[String] | Limit the request response to devices with the specified operating system installed
        array[String] softwareTitle = ; // array[String] | Limit the request response to devices with the specified software titles installed
        array[String] publisher = ; // array[String] | Limit the request response to devices with installed software created by the specified publisher
        array[String] softwareStatus = ; // array[String] | Limit the request response to devices with installed software with the specified software status
        try {
            CreateResponseBody result = apiInstance.devicesCreate(orgId, os, softwareTitle, publisher, softwareStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#devicesCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
array[String] *os = ; // Limit the request response to devices with the specified operating system installed (optional)
array[String] *softwareTitle = ; // Limit the request response to devices with the specified software titles installed (optional)
array[String] *publisher = ; // Limit the request response to devices with installed software created by the specified publisher (optional)
array[String] *softwareStatus = ; // Limit the request response to devices with installed software with the specified software status (optional)

DevicesApi *apiInstance = [[DevicesApi alloc] init];

// Create a file containing active devices with installed software
[apiInstance devicesCreateWith:orgId
    os:os
    softwareTitle:softwareTitle
    publisher:publisher
    softwareStatus:softwareStatus
              completionHandler: ^(CreateResponseBody output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ItAssetManagementDataApi = require('it_asset_management_data_api');
var defaultClient = ItAssetManagementDataApi.ApiClient.instance;


var api = new ItAssetManagementDataApi.DevicesApi()
var orgId = 56; // {{Integer}} Specify the unique identifier, as provided by Flexera, that defines your organization
var opts = { 
  'os': , // {{array[String]}} Limit the request response to devices with the specified operating system installed
  'softwareTitle': , // {{array[String]}} Limit the request response to devices with the specified software titles installed
  'publisher': , // {{array[String]}} Limit the request response to devices with installed software created by the specified publisher
  'softwareStatus':  // {{array[String]}} Limit the request response to devices with installed software with the specified software status
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.devicesCreate(orgId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class devicesCreateExample
    {
        public void main()
        {


            var apiInstance = new DevicesApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var os = new array[String](); // array[String] | Limit the request response to devices with the specified operating system installed (optional) 
            var softwareTitle = new array[String](); // array[String] | Limit the request response to devices with the specified software titles installed (optional) 
            var publisher = new array[String](); // array[String] | Limit the request response to devices with installed software created by the specified publisher (optional) 
            var softwareStatus = new array[String](); // array[String] | Limit the request response to devices with installed software with the specified software status (optional) 

            try
            {
                // Create a file containing active devices with installed software
                CreateResponseBody result = apiInstance.devicesCreate(orgId, os, softwareTitle, publisher, softwareStatus);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.devicesCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiDevicesApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$os = ; // array[String] | Limit the request response to devices with the specified operating system installed
$softwareTitle = ; // array[String] | Limit the request response to devices with the specified software titles installed
$publisher = ; // array[String] | Limit the request response to devices with installed software created by the specified publisher
$softwareStatus = ; // array[String] | Limit the request response to devices with installed software with the specified software status

try {
    $result = $api_instance->devicesCreate($orgId, $os, $softwareTitle, $publisher, $softwareStatus);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->devicesCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;


my $api_instance = WWW::SwaggerClient::DevicesApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $os = []; # array[String] | Limit the request response to devices with the specified operating system installed
my $softwareTitle = []; # array[String] | Limit the request response to devices with the specified software titles installed
my $publisher = []; # array[String] | Limit the request response to devices with installed software created by the specified publisher
my $softwareStatus = []; # array[String] | Limit the request response to devices with installed software with the specified software status

eval { 
    my $result = $api_instance->devicesCreate(orgId => $orgId, os => $os, softwareTitle => $softwareTitle, publisher => $publisher, softwareStatus => $softwareStatus);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DevicesApi->devicesCreate: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.DevicesApi()
orgId = 56 # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
os =  # array[String] | Limit the request response to devices with the specified operating system installed (optional)
softwareTitle =  # array[String] | Limit the request response to devices with the specified software titles installed (optional)
publisher =  # array[String] | Limit the request response to devices with installed software created by the specified publisher (optional)
softwareStatus =  # array[String] | Limit the request response to devices with installed software with the specified software status (optional)

try: 
    # Create a file containing active devices with installed software
    api_response = api_instance.devices_create(orgId, os=os, softwareTitle=softwareTitle, publisher=publisher, softwareStatus=softwareStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DevicesApi->devicesCreate: %s\n" % e)

Parameters

Path parameters
Name Description
orgId*
Integer
Specify the unique identifier, as provided by Flexera, that defines your organization
Required
Query parameters
Name Description
os
array[String]
Limit the request response to devices with the specified operating system installed
softwareTitle
array[String]
Limit the request response to devices with the specified software titles installed
publisher
array[String]
Limit the request response to devices with installed software created by the specified publisher
softwareStatus
array[String]
Limit the request response to devices with installed software with the specified software status

Responses

Status: 200 -

{"data":{"completionDate":"1972-11-26T00:34:35Z","creationDate":"2015-11-16T02:22:04Z","path":"files/test.zip","status":"In progress","transactionId":"ABC123"}}

Status: 400 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":false}

Status: 401 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":true}

Status: 403 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":true}

Status: 500 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":true}

Status: 502 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":false}

Files

filesShow

Returns a `Location` header containing the pre-signed URL to get the file


/fnms/v1/orgs/{orgId}/files/{filename}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json,application/vnd.goa.error"\
"https://api.flexera.com/fnms/v1/orgs/{orgId}/files/{filename}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FilesApi;

import java.io.File;
import java.util.*;

public class FilesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        FilesApi apiInstance = new FilesApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        String filename = filename_example; // String | Specify the name of the file to retrieve
        try {
            apiInstance.filesShow(orgId, filename);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#filesShow");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FilesApi;

public class FilesApiExample {

    public static void main(String[] args) {
        FilesApi apiInstance = new FilesApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        String filename = filename_example; // String | Specify the name of the file to retrieve
        try {
            apiInstance.filesShow(orgId, filename);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#filesShow");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
String *filename = filename_example; // Specify the name of the file to retrieve

FilesApi *apiInstance = [[FilesApi alloc] init];

// Returns a `Location` header containing the pre-signed URL to get the file
[apiInstance filesShowWith:orgId
    filename:filename
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ItAssetManagementDataApi = require('it_asset_management_data_api');
var defaultClient = ItAssetManagementDataApi.ApiClient.instance;


var api = new ItAssetManagementDataApi.FilesApi()
var orgId = 56; // {{Integer}} Specify the unique identifier, as provided by Flexera, that defines your organization
var filename = filename_example; // {{String}} Specify the name of the file to retrieve

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.filesShow(orgId, filename, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class filesShowExample
    {
        public void main()
        {


            var apiInstance = new FilesApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var filename = filename_example;  // String | Specify the name of the file to retrieve

            try
            {
                // Returns a `Location` header containing the pre-signed URL to get the file
                apiInstance.filesShow(orgId, filename);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FilesApi.filesShow: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiFilesApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$filename = filename_example; // String | Specify the name of the file to retrieve

try {
    $api_instance->filesShow($orgId, $filename);
} catch (Exception $e) {
    echo 'Exception when calling FilesApi->filesShow: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FilesApi;


my $api_instance = WWW::SwaggerClient::FilesApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $filename = filename_example; # String | Specify the name of the file to retrieve

eval { 
    $api_instance->filesShow(orgId => $orgId, filename => $filename);
};
if ($@) {
    warn "Exception when calling FilesApi->filesShow: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.FilesApi()
orgId = 56 # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
filename = filename_example # String | Specify the name of the file to retrieve

try: 
    # Returns a `Location` header containing the pre-signed URL to get the file
    api_instance.files_show(orgId, filename)
except ApiException as e:
    print("Exception when calling FilesApi->filesShow: %s\n" % e)

Parameters

Path parameters
Name Description
orgId*
Integer
Specify the unique identifier, as provided by Flexera, that defines your organization
Required
filename*
String
Specify the name of the file to retrieve
Required

Responses

Status: 303 -

Name Type Format Description
Location String

Status: 400 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":false}

Status: 401 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":false}

Status: 403 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":true}

Status: 404 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":false}

Status: 500 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":true}

Status: 502 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":true}

Inventories

inventoriesIndex

Retrieves a list of inventories. The inventories are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all inventories.

List inventories


/fnms/v1/orgs/{orgId}/inventories

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json,application/vnd.goa.error"\
"https://api.flexera.com/fnms/v1/orgs/{orgId}/inventories?offset=&limit=&status=&deviceType=&complianceStatus=&manufacturer=&location="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InventoriesApi;

import java.io.File;
import java.util.*;

public class InventoriesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        InventoriesApi apiInstance = new InventoriesApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        Integer offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
        Integer limit = 56; // Integer | Specify the number of records to return in the request response
        String status = status_example; // String | Filter inventories by status
        String deviceType = deviceType_example; // String | Filter inventories by device type
        String complianceStatus = complianceStatus_example; // String | Filter inventories by compliance status
        String manufacturer = manufacturer_example; // String | Filter inventories by manufacturer
        String location = location_example; // String | Filter inventories by location
        try {
            InventoryIndexResult result = apiInstance.inventoriesIndex(orgId, offset, limit, status, deviceType, complianceStatus, manufacturer, location);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoriesApi#inventoriesIndex");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InventoriesApi;

public class InventoriesApiExample {

    public static void main(String[] args) {
        InventoriesApi apiInstance = new InventoriesApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        Integer offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
        Integer limit = 56; // Integer | Specify the number of records to return in the request response
        String status = status_example; // String | Filter inventories by status
        String deviceType = deviceType_example; // String | Filter inventories by device type
        String complianceStatus = complianceStatus_example; // String | Filter inventories by compliance status
        String manufacturer = manufacturer_example; // String | Filter inventories by manufacturer
        String location = location_example; // String | Filter inventories by location
        try {
            InventoryIndexResult result = apiInstance.inventoriesIndex(orgId, offset, limit, status, deviceType, complianceStatus, manufacturer, location);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoriesApi#inventoriesIndex");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
Integer *offset = 56; // Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional) (default to 0)
Integer *limit = 56; // Specify the number of records to return in the request response (optional) (default to 10000)
String *status = status_example; // Filter inventories by status (optional)
String *deviceType = deviceType_example; // Filter inventories by device type (optional)
String *complianceStatus = complianceStatus_example; // Filter inventories by compliance status (optional)
String *manufacturer = manufacturer_example; // Filter inventories by manufacturer (optional)
String *location = location_example; // Filter inventories by location (optional)

InventoriesApi *apiInstance = [[InventoriesApi alloc] init];

// Retrieves a list of inventories. The inventories are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all inventories.
[apiInstance inventoriesIndexWith:orgId
    offset:offset
    limit:limit
    status:status
    deviceType:deviceType
    complianceStatus:complianceStatus
    manufacturer:manufacturer
    location:location
              completionHandler: ^(InventoryIndexResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ItAssetManagementDataApi = require('it_asset_management_data_api');
var defaultClient = ItAssetManagementDataApi.ApiClient.instance;


var api = new ItAssetManagementDataApi.InventoriesApi()
var orgId = 56; // {{Integer}} Specify the unique identifier, as provided by Flexera, that defines your organization
var opts = { 
  'offset': 56, // {{Integer}} Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
  'limit': 56, // {{Integer}} Specify the number of records to return in the request response
  'status': status_example, // {{String}} Filter inventories by status
  'deviceType': deviceType_example, // {{String}} Filter inventories by device type
  'complianceStatus': complianceStatus_example, // {{String}} Filter inventories by compliance status
  'manufacturer': manufacturer_example, // {{String}} Filter inventories by manufacturer
  'location': location_example // {{String}} Filter inventories by location
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.inventoriesIndex(orgId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class inventoriesIndexExample
    {
        public void main()
        {


            var apiInstance = new InventoriesApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var offset = 56;  // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional)  (default to 0)
            var limit = 56;  // Integer | Specify the number of records to return in the request response (optional)  (default to 10000)
            var status = status_example;  // String | Filter inventories by status (optional) 
            var deviceType = deviceType_example;  // String | Filter inventories by device type (optional) 
            var complianceStatus = complianceStatus_example;  // String | Filter inventories by compliance status (optional) 
            var manufacturer = manufacturer_example;  // String | Filter inventories by manufacturer (optional) 
            var location = location_example;  // String | Filter inventories by location (optional) 

            try
            {
                // Retrieves a list of inventories. The inventories are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all inventories.
                InventoryIndexResult result = apiInstance.inventoriesIndex(orgId, offset, limit, status, deviceType, complianceStatus, manufacturer, location);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InventoriesApi.inventoriesIndex: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiInventoriesApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
$limit = 56; // Integer | Specify the number of records to return in the request response
$status = status_example; // String | Filter inventories by status
$deviceType = deviceType_example; // String | Filter inventories by device type
$complianceStatus = complianceStatus_example; // String | Filter inventories by compliance status
$manufacturer = manufacturer_example; // String | Filter inventories by manufacturer
$location = location_example; // String | Filter inventories by location

try {
    $result = $api_instance->inventoriesIndex($orgId, $offset, $limit, $status, $deviceType, $complianceStatus, $manufacturer, $location);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InventoriesApi->inventoriesIndex: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InventoriesApi;


my $api_instance = WWW::SwaggerClient::InventoriesApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $offset = 56; # Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
my $limit = 56; # Integer | Specify the number of records to return in the request response
my $status = status_example; # String | Filter inventories by status
my $deviceType = deviceType_example; # String | Filter inventories by device type
my $complianceStatus = complianceStatus_example; # String | Filter inventories by compliance status
my $manufacturer = manufacturer_example; # String | Filter inventories by manufacturer
my $location = location_example; # String | Filter inventories by location

eval { 
    my $result = $api_instance->inventoriesIndex(orgId => $orgId, offset => $offset, limit => $limit, status => $status, deviceType => $deviceType, complianceStatus => $complianceStatus, manufacturer => $manufacturer, location => $location);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoriesApi->inventoriesIndex: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.InventoriesApi()
orgId = 56 # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
offset = 56 # Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional) (default to 0)
limit = 56 # Integer | Specify the number of records to return in the request response (optional) (default to 10000)
status = status_example # String | Filter inventories by status (optional)
deviceType = deviceType_example # String | Filter inventories by device type (optional)
complianceStatus = complianceStatus_example # String | Filter inventories by compliance status (optional)
manufacturer = manufacturer_example # String | Filter inventories by manufacturer (optional)
location = location_example # String | Filter inventories by location (optional)

try: 
    # Retrieves a list of inventories. The inventories are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all inventories.
    api_response = api_instance.inventories_index(orgId, offset=offset, limit=limit, status=status, deviceType=deviceType, complianceStatus=complianceStatus, manufacturer=manufacturer, location=location)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoriesApi->inventoriesIndex: %s\n" % e)

Parameters

Path parameters
Name Description
orgId*
Integer
Specify the unique identifier, as provided by Flexera, that defines your organization
Required
Query parameters
Name Description
offset
Integer
Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
limit
Integer
Specify the number of records to return in the request response
status
String
Filter inventories by status
deviceType
String
Filter inventories by device type
complianceStatus
String
Filter inventories by compliance status
manufacturer
String
Filter inventories by manufacturer
location
String
Filter inventories by location

Responses

Status: 200 -

{"limit":5000,"offset":500,"request":{"complianceStatus":"Changed","deviceType":"Remote Device","location":"Flexera/IL","manufacturer":"Dell","orgId":12832,"status":"Awaiting Inventory"},"total":13550823297655600000,"values":[{"assetId":123456,"complianceStatus":"New","computerId":123456,"deviceType":"Computer","hostId":"ABC123","inventorySourceData":{"connectionName":"FlexNet Manager Suite","lastInventoryDate":"1990-08-12T14:58:30Z","lastInventorySource":"FlexNet Manager Suite","status":"Active"},"ipAddress":"10.0.1.2","macAddresses":"00:05:0A:3C:7A:00, 2A:C6:3F:BF:BE:B4","machineId":"ABC123","manufacturer":"Lenovo","model":"Thinkpad","name":"My Inventory","os":"Windows","ownership":{"costCenter":"ABC123","department":"IT","location":"Datacenter"},"processorType":"Intel(R) 486 DX CPU","ram":1.5,"serialNumber":"ABC123","userData":{"assignedTo":"John Doe","calculatedUser":"Doe, Jane","lastLoggedOnUser":"Smithers, Waylon"}},{"assetId":123456,"complianceStatus":"New","computerId":123456,"deviceType":"Computer","hostId":"ABC123","inventorySourceData":{"connectionName":"FlexNet Manager Suite","lastInventoryDate":"1990-08-12T14:58:30Z","lastInventorySource":"FlexNet Manager Suite","status":"Active"},"ipAddress":"10.0.1.2","macAddresses":"00:05:0A:3C:7A:00, 2A:C6:3F:BF:BE:B4","machineId":"ABC123","manufacturer":"Lenovo","model":"Thinkpad","name":"My Inventory","os":"Windows","ownership":{"costCenter":"ABC123","department":"IT","location":"Datacenter"},"processorType":"Intel(R) 486 DX CPU","ram":1.5,"serialNumber":"ABC123","userData":{"assignedTo":"John Doe","calculatedUser":"Doe, Jane","lastLoggedOnUser":"Smithers, Waylon"}}]}

Status: 400 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":true}

Status: 401 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":false}

Status: 403 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":false}

Status: 500 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":false}

Status: 502 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":true}

Licenses

licensesAttributes

Retrieves a list of license attributes. The license attributes are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all license attributes.

List license attributes


/fnms/v1/orgs/{orgId}/license-attributes

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json,application/vnd.goa.error"\
"https://api.flexera.com/fnms/v1/orgs/{orgId}/license-attributes?offset=&limit="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LicensesApi;

import java.io.File;
import java.util.*;

public class LicensesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        LicensesApi apiInstance = new LicensesApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        Integer offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
        Integer limit = 56; // Integer | Specify the number of records to return in the request response
        try {
            AttributesResponseBody result = apiInstance.licensesAttributes(orgId, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensesApi#licensesAttributes");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LicensesApi;

public class LicensesApiExample {

    public static void main(String[] args) {
        LicensesApi apiInstance = new LicensesApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        Integer offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
        Integer limit = 56; // Integer | Specify the number of records to return in the request response
        try {
            AttributesResponseBody result = apiInstance.licensesAttributes(orgId, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensesApi#licensesAttributes");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
Integer *offset = 56; // Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional) (default to 0)
Integer *limit = 56; // Specify the number of records to return in the request response (optional) (default to 10000)

LicensesApi *apiInstance = [[LicensesApi alloc] init];

// Retrieves a list of license attributes. The license attributes are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all license attributes.
[apiInstance licensesAttributesWith:orgId
    offset:offset
    limit:limit
              completionHandler: ^(AttributesResponseBody output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ItAssetManagementDataApi = require('it_asset_management_data_api');
var defaultClient = ItAssetManagementDataApi.ApiClient.instance;


var api = new ItAssetManagementDataApi.LicensesApi()
var orgId = 56; // {{Integer}} Specify the unique identifier, as provided by Flexera, that defines your organization
var opts = { 
  'offset': 56, // {{Integer}} Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
  'limit': 56 // {{Integer}} Specify the number of records to return in the request response
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.licensesAttributes(orgId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class licensesAttributesExample
    {
        public void main()
        {


            var apiInstance = new LicensesApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var offset = 56;  // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional)  (default to 0)
            var limit = 56;  // Integer | Specify the number of records to return in the request response (optional)  (default to 10000)

            try
            {
                // Retrieves a list of license attributes. The license attributes are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all license attributes.
                AttributesResponseBody result = apiInstance.licensesAttributes(orgId, offset, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LicensesApi.licensesAttributes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiLicensesApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
$limit = 56; // Integer | Specify the number of records to return in the request response

try {
    $result = $api_instance->licensesAttributes($orgId, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LicensesApi->licensesAttributes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LicensesApi;


my $api_instance = WWW::SwaggerClient::LicensesApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $offset = 56; # Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
my $limit = 56; # Integer | Specify the number of records to return in the request response

eval { 
    my $result = $api_instance->licensesAttributes(orgId => $orgId, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LicensesApi->licensesAttributes: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.LicensesApi()
orgId = 56 # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
offset = 56 # Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional) (default to 0)
limit = 56 # Integer | Specify the number of records to return in the request response (optional) (default to 10000)

try: 
    # Retrieves a list of license attributes. The license attributes are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all license attributes.
    api_response = api_instance.licenses_attributes(orgId, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LicensesApi->licensesAttributes: %s\n" % e)

Parameters

Path parameters
Name Description
orgId*
Integer
Specify the unique identifier, as provided by Flexera, that defines your organization
Required
Query parameters
Name Description
offset
Integer
Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
limit
Integer
Specify the number of records to return in the request response

Responses

Status: 200 -

{"limit":5000,"offset":500,"request":{"orgId":12832},"total":56235934850081330,"values":[{"core":4407533768137532000,"edition":"Limited","expiryDate":"2009-08-29T22:38:18Z","lastUpdated":"2011-10-09T07:44:37Z","licenseDuration":"Perpetual","licenseId":6107874682764203000,"licenseName":"Microsoft Office","licenseStatus":"Active","licenseType":"Device","productCategory":"Test","publisher":"Microsoft","quantities":{"category":"Software","consumed":7711771586254915000,"licenseKeyRule":"On-premises","purchased":4615250267884419000,"serialNumber":"ABC123","used":4789386076056309000},"version":"1.0"},{"core":4407533768137532000,"edition":"Limited","expiryDate":"2009-08-29T22:38:18Z","lastUpdated":"2011-10-09T07:44:37Z","licenseDuration":"Perpetual","licenseId":6107874682764203000,"licenseName":"Microsoft Office","licenseStatus":"Active","licenseType":"Device","productCategory":"Test","publisher":"Microsoft","quantities":{"category":"Software","consumed":7711771586254915000,"licenseKeyRule":"On-premises","purchased":4615250267884419000,"serialNumber":"ABC123","used":4789386076056309000},"version":"1.0"}]}

Status: 400 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":true}

Status: 401 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":true}

Status: 403 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":true}

Status: 500 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":false}

Status: 502 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":true}

licensesEntitlements

Retrieves a list of license entitlements. The license entitlements are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all license entitlements.

List license entitlements


/fnms/v1/orgs/{orgId}/license-entitlements

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json,application/vnd.goa.error"\
"https://api.flexera.com/fnms/v1/orgs/{orgId}/license-entitlements?offset=&limit="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LicensesApi;

import java.io.File;
import java.util.*;

public class LicensesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        LicensesApi apiInstance = new LicensesApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        Integer offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
        Integer limit = 56; // Integer | Specify the number of records to return in the request response
        try {
            EntitlementsResponseBody result = apiInstance.licensesEntitlements(orgId, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensesApi#licensesEntitlements");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LicensesApi;

public class LicensesApiExample {

    public static void main(String[] args) {
        LicensesApi apiInstance = new LicensesApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        Integer offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
        Integer limit = 56; // Integer | Specify the number of records to return in the request response
        try {
            EntitlementsResponseBody result = apiInstance.licensesEntitlements(orgId, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensesApi#licensesEntitlements");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
Integer *offset = 56; // Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional) (default to 0)
Integer *limit = 56; // Specify the number of records to return in the request response (optional) (default to 10000)

LicensesApi *apiInstance = [[LicensesApi alloc] init];

// Retrieves a list of license entitlements. The license entitlements are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all license entitlements.
[apiInstance licensesEntitlementsWith:orgId
    offset:offset
    limit:limit
              completionHandler: ^(EntitlementsResponseBody output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ItAssetManagementDataApi = require('it_asset_management_data_api');
var defaultClient = ItAssetManagementDataApi.ApiClient.instance;


var api = new ItAssetManagementDataApi.LicensesApi()
var orgId = 56; // {{Integer}} Specify the unique identifier, as provided by Flexera, that defines your organization
var opts = { 
  'offset': 56, // {{Integer}} Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
  'limit': 56 // {{Integer}} Specify the number of records to return in the request response
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.licensesEntitlements(orgId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class licensesEntitlementsExample
    {
        public void main()
        {


            var apiInstance = new LicensesApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var offset = 56;  // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional)  (default to 0)
            var limit = 56;  // Integer | Specify the number of records to return in the request response (optional)  (default to 10000)

            try
            {
                // Retrieves a list of license entitlements. The license entitlements are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all license entitlements.
                EntitlementsResponseBody result = apiInstance.licensesEntitlements(orgId, offset, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LicensesApi.licensesEntitlements: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiLicensesApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
$limit = 56; // Integer | Specify the number of records to return in the request response

try {
    $result = $api_instance->licensesEntitlements($orgId, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LicensesApi->licensesEntitlements: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LicensesApi;


my $api_instance = WWW::SwaggerClient::LicensesApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $offset = 56; # Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
my $limit = 56; # Integer | Specify the number of records to return in the request response

eval { 
    my $result = $api_instance->licensesEntitlements(orgId => $orgId, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LicensesApi->licensesEntitlements: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.LicensesApi()
orgId = 56 # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
offset = 56 # Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional) (default to 0)
limit = 56 # Integer | Specify the number of records to return in the request response (optional) (default to 10000)

try: 
    # Retrieves a list of license entitlements. The license entitlements are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all license entitlements.
    api_response = api_instance.licenses_entitlements(orgId, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LicensesApi->licensesEntitlements: %s\n" % e)

Parameters

Path parameters
Name Description
orgId*
Integer
Specify the unique identifier, as provided by Flexera, that defines your organization
Required
Query parameters
Name Description
offset
Integer
Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
limit
Integer
Specify the number of records to return in the request response

Responses

Status: 200 -

{"limit":5000,"offset":500,"request":{"orgId":12832},"total":8607587231394157000,"values":[{"available":7158906951541375000,"consumed":430047401677535740,"extra":5936454343786687000,"licenseId":549440352709644740,"limitType":"Corporis magnam perferendis quos reiciendis rerum.","total":6142967060619196000},{"available":7158906951541375000,"consumed":430047401677535740,"extra":5936454343786687000,"licenseId":549440352709644740,"limitType":"Corporis magnam perferendis quos reiciendis rerum.","total":6142967060619196000}]}

Status: 400 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":true}

Status: 401 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":true}

Status: 403 -

{"fault":false,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":false,"timeout":false}

Status: 500 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":true}

Status: 502 -

{"fault":true,"id":"123abc","message":"parameter 'p' must be an integer","name":"bad_request","temporary":true,"timeout":false}