GetCustomDomain
client.organizations.customDomains.retrieve(CustomDomainRetrieveParams { organizationId } body, RequestOptionsoptions?): CustomDomainRetrieveResponse { customDomain }
POST/gitpod.v1.OrganizationService/GetCustomDomain
Retrieves a specific custom domain configuration.
Use this method to view custom domain details
Examples
-
Get custom domain configuration:
Retrieves details of a specific custom domain.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
GetCustomDomain
import Gitpod from '@gitpod/sdk';
const client = new Gitpod({
bearerToken: process.env['GITPOD_API_KEY'], // This is the default and can be omitted
});
const customDomain = await client.organizations.customDomains.retrieve({
organizationId: 'b0e12f6c-4c67-429d-a4a6-d9838b5da047',
});
console.log(customDomain.customDomain);{
"customDomain": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"createdAt": "2019-12-27T18:11:19.117Z",
"domainName": "xxxx",
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"updatedAt": "2019-12-27T18:11:19.117Z",
"awsAccountId": "awsAccountId",
"cloudAccountId": "cloudAccountId",
"provider": "CUSTOM_DOMAIN_PROVIDER_UNSPECIFIED"
}
}Returns Examples
{
"customDomain": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"createdAt": "2019-12-27T18:11:19.117Z",
"domainName": "xxxx",
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"updatedAt": "2019-12-27T18:11:19.117Z",
"awsAccountId": "awsAccountId",
"cloudAccountId": "cloudAccountId",
"provider": "CUSTOM_DOMAIN_PROVIDER_UNSPECIFIED"
}
}