require 'fastly'
api_instance = Fastly::TlsBulkCertificatesApi.newNote
All URIs are relative to https://api.fastly.com
| Method | HTTP request | Description |
|---|---|---|
| delete_bulk_tls_cert | DELETE /tls/bulk/certificates/{certificate_id} | Delete a certificate |
| get_tls_bulk_cert | GET /tls/bulk/certificates/{certificate_id} | Get a certificate |
| list_tls_bulk_certs | GET /tls/bulk/certificates | List certificates |
| update_bulk_tls_cert | PATCH /tls/bulk/certificates/{certificate_id} | Update a certificate |
| upload_tls_bulk_cert | POST /tls/bulk/certificates | Upload a certificate |
delete_bulk_tls_cert(opts) # Delete a certificateDestroy a certificate. This disables TLS for all domains listed as SAN entries.
api_instance = Fastly::TlsBulkCertificatesApi.new
opts = {
certificate_id: 'certificate_id_example', # String | Alphanumeric string identifying a TLS bulk certificate.
}
begin
# Delete a certificate
api_instance.delete_bulk_tls_cert(opts)
rescue Fastly::ApiError => e
puts "Error when calling TlsBulkCertificatesApi->delete_bulk_tls_cert: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| certificate_id | String | Alphanumeric string identifying a TLS bulk certificate. |
nil (empty response body)
[Back to top] [Back to API list] [Back to README]
get_tls_bulk_cert(opts): <TlsBulkCertificateResponse> # Get a certificateRetrieve a single certificate.
api_instance = Fastly::TlsBulkCertificatesApi.new
opts = {
certificate_id: 'certificate_id_example', # String | Alphanumeric string identifying a TLS bulk certificate.
}
begin
# Get a certificate
result = api_instance.get_tls_bulk_cert(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling TlsBulkCertificatesApi->get_tls_bulk_cert: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| certificate_id | String | Alphanumeric string identifying a TLS bulk certificate. |
[Back to top] [Back to API list] [Back to README]
list_tls_bulk_certs(opts): <TlsBulkCertificatesResponse> # List certificatesList all certificates.
api_instance = Fastly::TlsBulkCertificatesApi.new
opts = {
filter_tls_domain_id: 'filter_tls_domain_id_example', # String | Filter certificates by their matching, fully-qualified domain name.
filter_not_before: 'filter_not_before_example', # String | Filter the returned certificates by not_before date in UTC. Accepts parameters: lt, lte, gt, gte (e.g., filter[not_before][gte]=2020-05-05).
filter_not_after: 'filter_not_after_example', # String | Filter the returned certificates by expiry date in UTC. Accepts parameters: lt, lte, gt, gte (e.g., filter[not_after][lte]=2020-05-05).
page_number: 1, # Integer | Current page.
page_size: 20, # Integer | Number of records per page.
sort: 'created_at', # String | The order in which to list the results by creation date.
}
begin
# List certificates
result = api_instance.list_tls_bulk_certs(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling TlsBulkCertificatesApi->list_tls_bulk_certs: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| filter_tls_domain_id | String | Filter certificates by their matching, fully-qualified domain name. | [optional] |
| filter_not_before | String | Filter the returned certificates by not_before date in UTC. Accepts parameters: lt, lte, gt, gte (e.g., filter[not_before][gte]=2020-05-05). | [optional] |
| filter_not_after | String | Filter the returned certificates by expiry date in UTC. Accepts parameters: lt, lte, gt, gte (e.g., filter[not_after][lte]=2020-05-05). | [optional] |
| page_number | Integer | Current page. | [optional] |
| page_size | Integer | Number of records per page. | [optional][default to 20] |
| sort | String | The order in which to list the results by creation date. | [optional][default to 'created_at'] |
[Back to top] [Back to API list] [Back to README]
update_bulk_tls_cert(opts): <TlsBulkCertificateResponse> # Update a certificateReplace a certificate with a newly reissued certificate. By using this endpoint, the original certificate will cease to be used for future TLS handshakes. Thus, only SAN entries that appear in the replacement certificate will become TLS enabled. Any SAN entries that are missing in the replacement certificate will become disabled.
api_instance = Fastly::TlsBulkCertificatesApi.new
opts = {
certificate_id: 'certificate_id_example', # String | Alphanumeric string identifying a TLS bulk certificate.
tls_bulk_certificate: Fastly::TlsBulkCertificate.new, # TlsBulkCertificate |
}
begin
# Update a certificate
result = api_instance.update_bulk_tls_cert(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling TlsBulkCertificatesApi->update_bulk_tls_cert: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| certificate_id | String | Alphanumeric string identifying a TLS bulk certificate. | |
| tls_bulk_certificate | TlsBulkCertificate | [optional] |
[Back to top] [Back to API list] [Back to README]
upload_tls_bulk_cert(opts): <TlsBulkCertificateResponse> # Upload a certificateUpload a new certificate. TLS domains are automatically enabled upon certificate creation. If a domain is already enabled on a previously uploaded certificate, that domain will be updated to use the new certificate for all future TLS handshake requests.
api_instance = Fastly::TlsBulkCertificatesApi.new
opts = {
tls_bulk_certificate: Fastly::TlsBulkCertificate.new, # TlsBulkCertificate |
}
begin
# Upload a certificate
result = api_instance.upload_tls_bulk_cert(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling TlsBulkCertificatesApi->upload_tls_bulk_cert: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| tls_bulk_certificate | TlsBulkCertificate | [optional] |