ListDomainVerifications
client.organizations.domainVerifications.list(DomainVerificationListParams { organizationId, token, pageSize, pagination } params, RequestOptionsoptions?): DomainVerificationsPage<DomainVerification { id, domain, organizationId, 4 more } >
POST/gitpod.v1.OrganizationService/ListDomainVerifications
Lists and monitors domain verification status across an organization.
Use this method to:
- Track verification progress
- View all verified domains
- Monitor pending verifications
- Audit domain settings
Examples
-
List all verifications:
Shows all domain verifications regardless of status.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" pagination: pageSize: 20 -
List with pagination:
Retrieves next page of verifications.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" pagination: pageSize: 20 token: "next-page-token-from-previous-response"
ListDomainVerifications
import Gitpod from '@gitpod/sdk';
const client = new Gitpod({
bearerToken: process.env['GITPOD_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const domainVerification of client.organizations.domainVerifications.list({
organizationId: 'b0e12f6c-4c67-429d-a4a6-d9838b5da047',
pagination: { pageSize: 20 },
})) {
console.log(domainVerification.id);
}{
"pagination": {
"nextToken": "nextToken"
},
"domainVerifications": [
{
"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
{
"pagination": {
"nextToken": "nextToken"
},
"domainVerifications": [
{
"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"
}
]
}