$apiInstance = new Fastly\Api\SudoApi(
// 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
);
Method | Fastly API endpoint | Description |
---|---|---|
requestSudoAccess() | POST /sudo | Request Sudo access |
requestSudoAccess($options): \Fastly\Model\SudoResponse // Request Sudo access
Re-authenticate to allow the provided user to obtain sudo access.
$options['sudo_request'] = new \Fastly\Model\SudoRequest(); // \Fastly\Model\SudoRequest
try {
$result = $apiInstance->requestSudoAccess($options);
} catch (Exception $e) {
echo 'Exception when calling SudoApi->requestSudoAccess: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
sudo_request | \Fastly\Model\SudoRequest | [optional] |