All URIs are relative to https://dashboard.quantcdn.io, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| createCommand() | POST /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/commands | Create a command for an environment |
| getCommand() | GET /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/commands/{command} | Get a command |
| listCommands() | GET /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/commands | Get all commands for an environment |
createCommand($organisation, $application, $environment, $create_command_request): \QuantClient\Model\CommandCreate a command for an environment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new QuantClient\Api\CommandsApi(
// 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
);
$organisation = test-org; // string | The organisation ID
$application = test-app; // string | The application ID
$environment = test-env; // string | The environment ID
$create_command_request = new \QuantClient\Model\CreateCommandRequest(); // \QuantClient\Model\CreateCommandRequest
try {
$result = $apiInstance->createCommand($organisation, $application, $environment, $create_command_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CommandsApi->createCommand: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| organisation | string | The organisation ID | |
| application | string | The application ID | |
| environment | string | The environment ID | |
| create_command_request | \QuantClient\Model\CreateCommandRequest |
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getCommand($organisation, $application, $environment, $command): \QuantClient\Model\CommandGet a command
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new QuantClient\Api\CommandsApi(
// 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
);
$organisation = test-org; // string | The organisation ID
$application = test-app; // string | The application ID
$environment = test-env; // string | The environment ID
$command = test-cmd; // string | The command run ID
try {
$result = $apiInstance->getCommand($organisation, $application, $environment, $command);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CommandsApi->getCommand: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| organisation | string | The organisation ID | |
| application | string | The application ID | |
| environment | string | The environment ID | |
| command | string | The command run ID |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listCommands($organisation, $application, $environment)Get all commands for an environment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new QuantClient\Api\CommandsApi(
// 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
);
$organisation = test-org; // string | The organisation ID
$application = test-app; // string | The application ID
$environment = test-env; // string | The environment ID
try {
$apiInstance->listCommands($organisation, $application, $environment);
} catch (Exception $e) {
echo 'Exception when calling CommandsApi->listCommands: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| organisation | string | The organisation ID | |
| application | string | The application ID | |
| environment | string | The environment ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]