Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.4 KB

SudoApi.md

File metadata and controls

52 lines (36 loc) · 1.4 KB

Fastly\Api\SudoApi

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

Methods

Method Fastly API endpoint Description
requestSudoAccess() POST /sudo Request Sudo access

requestSudoAccess()

requestSudoAccess($options): \Fastly\Model\SudoResponse // Request Sudo access

Re-authenticate to allow the provided user to obtain sudo access.

Example

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

Options

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

Name Type Description Notes
sudo_request \Fastly\Model\SudoRequest [optional]

Return type

\Fastly\Model\SudoResponse

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