Get an entitlements consumption report
import requests
url = "https://{FUSION_HOST}/apps-manager/entitlements/report"
response = requests.get(url)
print(response.text)HttpResponse<String> response = Unirest.get("https://{FUSION_HOST}/apps-manager/entitlements/report")
.asString();const options = {method: 'GET'};
fetch('https://{FUSION_HOST}/apps-manager/entitlements/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://{FUSION_HOST}/apps-manager/entitlements/report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{FUSION_HOST}/apps-manager/entitlements/report"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{FUSION_HOST}/apps-manager/entitlements/report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request GET \
--url https://{FUSION_HOST}/apps-manager/entitlements/report[
{}
]Get an entitlements consumption report
Returns a consumption report for the specified parameters, as a ZIP file containing the following files:
- A CSV file with the requests report per day
- A file with a signature for the requests report per day
- A CSV file with the max records per day
- A file with a signature for the max records report per day
- A CSV file with the events occurred for requests
- A file with a signature for the events occurred for requests
- A CSV file with the events occurred for records
- A file with a signature for the events occurred for records
Each option below returns data for the specified period. Only one option can be used per request. Passing parameters from multiple options returns an error. This endpoint accepts the following options:
-
If no parameters are provided, the current contract period is calculated, then data is returned based on that period.
-
If
startDateandendDateare provided, then the data is returned based on that date range. -
If
licenseIdandperiodIndexare provided, then the data is returned based on that specific period data.
GET
/
entitlements
/
report
Get an entitlements consumption report
import requests
url = "https://{FUSION_HOST}/apps-manager/entitlements/report"
response = requests.get(url)
print(response.text)HttpResponse<String> response = Unirest.get("https://{FUSION_HOST}/apps-manager/entitlements/report")
.asString();const options = {method: 'GET'};
fetch('https://{FUSION_HOST}/apps-manager/entitlements/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://{FUSION_HOST}/apps-manager/entitlements/report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{FUSION_HOST}/apps-manager/entitlements/report"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{FUSION_HOST}/apps-manager/entitlements/report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request GET \
--url https://{FUSION_HOST}/apps-manager/entitlements/report[
{}
]Query Parameters
Response
200 - application/octet-stream
OK
Was this page helpful?