Sha256: a72c72cce33bc0e8129dee5d11bdb7f3a708dfa13eeee27ad3a172c007a25107

Contents?: true

Size: 1.04 KB

Versions: 8

Compression:

Stored size: 1.04 KB

Contents

# Fastly::TlsCsrsApi


```ruby
require 'fastly'
api_instance = Fastly::TlsCsrsApi.new
```

## Methods

> [!NOTE]
> All URIs are relative to `https://api.fastly.com`

Method | HTTP request | Description
------ | ------------ | -----------
[**create_csr**](TlsCsrsApi.md#create_csr) | **POST** /tls/certificate_signing_requests | Create CSR


## `create_csr()`

```ruby
create_csr(opts): <TlsCsrResponse> # Create CSR
```

Creates a certificate signing request (CSR).

### Examples

```ruby
api_instance = Fastly::TlsCsrsApi.new
opts = {
    tls_csr: Fastly::TlsCsr.new, # TlsCsr | 
}

begin
  # Create CSR
  result = api_instance.create_csr(opts)
  p result
rescue Fastly::ApiError => e
  puts "Error when calling TlsCsrsApi->create_csr: #{e}"
end
```

### Options

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **tls_csr** | [**TlsCsr**](TlsCsr.md) |  | [optional] |

### Return type

[**TlsCsrResponse**](TlsCsrResponse.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/TlsCsrsApi.md
fastly-8.10.0 docs/TlsCsrsApi.md
fastly-8.9.0 docs/TlsCsrsApi.md
fastly-8.8.0 docs/TlsCsrsApi.md
fastly-8.7.0 docs/TlsCsrsApi.md
fastly-8.6.0 docs/TlsCsrsApi.md
fastly-8.5.0 docs/TlsCsrsApi.md
fastly-8.4.0 docs/TlsCsrsApi.md