Skip to content

Latest commit

 

History

History
196 lines (122 loc) · 5.68 KB

TlsActivationsApi.md

File metadata and controls

196 lines (122 loc) · 5.68 KB

TlsActivationsApi

Note

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

Method HTTP request Description
create_tls_activation POST /tls/activations Enable TLS for a domain using a custom certificate
delete_tls_activation DELETE /tls/activations/{tls_activation_id} Disable TLS on a domain
get_tls_activation GET /tls/activations/{tls_activation_id} Get a TLS activation
list_tls_activations GET /tls/activations List TLS activations
update_tls_activation PATCH /tls/activations/{tls_activation_id} Update a certificate

create_tls_activation

Enable TLS for a particular TLS domain and certificate combination. These relationships must be specified to create the TLS activation.

let cfg = &Configuration::default();
let params = CreateTlsActivationParams {
    // parameters
};
create_tls_activation(cfg, params)

Parameters

Name Type Description Required Notes
tls_activation Option<TlsActivation>

Return type

crate::models::TlsActivationResponse

Authorization

token

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json

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

delete_tls_activation

Disable TLS on the domain associated with this TLS activation.

let cfg = &Configuration::default();
let params = DeleteTlsActivationParams {
    // parameters
};
delete_tls_activation(cfg, params)

Parameters

Name Type Description Required Notes
tls_activation_id String Alphanumeric string identifying a TLS activation. [required]

Return type

(empty response body)

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

get_tls_activation

Show a TLS activation.

let cfg = &Configuration::default();
let params = GetTlsActivationParams {
    // parameters
};
get_tls_activation(cfg, params)

Parameters

Name Type Description Required Notes
tls_activation_id String Alphanumeric string identifying a TLS activation. [required]
include Option<String> Include related objects. Optional, comma-separated values. Permitted values: tls_certificate, tls_configuration, and tls_domain.

Return type

crate::models::TlsActivationResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.api+json

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

list_tls_activations

List all TLS activations.

let cfg = &Configuration::default();
let params = ListTlsActivationsParams {
    // parameters
};
list_tls_activations(cfg, params)

Parameters

Name Type Description Required Notes
filter_tls_certificate_id Option<String> Limit the returned activations to a specific certificate.
filter_tls_configuration_id Option<String> Limit the returned activations to a specific TLS configuration.
filter_tls_domain_id Option<String> Limit the returned rules to a specific domain name.
include Option<String> Include related objects. Optional, comma-separated values. Permitted values: tls_certificate, tls_configuration, and tls_domain.
page_number Option<i32> Current page.
page_size Option<i32> Number of records per page. [default to 20]

Return type

crate::models::TlsActivationsResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.api+json

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

update_tls_activation

Update the certificate used to terminate TLS traffic for the domain associated with this TLS activation.

let cfg = &Configuration::default();
let params = UpdateTlsActivationParams {
    // parameters
};
update_tls_activation(cfg, params)

Parameters

Name Type Description Required Notes
tls_activation_id String Alphanumeric string identifying a TLS activation. [required]
tls_activation Option<TlsActivation>

Return type

crate::models::TlsActivationResponse

Authorization

token

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json

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