applicationsIndex
Retrieves a list of installed applications identified during the last software inventory import. The installed applications are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all installed applications.
List Applications
/fnms/v1/orgs/{orgId}/installed-applications
Usage and SDK Samples
curl -X GET\
-H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json,application/vnd.goa.error"\
"https://api.flexera.com/fnms/v1/orgs/{orgId}/installed-applications?offset=&limit="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;
import java.io.File;
import java.util.*;
public class ApplicationsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
ApplicationsApi apiInstance = new ApplicationsApi();
Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
Integer offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
Integer limit = 56; // Integer | Specify the number of records to return in the request response
try {
IndexResponseBody result = apiInstance.applicationsIndex(orgId, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApplicationsApi#applicationsIndex");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ApplicationsApi;
public class ApplicationsApiExample {
public static void main(String[] args) {
ApplicationsApi apiInstance = new ApplicationsApi();
Integer orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
Integer offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
Integer limit = 56; // Integer | Specify the number of records to return in the request response
try {
IndexResponseBody result = apiInstance.applicationsIndex(orgId, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApplicationsApi#applicationsIndex");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
Integer *orgId = 56; // Specify the unique identifier, as provided by Flexera, that defines your organization
Integer *offset = 56; // Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional) (default to 0)
Integer *limit = 56; // Specify the number of records to return in the request response (optional) (default to 10000)
ApplicationsApi *apiInstance = [[ApplicationsApi alloc] init];
// Retrieves a list of installed applications identified during the last software inventory import. The installed applications are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all installed applications.
[apiInstance applicationsIndexWith:orgId
offset:offset
limit:limit
completionHandler: ^(IndexResponseBody output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ItAssetManagementDataApi = require('it_asset_management_data_api');
var defaultClient = ItAssetManagementDataApi.ApiClient.instance;
var api = new ItAssetManagementDataApi.ApplicationsApi()
var orgId = 56; // {{Integer}} Specify the unique identifier, as provided by Flexera, that defines your organization
var opts = {
'offset': 56, // {{Integer}} Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
'limit': 56 // {{Integer}} Specify the number of records to return in the request response
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.applicationsIndex(orgId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class applicationsIndexExample
{
public void main()
{
var apiInstance = new ApplicationsApi();
var orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
var offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional) (default to 0)
var limit = 56; // Integer | Specify the number of records to return in the request response (optional) (default to 10000)
try
{
// Retrieves a list of installed applications identified during the last software inventory import. The installed applications are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all installed applications.
IndexResponseBody result = apiInstance.applicationsIndex(orgId, offset, limit);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ApplicationsApi.applicationsIndex: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiApplicationsApi();
$orgId = 56; // Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
$offset = 56; // Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
$limit = 56; // Integer | Specify the number of records to return in the request response
try {
$result = $api_instance->applicationsIndex($orgId, $offset, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ApplicationsApi->applicationsIndex: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationsApi;
my $api_instance = WWW::SwaggerClient::ApplicationsApi->new();
my $orgId = 56; # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
my $offset = 56; # Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1)
my $limit = 56; # Integer | Specify the number of records to return in the request response
eval {
my $result = $api_instance->applicationsIndex(orgId => $orgId, offset => $offset, limit => $limit);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ApplicationsApi->applicationsIndex: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ApplicationsApi()
orgId = 56 # Integer | Specify the unique identifier, as provided by Flexera, that defines your organization
offset = 56 # Integer | Specify the first record to return in a request response. Note that the offset is zero-based (the first record is assigned index 0 instead of 1) (optional) (default to 0)
limit = 56 # Integer | Specify the number of records to return in the request response (optional) (default to 10000)
try:
# Retrieves a list of installed applications identified during the last software inventory import. The installed applications are paginated and a maximum of 10000 results are returned per request. Therefore, multiple requests may be necessary to obtain all installed applications.
api_response = api_instance.applications_index(orgId, offset=offset, limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling ApplicationsApi->applicationsIndex: %s\n" % e)
Parameters
Name | Description |
---|---|
orgId* |
Integer
Specify the unique identifier, as provided by Flexera, that defines your organization
Required
|
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
|