MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / verify_domain

Function verify_domain

atomic-teams/src/domain.rs:72–82  ·  view source on GitHub ↗

Verify a previously claimed domain alias. The server will check the required DNS records and transition the domain from `"pending"` to `"verified"` on success. # Errors Returns [`TeamsError::OrgNotFound`] if the organization or domain does not exist, or [`TeamsError::Remote`] on transport failure. [`TeamsError::OrgNotFound`]: crate::error::TeamsError::OrgNotFound [`TeamsError::Remote`]: crate:

(
    client: &StorageClient,
    org_slug: &str,
    domain_id: Uuid,
)

Source from the content-addressed store, hash-verified

70/// [`TeamsError::OrgNotFound`]: crate::error::TeamsError::OrgNotFound
71/// [`TeamsError::Remote`]: crate::error::TeamsError::Remote
72pub async fn verify_domain(
73 client: &StorageClient,
74 org_slug: &str,
75 domain_id: Uuid,
76) -> TeamsResult<DomainAliasInfo> {
77 let path = format!("/orgs/{org_slug}/domains/{domain_id}/verify");
78 client
79 .post_empty(&path)
80 .await
81 .map_err(|e| map_remote_error(e, format!("org {org_slug}")))
82}
83
84/// Revoke (delete) a domain alias from an organization.
85///

Callers

nothing calls this directly

Calls 2

map_remote_errorFunction · 0.85
post_emptyMethod · 0.80

Tested by

no test coverage detected