Skip to content

Files

Latest commit

1b7bc9d · Dec 6, 2022

History

History
308 lines (208 loc) · 9.45 KB

SchedulerServiceApi.md

File metadata and controls

308 lines (208 loc) · 9.45 KB

OpenAPI\Client\SchedulerServiceApi

All URIs are relative to http://localhost, except if the operation defines another base path.

Method HTTP request Description
utilsSchedulerRestCreateaccounttaskPost() POST /utils/scheduler/rest/createaccounttask
utilsSchedulerRestCreateenvtaskPost() POST /utils/scheduler/rest/createenvtask
utilsSchedulerRestDeletetasksPost() POST /utils/scheduler/rest/deletetasks
utilsSchedulerRestEdittaskPost() POST /utils/scheduler/rest/edittask
utilsSchedulerRestGettasksPost() POST /utils/scheduler/rest/gettasks

utilsSchedulerRestCreateaccounttaskPost()

utilsSchedulerRestCreateaccounttaskPost($trigger, $script, $description, $params): \OpenAPI\Client\Model\ComHivextApiServerDataResponseObjectResponse

Creating task that triggers earlie created script with given rate.
Syntax of trigger param : TYPE:VALUE, possible values of TYPE : cron, rate, date, oninit(once after platform start), once_delay. Params for script passed in JSON format.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new OpenAPI\Client\Api\SchedulerServiceApi(
    // 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()
);
$trigger = 'trigger_example'; // string
$script = 'script_example'; // string
$description = 'description_example'; // string
$params = 'params_example'; // string

try {
    $result = $apiInstance->utilsSchedulerRestCreateaccounttaskPost($trigger, $script, $description, $params);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SchedulerServiceApi->utilsSchedulerRestCreateaccounttaskPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
trigger string
script string
description string [optional]
params string [optional]

Return type

\OpenAPI\Client\Model\ComHivextApiServerDataResponseObjectResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

utilsSchedulerRestCreateenvtaskPost()

utilsSchedulerRestCreateenvtaskPost($trigger, $script, $envName, $description, $params): \OpenAPI\Client\Model\ComHivextApiServerDataResponseObjectResponse

Creating task that triggers earlie created script with given rate. Also it will be deleted when environment with given in params appid/domain will be deleted.
Syntax of trigger param : TYPE:VALUE, possible values of TYPE : cron, rate, date, oninit(once after platform start), once_delay. Params for script passed in JSON format.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new OpenAPI\Client\Api\SchedulerServiceApi(
    // 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()
);
$trigger = 'trigger_example'; // string
$script = 'script_example'; // string
$envName = 'envName_example'; // string
$description = 'description_example'; // string
$params = 'params_example'; // string

try {
    $result = $apiInstance->utilsSchedulerRestCreateenvtaskPost($trigger, $script, $envName, $description, $params);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SchedulerServiceApi->utilsSchedulerRestCreateenvtaskPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
trigger string
script string
envName string [optional]
description string [optional]
params string [optional]

Return type

\OpenAPI\Client\Model\ComHivextApiServerDataResponseObjectResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

utilsSchedulerRestDeletetasksPost()

utilsSchedulerRestDeletetasksPost($ids): \OpenAPI\Client\Model\ComHivextApiResponse

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new OpenAPI\Client\Api\SchedulerServiceApi(
    // 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()
);
$ids = 'ids_example'; // string

try {
    $result = $apiInstance->utilsSchedulerRestDeletetasksPost($ids);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SchedulerServiceApi->utilsSchedulerRestDeletetasksPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
ids string

Return type

\OpenAPI\Client\Model\ComHivextApiResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

utilsSchedulerRestEdittaskPost()

utilsSchedulerRestEdittaskPost($trigger, $id, $script, $description, $params): \OpenAPI\Client\Model\ComHivextApiServerDataResponseObjectResponse

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new OpenAPI\Client\Api\SchedulerServiceApi(
    // 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()
);
$trigger = 'trigger_example'; // string
$id = 56; // int
$script = 'script_example'; // string
$description = 'description_example'; // string
$params = 'params_example'; // string

try {
    $result = $apiInstance->utilsSchedulerRestEdittaskPost($trigger, $id, $script, $description, $params);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SchedulerServiceApi->utilsSchedulerRestEdittaskPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
trigger string
id int
script string
description string [optional]
params string [optional]

Return type

\OpenAPI\Client\Model\ComHivextApiServerDataResponseObjectResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

utilsSchedulerRestGettasksPost()

utilsSchedulerRestGettasksPost($ids): \OpenAPI\Client\Model\ComHivextApiServerDataResponseObjectsResponse

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new OpenAPI\Client\Api\SchedulerServiceApi(
    // 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()
);
$ids = 'ids_example'; // string

try {
    $result = $apiInstance->utilsSchedulerRestGettasksPost($ids);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SchedulerServiceApi->utilsSchedulerRestGettasksPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
ids string [optional]

Return type

\OpenAPI\Client\Model\ComHivextApiServerDataResponseObjectsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]