require 'fastly'
api_instance = Fastly::SudoApi.new
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(opts): <SudoResponse> # Request Sudo access
Re-authenticate to allow the provided user to obtain sudo access.
api_instance = Fastly::SudoApi.new
opts = {
sudo_request: Fastly::SudoRequest.new({username: 'username_example', password: 'password_example'}), # SudoRequest |
}
begin
# Request Sudo access
result = api_instance.request_sudo_access(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling SudoApi->request_sudo_access: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
sudo_request | SudoRequest | [optional] |