Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_tls_cert | POST /tls/certificates | Create a TLS certificate |
delete_tls_cert | DELETE /tls/certificates/{tls_certificate_id} | Delete a TLS certificate |
get_tls_cert | GET /tls/certificates/{tls_certificate_id} | Get a TLS certificate |
get_tls_cert_blob | GET /tls/certificates/{tls_certificate_id}/blob | Get a TLS certificate blob (Limited Availability) |
list_tls_certs | GET /tls/certificates | List TLS certificates |
update_tls_cert | PATCH /tls/certificates/{tls_certificate_id} | Update a TLS certificate |
Create a TLS certificate.
let cfg = &Configuration::default();
let params = CreateTlsCertParams {
// parameters
};
create_tls_cert(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
tls_certificate | Option<TlsCertificate> |
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to README]
Destroy a TLS certificate. TLS certificates already enabled for a domain cannot be destroyed.
let cfg = &Configuration::default();
let params = DeleteTlsCertParams {
// parameters
};
delete_tls_cert(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
tls_certificate_id | String | Alphanumeric string identifying a TLS certificate. | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to README]
Show a TLS certificate.
let cfg = &Configuration::default();
let params = GetTlsCertParams {
// parameters
};
get_tls_cert(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
tls_certificate_id | String | Alphanumeric string identifying a TLS certificate. | [required] |
crate::models::TlsCertificateResponse
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to README]
Retrieve a TLS certificate blob. This feature is part of a limited availability release.
let cfg = &Configuration::default();
let params = GetTlsCertBlobParams {
// parameters
};
get_tls_cert_blob(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
tls_certificate_id | String | Alphanumeric string identifying a TLS certificate. | [required] |
crate::models::TlsCertificateBlobResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
List all TLS certificates.
let cfg = &Configuration::default();
let params = ListTlsCertsParams {
// parameters
};
list_tls_certs(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
filter_in_use | Option<String> | Optional. Limit the returned certificates to those currently using Fastly to terminate TLS (that is, certificates associated with an activation). Permitted values: true, false. | ||
filter_not_after | Option<String> | Limit the returned certificates to those that expire prior to the specified date in UTC. Accepts parameters: lte (e.g., filter[not_after][lte]=2020-05-05). | ||
filter_tls_domains_id | Option<String> | Limit the returned certificates to those that include the specific domain. | ||
include | Option<String> | Include related objects. Optional, comma-separated values. Permitted values: tls_activations . |
||
sort | Option<String> | The order in which to list the results. | [default to -created_at] | |
page_number | Option<i32> | Current page. | ||
page_size | Option<i32> | Number of records per page. | [default to 20] |
crate::models::TlsCertificatesResponse
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to README]
Replace a TLS certificate with a newly reissued TLS certificate, or update a TLS certificate's name. If replacing a TLS certificate, the new TLS certificate must contain all SAN entries as the current TLS certificate. It must either have an exact matching list or contain a superset.
let cfg = &Configuration::default();
let params = UpdateTlsCertParams {
// parameters
};
update_tls_cert(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
tls_certificate_id | String | Alphanumeric string identifying a TLS certificate. | [required] | |
tls_certificate | Option<TlsCertificate> |
crate::models::TlsCertificateResponse
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json