UpdateCustomDomain
organizations.custom_domains.update(CustomDomainUpdateParams**kwargs) -> CustomDomainUpdateResponse
POST/gitpod.v1.OrganizationService/UpdateCustomDomain
Updates custom domain configuration settings.
Use this method to:
- Update cloud provider settings
- Change AWS account ID
- Modify domain configuration
Examples
-
Update AWS account ID:
Changes the AWS account ID for the custom domain.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" domainName: "workspaces.acme-corp.com" awsAccountId: "987654321098"
Parameters
organization_id: str
organization_id is the ID of the organization to update custom domain for
formatuuid
Deprecatedaws_account_id: Optional[str]
aws_account_id is the AWS account ID (deprecated: use cloud_account_id)
UpdateCustomDomain
import os
from gitpod import Gitpod
client = Gitpod(
bearer_token=os.environ.get("GITPOD_API_KEY"), # This is the default and can be omitted
)
custom_domain = client.organizations.custom_domains.update(
domain_name="workspaces.acme-corp.com",
organization_id="b0e12f6c-4c67-429d-a4a6-d9838b5da047",
aws_account_id="987654321098",
)
print(custom_domain.custom_domain){
"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"
}
}