{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To create a new CDN endpoint, send a POST request to `/v2/cdn/endpoints`. The\norigin attribute must be set to the fully qualified domain name (FQDN) of a\nDigitalOcean Space. Optionally, the TTL may be configured by setting the `ttl`\nattribute.\n\nA custom subdomain may be configured by specifying the `custom_domain` and\n`certificate_id` attributes.\n","properties":{"body":{"$ref":"#/definitions/cdn_endpoint","examples":[{"origin":"static-images.nyc3.digitaloceanspaces.com","ttl":3600}]}},"required":["body"],"additionalProperties":false,"definitions":{"cdn_endpoint":{"type":"object","properties":{"origin":{"type":"string","format":"hostname","description":"The fully qualified domain name (FQDN) for the origin server which provides the content for the CDN. This is currently restricted to a Space.","examples":["static-images.nyc3.digitaloceanspaces.com"]},"ttl":{"type":"integer","enum":[60,600,3600,86400,604800],"default":3600,"description":"The amount of time the content is cached by the CDN's edge servers in seconds. TTL must be one of 60, 600, 3600, 86400, or 604800. Defaults to 3600 (one hour) when excluded.","examples":[3600]},"certificate_id":{"type":"string","format":"uuid","description":"The ID of a DigitalOcean managed TLS certificate used for SSL when a custom subdomain is provided.","examples":["892071a0-bb95-49bc-8021-3afd67a210bf"]},"custom_domain":{"type":"string","format":"hostname","description":"The fully qualified domain name (FQDN) of the custom subdomain used with the CDN endpoint.","examples":["static.example.com"]}},"required":["origin"]}}},"name":"Create a New CDN Endpoint","id":"digitalocean.cdn_create_endpoint","example":{"body":{"origin":"static-images.nyc3.digitaloceanspaces.com"}},"maxRequests":1,"summary":false}}