All URIs are relative to http://syncope-vm.apache.org:9080/syncope/rest
Method | HTTP request | Description |
---|---|---|
create | POST /domains | Creates a new domain. |
delete1 | DELETE /domains/{key} | Deletes the domain matching the provided key. |
list8 | GET /domains | Returns a list of all domains. |
read8 | GET /domains/{key} | Returns domain with matching key. |
update | PUT /domains/{key} | Updates the domain matching the provided key. |
create($xSyncopeDomain, $domainTO)
Creates a new domain.
<?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\DomainsApi(
// 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 | domain to be created
$domainTO = new \OpenEuropa\SyncopePhpClient\Model\DomainTO(); // \OpenEuropa\SyncopePhpClient\Model\DomainTO |
try {
$apiInstance->create($xSyncopeDomain, $domainTO);
} catch (Exception $e) {
echo 'Exception when calling DomainsApi->create: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
xSyncopeDomain | string | domain to be created | [default to 'Master'] |
domainTO | \OpenEuropa\SyncopePhpClient\Model\DomainTO |
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($key, $xSyncopeDomain)
Deletes the domain 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\DomainsApi(
// 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 | domain key to be deleted
$xSyncopeDomain = 'Master'; // string |
try {
$apiInstance->delete1($key, $xSyncopeDomain);
} catch (Exception $e) {
echo 'Exception when calling DomainsApi->delete1: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
key | string | domain key 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]
list8($xSyncopeDomain)
Returns a list of all domains.
<?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\DomainsApi(
// 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->list8($xSyncopeDomain);
} catch (Exception $e) {
echo 'Exception when calling DomainsApi->list8: ', $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]
read8($key, $xSyncopeDomain)
Returns domain with matching 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\DomainsApi(
// 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 | domain key to be read
$xSyncopeDomain = 'Master'; // string |
try {
$apiInstance->read8($key, $xSyncopeDomain);
} catch (Exception $e) {
echo 'Exception when calling DomainsApi->read8: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
key | string | domain key to be read | |
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]
update($key, $xSyncopeDomain, $domainTO)
Updates the domain 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\DomainsApi(
// 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 | Domain's key
$xSyncopeDomain = 'Master'; // string | domain key to be deleted
$domainTO = new \OpenEuropa\SyncopePhpClient\Model\DomainTO(); // \OpenEuropa\SyncopePhpClient\Model\DomainTO |
try {
$apiInstance->update($key, $xSyncopeDomain, $domainTO);
} catch (Exception $e) {
echo 'Exception when calling DomainsApi->update: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
key | string | Domain's key | |
xSyncopeDomain | string | domain key to be deleted | [default to 'Master'] |
domainTO | \OpenEuropa\SyncopePhpClient\Model\DomainTO |
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]