{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Register a new custom domain for an existing R2 bucket.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/r2_account_identifier"},"bucket_name":{"$ref":"#/definitions/r2_bucket_name"}},"required":["account_id","bucket_name"],"additionalProperties":false},"headers":{"type":"object","properties":{"cf-r2-jurisdiction":{"type":"string","default":"default","enum":["default","eu","us","fedramp","fedramp-high"],"description":"Jurisdiction where objects in this bucket are guaranteed to be stored."}},"required":[],"additionalProperties":false},"body":{"$ref":"#/definitions/r2_add_custom_domain_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"r2_account_identifier":{"description":"Cloudflare account ID that owns the R2 resource.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"r2_bucket_name":{"description":"Name of the bucket.","type":"string","maxLength":64,"minLength":3,"pattern":"^[a-z0-9][a-z0-9-]*[a-z0-9]","examples":["example-bucket"]},"r2_add_custom_domain_request":{"type":"object","properties":{"ciphers":{"description":"An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.","type":"array","items":{"type":"string"}},"domain":{"description":"Name of the custom domain to be added.","type":"string"},"enabled":{"description":"Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.","type":"boolean"},"minTLS":{"description":"Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0.","type":"string","enum":["1.0","1.1","1.2","1.3"]},"zoneId":{"description":"Zone ID of the custom domain.","type":"string"}},"required":["domain","zoneId","enabled"],"examples":[{"domain":"prefix.example-domain.com","enabled":true,"zoneId":"36ca64a6d92827b8a6b90be344bb1bfd"}]}}},"name":"Attach Custom Domain To Bucket","id":"cloudflare.r2-add-custom-domain","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","bucket_name":"example-bucket"},"body":{"domain":"prefix.example-domain.com","enabled":true,"zoneId":"36ca64a6d92827b8a6b90be344bb1bfd"}},"maxRequests":1,"summary":false}}