MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / add_caa_record

Method add_caa_record

certbot/src/dns01_client/cloudflare.rs:299–318  ·  view source on GitHub ↗
(
        &self,
        domain: &str,
        flags: u8,
        tag: &str,
        value: &str,
    )

Source from the content-addressed store, hash-verified

297 }
298
299 async fn add_caa_record(
300 &self,
301 domain: &str,
302 flags: u8,
303 tag: &str,
304 value: &str,
305 ) -> Result<String> {
306 let response = self
307 .add_record(&json!({
308 "type": "CAA",
309 "name": domain,
310 "data": {
311 "flags": flags,
312 "tag": tag,
313 "value": value
314 }
315 }))
316 .await?;
317 Ok(response.result.id)
318 }
319
320 async fn get_records(&self, domain: &str) -> Result<Vec<Record>> {
321 self.get_records_inner(domain).await

Callers 2

set_caa_recordsMethod · 0.80
can_add_caa_recordFunction · 0.80

Calls 1

add_recordMethod · 0.80

Tested by

no test coverage detected