Skip to content

Latest commit

 

History

History
157 lines (107 loc) · 4.13 KB

ObjectStorageAccessKeysApi.md

File metadata and controls

157 lines (107 loc) · 4.13 KB

Fastly\Api\ObjectStorageAccessKeysApi

$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
);

Methods

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()

createAccessKey($options): \Fastly\Model\AccessKeyResponse // Create an access key

Create an access key.

Example

    $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;
}

Options

Note: the input parameter is an associative array with the keys listed below.

Name Type Description Notes
access_key \Fastly\Model\AccessKey [optional]

Return type

\Fastly\Model\AccessKeyResponse

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

deleteAccessKey()

deleteAccessKey($options) // Delete an access key

Delete an access key.

Example

    $options['access_key'] = 'access_key_example'; // string

try {
    $apiInstance->deleteAccessKey($options);
} catch (Exception $e) {
    echo 'Exception when calling ObjectStorageAccessKeysApi->deleteAccessKey: ', $e->getMessage(), PHP_EOL;
}

Options

Note: the input parameter is an associative array with the keys listed below.

Name Type Description Notes
access_key string

Return type

void (empty response body)

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

getAccessKey()

getAccessKey($options): \Fastly\Model\AccessKey // Get an access key

Get an access key by its identifier.

Example

    $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;
}

Options

Note: the input parameter is an associative array with the keys listed below.

Name Type Description Notes
access_key string

Return type

\Fastly\Model\AccessKey

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

listAccessKeys()

listAccessKeys($options): \Fastly\Model\AccessKeyResponse // List access keys

List access keys.

Example

    
try {
    $result = $apiInstance->listAccessKeys($options);
} catch (Exception $e) {
    echo 'Exception when calling ObjectStorageAccessKeysApi->listAccessKeys: ', $e->getMessage(), PHP_EOL;
}

Options

Note: the input parameter is an associative array with the keys listed below.

This endpoint does not need any parameters.

Return type

\Fastly\Model\AccessKeyResponse

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