ListDomainVerifications
client.Organizations.DomainVerifications.List(ctx, params) (*DomainVerificationsPage[DomainVerification], error)
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
package main
import (
"context"
"fmt"
"github.com/gitpod-io/gitpod-sdk-go"
"github.com/gitpod-io/gitpod-sdk-go/option"
)
func main() {
client := gitpod.NewClient(
option.WithBearerToken("My Bearer Token"),
)
page, err := client.Organizations.DomainVerifications.List(context.TODO(), gitpod.OrganizationDomainVerificationListParams{
OrganizationID: gitpod.F("b0e12f6c-4c67-429d-a4a6-d9838b5da047"),
Pagination: gitpod.F(gitpod.OrganizationDomainVerificationListParamsPagination{
PageSize: gitpod.F(int64(20)),
}),
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}
{
"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"
}
]
}