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 - OK response.

Status: 400 - bad_request: Bad Request response.

Status: 401 - unauthorized: Unauthorized response.

Status: 403 - forbidden: Forbidden response.

Status: 500 - internal_error: Internal Server Error response.

Status: 502 - bad_gateway: Bad Gateway response.


Assets

assetsIndex

Retrieves a list of all 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 all 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 all 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 all 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 - OK response.

Status: 400 - bad_request: Bad Request response.

Status: 401 - unauthorized: Unauthorized response.

Status: 403 - forbidden: Forbidden response.

Status: 500 - internal_error: Internal Server Error response.

Status: 502 - bad_gateway: Bad Gateway response.


Devices

devicesCreate

Create a file containing active devices with installed software

``` { "computerId": 7682181994159115074, "computerName": "LTP-EMEA-102830", "deviceStatus": "Active", "ipAddress": "10.0.1.2", "os": "Microsoft Windows Server 2008 R2 Enterprise", "serialNo": "8NOGS1S", "softwareTitles": [ { "edition": "1", "publisher": "devexpress", "softwareStatus": "authorized", "softwareTitleName": "coderush", "version": "4.5" }, { "edition": "1", "publisher": "devexpress", "softwareStatus": "authorized", "softwareTitleName": "coderush", "version": "4.5" }, { "edition": "1", "publisher": "devexpress", "softwareStatus": "authorized", "softwareTitleName": "coderush", "version": "4.5" } ] } ```


/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 - OK response.

Status: 400 - bad_request: Bad Request response.

Status: 401 - unauthorized: Unauthorized response.

Status: 403 - forbidden: Forbidden response.

Status: 500 - internal_error: Internal Server Error response.

Status: 502 - bad_gateway: Bad Gateway response.


devicesCreateV2

Create a file containing active devices with installed software

``` { "assignedUser": "Galaxy Admin", "computerId": 7682181994159115074, "computerName": "LTP-EMEA-102830", "deviceStatus": "Active", "hostNameForTheVM": "ws01e", "hostedIn": "AWS", "inventoryDate": "2006-09-15", "inventoryDeviceRole": "Production", "inventoryDeviceType": "Virtual Machine", "ipAddress": "10.0.1.2", "lastInventorySource": "Flexera Saas", "lastLoggedInUser": "csa-test-user-1", "manufacturer": "Dell", "model": "Optiplex", "numberOfCores": 1, "numberOfProcessors": 1, "os": "Microsoft Windows Server 2008 R2 Enterprise", "processorType": "Intel", "serialNo": "8NOGS1S", "softwareTitles": [ { "accessMode": "ZenDesktop", "category": "Software", "classification": "Freeware", "discoveryDate": "2006-01-15", "edition": "1", "lastUsedDate": "2006-10-18", "productName": "SQL Server", "publisher": "devexpress", "softwareStatus": "authorized", "softwareTitleName": "coderush", "version": "4.5" }, { "accessMode": "ZenDesktop", "category": "Software", "classification": "Freeware", "discoveryDate": "2006-01-15", "edition": "1", "lastUsedDate": "2006-10-18", "productName": "SQL Server", "publisher": "devexpress", "softwareStatus": "authorized", "softwareTitleName": "coderush", "version": "4.5" }, { "accessMode": "ZenDesktop", "category": "Software", "classification": "Freeware", "discoveryDate": "2006-01-15", "edition": "1", "lastUsedDate": "2006-10-18", "productName": "SQL Server", "publisher": "devexpress", "softwareStatus": "authorized", "softwareTitleName": "coderush", "version": "4.5" } ], "totalMemory": 1073741824 } ```


/fnms/v2/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/v2/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
        String accept = accept_example; // String | Accept type for the data format in zipped file
        try {
            CreateResponseBody result = apiInstance.devicesCreateV2(orgId, os, softwareTitle, publisher, softwareStatus, accept);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#devicesCreateV2");
            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
        String accept = accept_example; // String | Accept type for the data format in zipped file
        try {
            CreateResponseBody result = apiInstance.devicesCreateV2(orgId, os, softwareTitle, publisher, softwareStatus, accept);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#devicesCreateV2");
            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)
String *accept = accept_example; // Accept type for the data format in zipped file (optional) (default to application/json)

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

// Create a file containing active devices with installed software
[apiInstance devicesCreateV2With:orgId
    os:os
    softwareTitle:softwareTitle
    publisher:publisher
    softwareStatus:softwareStatus
    accept:accept
              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
  'accept': accept_example // {{String}} Accept type for the data format in zipped file
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.devicesCreateV2(orgId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class devicesCreateV2Example
    {
        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) 
            var accept = accept_example;  // String | Accept type for the data format in zipped file (optional)  (default to application/json)

            try
            {
                // Create a file containing active devices with installed software
                CreateResponseBody result = apiInstance.devicesCreateV2(orgId, os, softwareTitle, publisher, softwareStatus, accept);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.devicesCreateV2: " + 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
$accept = accept_example; // String | Accept type for the data format in zipped file

try {
    $result = $api_instance->devicesCreateV2($orgId, $os, $softwareTitle, $publisher, $softwareStatus, $accept);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->devicesCreateV2: ', $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
my $accept = accept_example; # String | Accept type for the data format in zipped file

eval { 
    my $result = $api_instance->devicesCreateV2(orgId => $orgId, os => $os, softwareTitle => $softwareTitle, publisher => $publisher, softwareStatus => $softwareStatus, accept => $accept);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DevicesApi->devicesCreateV2: $@\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)
accept = accept_example # String | Accept type for the data format in zipped file (optional) (default to application/json)

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

Parameters

Path parameters
Name Description
orgId*
Integer
Specify the unique identifier, as provided by Flexera, that defines your organization
Required
Header parameters
Name Description
Accept
String
Accept type for the data format in zipped file
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 - OK response.

Status: 400 - bad_request: Bad Request response.

Status: 401 - unauthorized: Unauthorized response.

Status: 403 - forbidden: Forbidden response.

Status: 500 - internal_error: Internal Server Error response.

Status: 502 - bad_gateway: Bad Gateway response.


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/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 - See Other response.

Name Type Format Description
Location String

Status: 400 - bad_request: Bad Request response.

Status: 401 - unauthorized: Unauthorized response.

Status: 403 - forbidden: Forbidden response.

Status: 404 - not_found: Not Found response.

Status: 500 - internal_error: Internal Server Error response.

Status: 502 - bad_gateway: Bad Gateway response.


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 - OK response.

Status: 400 - bad_request: Bad Request response.

Status: 401 - unauthorized: Unauthorized response.

Status: 403 - forbidden: Forbidden response.

Status: 500 - internal_error: Internal Server Error response.

Status: 502 - bad_gateway: Bad Gateway response.


LicensedApplications

licensedApplicationsIndex

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

List Licensed Applications


/fnms/v1/orgs/{orgId}/licensed-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}/licensed-applications?offset=&limit=&status="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LicensedApplicationsApi;

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

public class LicensedApplicationsApiExample {

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


        LicensedApplicationsApi apiInstance = new LicensedApplicationsApi();
        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 licensed applications by status
        try {
            LicensedApplicationIndexResult result = apiInstance.licensedApplicationsIndex(orgId, offset, limit, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensedApplicationsApi#licensedApplicationsIndex");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LicensedApplicationsApi;

public class LicensedApplicationsApiExample {

    public static void main(String[] args) {
        LicensedApplicationsApi apiInstance = new LicensedApplicationsApi();
        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 licensed applications by status
        try {
            LicensedApplicationIndexResult result = apiInstance.licensedApplicationsIndex(orgId, offset, limit, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensedApplicationsApi#licensedApplicationsIndex");
            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 licensed applications by status (optional)

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

// Retrieves a list of applications that tied to a license, identified during the last software inventory import. The licensed applications are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all licensed applications.
[apiInstance licensedApplicationsIndexWith:orgId
    offset:offset
    limit:limit
    status:status
              completionHandler: ^(LicensedApplicationIndexResult 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.LicensedApplicationsApi()
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 licensed applications by status
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.licensedApplicationsIndex(orgId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new LicensedApplicationsApi();
            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 licensed applications by status (optional) 

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


$api_instance = new Swagger\Client\ApiLicensedApplicationsApi();
$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 licensed applications by status

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


my $api_instance = WWW::SwaggerClient::LicensedApplicationsApi->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 licensed applications by status

eval { 
    my $result = $api_instance->licensedApplicationsIndex(orgId => $orgId, offset => $offset, limit => $limit, status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LicensedApplicationsApi->licensedApplicationsIndex: $@\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.LicensedApplicationsApi()
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 licensed applications by status (optional)

try: 
    # Retrieves a list of applications that tied to a license, identified during the last software inventory import. The licensed applications are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all licensed applications.
    api_response = api_instance.licensed_applications_index(orgId, offset=offset, limit=limit, status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LicensedApplicationsApi->licensedApplicationsIndex: %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 licensed applications by status

Responses

Status: 200 - OK response.

Status: 400 - bad_request: Bad Request response.

Status: 401 - unauthorized: Unauthorized response.

Status: 403 - forbidden: Forbidden response.

Status: 500 - internal_error: Internal Server Error response.

Status: 502 - bad_gateway: Bad Gateway response.


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 - OK response.

Status: 400 - bad_request: Bad Request response.

Status: 401 - unauthorized: Unauthorized response.

Status: 403 - forbidden: Forbidden response.

Status: 500 - internal_error: Internal Server Error response.

Status: 502 - bad_gateway: Bad Gateway response.


licensesConsumption

Show the consumption associated with a license

Retrieve the consumption associated to a license.


/fnms/v1/orgs/{orgId}/licenses/{id}/consumption

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}/licenses/{id}/consumption?view=&limit=&skipToken="
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
        String id = id_example; // String | Globally unique identifier for the license.
        String view = view_example; // String | Optional view used to render properties associated with the consumption.
        Integer limit = 56; // Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
        String skipToken = skipToken_example; // String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.
        try {
            inline_response_200_1 result = apiInstance.licensesConsumption(orgId, id, view, limit, skipToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensesApi#licensesConsumption");
            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
        String id = id_example; // String | Globally unique identifier for the license.
        String view = view_example; // String | Optional view used to render properties associated with the consumption.
        Integer limit = 56; // Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
        String skipToken = skipToken_example; // String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.
        try {
            inline_response_200_1 result = apiInstance.licensesConsumption(orgId, id, view, limit, skipToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensesApi#licensesConsumption");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
String *id = id_example; // Globally unique identifier for the license.
String *view = view_example; // Optional view used to render properties associated with the consumption. (optional) (default to index)
Integer *limit = 56; // Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided. (optional) (default to 10000)
String *skipToken = skipToken_example; // An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken. (optional)

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

// Show the consumption associated with a license
[apiInstance licensesConsumptionWith:orgId
    id:id
    view:view
    limit:limit
    skipToken:skipToken
              completionHandler: ^(inline_response_200_1 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 id = id_example; // {{String}} Globally unique identifier for the license.
var opts = { 
  'view': view_example, // {{String}} Optional view used to render properties associated with the consumption.
  'limit': 56, // {{Integer}} Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
  'skipToken': skipToken_example // {{String}} An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.licensesConsumption(orgId, id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new LicensesApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var id = id_example;  // String | Globally unique identifier for the license.
            var view = view_example;  // String | Optional view used to render properties associated with the consumption. (optional)  (default to index)
            var limit = 56;  // Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided. (optional)  (default to 10000)
            var skipToken = skipToken_example;  // String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken. (optional) 

            try
            {
                // Show the consumption associated with a license
                inline_response_200_1 result = apiInstance.licensesConsumption(orgId, id, view, limit, skipToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LicensesApi.licensesConsumption: " + 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
$id = id_example; // String | Globally unique identifier for the license.
$view = view_example; // String | Optional view used to render properties associated with the consumption.
$limit = 56; // Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
$skipToken = skipToken_example; // String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.

try {
    $result = $api_instance->licensesConsumption($orgId, $id, $view, $limit, $skipToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LicensesApi->licensesConsumption: ', $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 $id = id_example; # String | Globally unique identifier for the license.
my $view = view_example; # String | Optional view used to render properties associated with the consumption.
my $limit = 56; # Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
my $skipToken = skipToken_example; # String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.

eval { 
    my $result = $api_instance->licensesConsumption(orgId => $orgId, id => $id, view => $view, limit => $limit, skipToken => $skipToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LicensesApi->licensesConsumption: $@\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
id = id_example # String | Globally unique identifier for the license.
view = view_example # String | Optional view used to render properties associated with the consumption. (optional) (default to index)
limit = 56 # Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided. (optional) (default to 10000)
skipToken = skipToken_example # String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken. (optional)

try: 
    # Show the consumption associated with a license
    api_response = api_instance.licenses_consumption(orgId, id, view=view, limit=limit, skipToken=skipToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LicensesApi->licensesConsumption: %s\n" % e)

Parameters

Path parameters
Name Description
orgId*
Integer
Specify the unique identifier, as provided by Flexera, that defines your organization
Required
id*
String
Globally unique identifier for the license.
Required
Query parameters
Name Description
view
String
Optional view used to render properties associated with the consumption.
limit
Integer
Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
skipToken
String
An opaque token to be provided when requesting a subsequent page after receiving a partial response. Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.

Responses

Status: 200 - OK response.

Status: 400 - bad_request: Bad Request response.

Status: 401 - unauthorized: Unauthorized response.

Status: 403 - forbidden: Forbidden response.

Status: 404 - not_found: Not Found response.

Status: 422 - unprocessable_entity: Unprocessable Entity response.

Status: 500 - internal_error: Internal Server Error response.

Status: 502 - bad_gateway: Bad Gateway response.


licensesDevices

Show the devices associated with a license

Retrieve the devices associated to a license.


/fnms/v1/orgs/{orgId}/licenses/{id}/devices

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}/licenses/{id}/devices?filter=&view=&limit=&skipToken="
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
        String id = id_example; // String | Globally unique identifier for the license.
        String filter = filter_example; // String | Optional filter for filtering list of devices returned. This filter is ignored if a skip token is provided.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| type | Filters on the type of device (computer, vm) | eq | Equal - The attribute and operator values must be identical for a match. | type eq 'vm' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(type%20eq%20'vm')
        String view = view_example; // String | Optional view used to render list devices associated with the license
        Integer limit = 56; // Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
        String skipToken = skipToken_example; // String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.
        try {
            inline_response_200_2 result = apiInstance.licensesDevices(orgId, id, filter, view, limit, skipToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensesApi#licensesDevices");
            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
        String id = id_example; // String | Globally unique identifier for the license.
        String filter = filter_example; // String | Optional filter for filtering list of devices returned. This filter is ignored if a skip token is provided.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| type | Filters on the type of device (computer, vm) | eq | Equal - The attribute and operator values must be identical for a match. | type eq 'vm' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(type%20eq%20'vm')
        String view = view_example; // String | Optional view used to render list devices associated with the license
        Integer limit = 56; // Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
        String skipToken = skipToken_example; // String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.
        try {
            inline_response_200_2 result = apiInstance.licensesDevices(orgId, id, filter, view, limit, skipToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensesApi#licensesDevices");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
String *id = id_example; // Globally unique identifier for the license.
String *filter = filter_example; // Optional filter for filtering list of devices returned. This filter is ignored if a skip token is provided.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| type | Filters on the type of device (computer, vm) | eq | Equal - The attribute and operator values must be identical for a match. | type eq 'vm' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(type%20eq%20'vm') (optional)
String *view = view_example; // Optional view used to render list devices associated with the license (optional) (default to index)
Integer *limit = 56; // Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided. (optional) (default to 10000)
String *skipToken = skipToken_example; // An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken. (optional)

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

// Show the devices associated with a license
[apiInstance licensesDevicesWith:orgId
    id:id
    filter:filter
    view:view
    limit:limit
    skipToken:skipToken
              completionHandler: ^(inline_response_200_2 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 id = id_example; // {{String}} Globally unique identifier for the license.
var opts = { 
  'filter': filter_example, // {{String}} Optional filter for filtering list of devices returned. This filter is ignored if a skip token is provided.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| type | Filters on the type of device (computer, vm) | eq | Equal - The attribute and operator values must be identical for a match. | type eq 'vm' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(type%20eq%20'vm')
  'view': view_example, // {{String}} Optional view used to render list devices associated with the license
  'limit': 56, // {{Integer}} Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
  'skipToken': skipToken_example // {{String}} An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.licensesDevices(orgId, id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new LicensesApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var id = id_example;  // String | Globally unique identifier for the license.
            var filter = filter_example;  // String | Optional filter for filtering list of devices returned. This filter is ignored if a skip token is provided.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| type | Filters on the type of device (computer, vm) | eq | Equal - The attribute and operator values must be identical for a match. | type eq 'vm' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(type%20eq%20'vm') (optional) 
            var view = view_example;  // String | Optional view used to render list devices associated with the license (optional)  (default to index)
            var limit = 56;  // Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided. (optional)  (default to 10000)
            var skipToken = skipToken_example;  // String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken. (optional) 

            try
            {
                // Show the devices associated with a license
                inline_response_200_2 result = apiInstance.licensesDevices(orgId, id, filter, view, limit, skipToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LicensesApi.licensesDevices: " + 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
$id = id_example; // String | Globally unique identifier for the license.
$filter = filter_example; // String | Optional filter for filtering list of devices returned. This filter is ignored if a skip token is provided.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| type | Filters on the type of device (computer, vm) | eq | Equal - The attribute and operator values must be identical for a match. | type eq 'vm' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(type%20eq%20'vm')
$view = view_example; // String | Optional view used to render list devices associated with the license
$limit = 56; // Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
$skipToken = skipToken_example; // String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.

try {
    $result = $api_instance->licensesDevices($orgId, $id, $filter, $view, $limit, $skipToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LicensesApi->licensesDevices: ', $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 $id = id_example; # String | Globally unique identifier for the license.
my $filter = filter_example; # String | Optional filter for filtering list of devices returned. This filter is ignored if a skip token is provided.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| type | Filters on the type of device (computer, vm) | eq | Equal - The attribute and operator values must be identical for a match. | type eq 'vm' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(type%20eq%20'vm')
my $view = view_example; # String | Optional view used to render list devices associated with the license
my $limit = 56; # Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
my $skipToken = skipToken_example; # String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.

eval { 
    my $result = $api_instance->licensesDevices(orgId => $orgId, id => $id, filter => $filter, view => $view, limit => $limit, skipToken => $skipToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LicensesApi->licensesDevices: $@\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
id = id_example # String | Globally unique identifier for the license.
filter = filter_example # String | Optional filter for filtering list of devices returned. This filter is ignored if a skip token is provided.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| type | Filters on the type of device (computer, vm) | eq | Equal - The attribute and operator values must be identical for a match. | type eq 'vm' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(type%20eq%20'vm') (optional)
view = view_example # String | Optional view used to render list devices associated with the license (optional) (default to index)
limit = 56 # Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided. (optional) (default to 10000)
skipToken = skipToken_example # String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken. (optional)

try: 
    # Show the devices associated with a license
    api_response = api_instance.licenses_devices(orgId, id, filter=filter, view=view, limit=limit, skipToken=skipToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LicensesApi->licensesDevices: %s\n" % e)

Parameters

Path parameters
Name Description
orgId*
Integer
Specify the unique identifier, as provided by Flexera, that defines your organization
Required
id*
String
Globally unique identifier for the license.
Required
Query parameters
Name Description
filter
String
Optional filter for filtering list of devices returned. This filter is ignored if a skip token is provided. The following filters are supported: | Filter | Description | Allowed Operator | Behavior | Example | | --- | ---| --- | --- | --- | | type | Filters on the type of device (computer, vm) | eq | Equal - The attribute and operator values must be identical for a match. | type eq 'vm' | * The filter parameter value must be URL encoded. e.g: ?filter=(type%20eq%20'vm')
view
String
Optional view used to render list devices associated with the license
limit
Integer
Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
skipToken
String
An opaque token to be provided when requesting a subsequent page after receiving a partial response. Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.

Responses

Status: 200 - OK response.

Status: 400 - bad_request: Bad Request response.

Status: 401 - unauthorized: Unauthorized response.

Status: 403 - forbidden: Forbidden response.

Status: 404 - not_found: Not Found response.

Status: 422 - unprocessable_entity: Unprocessable Entity response.

Status: 500 - internal_error: Internal Server Error response.

Status: 502 - bad_gateway: Bad Gateway response.


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 - OK response.

Status: 400 - bad_request: Bad Request response.

Status: 401 - unauthorized: Unauthorized response.

Status: 403 - forbidden: Forbidden response.

Status: 500 - internal_error: Internal Server Error response.

Status: 502 - bad_gateway: Bad Gateway response.


licensesIndex

Retrieve all software licenses

Retrieve all software licenses.


/fnms/v1/orgs/{orgId}/licenses

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}/licenses?filter=&view="
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
        String filter = filter_example; // String | Optional filter for filtering list of licenses returned.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| typeCategory | Filters on the type categories of licenses (user, device, processor) | eq | Equal - The attribute and operator values must be identical for a match. | typeCategory eq 'processor' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(typeCategory%20eq%20'processor')
        String view = view_example; // String | Optional view used to render list of software licenses
        try {
            inline_response_200 result = apiInstance.licensesIndex(orgId, filter, view);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensesApi#licensesIndex");
            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
        String filter = filter_example; // String | Optional filter for filtering list of licenses returned.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| typeCategory | Filters on the type categories of licenses (user, device, processor) | eq | Equal - The attribute and operator values must be identical for a match. | typeCategory eq 'processor' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(typeCategory%20eq%20'processor')
        String view = view_example; // String | Optional view used to render list of software licenses
        try {
            inline_response_200 result = apiInstance.licensesIndex(orgId, filter, view);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensesApi#licensesIndex");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
String *filter = filter_example; // Optional filter for filtering list of licenses returned.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| typeCategory | Filters on the type categories of licenses (user, device, processor) | eq | Equal - The attribute and operator values must be identical for a match. | typeCategory eq 'processor' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(typeCategory%20eq%20'processor') (optional)
String *view = view_example; // Optional view used to render list of software licenses (optional) (default to index)

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

// Retrieve all software licenses
[apiInstance licensesIndexWith:orgId
    filter:filter
    view:view
              completionHandler: ^(inline_response_200 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 = { 
  'filter': filter_example, // {{String}} Optional filter for filtering list of licenses returned.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| typeCategory | Filters on the type categories of licenses (user, device, processor) | eq | Equal - The attribute and operator values must be identical for a match. | typeCategory eq 'processor' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(typeCategory%20eq%20'processor')
  'view': view_example // {{String}} Optional view used to render list of software licenses
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.licensesIndex(orgId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new LicensesApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var filter = filter_example;  // String | Optional filter for filtering list of licenses returned.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| typeCategory | Filters on the type categories of licenses (user, device, processor) | eq | Equal - The attribute and operator values must be identical for a match. | typeCategory eq 'processor' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(typeCategory%20eq%20'processor') (optional) 
            var view = view_example;  // String | Optional view used to render list of software licenses (optional)  (default to index)

            try
            {
                // Retrieve all software licenses
                inline_response_200 result = apiInstance.licensesIndex(orgId, filter, view);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LicensesApi.licensesIndex: " + 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
$filter = filter_example; // String | Optional filter for filtering list of licenses returned.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| typeCategory | Filters on the type categories of licenses (user, device, processor) | eq | Equal - The attribute and operator values must be identical for a match. | typeCategory eq 'processor' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(typeCategory%20eq%20'processor')
$view = view_example; // String | Optional view used to render list of software licenses

try {
    $result = $api_instance->licensesIndex($orgId, $filter, $view);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LicensesApi->licensesIndex: ', $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 $filter = filter_example; # String | Optional filter for filtering list of licenses returned.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| typeCategory | Filters on the type categories of licenses (user, device, processor) | eq | Equal - The attribute and operator values must be identical for a match. | typeCategory eq 'processor' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(typeCategory%20eq%20'processor')
my $view = view_example; # String | Optional view used to render list of software licenses

eval { 
    my $result = $api_instance->licensesIndex(orgId => $orgId, filter => $filter, view => $view);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LicensesApi->licensesIndex: $@\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
filter = filter_example # String | Optional filter for filtering list of licenses returned.
The following filters are supported:
| Filter | Description | Allowed Operator | Behavior | Example |
| --- | ---| --- | --- | --- |
| typeCategory | Filters on the type categories of licenses (user, device, processor) | eq | Equal - The attribute and operator values must be identical for a match. | typeCategory eq 'processor' |
* The filter parameter value must be URL encoded.
		e.g: ?filter=(typeCategory%20eq%20'processor') (optional)
view = view_example # String | Optional view used to render list of software licenses (optional) (default to index)

try: 
    # Retrieve all software licenses
    api_response = api_instance.licenses_index(orgId, filter=filter, view=view)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LicensesApi->licensesIndex: %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
filter
String
Optional filter for filtering list of licenses returned. The following filters are supported: | Filter | Description | Allowed Operator | Behavior | Example | | --- | ---| --- | --- | --- | | typeCategory | Filters on the type categories of licenses (user, device, processor) | eq | Equal - The attribute and operator values must be identical for a match. | typeCategory eq 'processor' | * The filter parameter value must be URL encoded. e.g: ?filter=(typeCategory%20eq%20'processor')
view
String
Optional view used to render list of software licenses

Responses

Status: 200 - OK response.

Status: 400 - bad_request: Bad Request response.

Status: 401 - unauthorized: Unauthorized response.

Status: 403 - forbidden: Forbidden response.

Status: 500 - internal_error: Internal Server Error response.

Status: 502 - bad_gateway: Bad Gateway response.


Reports

reportsExecute

Execute the saved report and retrieve the results

Execute the saved report and retrieve the results.


/fnms/v1/orgs/{orgId}/reports/{id}/execute

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/vnd.goa.error"\
"https://api.flexera.com/fnms/v1/orgs/{orgId}/reports/{id}/execute?searchText=&limit=&skipToken="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReportsApi;

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

public class ReportsApiExample {

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


        ReportsApi apiInstance = new ReportsApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        String id = id_example; // String | The saved report ID to execute and retrieve results.
        String searchText = searchText_example; // String | Text to search for in order to filter and limit the results returned. This value is ignored if a skip token is provided.
        Integer limit = 56; // Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
        String skipToken = skipToken_example; // String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.
        String accept = accept_example; // String | Accept type to set in request header
        try {
            apiInstance.reportsExecute(orgId, id, searchText, limit, skipToken, accept);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportsApi#reportsExecute");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReportsApi;

public class ReportsApiExample {

    public static void main(String[] args) {
        ReportsApi apiInstance = new ReportsApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        String id = id_example; // String | The saved report ID to execute and retrieve results.
        String searchText = searchText_example; // String | Text to search for in order to filter and limit the results returned. This value is ignored if a skip token is provided.
        Integer limit = 56; // Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
        String skipToken = skipToken_example; // String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.
        String accept = accept_example; // String | Accept type to set in request header
        try {
            apiInstance.reportsExecute(orgId, id, searchText, limit, skipToken, accept);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportsApi#reportsExecute");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
String *id = id_example; // The saved report ID to execute and retrieve results.
String *searchText = searchText_example; // Text to search for in order to filter and limit the results returned. This value is ignored if a skip token is provided. (optional)
Integer *limit = 56; // Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided. (optional) (default to 10000)
String *skipToken = skipToken_example; // An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken. (optional)
String *accept = accept_example; // Accept type to set in request header (optional)

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

// Execute the saved report and retrieve the results
[apiInstance reportsExecuteWith:orgId
    id:id
    searchText:searchText
    limit:limit
    skipToken:skipToken
    accept:accept
              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.ReportsApi()
var orgId = 56; // {{Integer}} Specify the unique identifier, as provided by Flexera, that defines your organization
var id = id_example; // {{String}} The saved report ID to execute and retrieve results.
var opts = { 
  'searchText': searchText_example, // {{String}} Text to search for in order to filter and limit the results returned. This value is ignored if a skip token is provided.
  'limit': 56, // {{Integer}} Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
  'skipToken': skipToken_example, // {{String}} An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.
  'accept': accept_example // {{String}} Accept type to set in request header
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.reportsExecute(orgId, id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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


            var apiInstance = new ReportsApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var id = id_example;  // String | The saved report ID to execute and retrieve results.
            var searchText = searchText_example;  // String | Text to search for in order to filter and limit the results returned. This value is ignored if a skip token is provided. (optional) 
            var limit = 56;  // Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided. (optional)  (default to 10000)
            var skipToken = skipToken_example;  // String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken. (optional) 
            var accept = accept_example;  // String | Accept type to set in request header (optional) 

            try
            {
                // Execute the saved report and retrieve the results
                apiInstance.reportsExecute(orgId, id, searchText, limit, skipToken, accept);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReportsApi.reportsExecute: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiReportsApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$id = id_example; // String | The saved report ID to execute and retrieve results.
$searchText = searchText_example; // String | Text to search for in order to filter and limit the results returned. This value is ignored if a skip token is provided.
$limit = 56; // Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
$skipToken = skipToken_example; // String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.
$accept = accept_example; // String | Accept type to set in request header

try {
    $api_instance->reportsExecute($orgId, $id, $searchText, $limit, $skipToken, $accept);
} catch (Exception $e) {
    echo 'Exception when calling ReportsApi->reportsExecute: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReportsApi;


my $api_instance = WWW::SwaggerClient::ReportsApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $id = id_example; # String | The saved report ID to execute and retrieve results.
my $searchText = searchText_example; # String | Text to search for in order to filter and limit the results returned. This value is ignored if a skip token is provided.
my $limit = 56; # Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
my $skipToken = skipToken_example; # String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.
my $accept = accept_example; # String | Accept type to set in request header

eval { 
    $api_instance->reportsExecute(orgId => $orgId, id => $id, searchText => $searchText, limit => $limit, skipToken => $skipToken, accept => $accept);
};
if ($@) {
    warn "Exception when calling ReportsApi->reportsExecute: $@\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.ReportsApi()
orgId = 56 # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
id = id_example # String | The saved report ID to execute and retrieve results.
searchText = searchText_example # String | Text to search for in order to filter and limit the results returned. This value is ignored if a skip token is provided. (optional)
limit = 56 # Integer | Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided. (optional) (default to 10000)
skipToken = skipToken_example # String | An opaque token to be provided when requesting a subsequent page after receiving a partial response. 
Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken. (optional)
accept = accept_example # String | Accept type to set in request header (optional)

try: 
    # Execute the saved report and retrieve the results
    api_instance.reports_execute(orgId, id, searchText=searchText, limit=limit, skipToken=skipToken, accept=accept)
except ApiException as e:
    print("Exception when calling ReportsApi->reportsExecute: %s\n" % e)

Parameters

Path parameters
Name Description
orgId*
Integer
Specify the unique identifier, as provided by Flexera, that defines your organization
Required
id*
String
The saved report ID to execute and retrieve results.
Required
Header parameters
Name Description
Accept
String
Accept type to set in request header
Query parameters
Name Description
searchText
String
Text to search for in order to filter and limit the results returned. This value is ignored if a skip token is provided.
limit
Integer
Limit the page result size. Maximum page size is 10000. This value is ignored if a skip token is provided.
skipToken
String
An opaque token to be provided when requesting a subsequent page after receiving a partial response. Partial responses will include a "nextPage" attribute in their response body, which contains the URL of the next page including the appropriate skipToken.

Responses

Status: 200 - OK response.

Name Type Format Description
Content-Type String Content-Type response header.
Link String Link contains next page url.

Status: 400 - bad_request: Bad Request response.

Status: 401 - unauthorized: Unauthorized response.

Status: 403 - forbidden: Forbidden response.

Status: 404 - not_found: Not Found response.

Status: 406 - NotAcceptable: Not Acceptable response.

Status: 422 - RunReportOnce: Unprocessable Entity response.

Status: 500 - internal_error: Internal Server Error response.

Status: 502 - bad_gateway: Bad Gateway response.


reportsIndex

Index ITAM saved reports

Retrieve all available ITAM saved reports.


/fnms/v1/orgs/{orgId}/reports

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}/reports"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReportsApi;

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

public class ReportsApiExample {

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


        ReportsApi apiInstance = new ReportsApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        try {
            ReportCollection result = apiInstance.reportsIndex(orgId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportsApi#reportsIndex");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReportsApi;

public class ReportsApiExample {

    public static void main(String[] args) {
        ReportsApi apiInstance = new ReportsApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        try {
            ReportCollection result = apiInstance.reportsIndex(orgId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReportsApi#reportsIndex");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization

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

// Index ITAM saved reports
[apiInstance reportsIndexWith:orgId
              completionHandler: ^(ReportCollection 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.ReportsApi()
var orgId = 56; // {{Integer}} Specify the unique identifier, as provided by Flexera, that defines your organization

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

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


            var apiInstance = new ReportsApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization

            try
            {
                // Index ITAM saved reports
                ReportCollection result = apiInstance.reportsIndex(orgId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReportsApi.reportsIndex: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiReportsApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization

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


my $api_instance = WWW::SwaggerClient::ReportsApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization

eval { 
    my $result = $api_instance->reportsIndex(orgId => $orgId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReportsApi->reportsIndex: $@\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.ReportsApi()
orgId = 56 # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization

try: 
    # Index ITAM saved reports
    api_response = api_instance.reports_index(orgId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportsApi->reportsIndex: %s\n" % e)

Parameters

Path parameters
Name Description
orgId*
Integer
Specify the unique identifier, as provided by Flexera, that defines your organization
Required

Responses

Status: 200 - OK response.

Status: 400 - bad_request: Bad Request response.

Status: 401 - unauthorized: Unauthorized response.

Status: 403 - forbidden: Forbidden response.

Status: 500 - internal_error: Internal Server Error response.

Status: 502 - bad_gateway: Bad Gateway response.