Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.05 KB

SudoApi.md

File metadata and controls

52 lines (36 loc) · 1.05 KB

Fastly.SudoApi

const apiInstance = new Fastly.SudoApi();

Methods

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
requestSudoAccess POST /sudo Request Sudo access

requestSudoAccess

requestSudoAccess({ , [sudo_request] })

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

Example

const options = {
  sudo_request: new Fastly.SudoRequest(),
};

apiInstance.requestSudoAccess(options)
  .then((data) => {
    console.log(data, "API called successfully.");
  })
  .catch((error) => {
    console.error(error);
  });

Options

Name Type Description Notes
sudo_request SudoRequest [optional]

Return type

SudoResponse

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