attributesQuery
Query dynamic values for attribute
/attribute/query
Usage and SDK Samples
curl -X GET \
-H "Accept: application/json" \
"https://rest.route2.aleet.co/attribute/query?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&query=query_example&args=Object"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AttributesApi;
import java.io.File;
import java.util.*;
public class AttributesApiExample {
public static void main(String[] args) {
// Create an instance of the API class
AttributesApi apiInstance = new AttributesApi();
UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
String query = query_example; // String | Identifier of the query to be fetched
map[String, Object] args = Object; // map[String, Object] | Additional parameters for the query
try {
anyOf result = apiInstance.attributesQuery(tenantId, query, args);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AttributesApi#attributesQuery");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.AttributesApi;
public class AttributesApiExample {
public static void main(String[] args) {
AttributesApi apiInstance = new AttributesApi();
UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
String query = query_example; // String | Identifier of the query to be fetched
map[String, Object] args = Object; // map[String, Object] | Additional parameters for the query
try {
anyOf result = apiInstance.attributesQuery(tenantId, query, args);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AttributesApi#attributesQuery");
e.printStackTrace();
}
}
}
// Create an instance of the API class
AttributesApi *apiInstance = [[AttributesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
String *query = query_example; // Identifier of the query to be fetched (default to null)
map[String, Object] *args = Object; // Additional parameters for the query (optional) (default to null)
[apiInstance attributesQueryWith:tenantId
query:query
args:args
completionHandler: ^(anyOf output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Route2RestApi = require('route2_rest_api');
// Create an instance of the API class
var api = new Route2RestApi.AttributesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var query = query_example; // {String} Identifier of the query to be fetched
var opts = {
'args': Object // {map[String, Object]} Additional parameters for the query
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.attributesQuery(tenantId, query, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class attributesQueryExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new AttributesApi();
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to. (default to null)
var query = query_example; // String | Identifier of the query to be fetched (default to null)
var args = new map[String, Object](); // map[String, Object] | Additional parameters for the query (optional) (default to null)
try {
anyOf result = apiInstance.attributesQuery(tenantId, query, args);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling AttributesApi.attributesQuery: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AttributesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$query = query_example; // String | Identifier of the query to be fetched
$args = Object; // map[String, Object] | Additional parameters for the query
try {
$result = $api_instance->attributesQuery($tenantId, $query, $args);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributesApi->attributesQuery: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AttributesApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AttributesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $query = query_example; # String | Identifier of the query to be fetched
my $args = Object; # map[String, Object] | Additional parameters for the query
eval {
my $result = $api_instance->attributesQuery(tenantId => $tenantId, query => $query, args => $args);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AttributesApi->attributesQuery: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.AttributesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
query = query_example # String | Identifier of the query to be fetched (default to null)
args = Object # map[String, Object] | Additional parameters for the query (optional) (default to null)
try:
api_response = api_instance.attributes_query(tenantId, query, args=args)
pprint(api_response)
except ApiException as e:
print("Exception when calling AttributesApi->attributesQuery: %s\n" % e)
extern crate AttributesApi;
pub fn main() {
let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
let query = query_example; // String
let args = Object; // map[String, Object]
let mut context = AttributesApi::Context::default();
let result = client.attributesQuery(tenantId, query, args, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Name | Description |
---|---|
tenantId* |
UUID
(uuid)
The id of the tenant this request is related to.
Required
|
query* |
String
Identifier of the query to be fetched
Required
|
args |
map[String, Object]
Additional parameters for the query
|