Sha256: deb1c385e8471acd43c3fe42ec559a4265d7c1cc508e5c0b6459d42394937d2b

Contents?: true

Size: 1010 Bytes

Versions: 7

Compression:

Stored size: 1010 Bytes

Contents

# Fastly::TlsCsrsApi


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

## Methods

| 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

7 entries across 7 versions & 1 rubygems

Version Path
fastly-8.2.0 docs/TlsCsrsApi.md
fastly-8.1.0 docs/TlsCsrsApi.md
fastly-4.3.0 docs/TlsCsrsApi.md
fastly-4.2.0 docs/TlsCsrsApi.md
fastly-4.1.0 docs/TlsCsrsApi.md
fastly-4.0.1.pre.alpha.0 docs/TlsCsrsApi.md
fastly-4.0.0 docs/TlsCsrsApi.md