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 **Required security scopes for jwt**: * `fnms:asset:index||common:org:own`


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

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.flexera.com/fnms/v1/orgs/{orgId}/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();
        
        // Configure API key authorization: jwt_header_Authorization
        ApiKeyAuth jwt_header_Authorization = (ApiKeyAuth) defaultClient.getAuthentication("jwt_header_Authorization");
        jwt_header_Authorization.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //jwt_header_Authorization.setApiKeyPrefix("Token");

        ApplicationsApi apiInstance = new ApplicationsApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        String authorization = authorization_example; // String | JWT token used to perform authorization
        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 {
            ApplicationsIndexResponseBody result = apiInstance.applicationsIndex(orgId, authorization, 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
        String authorization = authorization_example; // String | JWT token used to perform authorization
        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 {
            ApplicationsIndexResponseBody result = apiInstance.applicationsIndex(orgId, authorization, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#applicationsIndex");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_header_Authorization)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
String *authorization = authorization_example; // JWT token used to perform authorization
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
    authorization:authorization
    offset:offset
    limit:limit
              completionHandler: ^(ApplicationsIndexResponseBody 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;

// Configure API key authorization: jwt_header_Authorization
var jwt_header_Authorization = defaultClient.authentications['jwt_header_Authorization'];
jwt_header_Authorization.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt_header_Authorization.apiKeyPrefix['Authorization'] = "Token"

var api = new ItAssetManagementDataApi.ApplicationsApi()

var orgId = 56; // {Integer} Specify the unique identifier, as provided by Flexera, that defines your organization

var authorization = authorization_example; // {String} JWT token used to perform authorization

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, authorization, 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()
        {
            
            // Configure API key authorization: jwt_header_Authorization
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new ApplicationsApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var authorization = authorization_example;  // String | JWT token used to perform authorization
            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.
                ApplicationsIndexResponseBody result = apiInstance.applicationsIndex(orgId, authorization, offset, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationsApi.applicationsIndex: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: jwt_header_Authorization
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\ApplicationsApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$authorization = authorization_example; // String | JWT token used to perform authorization
$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, $authorization, $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;

# Configure API key authorization: jwt_header_Authorization
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ApplicationsApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $authorization = authorization_example; # String | JWT token used to perform authorization
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, authorization => $authorization, 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

# Configure API key authorization: jwt_header_Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# 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
authorization = authorization_example # String | JWT token used to perform authorization
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, authorization, 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
Header parameters
Name Description
Authorization*
String
JWT token used to perform authorization
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 response.

Status: 401 - Unauthorized response.

Status: 403 - Forbidden response.

Status: 500 - Internal Server Error response.

Status: 502 - 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 **Required security scopes for jwt**: * `fnms:asset:index||common:org:own`


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

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.flexera.com/fnms/v1/orgs/{orgId}/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();
        
        // Configure API key authorization: jwt_header_Authorization
        ApiKeyAuth jwt_header_Authorization = (ApiKeyAuth) defaultClient.getAuthentication("jwt_header_Authorization");
        jwt_header_Authorization.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //jwt_header_Authorization.setApiKeyPrefix("Token");

        AssetsApi apiInstance = new AssetsApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        String authorization = authorization_example; // String | JWT token used to perform authorization
        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 {
            AssetsIndexResponseBody result = apiInstance.assetsIndex(orgId, authorization, 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
        String authorization = authorization_example; // String | JWT token used to perform authorization
        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 {
            AssetsIndexResponseBody result = apiInstance.assetsIndex(orgId, authorization, 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];

// Configure API key authorization: (authentication scheme: jwt_header_Authorization)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
String *authorization = authorization_example; // JWT token used to perform authorization
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
    authorization:authorization
    offset:offset
    limit:limit
    status:status
    assetType:assetType
    location:location
              completionHandler: ^(AssetsIndexResponseBody 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;

// Configure API key authorization: jwt_header_Authorization
var jwt_header_Authorization = defaultClient.authentications['jwt_header_Authorization'];
jwt_header_Authorization.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt_header_Authorization.apiKeyPrefix['Authorization'] = "Token"

var api = new ItAssetManagementDataApi.AssetsApi()

var orgId = 56; // {Integer} Specify the unique identifier, as provided by Flexera, that defines your organization

var authorization = authorization_example; // {String} JWT token used to perform authorization

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, authorization, 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()
        {
            
            // Configure API key authorization: jwt_header_Authorization
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new AssetsApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var authorization = authorization_example;  // String | JWT token used to perform authorization
            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.
                AssetsIndexResponseBody result = apiInstance.assetsIndex(orgId, authorization, 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');

// Configure API key authorization: jwt_header_Authorization
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\AssetsApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$authorization = authorization_example; // String | JWT token used to perform authorization
$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, $authorization, $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;

# Configure API key authorization: jwt_header_Authorization
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AssetsApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $authorization = authorization_example; # String | JWT token used to perform authorization
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, authorization => $authorization, 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

# Configure API key authorization: jwt_header_Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# 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
authorization = authorization_example # String | JWT token used to perform authorization
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, authorization, 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
Header parameters
Name Description
Authorization*
String
JWT token used to perform authorization
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 response.

Status: 401 - Unauthorized response.

Status: 403 - Forbidden response.

Status: 500 - Internal Server Error response.

Status: 502 - Bad Gateway response.


Devices

devicesCreate

Create a file containing active devices with installed software

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


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

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.flexera.com/fnms/v1/orgs/{orgId}/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();
        
        // Configure API key authorization: jwt_header_Authorization
        ApiKeyAuth jwt_header_Authorization = (ApiKeyAuth) defaultClient.getAuthentication("jwt_header_Authorization");
        jwt_header_Authorization.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //jwt_header_Authorization.setApiKeyPrefix("Token");

        DevicesApi apiInstance = new DevicesApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        String authorization = authorization_example; // String | JWT token used to perform authorization
        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 {
            DevicesCreateResponseBody result = apiInstance.devicesCreate(orgId, authorization, 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
        String authorization = authorization_example; // String | JWT token used to perform authorization
        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 {
            DevicesCreateResponseBody result = apiInstance.devicesCreate(orgId, authorization, 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];

// Configure API key authorization: (authentication scheme: jwt_header_Authorization)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
String *authorization = authorization_example; // JWT token used to perform authorization
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
    authorization:authorization
    os:os
    softwareTitle:softwareTitle
    publisher:publisher
    softwareStatus:softwareStatus
              completionHandler: ^(DevicesCreateResponseBody 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;

// Configure API key authorization: jwt_header_Authorization
var jwt_header_Authorization = defaultClient.authentications['jwt_header_Authorization'];
jwt_header_Authorization.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt_header_Authorization.apiKeyPrefix['Authorization'] = "Token"

var api = new ItAssetManagementDataApi.DevicesApi()

var orgId = 56; // {Integer} Specify the unique identifier, as provided by Flexera, that defines your organization

var authorization = authorization_example; // {String} JWT token used to perform authorization

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, authorization, 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()
        {
            
            // Configure API key authorization: jwt_header_Authorization
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new DevicesApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var authorization = authorization_example;  // String | JWT token used to perform authorization
            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
                DevicesCreateResponseBody result = apiInstance.devicesCreate(orgId, authorization, 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');

// Configure API key authorization: jwt_header_Authorization
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\DevicesApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$authorization = authorization_example; // String | JWT token used to perform authorization
$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, $authorization, $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;

# Configure API key authorization: jwt_header_Authorization
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::DevicesApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $authorization = authorization_example; # String | JWT token used to perform authorization
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, authorization => $authorization, 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

# Configure API key authorization: jwt_header_Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# 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
authorization = authorization_example # String | JWT token used to perform authorization
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, authorization, 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
Header parameters
Name Description
Authorization*
String
JWT token used to perform authorization
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 response.

Status: 401 - Unauthorized response.

Status: 403 - Forbidden response.

Status: 500 - Internal Server Error response.

Status: 502 - Bad Gateway response.


Files

filesShow

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

**Required security scopes for jwt**: * `fnms:file:show||common:org:own`


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

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.flexera.com/fnms/v1/orgs/{orgId}/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();
        
        // Configure API key authorization: jwt_header_Authorization
        ApiKeyAuth jwt_header_Authorization = (ApiKeyAuth) defaultClient.getAuthentication("jwt_header_Authorization");
        jwt_header_Authorization.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //jwt_header_Authorization.setApiKeyPrefix("Token");

        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
        String authorization = authorization_example; // String | JWT token used to perform authorization
        try {
            apiInstance.filesShow(orgId, filename, authorization);
        } 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
        String authorization = authorization_example; // String | JWT token used to perform authorization
        try {
            apiInstance.filesShow(orgId, filename, authorization);
        } catch (ApiException e) {
            System.err.println("Exception when calling FilesApi#filesShow");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_header_Authorization)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

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
String *authorization = authorization_example; // JWT token used to perform authorization

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

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

// Configure API key authorization: jwt_header_Authorization
var jwt_header_Authorization = defaultClient.authentications['jwt_header_Authorization'];
jwt_header_Authorization.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt_header_Authorization.apiKeyPrefix['Authorization'] = "Token"

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 authorization = authorization_example; // {String} JWT token used to perform authorization


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.filesShow(orgId, filename, authorization, 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()
        {
            
            // Configure API key authorization: jwt_header_Authorization
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            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
            var authorization = authorization_example;  // String | JWT token used to perform authorization

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

// Configure API key authorization: jwt_header_Authorization
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\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
$authorization = authorization_example; // String | JWT token used to perform authorization

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

# Configure API key authorization: jwt_header_Authorization
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

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
my $authorization = authorization_example; # String | JWT token used to perform authorization

eval { 
    $api_instance->filesShow(orgId => $orgId, filename => $filename, authorization => $authorization);
};
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

# Configure API key authorization: jwt_header_Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# 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
authorization = authorization_example # String | JWT token used to perform authorization

try: 
    # Returns a `Location` header containing the pre-signed URL to get the file
    api_instance.files_show(orgId, filename, authorization)
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
Header parameters
Name Description
Authorization*
String
JWT token used to perform authorization
Required

Responses

Status: 303 - See Other response.

Name Type Format Description
Location String

Status: 400 - Bad Request response.

Status: 401 - Unauthorized response.

Status: 403 - Forbidden response.

Status: 404 - Not Found response.

Status: 500 - Internal Server Error response.

Status: 502 - 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 **Required security scopes for jwt**: * `fnms:inventory:index||common:org:own`


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

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.flexera.com/fnms/v1/orgs/{orgId}/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();
        
        // Configure API key authorization: jwt_header_Authorization
        ApiKeyAuth jwt_header_Authorization = (ApiKeyAuth) defaultClient.getAuthentication("jwt_header_Authorization");
        jwt_header_Authorization.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //jwt_header_Authorization.setApiKeyPrefix("Token");

        InventoriesApi apiInstance = new InventoriesApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        String authorization = authorization_example; // String | JWT token used to perform authorization
        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 {
            InventoriesIndexResponseBody result = apiInstance.inventoriesIndex(orgId, authorization, 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
        String authorization = authorization_example; // String | JWT token used to perform authorization
        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 {
            InventoriesIndexResponseBody result = apiInstance.inventoriesIndex(orgId, authorization, 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];

// Configure API key authorization: (authentication scheme: jwt_header_Authorization)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
String *authorization = authorization_example; // JWT token used to perform authorization
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
    authorization:authorization
    offset:offset
    limit:limit
    status:status
    deviceType:deviceType
    complianceStatus:complianceStatus
    manufacturer:manufacturer
    location:location
              completionHandler: ^(InventoriesIndexResponseBody 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;

// Configure API key authorization: jwt_header_Authorization
var jwt_header_Authorization = defaultClient.authentications['jwt_header_Authorization'];
jwt_header_Authorization.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt_header_Authorization.apiKeyPrefix['Authorization'] = "Token"

var api = new ItAssetManagementDataApi.InventoriesApi()

var orgId = 56; // {Integer} Specify the unique identifier, as provided by Flexera, that defines your organization

var authorization = authorization_example; // {String} JWT token used to perform authorization

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, authorization, 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()
        {
            
            // Configure API key authorization: jwt_header_Authorization
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new InventoriesApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var authorization = authorization_example;  // String | JWT token used to perform authorization
            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.
                InventoriesIndexResponseBody result = apiInstance.inventoriesIndex(orgId, authorization, 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');

// Configure API key authorization: jwt_header_Authorization
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\InventoriesApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$authorization = authorization_example; // String | JWT token used to perform authorization
$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, $authorization, $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;

# Configure API key authorization: jwt_header_Authorization
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::InventoriesApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $authorization = authorization_example; # String | JWT token used to perform authorization
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, authorization => $authorization, 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

# Configure API key authorization: jwt_header_Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# 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
authorization = authorization_example # String | JWT token used to perform authorization
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, authorization, 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
Header parameters
Name Description
Authorization*
String
JWT token used to perform authorization
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 response.

Status: 401 - Unauthorized response.

Status: 403 - Forbidden response.

Status: 500 - Internal Server Error response.

Status: 502 - 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 **Required security scopes for jwt**: * `fnms:asset:index||common:org:own`


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

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.flexera.com/fnms/v1/orgs/{orgId}/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();
        
        // Configure API key authorization: jwt_header_Authorization
        ApiKeyAuth jwt_header_Authorization = (ApiKeyAuth) defaultClient.getAuthentication("jwt_header_Authorization");
        jwt_header_Authorization.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //jwt_header_Authorization.setApiKeyPrefix("Token");

        LicensedApplicationsApi apiInstance = new LicensedApplicationsApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        String authorization = authorization_example; // String | JWT token used to perform authorization
        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 {
            LicensedApplicationsIndexResponseBody result = apiInstance.licensedApplicationsIndex(orgId, authorization, 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
        String authorization = authorization_example; // String | JWT token used to perform authorization
        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 {
            LicensedApplicationsIndexResponseBody result = apiInstance.licensedApplicationsIndex(orgId, authorization, offset, limit, status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensedApplicationsApi#licensedApplicationsIndex");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_header_Authorization)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
String *authorization = authorization_example; // JWT token used to perform authorization
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
    authorization:authorization
    offset:offset
    limit:limit
    status:status
              completionHandler: ^(LicensedApplicationsIndexResponseBody 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;

// Configure API key authorization: jwt_header_Authorization
var jwt_header_Authorization = defaultClient.authentications['jwt_header_Authorization'];
jwt_header_Authorization.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt_header_Authorization.apiKeyPrefix['Authorization'] = "Token"

var api = new ItAssetManagementDataApi.LicensedApplicationsApi()

var orgId = 56; // {Integer} Specify the unique identifier, as provided by Flexera, that defines your organization

var authorization = authorization_example; // {String} JWT token used to perform authorization

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, authorization, 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()
        {
            
            // Configure API key authorization: jwt_header_Authorization
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LicensedApplicationsApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var authorization = authorization_example;  // String | JWT token used to perform authorization
            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.
                LicensedApplicationsIndexResponseBody result = apiInstance.licensedApplicationsIndex(orgId, authorization, 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');

// Configure API key authorization: jwt_header_Authorization
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LicensedApplicationsApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$authorization = authorization_example; // String | JWT token used to perform authorization
$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, $authorization, $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;

# Configure API key authorization: jwt_header_Authorization
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LicensedApplicationsApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $authorization = authorization_example; # String | JWT token used to perform authorization
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, authorization => $authorization, 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

# Configure API key authorization: jwt_header_Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# 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
authorization = authorization_example # String | JWT token used to perform authorization
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, authorization, 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
Header parameters
Name Description
Authorization*
String
JWT token used to perform authorization
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 response.

Status: 401 - Unauthorized response.

Status: 403 - Forbidden response.

Status: 500 - Internal Server Error response.

Status: 502 - 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 **Required security scopes for jwt**: * `fnms:license:index||common:org:own`


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

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.flexera.com/fnms/v1/orgs/{orgId}/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();
        
        // Configure API key authorization: jwt_header_Authorization
        ApiKeyAuth jwt_header_Authorization = (ApiKeyAuth) defaultClient.getAuthentication("jwt_header_Authorization");
        jwt_header_Authorization.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //jwt_header_Authorization.setApiKeyPrefix("Token");

        LicensesApi apiInstance = new LicensesApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        String authorization = authorization_example; // String | JWT token used to perform authorization
        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 {
            LicensesAttributesResponseBody result = apiInstance.licensesAttributes(orgId, authorization, 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
        String authorization = authorization_example; // String | JWT token used to perform authorization
        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 {
            LicensesAttributesResponseBody result = apiInstance.licensesAttributes(orgId, authorization, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensesApi#licensesAttributes");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_header_Authorization)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
String *authorization = authorization_example; // JWT token used to perform authorization
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
    authorization:authorization
    offset:offset
    limit:limit
              completionHandler: ^(LicensesAttributesResponseBody 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;

// Configure API key authorization: jwt_header_Authorization
var jwt_header_Authorization = defaultClient.authentications['jwt_header_Authorization'];
jwt_header_Authorization.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt_header_Authorization.apiKeyPrefix['Authorization'] = "Token"

var api = new ItAssetManagementDataApi.LicensesApi()

var orgId = 56; // {Integer} Specify the unique identifier, as provided by Flexera, that defines your organization

var authorization = authorization_example; // {String} JWT token used to perform authorization

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, authorization, 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()
        {
            
            // Configure API key authorization: jwt_header_Authorization
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LicensesApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var authorization = authorization_example;  // String | JWT token used to perform authorization
            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.
                LicensesAttributesResponseBody result = apiInstance.licensesAttributes(orgId, authorization, offset, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LicensesApi.licensesAttributes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: jwt_header_Authorization
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LicensesApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$authorization = authorization_example; // String | JWT token used to perform authorization
$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, $authorization, $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;

# Configure API key authorization: jwt_header_Authorization
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LicensesApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $authorization = authorization_example; # String | JWT token used to perform authorization
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, authorization => $authorization, 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

# Configure API key authorization: jwt_header_Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# 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
authorization = authorization_example # String | JWT token used to perform authorization
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, authorization, 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
Header parameters
Name Description
Authorization*
String
JWT token used to perform authorization
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 response.

Status: 401 - Unauthorized response.

Status: 403 - Forbidden response.

Status: 500 - Internal Server Error response.

Status: 502 - Bad Gateway response.


licensesConsumption

Show the consumption associated with a license

Retrieve the consumption associated to a license. **Required security scopes for jwt**: * `fnms:license:index||common:org:own`


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

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.flexera.com/fnms/v1/orgs/{orgId}/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();
        
        // Configure API key authorization: jwt_header_Authorization
        ApiKeyAuth jwt_header_Authorization = (ApiKeyAuth) defaultClient.getAuthentication("jwt_header_Authorization");
        jwt_header_Authorization.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //jwt_header_Authorization.setApiKeyPrefix("Token");

        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.
        String authorization = authorization_example; // String | JWT token used to perform authorization
        try {
            LicensesConsumptionResponseBody result = apiInstance.licensesConsumption(orgId, id, view, limit, skipToken, authorization);
            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.
        String authorization = authorization_example; // String | JWT token used to perform authorization
        try {
            LicensesConsumptionResponseBody result = apiInstance.licensesConsumption(orgId, id, view, limit, skipToken, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensesApi#licensesConsumption");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_header_Authorization)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

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)
String *authorization = authorization_example; // JWT token used to perform authorization (optional)

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

// Show the consumption associated with a license
[apiInstance licensesConsumptionWith:orgId
    id:id
    view:view
    limit:limit
    skipToken:skipToken
    authorization:authorization
              completionHandler: ^(LicensesConsumptionResponseBody 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;

// Configure API key authorization: jwt_header_Authorization
var jwt_header_Authorization = defaultClient.authentications['jwt_header_Authorization'];
jwt_header_Authorization.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt_header_Authorization.apiKeyPrefix['Authorization'] = "Token"

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.
  'authorization': authorization_example // {String} JWT token used to perform authorization
};

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()
        {
            
            // Configure API key authorization: jwt_header_Authorization
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            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) 
            var authorization = authorization_example;  // String | JWT token used to perform authorization (optional) 

            try
            {
                // Show the consumption associated with a license
                LicensesConsumptionResponseBody result = apiInstance.licensesConsumption(orgId, id, view, limit, skipToken, authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LicensesApi.licensesConsumption: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: jwt_header_Authorization
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\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.
$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.
$authorization = authorization_example; // String | JWT token used to perform authorization

try {
    $result = $api_instance->licensesConsumption($orgId, $id, $view, $limit, $skipToken, $authorization);
    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;

# Configure API key authorization: jwt_header_Authorization
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

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.
my $authorization = authorization_example; # String | JWT token used to perform authorization

eval { 
    my $result = $api_instance->licensesConsumption(orgId => $orgId, id => $id, view => $view, limit => $limit, skipToken => $skipToken, authorization => $authorization);
    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

# Configure API key authorization: jwt_header_Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# 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)
authorization = authorization_example # String | JWT token used to perform authorization (optional)

try: 
    # Show the consumption associated with a license
    api_response = api_instance.licenses_consumption(orgId, id, view=view, limit=limit, skipToken=skipToken, authorization=authorization)
    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
Header parameters
Name Description
Authorization
String
JWT token used to perform authorization
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 response.

Status: 401 - Unauthorized response.

Status: 403 - Forbidden response.

Status: 404 - Not Found response.

Status: 500 - Internal Server Error response.

Status: 502 - Bad Gateway response.


licensesDevices

Show the devices associated with a license

Retrieve the devices associated to a license. **Required security scopes for jwt**: * `fnms:license:index||common:org:own`


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

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.flexera.com/fnms/v1/orgs/{orgId}/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();
        
        // Configure API key authorization: jwt_header_Authorization
        ApiKeyAuth jwt_header_Authorization = (ApiKeyAuth) defaultClient.getAuthentication("jwt_header_Authorization");
        jwt_header_Authorization.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //jwt_header_Authorization.setApiKeyPrefix("Token");

        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.
        String authorization = authorization_example; // String | JWT token used to perform authorization
        try {
            LicensesDevicesResponseBody result = apiInstance.licensesDevices(orgId, id, filter, view, limit, skipToken, authorization);
            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.
        String authorization = authorization_example; // String | JWT token used to perform authorization
        try {
            LicensesDevicesResponseBody result = apiInstance.licensesDevices(orgId, id, filter, view, limit, skipToken, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensesApi#licensesDevices");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_header_Authorization)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

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)
String *authorization = authorization_example; // JWT token used to perform authorization (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
    authorization:authorization
              completionHandler: ^(LicensesDevicesResponseBody 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;

// Configure API key authorization: jwt_header_Authorization
var jwt_header_Authorization = defaultClient.authentications['jwt_header_Authorization'];
jwt_header_Authorization.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt_header_Authorization.apiKeyPrefix['Authorization'] = "Token"

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.
  'authorization': authorization_example // {String} JWT token used to perform authorization
};

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()
        {
            
            // Configure API key authorization: jwt_header_Authorization
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            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) 
            var authorization = authorization_example;  // String | JWT token used to perform authorization (optional) 

            try
            {
                // Show the devices associated with a license
                LicensesDevicesResponseBody result = apiInstance.licensesDevices(orgId, id, filter, view, limit, skipToken, authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LicensesApi.licensesDevices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: jwt_header_Authorization
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\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')
$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.
$authorization = authorization_example; // String | JWT token used to perform authorization

try {
    $result = $api_instance->licensesDevices($orgId, $id, $filter, $view, $limit, $skipToken, $authorization);
    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;

# Configure API key authorization: jwt_header_Authorization
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

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.
my $authorization = authorization_example; # String | JWT token used to perform authorization

eval { 
    my $result = $api_instance->licensesDevices(orgId => $orgId, id => $id, filter => $filter, view => $view, limit => $limit, skipToken => $skipToken, authorization => $authorization);
    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

# Configure API key authorization: jwt_header_Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# 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)
authorization = authorization_example # String | JWT token used to perform authorization (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, authorization=authorization)
    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
Header parameters
Name Description
Authorization
String
JWT token used to perform authorization
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 response.

Status: 401 - Unauthorized response.

Status: 403 - Forbidden response.

Status: 404 - Not Found response.

Status: 500 - Internal Server Error response.

Status: 502 - 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 **Required security scopes for jwt**: * `fnms:license:index||common:org:own`


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

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.flexera.com/fnms/v1/orgs/{orgId}/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();
        
        // Configure API key authorization: jwt_header_Authorization
        ApiKeyAuth jwt_header_Authorization = (ApiKeyAuth) defaultClient.getAuthentication("jwt_header_Authorization");
        jwt_header_Authorization.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //jwt_header_Authorization.setApiKeyPrefix("Token");

        LicensesApi apiInstance = new LicensesApi();
        Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
        String authorization = authorization_example; // String | JWT token used to perform authorization
        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 {
            LicensesEntitlementsResponseBody result = apiInstance.licensesEntitlements(orgId, authorization, 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
        String authorization = authorization_example; // String | JWT token used to perform authorization
        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 {
            LicensesEntitlementsResponseBody result = apiInstance.licensesEntitlements(orgId, authorization, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensesApi#licensesEntitlements");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_header_Authorization)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
String *authorization = authorization_example; // JWT token used to perform authorization
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
    authorization:authorization
    offset:offset
    limit:limit
              completionHandler: ^(LicensesEntitlementsResponseBody 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;

// Configure API key authorization: jwt_header_Authorization
var jwt_header_Authorization = defaultClient.authentications['jwt_header_Authorization'];
jwt_header_Authorization.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt_header_Authorization.apiKeyPrefix['Authorization'] = "Token"

var api = new ItAssetManagementDataApi.LicensesApi()

var orgId = 56; // {Integer} Specify the unique identifier, as provided by Flexera, that defines your organization

var authorization = authorization_example; // {String} JWT token used to perform authorization

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, authorization, 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()
        {
            
            // Configure API key authorization: jwt_header_Authorization
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LicensesApi();
            var orgId = 56;  // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
            var authorization = authorization_example;  // String | JWT token used to perform authorization
            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.
                LicensesEntitlementsResponseBody result = apiInstance.licensesEntitlements(orgId, authorization, offset, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LicensesApi.licensesEntitlements: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: jwt_header_Authorization
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LicensesApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$authorization = authorization_example; // String | JWT token used to perform authorization
$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, $authorization, $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;

# Configure API key authorization: jwt_header_Authorization
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LicensesApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $authorization = authorization_example; # String | JWT token used to perform authorization
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, authorization => $authorization, 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

# Configure API key authorization: jwt_header_Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# 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
authorization = authorization_example # String | JWT token used to perform authorization
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, authorization, 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
Header parameters
Name Description
Authorization*
String
JWT token used to perform authorization
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 response.

Status: 401 - Unauthorized response.

Status: 403 - Forbidden response.

Status: 500 - Internal Server Error response.

Status: 502 - Bad Gateway response.


licensesIndex

Retrieve all software licenses

Retrieve all software licenses. **Required security scopes for jwt**: * `fnms:license:index||common:org:own`


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

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.flexera.com/fnms/v1/orgs/{orgId}/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();
        
        // Configure API key authorization: jwt_header_Authorization
        ApiKeyAuth jwt_header_Authorization = (ApiKeyAuth) defaultClient.getAuthentication("jwt_header_Authorization");
        jwt_header_Authorization.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //jwt_header_Authorization.setApiKeyPrefix("Token");

        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
        String authorization = authorization_example; // String | JWT token used to perform authorization
        try {
            LicensesLicenseResponseCollection result = apiInstance.licensesIndex(orgId, filter, view, authorization);
            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
        String authorization = authorization_example; // String | JWT token used to perform authorization
        try {
            LicensesLicenseResponseCollection result = apiInstance.licensesIndex(orgId, filter, view, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicensesApi#licensesIndex");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: jwt_header_Authorization)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

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)
String *authorization = authorization_example; // JWT token used to perform authorization (optional)

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

// Retrieve all software licenses
[apiInstance licensesIndexWith:orgId
    filter:filter
    view:view
    authorization:authorization
              completionHandler: ^(LicensesLicenseResponseCollection 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;

// Configure API key authorization: jwt_header_Authorization
var jwt_header_Authorization = defaultClient.authentications['jwt_header_Authorization'];
jwt_header_Authorization.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwt_header_Authorization.apiKeyPrefix['Authorization'] = "Token"

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
  'authorization': authorization_example // {String} JWT token used to perform authorization
};

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()
        {
            
            // Configure API key authorization: jwt_header_Authorization
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            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)
            var authorization = authorization_example;  // String | JWT token used to perform authorization (optional) 

            try
            {
                // Retrieve all software licenses
                LicensesLicenseResponseCollection result = apiInstance.licensesIndex(orgId, filter, view, authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LicensesApi.licensesIndex: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: jwt_header_Authorization
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\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')
$view = view_example; // String | Optional view used to render list of software licenses
$authorization = authorization_example; // String | JWT token used to perform authorization

try {
    $result = $api_instance->licensesIndex($orgId, $filter, $view, $authorization);
    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;

# Configure API key authorization: jwt_header_Authorization
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

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
my $authorization = authorization_example; # String | JWT token used to perform authorization

eval { 
    my $result = $api_instance->licensesIndex(orgId => $orgId, filter => $filter, view => $view, authorization => $authorization);
    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

# Configure API key authorization: jwt_header_Authorization
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# 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)
authorization = authorization_example # String | JWT token used to perform authorization (optional)

try: 
    # Retrieve all software licenses
    api_response = api_instance.licenses_index(orgId, filter=filter, view=view, authorization=authorization)
    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
Header parameters
Name Description
Authorization
String
JWT token used to perform authorization
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 response.

Status: 401 - Unauthorized response.

Status: 403 - Forbidden response.

Status: 500 - Internal Server Error response.

Status: 502 - Bad Gateway response.