All URIs are relative to https://api2.hiveos.farm/api/v2
Method | HTTP request | Description |
---|---|---|
farmsFarmIdContainersContainerIdDelete | DELETE /farms/{farmId}/containers/{containerId} | Delete container |
farmsFarmIdContainersContainerIdGet | GET /farms/{farmId}/containers/{containerId} | Container info |
farmsFarmIdContainersContainerIdPatch | PATCH /farms/{farmId}/containers/{containerId} | Edit container |
farmsFarmIdContainersDelete | DELETE /farms/{farmId}/containers | Delete multiple containers |
farmsFarmIdContainersGet | GET /farms/{farmId}/containers | Farm containers list |
farmsFarmIdContainersPost | POST /farms/{farmId}/containers | Create new container |
farmsFarmIdContainersContainerIdDelete($farm_id, $container_id)
Delete container
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\ContainersApi(
// 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
);
$farm_id = 56; // int |
$container_id = 56; // int |
try {
$apiInstance->farmsFarmIdContainersContainerIdDelete($farm_id, $container_id);
} catch (Exception $e) {
echo 'Exception when calling ContainersApi->farmsFarmIdContainersContainerIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
farm_id | int | ||
container_id | int |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Container farmsFarmIdContainersContainerIdGet($farm_id, $container_id)
Container info
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\ContainersApi(
// 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
);
$farm_id = 56; // int |
$container_id = 56; // int |
try {
$result = $apiInstance->farmsFarmIdContainersContainerIdGet($farm_id, $container_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContainersApi->farmsFarmIdContainersContainerIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
farm_id | int | ||
container_id | int |
\Swagger\Client\Model\Container
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
farmsFarmIdContainersContainerIdPatch($farm_id, $container_id, $body)
Edit container
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\ContainersApi(
// 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
);
$farm_id = 56; // int |
$container_id = 56; // int |
$body = new \Swagger\Client\Model\ContainerUpdateRequest(); // \Swagger\Client\Model\ContainerUpdateRequest |
try {
$apiInstance->farmsFarmIdContainersContainerIdPatch($farm_id, $container_id, $body);
} catch (Exception $e) {
echo 'Exception when calling ContainersApi->farmsFarmIdContainersContainerIdPatch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
farm_id | int | ||
container_id | int | ||
body | \Swagger\Client\Model\ContainerUpdateRequest | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
farmsFarmIdContainersDelete($farm_id, $body)
Delete multiple containers
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\ContainersApi(
// 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
);
$farm_id = 56; // int |
$body = new \Swagger\Client\Model\IDs(); // \Swagger\Client\Model\IDs |
try {
$apiInstance->farmsFarmIdContainersDelete($farm_id, $body);
} catch (Exception $e) {
echo 'Exception when calling ContainersApi->farmsFarmIdContainersDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
farm_id | int | ||
body | \Swagger\Client\Model\IDs | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object farmsFarmIdContainersGet($farm_id)
Farm containers list
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\ContainersApi(
// 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
);
$farm_id = 56; // int |
try {
$result = $apiInstance->farmsFarmIdContainersGet($farm_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContainersApi->farmsFarmIdContainersGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
farm_id | int |
object
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Container farmsFarmIdContainersPost($farm_id, $body)
Create new container
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\ContainersApi(
// 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
);
$farm_id = 56; // int |
$body = new \Swagger\Client\Model\ContainerCreateRequest(); // \Swagger\Client\Model\ContainerCreateRequest |
try {
$result = $apiInstance->farmsFarmIdContainersPost($farm_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContainersApi->farmsFarmIdContainersPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
farm_id | int | ||
body | \Swagger\Client\Model\ContainerCreateRequest | [optional] |
\Swagger\Client\Model\Container
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]