Back to Node Auth0

Class DiscoveryDomainsClient

docs/classes/management.SDK.DiscoveryDomainsClient.html

5.9.112.0 KB
Original Source

Class DiscoveryDomainsClient

Index

Constructors

constructor

Methods

listcreategetByNamegetdeleteupdate

Properties

_options

Constructors

constructor

new DiscoveryDomainsClient(options: BaseClientOptions): DiscoveryDomainsClient

Parameters

Returns DiscoveryDomainsClient

Methods

list

list(
id: string,
request?: ListOrganizationDiscoveryDomainsRequestParameters,
requestOptions?: DiscoveryDomainsClient.RequestOptions,
): Promise<
Page<
OrganizationDiscoveryDomain,
ListOrganizationDiscoveryDomainsResponseContent,
>,
>

Retrieve list of all organization discovery domains associated with the specified organization. This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.

Parameters

  • id: string

ID of the organization.

Request-specific configuration.

Returns Promise< Page< OrganizationDiscoveryDomain, ListOrganizationDiscoveryDomainsResponseContent, >, >

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Example

await client.organizations.discoveryDomains.list("id", { from: "from", take: 1 })Copy

create

create(
id: string,
request: CreateOrganizationDiscoveryDomainRequestContent,
requestOptions?: DiscoveryDomainsClient.RequestOptions,
): HttpResponsePromise<CreateOrganizationDiscoveryDomainResponseContent>

Create a new discovery domain for an organization.

Parameters

  • id: string

ID of the organization.

Request-specific configuration.

Returns HttpResponsePromise<CreateOrganizationDiscoveryDomainResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.ConflictError

Throws

Management.TooManyRequestsError

Example

await client.organizations.discoveryDomains.create("id", { domain: "domain" })Copy

getByName

getByName(
id: string,
discovery_domain: string,
requestOptions?: DiscoveryDomainsClient.RequestOptions,
): HttpResponsePromise<GetOrganizationDiscoveryDomainByNameResponseContent>

Retrieve details about a single organization discovery domain specified by domain name. This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.

Parameters

  • id: string

ID of the organization.

  • discovery_domain: string

Domain name of the discovery domain.

Request-specific configuration.

Returns HttpResponsePromise<GetOrganizationDiscoveryDomainByNameResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Example

await client.organizations.discoveryDomains.getByName("id", "discovery_domain")Copy

get

get(
id: string,
discovery_domain_id: string,
requestOptions?: DiscoveryDomainsClient.RequestOptions,
): HttpResponsePromise<GetOrganizationDiscoveryDomainResponseContent>

Retrieve details about a single organization discovery domain specified by ID. This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.

Parameters

  • id: string

ID of the organization.

  • discovery_domain_id: string

ID of the discovery domain.

Request-specific configuration.

Returns HttpResponsePromise<GetOrganizationDiscoveryDomainResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Example

await client.organizations.discoveryDomains.get("id", "discovery_domain_id")Copy

delete

delete(
id: string,
discovery_domain_id: string,
requestOptions?: DiscoveryDomainsClient.RequestOptions,
): HttpResponsePromise<void>

Remove a discovery domain from an organization. This action cannot be undone.

Parameters

  • id: string

ID of the organization.

  • discovery_domain_id: string

ID of the discovery domain.

Request-specific configuration.

Returns HttpResponsePromise<void>

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Example

await client.organizations.discoveryDomains.delete("id", "discovery_domain_id")Copy

update

update(
id: string,
discovery_domain_id: string,
request?: UpdateOrganizationDiscoveryDomainRequestContent,
requestOptions?: DiscoveryDomainsClient.RequestOptions,
): HttpResponsePromise<UpdateOrganizationDiscoveryDomainResponseContent>

Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true).

Parameters

  • id: string

ID of the organization.

  • discovery_domain_id: string

ID of the discovery domain to update.

Request-specific configuration.

Returns HttpResponsePromise<UpdateOrganizationDiscoveryDomainResponseContent>

Throws

Management.BadRequestError

Throws

Management.NotFoundError

Example

await client.organizations.discoveryDomains.update("id", "discovery_domain_id")Copy

Properties

Protected Readonly_options

_options: NormalizedClientOptionsWithAuth<BaseClientOptions>

Settings

Member Visibility

  • Protected
  • Inherited

ThemeOSLightDark

On This Page

Constructors constructor Methods listcreategetByNamegetdeleteupdate Properties _options