use WebService::Fastly::Object::SudoApi;
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
request_sudo_access | POST /sudo | Request Sudo access |
SudoResponse request_sudo_access(sudo_request => $sudo_request)
Request Sudo access
Re-authenticate to allow the provided user to obtain sudo access.
use Data::Dumper;
use WebService::Fastly::SudoApi;
my $api_instance = WebService::Fastly::SudoApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $sudo_request = WebService::Fastly::Object::SudoRequest->new(); # SudoRequest |
eval {
my $result = $api_instance->request_sudo_access(sudo_request => $sudo_request);
print Dumper($result);
};
if ($@) {
warn "Exception when calling SudoApi->request_sudo_access: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
sudo_request | SudoRequest | [optional] |
- Content-Type: application/json
- Accept: application/vnd.api+json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]