RegistrationDomainService

class RegistrationDomainService[source]

Methods

get_all

List registration domain rules.

create

Create a new registration domain rule.

delete

Delete a registration domain rule.

patch

Update an existing registration domain rule.

get_all(*, tenant_id=Nothing, domain=Nothing, page_size=25)[source]

List registration domain rules.

Parameters:
Returns:

Paginated list of registration domain rules.

Return type:

Response[AllowRegistrationDomain | BlockRegistrationDomain]

create(json_body)[source]

Create a new registration domain rule.

The request body is a tagged union discriminated on the type field:

  • allow: maps a domain to a tenant role (requires tenant_role_id). - block: blocks registration for a domain globally.

Parameters:
Returns:

The created registration domain rule.

Return type:

AllowRegistrationDomain | BlockRegistrationDomain

delete(*, domain_id)[source]

Delete a registration domain rule.

Parameters:
Returns:

Empty response.

Return type:

None

patch(json_body, *, domain_id)[source]

Update an existing registration domain rule.

All fields are optional — only the provided fields are updated.

Parameters:
Returns:

The updated registration domain rule.

Return type:

AllowRegistrationDomain | BlockRegistrationDomain