All URIs are relative to https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createProductEnvironment() | POST /sub_accounts | Create product environment |
deleteProductEnvironment() | DELETE /sub_accounts/{sub_account_id} | Delete product environment |
getProductEnvironment() | GET /sub_accounts/{sub_account_id} | Get product environment |
getProductEnvironments() | GET /sub_accounts | Get product environments |
updateProductEnvironment() | PUT /sub_accounts/{sub_account_id} | Update product environment |
createProductEnvironment($productEnvironmentRequest): \Cloudinary\Provisioning\Model\ProductEnvironment
Create product environment
Create a new product environment. Any users that have access to all product environments will also automatically have access to the new product environment.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Cloudinary\Provisioning\Api\ProductEnvironmentsApi();
$productEnvironmentRequest = new \Cloudinary\Provisioning\Model\ProductEnvironmentRequest(); // \Cloudinary\Provisioning\Model\ProductEnvironmentRequest | Product environment details
try {
$result = $apiInstance->createProductEnvironment($productEnvironmentRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductEnvironmentsApi->createProductEnvironment: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
productEnvironmentRequest | \Cloudinary\Provisioning\Model\ProductEnvironmentRequest | Product environment details |
\Cloudinary\Provisioning\Model\ProductEnvironment
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteProductEnvironment($subAccountId): \Cloudinary\Provisioning\Model\SuccessResponse
Delete product environment
Delete a specific product environment.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Cloudinary\Provisioning\Api\ProductEnvironmentsApi();
$subAccountId = "abcde1fghij2klmno3pqrst4uvwxy5z"; // string | The ID of the product environment.
try {
$result = $apiInstance->deleteProductEnvironment($subAccountId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductEnvironmentsApi->deleteProductEnvironment: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
subAccountId | string | The ID of the product environment. |
\Cloudinary\Provisioning\Model\SuccessResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getProductEnvironment($subAccountId): \Cloudinary\Provisioning\Model\ProductEnvironment
Get product environment
Retrieve a specific product environment.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Cloudinary\Provisioning\Api\ProductEnvironmentsApi();
$subAccountId = "abcde1fghij2klmno3pqrst4uvwxy5z"; // string | The ID of the product environment.
try {
$result = $apiInstance->getProductEnvironment($subAccountId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductEnvironmentsApi->getProductEnvironment: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
subAccountId | string | The ID of the product environment. |
\Cloudinary\Provisioning\Model\ProductEnvironment
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getProductEnvironments($enabled, $ids, $cloudNames, $prefix): \Cloudinary\Provisioning\Model\ProductEnvironmentsResponse
Get product environments
Return an array of all product environments, or if conditions are specified, return the relevant product environments.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Cloudinary\Provisioning\Api\ProductEnvironmentsApi();
$enabled = true; // bool | Whether to only return enabled product environments (true) or disabled product environments (false). **Default**: all product environments are returned (both enabled and disabled).
$ids = array('ids_example'); // string[] | A list of up to 100 product environment IDs. When provided, other parameters are ignored.
$cloudNames = array('cloudNames_example'); // string[] | A list of up to 100 product environment cloud names.
$prefix = "product"; // string | Returns product environments where the name begins with the specified case-insensitive string.
try {
$result = $apiInstance->getProductEnvironments($enabled, $ids, $cloudNames, $prefix);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductEnvironmentsApi->getProductEnvironments: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
enabled | bool | Whether to only return enabled product environments (true) or disabled product environments (false). Default: all product environments are returned (both enabled and disabled). | [optional] |
ids | string[] | A list of up to 100 product environment IDs. When provided, other parameters are ignored. | [optional] |
cloudNames | string[] | A list of up to 100 product environment cloud names. | [optional] |
prefix | string | Returns product environments where the name begins with the specified case-insensitive string. | [optional] |
\Cloudinary\Provisioning\Model\ProductEnvironmentsResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateProductEnvironment($subAccountId, $productEnvironmentUpdateRequest): \Cloudinary\Provisioning\Model\ProductEnvironment
Update product environment
Update the details of a product environment.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Cloudinary\Provisioning\Api\ProductEnvironmentsApi();
$subAccountId = "abcde1fghij2klmno3pqrst4uvwxy5z"; // string | The ID of the product environment.
$productEnvironmentUpdateRequest = new \Cloudinary\Provisioning\Model\ProductEnvironmentUpdateRequest(); // \Cloudinary\Provisioning\Model\ProductEnvironmentUpdateRequest | Updated product environment details
try {
$result = $apiInstance->updateProductEnvironment($subAccountId, $productEnvironmentUpdateRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductEnvironmentsApi->updateProductEnvironment: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
subAccountId | string | The ID of the product environment. | |
productEnvironmentUpdateRequest | \Cloudinary\Provisioning\Model\ProductEnvironmentUpdateRequest | Updated product environment details | [optional] |
\Cloudinary\Provisioning\Model\ProductEnvironment
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]