Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.72 KB

SudoApi.md

File metadata and controls

66 lines (45 loc) · 1.72 KB

WebService::Fastly::SudoApi

Load the API package

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

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.

Example

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

Parameters

Name Type Description Notes
sudo_request SudoRequest [optional]

Return type

SudoResponse

Authorization

token

HTTP request headers

  • 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]