All URIs are relative to http://syncope-vm.apache.org:9080/syncope/rest
Method | HTTP request | Description |
---|---|---|
actionJob | POST /tasks/jobs/{key} | Executes an action on an existing executable's job. |
create1 | POST /tasks/{type} | Creates a new task. |
delete1 | DELETE /tasks/{type}/{key} | Deletes the task matching the provided key. |
deleteExecution1 | DELETE /tasks/executions/{executionKey} | Deletes the executable execution matching the provided key. |
deleteExecutions | DELETE /tasks/{key}/executions | Deletes the executions belonging matching the given query. |
execute1 | POST /tasks/{key}/execute | Executes the executable matching the given query. |
getJob2 | GET /tasks/jobs/{key} | Returns job (running or scheduled) for the executable matching the given key. |
listExecutions1 | GET /tasks/{key}/executions | Returns a paged list of executions matching the given query. |
listJobs1 | GET /tasks/jobs | List jobs (running and / or scheduled). |
listRecentExecutions1 | GET /tasks/executions/recent | Returns the list of recently completed executions, ordered by end date descendent. |
read28 | GET /tasks/{type}/{key} | Returns the task matching the given key. |
search3 | GET /tasks/{type} | Returns a paged list of existing tasks matching the given query. |
update1 | PUT /tasks/{type}/{key} | Updates the task matching the provided key. |
actionJob($key, $xSyncopeDomain, $action)
Executes an action on an existing executable's job.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuthentication
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure HTTP basic authorization: Bearer
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenEuropa\SyncopePhpClient\Api\TasksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$key = 'key_example'; // string | executable key
$xSyncopeDomain = 'Master'; // string |
$action = 'action_example'; // string | action to execute
try {
$apiInstance->actionJob($key, $xSyncopeDomain, $action);
} catch (Exception $e) {
echo 'Exception when calling TasksApi->actionJob: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
key | string | executable key | |
xSyncopeDomain | string | [default to 'Master'] | |
action | string | action to execute | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
create1($type, $xSyncopeDomain, $schedTaskTO)
Creates a new task.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuthentication
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure HTTP basic authorization: Bearer
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenEuropa\SyncopePhpClient\Api\TasksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$type = 'type_example'; // string | task type
$xSyncopeDomain = 'Master'; // string | task to be created
$schedTaskTO = new \OpenEuropa\SyncopePhpClient\Model\SchedTaskTO(); // \OpenEuropa\SyncopePhpClient\Model\SchedTaskTO |
try {
$apiInstance->create1($type, $xSyncopeDomain, $schedTaskTO);
} catch (Exception $e) {
echo 'Exception when calling TasksApi->create1: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
type | string | task type | |
xSyncopeDomain | string | task to be created | [default to 'Master'] |
schedTaskTO | \OpenEuropa\SyncopePhpClient\Model\SchedTaskTO |
void (empty response body)
- Content-Type: application/json, application/yaml, application/xml
- Accept: application/json, application/yaml, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete1($type, $key, $xSyncopeDomain)
Deletes the task matching the provided key.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuthentication
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure HTTP basic authorization: Bearer
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenEuropa\SyncopePhpClient\Api\TasksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$type = 'type_example'; // string | task type
$key = 'key_example'; // string | key of task to be deleted
$xSyncopeDomain = 'Master'; // string |
try {
$apiInstance->delete1($type, $key, $xSyncopeDomain);
} catch (Exception $e) {
echo 'Exception when calling TasksApi->delete1: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
type | string | task type | |
key | string | key of task to be deleted | |
xSyncopeDomain | string | [default to 'Master'] |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json, application/yaml, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteExecution1($executionKey, $xSyncopeDomain)
Deletes the executable execution matching the provided key.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuthentication
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure HTTP basic authorization: Bearer
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenEuropa\SyncopePhpClient\Api\TasksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$executionKey = 'executionKey_example'; // string | key of executable execution to be deleted
$xSyncopeDomain = 'Master'; // string | query conditions
try {
$apiInstance->deleteExecution1($executionKey, $xSyncopeDomain);
} catch (Exception $e) {
echo 'Exception when calling TasksApi->deleteExecution1: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
executionKey | string | key of executable execution to be deleted | |
xSyncopeDomain | string | query conditions | [default to 'Master'] |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json, application/yaml, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteExecutions($key, $xSyncopeDomain, $startedBefore, $startedAfter, $endedBefore, $endedAfter)
Deletes the executions belonging matching the given query.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuthentication
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure HTTP basic authorization: Bearer
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenEuropa\SyncopePhpClient\Api\TasksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$key = 'key_example'; // string | query conditions
$xSyncopeDomain = 'Master'; // string |
$startedBefore = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime |
$startedAfter = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime |
$endedBefore = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime |
$endedAfter = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime |
try {
$apiInstance->deleteExecutions($key, $xSyncopeDomain, $startedBefore, $startedAfter, $endedBefore, $endedAfter);
} catch (Exception $e) {
echo 'Exception when calling TasksApi->deleteExecutions: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
key | string | query conditions | |
xSyncopeDomain | string | [default to 'Master'] | |
startedBefore | \DateTime | [optional] | |
startedAfter | \DateTime | [optional] | |
endedBefore | \DateTime | [optional] | |
endedAfter | \DateTime | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: multipart/mixed
[Back to top] [Back to API list] [Back to Model list] [Back to README]
execute1($key, $xSyncopeDomain, $startAt, $dryRun)
Executes the executable matching the given query.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuthentication
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure HTTP basic authorization: Bearer
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenEuropa\SyncopePhpClient\Api\TasksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$key = 'key_example'; // string | query conditions
$xSyncopeDomain = 'Master'; // string |
$startAt = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime |
$dryRun = false; // bool |
try {
$apiInstance->execute1($key, $xSyncopeDomain, $startAt, $dryRun);
} catch (Exception $e) {
echo 'Exception when calling TasksApi->execute1: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
key | string | query conditions | |
xSyncopeDomain | string | [default to 'Master'] | |
startAt | \DateTime | [optional] | |
dryRun | bool | [optional] [default to false] |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json, application/yaml, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getJob2($key, $xSyncopeDomain)
Returns job (running or scheduled) for the executable matching the given key.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuthentication
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure HTTP basic authorization: Bearer
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenEuropa\SyncopePhpClient\Api\TasksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$key = 'key_example'; // string | executable key
$xSyncopeDomain = 'Master'; // string |
try {
$apiInstance->getJob2($key, $xSyncopeDomain);
} catch (Exception $e) {
echo 'Exception when calling TasksApi->getJob2: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
key | string | executable key | |
xSyncopeDomain | string | [default to 'Master'] |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json, application/yaml, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listExecutions1($key, $xSyncopeDomain, $page, $size, $orderby)
Returns a paged list of executions matching the given query.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuthentication
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure HTTP basic authorization: Bearer
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenEuropa\SyncopePhpClient\Api\TasksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$key = 'key_example'; // string |
$xSyncopeDomain = 'Master'; // string |
$page = 1; // int | query conditions
$size = 25; // int |
$orderby = 'orderby_example'; // string |
try {
$apiInstance->listExecutions1($key, $xSyncopeDomain, $page, $size, $orderby);
} catch (Exception $e) {
echo 'Exception when calling TasksApi->listExecutions1: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
key | string | ||
xSyncopeDomain | string | [default to 'Master'] | |
page | int | query conditions | [optional] [default to 1] |
size | int | [optional] [default to 25] | |
orderby | string | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json, application/yaml, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listJobs1($xSyncopeDomain)
List jobs (running and / or scheduled).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuthentication
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure HTTP basic authorization: Bearer
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenEuropa\SyncopePhpClient\Api\TasksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$xSyncopeDomain = 'Master'; // string |
try {
$apiInstance->listJobs1($xSyncopeDomain);
} catch (Exception $e) {
echo 'Exception when calling TasksApi->listJobs1: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
xSyncopeDomain | string | [default to 'Master'] |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json, application/yaml, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listRecentExecutions1($xSyncopeDomain, $max)
Returns the list of recently completed executions, ordered by end date descendent.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuthentication
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure HTTP basic authorization: Bearer
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenEuropa\SyncopePhpClient\Api\TasksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$xSyncopeDomain = 'Master'; // string |
$max = 25; // int | the maximum number of executions to return
try {
$apiInstance->listRecentExecutions1($xSyncopeDomain, $max);
} catch (Exception $e) {
echo 'Exception when calling TasksApi->listRecentExecutions1: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
xSyncopeDomain | string | [default to 'Master'] | |
max | int | the maximum number of executions to return | [optional] [default to 25] |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json, application/yaml, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
read28($type, $key, $xSyncopeDomain, $details)
Returns the task matching the given key.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuthentication
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure HTTP basic authorization: Bearer
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenEuropa\SyncopePhpClient\Api\TasksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$type = 'type_example'; // string | type of taskTO
$key = 'key_example'; // string | task type
$xSyncopeDomain = 'Master'; // string | whether include executions or not, defaults to true
$details = true; // bool | key of task to be read
try {
$apiInstance->read28($type, $key, $xSyncopeDomain, $details);
} catch (Exception $e) {
echo 'Exception when calling TasksApi->read28: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
type | string | type of taskTO | |
key | string | task type | |
xSyncopeDomain | string | whether include executions or not, defaults to true | [default to 'Master'] |
details | bool | key of task to be read | [optional] [default to true] |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json, application/yaml, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
search3($type, $xSyncopeDomain, $page, $size, $orderby, $resource, $notification, $anyTypeKind, $entityKey, $details)
Returns a paged list of existing tasks matching the given query.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuthentication
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure HTTP basic authorization: Bearer
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenEuropa\SyncopePhpClient\Api\TasksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$type = 'type_example'; // string |
$xSyncopeDomain = 'Master'; // string |
$page = 1; // int | type of taskTO
$size = 25; // int | query conditions
$orderby = 'orderby_example'; // string |
$resource = 'resource_example'; // string |
$notification = 'notification_example'; // string |
$anyTypeKind = 'anyTypeKind_example'; // string |
$entityKey = 'entityKey_example'; // string |
$details = true; // bool |
try {
$apiInstance->search3($type, $xSyncopeDomain, $page, $size, $orderby, $resource, $notification, $anyTypeKind, $entityKey, $details);
} catch (Exception $e) {
echo 'Exception when calling TasksApi->search3: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
type | string | ||
xSyncopeDomain | string | [default to 'Master'] | |
page | int | type of taskTO | [optional] [default to 1] |
size | int | query conditions | [optional] [default to 25] |
orderby | string | [optional] | |
resource | string | [optional] | |
notification | string | [optional] | |
anyTypeKind | string | [optional] | |
entityKey | string | [optional] | |
details | bool | [optional] [default to true] |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json, application/yaml, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update1($key, $type, $xSyncopeDomain, $schedTaskTO)
Updates the task matching the provided key.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuthentication
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure HTTP basic authorization: Bearer
$config = OpenEuropa\SyncopePhpClient\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenEuropa\SyncopePhpClient\Api\TasksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$key = 'key_example'; // string | Task's key
$type = 'type_example'; // string | updated task to be stored
$xSyncopeDomain = 'Master'; // string | task type
$schedTaskTO = new \OpenEuropa\SyncopePhpClient\Model\SchedTaskTO(); // \OpenEuropa\SyncopePhpClient\Model\SchedTaskTO |
try {
$apiInstance->update1($key, $type, $xSyncopeDomain, $schedTaskTO);
} catch (Exception $e) {
echo 'Exception when calling TasksApi->update1: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
key | string | Task's key | |
type | string | updated task to be stored | |
xSyncopeDomain | string | task type | [default to 'Master'] |
schedTaskTO | \OpenEuropa\SyncopePhpClient\Model\SchedTaskTO |
void (empty response body)
- Content-Type: application/json, application/yaml, application/xml
- Accept: application/json, application/yaml, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]