Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.18 KB

SudoApi.md

File metadata and controls

55 lines (38 loc) · 1.18 KB

Fastly::SudoApi

require 'fastly'
api_instance = Fastly::SudoApi.new

Methods

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()

request_sudo_access(opts): <SudoResponse> # Request Sudo access

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

Examples

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

Options

Name Type Description Notes
sudo_request SudoRequest [optional]

Return type

SudoResponse

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