Find sensors based on filtering options.
curl -X GET "https://ah.graph.idunrealestate.com/api/sensor?realestate_ids=&buildingstructure_ids=&buildingstructurecomponent_ids=&buildingstructurecomponent_classifications=&device_ids=&device_functions=&sensor_ids=&quantity_kinds=&placement_contexts=&page=&size="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SensorControllerApi;
import java.io.File;
import java.util.*;
public class SensorControllerApiExample {
public static void main(String[] args) {
SensorControllerApi apiInstance = new SensorControllerApi();
String realestateIds = realestateIds_example; // String | A comma separated UUID list of real estate unique identifiers
String buildingstructureIds = buildingstructureIds_example; // String | A comma separated UUID list of building structure unique identifiers
String buildingstructurecomponentIds = buildingstructurecomponentIds_example; // String | A comma separated UUID list of building structure component unique identifiers
String buildingstructurecomponentClassifications = buildingstructurecomponentClassifications_example; // String | A comma separated String list of building structure component classifications
String deviceIds = deviceIds_example; // String | A comma separated UUID list of device unique identifiers
String deviceFunctions = deviceFunctions_example; // String | A comma separated String list of device functions
String sensorIds = sensorIds_example; // String | A comma separated UUID list of sensor unique identifiers
String quantityKinds = quantityKinds_example; // String | A comma separated String list of quantity kinds
String placementContexts = placementContexts_example; // String | A comma separated String list of placement contexts
Integer page = 56; // Integer | Zero-based page index
Integer size = 56; // Integer | The size of the page to be returned
try {
array[Sensor] result = apiInstance.getSensorsUsingGET(realestateIds, buildingstructureIds, buildingstructurecomponentIds, buildingstructurecomponentClassifications, deviceIds, deviceFunctions, sensorIds, quantityKinds, placementContexts, page, size);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SensorControllerApi#getSensorsUsingGET");
e.printStackTrace();
}
}
}
import io.swagger.client.api.SensorControllerApi;
public class SensorControllerApiExample {
public static void main(String[] args) {
SensorControllerApi apiInstance = new SensorControllerApi();
String realestateIds = realestateIds_example; // String | A comma separated UUID list of real estate unique identifiers
String buildingstructureIds = buildingstructureIds_example; // String | A comma separated UUID list of building structure unique identifiers
String buildingstructurecomponentIds = buildingstructurecomponentIds_example; // String | A comma separated UUID list of building structure component unique identifiers
String buildingstructurecomponentClassifications = buildingstructurecomponentClassifications_example; // String | A comma separated String list of building structure component classifications
String deviceIds = deviceIds_example; // String | A comma separated UUID list of device unique identifiers
String deviceFunctions = deviceFunctions_example; // String | A comma separated String list of device functions
String sensorIds = sensorIds_example; // String | A comma separated UUID list of sensor unique identifiers
String quantityKinds = quantityKinds_example; // String | A comma separated String list of quantity kinds
String placementContexts = placementContexts_example; // String | A comma separated String list of placement contexts
Integer page = 56; // Integer | Zero-based page index
Integer size = 56; // Integer | The size of the page to be returned
try {
array[Sensor] result = apiInstance.getSensorsUsingGET(realestateIds, buildingstructureIds, buildingstructurecomponentIds, buildingstructurecomponentClassifications, deviceIds, deviceFunctions, sensorIds, quantityKinds, placementContexts, page, size);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SensorControllerApi#getSensorsUsingGET");
e.printStackTrace();
}
}
}
String *realestateIds = realestateIds_example; // A comma separated UUID list of real estate unique identifiers (optional)
String *buildingstructureIds = buildingstructureIds_example; // A comma separated UUID list of building structure unique identifiers (optional)
String *buildingstructurecomponentIds = buildingstructurecomponentIds_example; // A comma separated UUID list of building structure component unique identifiers (optional)
String *buildingstructurecomponentClassifications = buildingstructurecomponentClassifications_example; // A comma separated String list of building structure component classifications (optional)
String *deviceIds = deviceIds_example; // A comma separated UUID list of device unique identifiers (optional)
String *deviceFunctions = deviceFunctions_example; // A comma separated String list of device functions (optional)
String *sensorIds = sensorIds_example; // A comma separated UUID list of sensor unique identifiers (optional)
String *quantityKinds = quantityKinds_example; // A comma separated String list of quantity kinds (optional)
String *placementContexts = placementContexts_example; // A comma separated String list of placement contexts (optional)
Integer *page = 56; // Zero-based page index (optional)
Integer *size = 56; // The size of the page to be returned (optional)
SensorControllerApi *apiInstance = [[SensorControllerApi alloc] init];
// Find sensors based on filter
[apiInstance getSensorsUsingGETWith:realestateIds
buildingstructureIds:buildingstructureIds
buildingstructurecomponentIds:buildingstructurecomponentIds
buildingstructurecomponentClassifications:buildingstructurecomponentClassifications
deviceIds:deviceIds
deviceFunctions:deviceFunctions
sensorIds:sensorIds
quantityKinds:quantityKinds
placementContexts:placementContexts
page:page
size:size
completionHandler: ^(array[Sensor] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var IdunRealEstateGraph = require('idun_real_estate_graph');
var api = new IdunRealEstateGraph.SensorControllerApi()
var opts = {
'realestateIds': realestateIds_example, // {String} A comma separated UUID list of real estate unique identifiers
'buildingstructureIds': buildingstructureIds_example, // {String} A comma separated UUID list of building structure unique identifiers
'buildingstructurecomponentIds': buildingstructurecomponentIds_example, // {String} A comma separated UUID list of building structure component unique identifiers
'buildingstructurecomponentClassifications': buildingstructurecomponentClassifications_example, // {String} A comma separated String list of building structure component classifications
'deviceIds': deviceIds_example, // {String} A comma separated UUID list of device unique identifiers
'deviceFunctions': deviceFunctions_example, // {String} A comma separated String list of device functions
'sensorIds': sensorIds_example, // {String} A comma separated UUID list of sensor unique identifiers
'quantityKinds': quantityKinds_example, // {String} A comma separated String list of quantity kinds
'placementContexts': placementContexts_example, // {String} A comma separated String list of placement contexts
'page': 56, // {Integer} Zero-based page index
'size': 56 // {Integer} The size of the page to be returned
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getSensorsUsingGET(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getSensorsUsingGETExample
{
public void main()
{
var apiInstance = new SensorControllerApi();
var realestateIds = realestateIds_example; // String | A comma separated UUID list of real estate unique identifiers (optional)
var buildingstructureIds = buildingstructureIds_example; // String | A comma separated UUID list of building structure unique identifiers (optional)
var buildingstructurecomponentIds = buildingstructurecomponentIds_example; // String | A comma separated UUID list of building structure component unique identifiers (optional)
var buildingstructurecomponentClassifications = buildingstructurecomponentClassifications_example; // String | A comma separated String list of building structure component classifications (optional)
var deviceIds = deviceIds_example; // String | A comma separated UUID list of device unique identifiers (optional)
var deviceFunctions = deviceFunctions_example; // String | A comma separated String list of device functions (optional)
var sensorIds = sensorIds_example; // String | A comma separated UUID list of sensor unique identifiers (optional)
var quantityKinds = quantityKinds_example; // String | A comma separated String list of quantity kinds (optional)
var placementContexts = placementContexts_example; // String | A comma separated String list of placement contexts (optional)
var page = 56; // Integer | Zero-based page index (optional)
var size = 56; // Integer | The size of the page to be returned (optional)
try
{
// Find sensors based on filter
array[Sensor] result = apiInstance.getSensorsUsingGET(realestateIds, buildingstructureIds, buildingstructurecomponentIds, buildingstructurecomponentClassifications, deviceIds, deviceFunctions, sensorIds, quantityKinds, placementContexts, page, size);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SensorControllerApi.getSensorsUsingGET: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\SensorControllerApi();
$realestateIds = realestateIds_example; // String | A comma separated UUID list of real estate unique identifiers
$buildingstructureIds = buildingstructureIds_example; // String | A comma separated UUID list of building structure unique identifiers
$buildingstructurecomponentIds = buildingstructurecomponentIds_example; // String | A comma separated UUID list of building structure component unique identifiers
$buildingstructurecomponentClassifications = buildingstructurecomponentClassifications_example; // String | A comma separated String list of building structure component classifications
$deviceIds = deviceIds_example; // String | A comma separated UUID list of device unique identifiers
$deviceFunctions = deviceFunctions_example; // String | A comma separated String list of device functions
$sensorIds = sensorIds_example; // String | A comma separated UUID list of sensor unique identifiers
$quantityKinds = quantityKinds_example; // String | A comma separated String list of quantity kinds
$placementContexts = placementContexts_example; // String | A comma separated String list of placement contexts
$page = 56; // Integer | Zero-based page index
$size = 56; // Integer | The size of the page to be returned
try {
$result = $api_instance->getSensorsUsingGET($realestateIds, $buildingstructureIds, $buildingstructurecomponentIds, $buildingstructurecomponentClassifications, $deviceIds, $deviceFunctions, $sensorIds, $quantityKinds, $placementContexts, $page, $size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SensorControllerApi->getSensorsUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SensorControllerApi;
my $api_instance = WWW::SwaggerClient::SensorControllerApi->new();
my $realestateIds = realestateIds_example; # String | A comma separated UUID list of real estate unique identifiers
my $buildingstructureIds = buildingstructureIds_example; # String | A comma separated UUID list of building structure unique identifiers
my $buildingstructurecomponentIds = buildingstructurecomponentIds_example; # String | A comma separated UUID list of building structure component unique identifiers
my $buildingstructurecomponentClassifications = buildingstructurecomponentClassifications_example; # String | A comma separated String list of building structure component classifications
my $deviceIds = deviceIds_example; # String | A comma separated UUID list of device unique identifiers
my $deviceFunctions = deviceFunctions_example; # String | A comma separated String list of device functions
my $sensorIds = sensorIds_example; # String | A comma separated UUID list of sensor unique identifiers
my $quantityKinds = quantityKinds_example; # String | A comma separated String list of quantity kinds
my $placementContexts = placementContexts_example; # String | A comma separated String list of placement contexts
my $page = 56; # Integer | Zero-based page index
my $size = 56; # Integer | The size of the page to be returned
eval {
my $result = $api_instance->getSensorsUsingGET(realestateIds => $realestateIds, buildingstructureIds => $buildingstructureIds, buildingstructurecomponentIds => $buildingstructurecomponentIds, buildingstructurecomponentClassifications => $buildingstructurecomponentClassifications, deviceIds => $deviceIds, deviceFunctions => $deviceFunctions, sensorIds => $sensorIds, quantityKinds => $quantityKinds, placementContexts => $placementContexts, page => $page, size => $size);
print Dumper($result);
};
if ($@) {
warn "Exception when calling SensorControllerApi->getSensorsUsingGET: $@\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.SensorControllerApi()
realestateIds = realestateIds_example # String | A comma separated UUID list of real estate unique identifiers (optional)
buildingstructureIds = buildingstructureIds_example # String | A comma separated UUID list of building structure unique identifiers (optional)
buildingstructurecomponentIds = buildingstructurecomponentIds_example # String | A comma separated UUID list of building structure component unique identifiers (optional)
buildingstructurecomponentClassifications = buildingstructurecomponentClassifications_example # String | A comma separated String list of building structure component classifications (optional)
deviceIds = deviceIds_example # String | A comma separated UUID list of device unique identifiers (optional)
deviceFunctions = deviceFunctions_example # String | A comma separated String list of device functions (optional)
sensorIds = sensorIds_example # String | A comma separated UUID list of sensor unique identifiers (optional)
quantityKinds = quantityKinds_example # String | A comma separated String list of quantity kinds (optional)
placementContexts = placementContexts_example # String | A comma separated String list of placement contexts (optional)
page = 56 # Integer | Zero-based page index (optional)
size = 56 # Integer | The size of the page to be returned (optional)
try:
# Find sensors based on filter
api_response = api_instance.get_sensors_using_get(realestateIds=realestateIds, buildingstructureIds=buildingstructureIds, buildingstructurecomponentIds=buildingstructurecomponentIds, buildingstructurecomponentClassifications=buildingstructurecomponentClassifications, deviceIds=deviceIds, deviceFunctions=deviceFunctions, sensorIds=sensorIds, quantityKinds=quantityKinds, placementContexts=placementContexts, page=page, size=size)
pprint(api_response)
except ApiException as e:
print("Exception when calling SensorControllerApi->getSensorsUsingGET: %s\n" % e)