Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request DELETE \ --url https://api.machines.dev/v1/apps/{app_name}/certificates/{hostname}/acme \ --header 'Authorization: Bearer <token>'
import requests url = "https://api.machines.dev/v1/apps/{app_name}/certificates/{hostname}/acme" headers = {"Authorization": "Bearer <token>"} response = requests.delete(url, headers=headers) print(response.text)
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.machines.dev/v1/apps/{app_name}/certificates/{hostname}/acme', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.machines.dev/v1/apps/{app_name}/certificates/{hostname}/acme", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "DELETE", CURLOPT_HTTPHEADER => [ "Authorization: Bearer <token>" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.machines.dev/v1/apps/{app_name}/certificates/{hostname}/acme" req, _ := http.NewRequest("DELETE", url, nil) req.Header.Add("Authorization", "Bearer <token>") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) }
HttpResponse<String> response = Unirest.delete("https://api.machines.dev/v1/apps/{app_name}/certificates/{hostname}/acme") .header("Authorization", "Bearer <token>") .asString();
require 'uri' require 'net/http' url = URI("https://api.machines.dev/v1/apps/{app_name}/certificates/{hostname}/acme") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Delete.new(url) request["Authorization"] = 'Bearer <token>' response = http.request(request) puts response.read_body
{ "acme_requested": true, "certificates": [ { "created_at": "<string>", "expires_at": "<string>", "issued": [ { "certificate_authority": "<string>", "expires_at": "<string>", "type": "rsa" } ], "issuer": "<string>", "source": "custom", "status": "active" } ], "configured": true, "dns_provider": "<string>", "dns_requirements": { "a": [ "<string>" ], "aaaa": [ "<string>" ], "acme_challenge": { "name": "<string>", "target": "<string>" }, "cname": "<string>", "ownership": { "app_value": "<string>", "name": "<string>", "org_value": "<string>" } }, "hostname": "<string>", "rate_limited_until": "<string>", "status": "<string>", "validation": { "alpn_configured": true, "dns_configured": true, "http_configured": true, "ownership_txt_configured": true }, "validation_errors": [ { "code": "<string>", "message": "<string>", "remediation": "<string>", "timestamp": "<string>" } ] }
A Fly API token with access to the requested organization or resource. Send it as Authorization: Bearer <Fly API token>.
Authorization: Bearer <Fly API token>
Fly App Name
Certificate Hostname
OK
Whether Fly.io-issued (ACME) certificates were requested for the hostname.
The hostname's certificates: at most one custom entry and one Fly.io entry.
Show child attributes
Whether ownership of the hostname has been verified.
DNS provider detected for the hostname, if known.
DNS records to create to point the hostname at the app and validate it.
The hostname the certificate is for. May start with *. for a wildcard certificate.
*.
If Let's Encrypt is rate-limiting certificate requests for the hostname, when that ends.
Human-readable status: Ready, Awaiting certificates, Awaiting configuration, or a hint about what is misconfigured.
Ready
Awaiting certificates
Awaiting configuration
Which validation methods are currently possible.
Problems found by the most recent validation.