$apiInstance = new Fastly\Api\ObjectStorageAccessKeysApi(
// 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
);
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
createAccessKey() | POST /resources/object-storage/access-keys | Create an access key |
deleteAccessKey() | DELETE /resources/object-storage/access-keys/{access_key} | Delete an access key |
getAccessKey() | GET /resources/object-storage/access-keys/{access_key} | Get an access key |
listAccessKeys() | GET /resources/object-storage/access-keys | List access keys |
createAccessKey($options): \Fastly\Model\AccessKeyResponse // Create an access key
Create an access key.
$options['access_key'] = new \Fastly\Model\AccessKey(); // \Fastly\Model\AccessKey
try {
$result = $apiInstance->createAccessKey($options);
} catch (Exception $e) {
echo 'Exception when calling ObjectStorageAccessKeysApi->createAccessKey: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
access_key | \Fastly\Model\AccessKey | [optional] |
\Fastly\Model\AccessKeyResponse
[Back to top] [Back to API list] [Back to README]
deleteAccessKey($options) // Delete an access key
Delete an access key.
$options['access_key'] = 'access_key_example'; // string
try {
$apiInstance->deleteAccessKey($options);
} catch (Exception $e) {
echo 'Exception when calling ObjectStorageAccessKeysApi->deleteAccessKey: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
access_key | string |
void (empty response body)
[Back to top] [Back to API list] [Back to README]
getAccessKey($options): \Fastly\Model\AccessKey // Get an access key
Get an access key by its identifier.
$options['access_key'] = 'access_key_example'; // string
try {
$result = $apiInstance->getAccessKey($options);
} catch (Exception $e) {
echo 'Exception when calling ObjectStorageAccessKeysApi->getAccessKey: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
access_key | string |
[Back to top] [Back to API list] [Back to README]
listAccessKeys($options): \Fastly\Model\AccessKeyResponse // List access keys
List access keys.
try {
$result = $apiInstance->listAccessKeys($options);
} catch (Exception $e) {
echo 'Exception when calling ObjectStorageAccessKeysApi->listAccessKeys: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
This endpoint does not need any parameters.