curl -X post -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "https://localhost/midpoint/ws/rest/{type}/search?options=&include=&exclude="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: m_basic
HttpBasicAuth m_basic = (HttpBasicAuth) defaultClient.getAuthentication("m_basic");
m_basic.setUsername("YOUR USERNAME");
m_basic.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
String type = type_example; // String | type of the object to modify. Possible values are connectors, connectorHosts, genericObjects, resources, users, objectTemplates, systemConfigurations, tasks, shadows, roles, valuePolicies, orgs, services
Object body = ; // Object |
array[String] options = ; // array[String] | Additional options for operation, see ModelExecuteOptionsType
array[String] include = ; // array[String] |
array[String] exclude = ; // array[String] |
try {
Object result = apiInstance.searchObjects(type, body, options, include, exclude);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#searchObjects");
e.printStackTrace();
}
}
}
import .DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String type = type_example; // String | type of the object to modify. Possible values are connectors, connectorHosts, genericObjects, resources, users, objectTemplates, systemConfigurations, tasks, shadows, roles, valuePolicies, orgs, services
Object body = ; // Object |
array[String] options = ; // array[String] | Additional options for operation, see ModelExecuteOptionsType
array[String] include = ; // array[String] |
array[String] exclude = ; // array[String] |
try {
Object result = apiInstance.searchObjects(type, body, options, include, exclude);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#searchObjects");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: m_basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *type = type_example; // type of the object to modify. Possible values are connectors, connectorHosts, genericObjects, resources, users, objectTemplates, systemConfigurations, tasks, shadows, roles, valuePolicies, orgs, services
Object *body = ; //
array[String] *options = ; // Additional options for operation, see ModelExecuteOptionsType (optional)
array[String] *include = ; // (optional)
array[String] *exclude = ; // (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
// Search objects
[apiInstance searchObjectsWith:type
body:body
options:options
include:include
exclude:exclude
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var = require('');
var defaultClient = .ApiClient.instance;
// Configure HTTP basic authorization: m_basic
var m_basic = defaultClient.authentications['m_basic'];
m_basic.username = 'YOUR USERNAME'
m_basic.password = 'YOUR PASSWORD'
var api = new .DefaultApi()
var type = type_example; // {String} type of the object to modify. Possible values are connectors, connectorHosts, genericObjects, resources, users, objectTemplates, systemConfigurations, tasks, shadows, roles, valuePolicies, orgs, services
var body = ; // {Object}
var opts = {
'options': , // {array[String]} Additional options for operation, see ModelExecuteOptionsType
'include': , // {array[String]}
'exclude': // {array[String]}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.searchObjects(type, body, opts, callback);
using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;
namespace Example
{
public class searchObjectsExample
{
public void main()
{
// Configure HTTP basic authorization: m_basic
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new DefaultApi();
var type = type_example; // String | type of the object to modify. Possible values are connectors, connectorHosts, genericObjects, resources, users, objectTemplates, systemConfigurations, tasks, shadows, roles, valuePolicies, orgs, services
var body = new Object(); // Object |
var options = new array[String](); // array[String] | Additional options for operation, see ModelExecuteOptionsType (optional)
var include = new array[String](); // array[String] | (optional)
var exclude = new array[String](); // array[String] | (optional)
try
{
// Search objects
Object result = apiInstance.searchObjects(type, body, options, include, exclude);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.searchObjects: " + e.Message );
}
}
}
}
setUsername('YOUR_USERNAME');
io.swagger.client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new io.swagger.client\Api\DefaultApi();
$type = type_example; // String | type of the object to modify. Possible values are connectors, connectorHosts, genericObjects, resources, users, objectTemplates, systemConfigurations, tasks, shadows, roles, valuePolicies, orgs, services
$body = ; // Object |
$options = ; // array[String] | Additional options for operation, see ModelExecuteOptionsType
$include = ; // array[String] |
$exclude = ; // array[String] |
try {
$result = $api_instance->searchObjects($type, $body, $options, $include, $exclude);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->searchObjects: ', $e->getMessage(), PHP_EOL;
}