curl -X get -H "x-teevity-accessKey: [[apiKey]]" "http://cloudcost-app.teevity.com/api/reservedInstancesOptimization/data/recompute/nonPersistedReport/awsRootBillingAccountPlatformKey/{awsRootBillingAccountPlatformKey}/forceExecutionEvenIfDeepRecomputeNeeded/{forceExecutionEvenIfDeepRecomputeNeeded}?fetchingReportUUID=&riTerm=&riOfferingClass=&riPaymentOption=&spendingLimitForPurchase=&showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount=&filterToKeepOnlyCAUEligibleForLongTermCommitments=&filterTags=&costPartitionId=&recomputeReportUUID=&recomputeJobUUID="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicApi;
import java.io.File;
import java.util.*;
public class PublicApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: internalApiKeyHeader
ApiKeyAuth internalApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("internalApiKeyHeader");
internalApiKeyHeader.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//internalApiKeyHeader.setApiKeyPrefix("Token");
// Configure API key authorization: internalApiKeyQuery
ApiKeyAuth internalApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("internalApiKeyQuery");
internalApiKeyQuery.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//internalApiKeyQuery.setApiKeyPrefix("Token");
PublicApi apiInstance = new PublicApi();
String awsRootBillingAccountPlatformKey = awsRootBillingAccountPlatformKey_example; // String |
Boolean forceExecutionEvenIfDeepRecomputeNeeded = true; // Boolean |
String fetchingReportUUID = fetchingReportUUID_example; // String |
Integer riTerm = 56; // Integer |
String riOfferingClass = riOfferingClass_example; // String |
String riPaymentOption = riPaymentOption_example; // String |
Integer spendingLimitForPurchase = 56; // Integer |
Boolean showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount = true; // Boolean |
Boolean filterToKeepOnlyCAUEligibleForLongTermCommitments = true; // Boolean |
String filterTags = filterTags_example; // String |
String costPartitionId = costPartitionId_example; // String |
String recomputeReportUUID = recomputeReportUUID_example; // String |
String recomputeJobUUID = recomputeJobUUID_example; // String |
try {
RIOptimReport result = apiInstance.recomputeReportNonPersistedReportAndGetReportRIOptimizationJsonData(awsRootBillingAccountPlatformKey, forceExecutionEvenIfDeepRecomputeNeeded, fetchingReportUUID, riTerm, riOfferingClass, riPaymentOption, spendingLimitForPurchase, showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount, filterToKeepOnlyCAUEligibleForLongTermCommitments, filterTags, costPartitionId, recomputeReportUUID, recomputeJobUUID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PublicApi#recomputeReportNonPersistedReportAndGetReportRIOptimizationJsonData");
e.printStackTrace();
}
}
}
import io.swagger.client.api.PublicApi;
public class PublicApiExample {
public static void main(String[] args) {
PublicApi apiInstance = new PublicApi();
String awsRootBillingAccountPlatformKey = awsRootBillingAccountPlatformKey_example; // String |
Boolean forceExecutionEvenIfDeepRecomputeNeeded = true; // Boolean |
String fetchingReportUUID = fetchingReportUUID_example; // String |
Integer riTerm = 56; // Integer |
String riOfferingClass = riOfferingClass_example; // String |
String riPaymentOption = riPaymentOption_example; // String |
Integer spendingLimitForPurchase = 56; // Integer |
Boolean showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount = true; // Boolean |
Boolean filterToKeepOnlyCAUEligibleForLongTermCommitments = true; // Boolean |
String filterTags = filterTags_example; // String |
String costPartitionId = costPartitionId_example; // String |
String recomputeReportUUID = recomputeReportUUID_example; // String |
String recomputeJobUUID = recomputeJobUUID_example; // String |
try {
RIOptimReport result = apiInstance.recomputeReportNonPersistedReportAndGetReportRIOptimizationJsonData(awsRootBillingAccountPlatformKey, forceExecutionEvenIfDeepRecomputeNeeded, fetchingReportUUID, riTerm, riOfferingClass, riPaymentOption, spendingLimitForPurchase, showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount, filterToKeepOnlyCAUEligibleForLongTermCommitments, filterTags, costPartitionId, recomputeReportUUID, recomputeJobUUID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PublicApi#recomputeReportNonPersistedReportAndGetReportRIOptimizationJsonData");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: internalApiKeyHeader)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"x-teevity-accessKey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"x-teevity-accessKey"];
// Configure API key authorization: (authentication scheme: internalApiKeyQuery)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"accessKey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"accessKey"];
String *awsRootBillingAccountPlatformKey = awsRootBillingAccountPlatformKey_example; //
Boolean *forceExecutionEvenIfDeepRecomputeNeeded = true; //
String *fetchingReportUUID = fetchingReportUUID_example; // (optional)
Integer *riTerm = 56; // (optional)
String *riOfferingClass = riOfferingClass_example; // (optional)
String *riPaymentOption = riPaymentOption_example; // (optional)
Integer *spendingLimitForPurchase = 56; // (optional)
Boolean *showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount = true; // (optional)
Boolean *filterToKeepOnlyCAUEligibleForLongTermCommitments = true; // (optional)
String *filterTags = filterTags_example; // (optional)
String *costPartitionId = costPartitionId_example; // (optional)
String *recomputeReportUUID = recomputeReportUUID_example; // (optional)
String *recomputeJobUUID = recomputeJobUUID_example; // (optional)
PublicApi *apiInstance = [[PublicApi alloc] init];
//
[apiInstance recomputeReportNonPersistedReportAndGetReportRIOptimizationJsonDataWith:awsRootBillingAccountPlatformKey
forceExecutionEvenIfDeepRecomputeNeeded:forceExecutionEvenIfDeepRecomputeNeeded
fetchingReportUUID:fetchingReportUUID
riTerm:riTerm
riOfferingClass:riOfferingClass
riPaymentOption:riPaymentOption
spendingLimitForPurchase:spendingLimitForPurchase
showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount:showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount
filterToKeepOnlyCAUEligibleForLongTermCommitments:filterToKeepOnlyCAUEligibleForLongTermCommitments
filterTags:filterTags
costPartitionId:costPartitionId
recomputeReportUUID:recomputeReportUUID
recomputeJobUUID:recomputeJobUUID
completionHandler: ^(RIOptimReport output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Teevity = require('teevity');
var defaultClient = Teevity.ApiClient.instance;
// Configure API key authorization: internalApiKeyHeader
var internalApiKeyHeader = defaultClient.authentications['internalApiKeyHeader'];
internalApiKeyHeader.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//internalApiKeyHeader.apiKeyPrefix['x-teevity-accessKey'] = "Token"
// Configure API key authorization: internalApiKeyQuery
var internalApiKeyQuery = defaultClient.authentications['internalApiKeyQuery'];
internalApiKeyQuery.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//internalApiKeyQuery.apiKeyPrefix['accessKey'] = "Token"
var api = new Teevity.PublicApi()
var awsRootBillingAccountPlatformKey = awsRootBillingAccountPlatformKey_example; // {String}
var forceExecutionEvenIfDeepRecomputeNeeded = true; // {Boolean}
var opts = {
'fetchingReportUUID': fetchingReportUUID_example, // {String}
'riTerm': 56, // {Integer}
'riOfferingClass': riOfferingClass_example, // {String}
'riPaymentOption': riPaymentOption_example, // {String}
'spendingLimitForPurchase': 56, // {Integer}
'showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount': true, // {Boolean}
'filterToKeepOnlyCAUEligibleForLongTermCommitments': true, // {Boolean}
'filterTags': filterTags_example, // {String}
'costPartitionId': costPartitionId_example, // {String}
'recomputeReportUUID': recomputeReportUUID_example, // {String}
'recomputeJobUUID': recomputeJobUUID_example // {String}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.recomputeReportNonPersistedReportAndGetReportRIOptimizationJsonData(awsRootBillingAccountPlatformKey, forceExecutionEvenIfDeepRecomputeNeeded, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class recomputeReportNonPersistedReportAndGetReportRIOptimizationJsonDataExample
{
public void main()
{
// Configure API key authorization: internalApiKeyHeader
Configuration.Default.ApiKey.Add("x-teevity-accessKey", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("x-teevity-accessKey", "Bearer");
// Configure API key authorization: internalApiKeyQuery
Configuration.Default.ApiKey.Add("accessKey", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("accessKey", "Bearer");
var apiInstance = new PublicApi();
var awsRootBillingAccountPlatformKey = awsRootBillingAccountPlatformKey_example; // String |
var forceExecutionEvenIfDeepRecomputeNeeded = true; // Boolean |
var fetchingReportUUID = fetchingReportUUID_example; // String | (optional)
var riTerm = 56; // Integer | (optional)
var riOfferingClass = riOfferingClass_example; // String | (optional)
var riPaymentOption = riPaymentOption_example; // String | (optional)
var spendingLimitForPurchase = 56; // Integer | (optional)
var showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount = true; // Boolean | (optional)
var filterToKeepOnlyCAUEligibleForLongTermCommitments = true; // Boolean | (optional)
var filterTags = filterTags_example; // String | (optional)
var costPartitionId = costPartitionId_example; // String | (optional)
var recomputeReportUUID = recomputeReportUUID_example; // String | (optional)
var recomputeJobUUID = recomputeJobUUID_example; // String | (optional)
try
{
//
RIOptimReport result = apiInstance.recomputeReportNonPersistedReportAndGetReportRIOptimizationJsonData(awsRootBillingAccountPlatformKey, forceExecutionEvenIfDeepRecomputeNeeded, fetchingReportUUID, riTerm, riOfferingClass, riPaymentOption, spendingLimitForPurchase, showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount, filterToKeepOnlyCAUEligibleForLongTermCommitments, filterTags, costPartitionId, recomputeReportUUID, recomputeJobUUID);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PublicApi.recomputeReportNonPersistedReportAndGetReportRIOptimizationJsonData: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: internalApiKeyHeader
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-teevity-accessKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-teevity-accessKey', 'Bearer');
// Configure API key authorization: internalApiKeyQuery
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('accessKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accessKey', 'Bearer');
$api_instance = new Swagger\Client\Api\PublicApi();
$awsRootBillingAccountPlatformKey = awsRootBillingAccountPlatformKey_example; // String |
$forceExecutionEvenIfDeepRecomputeNeeded = true; // Boolean |
$fetchingReportUUID = fetchingReportUUID_example; // String |
$riTerm = 56; // Integer |
$riOfferingClass = riOfferingClass_example; // String |
$riPaymentOption = riPaymentOption_example; // String |
$spendingLimitForPurchase = 56; // Integer |
$showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount = true; // Boolean |
$filterToKeepOnlyCAUEligibleForLongTermCommitments = true; // Boolean |
$filterTags = filterTags_example; // String |
$costPartitionId = costPartitionId_example; // String |
$recomputeReportUUID = recomputeReportUUID_example; // String |
$recomputeJobUUID = recomputeJobUUID_example; // String |
try {
$result = $api_instance->recomputeReportNonPersistedReportAndGetReportRIOptimizationJsonData($awsRootBillingAccountPlatformKey, $forceExecutionEvenIfDeepRecomputeNeeded, $fetchingReportUUID, $riTerm, $riOfferingClass, $riPaymentOption, $spendingLimitForPurchase, $showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount, $filterToKeepOnlyCAUEligibleForLongTermCommitments, $filterTags, $costPartitionId, $recomputeReportUUID, $recomputeJobUUID);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PublicApi->recomputeReportNonPersistedReportAndGetReportRIOptimizationJsonData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicApi;
# Configure API key authorization: internalApiKeyHeader
$WWW::SwaggerClient::Configuration::api_key->{'x-teevity-accessKey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'x-teevity-accessKey'} = "Bearer";
# Configure API key authorization: internalApiKeyQuery
$WWW::SwaggerClient::Configuration::api_key->{'accessKey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'accessKey'} = "Bearer";
my $api_instance = WWW::SwaggerClient::PublicApi->new();
my $awsRootBillingAccountPlatformKey = awsRootBillingAccountPlatformKey_example; # String |
my $forceExecutionEvenIfDeepRecomputeNeeded = true; # Boolean |
my $fetchingReportUUID = fetchingReportUUID_example; # String |
my $riTerm = 56; # Integer |
my $riOfferingClass = riOfferingClass_example; # String |
my $riPaymentOption = riPaymentOption_example; # String |
my $spendingLimitForPurchase = 56; # Integer |
my $showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount = true; # Boolean |
my $filterToKeepOnlyCAUEligibleForLongTermCommitments = true; # Boolean |
my $filterTags = filterTags_example; # String |
my $costPartitionId = costPartitionId_example; # String |
my $recomputeReportUUID = recomputeReportUUID_example; # String |
my $recomputeJobUUID = recomputeJobUUID_example; # String |
eval {
my $result = $api_instance->recomputeReportNonPersistedReportAndGetReportRIOptimizationJsonData(awsRootBillingAccountPlatformKey => $awsRootBillingAccountPlatformKey, forceExecutionEvenIfDeepRecomputeNeeded => $forceExecutionEvenIfDeepRecomputeNeeded, fetchingReportUUID => $fetchingReportUUID, riTerm => $riTerm, riOfferingClass => $riOfferingClass, riPaymentOption => $riPaymentOption, spendingLimitForPurchase => $spendingLimitForPurchase, showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount => $showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount, filterToKeepOnlyCAUEligibleForLongTermCommitments => $filterToKeepOnlyCAUEligibleForLongTermCommitments, filterTags => $filterTags, costPartitionId => $costPartitionId, recomputeReportUUID => $recomputeReportUUID, recomputeJobUUID => $recomputeJobUUID);
print Dumper($result);
};
if ($@) {
warn "Exception when calling PublicApi->recomputeReportNonPersistedReportAndGetReportRIOptimizationJsonData: $@\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: internalApiKeyHeader
swagger_client.configuration.api_key['x-teevity-accessKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['x-teevity-accessKey'] = 'Bearer'
# Configure API key authorization: internalApiKeyQuery
swagger_client.configuration.api_key['accessKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['accessKey'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.PublicApi()
awsRootBillingAccountPlatformKey = awsRootBillingAccountPlatformKey_example # String |
forceExecutionEvenIfDeepRecomputeNeeded = true # Boolean |
fetchingReportUUID = fetchingReportUUID_example # String | (optional)
riTerm = 56 # Integer | (optional)
riOfferingClass = riOfferingClass_example # String | (optional)
riPaymentOption = riPaymentOption_example # String | (optional)
spendingLimitForPurchase = 56 # Integer | (optional)
showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount = true # Boolean | (optional)
filterToKeepOnlyCAUEligibleForLongTermCommitments = true # Boolean | (optional)
filterTags = filterTags_example # String | (optional)
costPartitionId = costPartitionId_example # String | (optional)
recomputeReportUUID = recomputeReportUUID_example # String | (optional)
recomputeJobUUID = recomputeJobUUID_example # String | (optional)
try:
#
api_response = api_instance.recomputeReportNonPersistedReportAndGetReportRIOptimizationJsonData(awsRootBillingAccountPlatformKey, forceExecutionEvenIfDeepRecomputeNeeded, fetchingReportUUID=fetchingReportUUID, riTerm=riTerm, riOfferingClass=riOfferingClass, riPaymentOption=riPaymentOption, spendingLimitForPurchase=spendingLimitForPurchase, showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount=showOnlyRIsInTheMoneyWhenOnlyFilteredInstancesAreTakenIntoAccount, filterToKeepOnlyCAUEligibleForLongTermCommitments=filterToKeepOnlyCAUEligibleForLongTermCommitments, filterTags=filterTags, costPartitionId=costPartitionId, recomputeReportUUID=recomputeReportUUID, recomputeJobUUID=recomputeJobUUID)
pprint(api_response)
except ApiException as e:
print("Exception when calling PublicApi->recomputeReportNonPersistedReportAndGetReportRIOptimizationJsonData: %s\n" % e)