GetDomainVerification
client.organizations.domainVerifications.retrieve(DomainVerificationRetrieveParams { domainVerificationId } body, RequestOptionsoptions?): DomainVerificationRetrieveResponse { domainVerification }
POST/gitpod.v1.OrganizationService/GetDomainVerification
Retrieves the status of a domain verification request.
Use this method to:
- Check verification progress
- View verification requirements
- Monitor domain status
Examples
-
Get verification status:
Checks the current state of a domain verification.
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
GetDomainVerification
import Gitpod from '@gitpod/sdk';
const client = new Gitpod({
bearerToken: process.env['GITPOD_API_KEY'], // This is the default and can be omitted
});
const domainVerification = await client.organizations.domainVerifications.retrieve({
domainVerificationId: 'd2c94c27-3b76-4a42-b88c-95a85e392c68',
});
console.log(domainVerification.domainVerification);{
"domainVerification": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"domain": "xxxx",
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"state": "DOMAIN_VERIFICATION_STATE_UNSPECIFIED",
"createdAt": "2019-12-27T18:11:19.117Z",
"verificationToken": "verificationToken",
"verifiedAt": "2019-12-27T18:11:19.117Z"
}
}Returns Examples
{
"domainVerification": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"domain": "xxxx",
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"state": "DOMAIN_VERIFICATION_STATE_UNSPECIFIED",
"createdAt": "2019-12-27T18:11:19.117Z",
"verificationToken": "verificationToken",
"verifiedAt": "2019-12-27T18:11:19.117Z"
}
}