Sha256: bdcb49bfb3afac4f2824ae062e7f794ba90fa15f565caed6a09c240951ef87e2

Contents?: true

Size: 1.18 KB

Versions: 8

Compression:

Stored size: 1.18 KB

Contents

# Fastly::SudoApi


```ruby
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**](SudoApi.md#request_sudo_access) | **POST** /sudo | Request Sudo access


## `request_sudo_access()`

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

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

### Examples

```ruby
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**](SudoRequest.md) |  | [optional] |

### Return type

[**SudoResponse**](SudoResponse.md)

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to README]](../../README.md)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fastly-9.0.0 docs/SudoApi.md
fastly-8.10.0 docs/SudoApi.md
fastly-8.9.0 docs/SudoApi.md
fastly-8.8.0 docs/SudoApi.md
fastly-8.7.0 docs/SudoApi.md
fastly-8.6.0 docs/SudoApi.md
fastly-8.5.0 docs/SudoApi.md
fastly-8.4.0 docs/SudoApi.md