Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_tls_key | POST /tls/private_keys | Create a TLS private key |
delete_tls_key | DELETE /tls/private_keys/{tls_private_key_id} | Delete a TLS private key |
get_tls_key | GET /tls/private_keys/{tls_private_key_id} | Get a TLS private key |
list_tls_keys | GET /tls/private_keys | List TLS private keys |
Create a TLS private key.
let cfg = &Configuration::default();
let params = CreateTlsKeyParams {
// parameters
};
create_tls_key(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
tls_private_key | Option<TlsPrivateKey> |
crate::models::TlsPrivateKeyResponse
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to README]
Destroy a TLS private key. Only private keys not already matched to any certificates can be deleted.
let cfg = &Configuration::default();
let params = DeleteTlsKeyParams {
// parameters
};
delete_tls_key(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
tls_private_key_id | String | Alphanumeric string identifying a private Key. | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to README]
Show a TLS private key.
let cfg = &Configuration::default();
let params = GetTlsKeyParams {
// parameters
};
get_tls_key(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
tls_private_key_id | String | Alphanumeric string identifying a private Key. | [required] |
crate::models::TlsPrivateKeyResponse
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to README]
List all TLS private keys.
let cfg = &Configuration::default();
let params = ListTlsKeysParams {
// parameters
};
list_tls_keys(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
filter_in_use | Option<String> | Limit the returned keys to those without any matching TLS certificates. The only valid value is false. | ||
page_number | Option<i32> | Current page. | ||
page_size | Option<i32> | Number of records per page. | [default to 20] |
crate::models::TlsPrivateKeysResponse
- Content-Type: Not defined
- Accept: application/vnd.api+json