Back to Node Auth0

Class ConnectionsClient

docs/classes/management.SDK.ConnectionsClient-3.html

5.9.19.0 KB
Original Source

Class ConnectionsClient

Index

Constructors

constructor

Methods

listcreategetdeleteupdate

Properties

_options

Constructors

constructor

new ConnectionsClient(options: BaseClientOptions): ConnectionsClient

Parameters

Returns ConnectionsClient

Methods

list

list(
id: string,
request?: ListOrganizationAllConnectionsRequestParameters,
requestOptions?: ConnectionsClient.RequestOptions,
): Promise<
Page<
OrganizationAllConnectionPost,
ListOrganizationAllConnectionsOffsetPaginatedResponseContent,
>,
>

Parameters

  • id: string

Organization identifier.

Request-specific configuration.

Returns Promise< Page< OrganizationAllConnectionPost, ListOrganizationAllConnectionsOffsetPaginatedResponseContent, >, >

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

await client.organizations.connections.list("id", { page: 1, per_page: 1, include_totals: true, is_enabled: true })Copy

create

create(
id: string,
request: CreateOrganizationAllConnectionRequestParameters,
requestOptions?: ConnectionsClient.RequestOptions,
): HttpResponsePromise<CreateOrganizationAllConnectionResponseContent>

Parameters

  • id: string

Organization identifier.

Request-specific configuration.

Returns HttpResponsePromise<CreateOrganizationAllConnectionResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.ConflictError

Throws

Management.TooManyRequestsError

Example

await client.organizations.connections.create("id", { connection_id: "connection_id" })Copy

get

get(
id: string,
connection_id: string,
requestOptions?: ConnectionsClient.RequestOptions,
): HttpResponsePromise<GetOrganizationAllConnectionResponseContent>

Parameters

  • id: string

Organization identifier.

  • connection_id: string

Connection identifier.

Request-specific configuration.

Returns HttpResponsePromise<GetOrganizationAllConnectionResponseContent>

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Example

await client.organizations.connections.get("id", "connection_id")Copy

delete

delete(
id: string,
connection_id: string,
requestOptions?: ConnectionsClient.RequestOptions,
): HttpResponsePromise<void>

Parameters

  • id: string

Organization identifier.

  • connection_id: string

Connection identifier.

Request-specific configuration.

Returns HttpResponsePromise<void>

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

await client.organizations.connections.delete("id", "connection_id")Copy

update

update(
id: string,
connection_id: string,
request?: UpdateOrganizationConnectionRequestParameters,
requestOptions?: ConnectionsClient.RequestOptions,
): HttpResponsePromise<UpdateOrganizationAllConnectionResponseContent>

Parameters

  • id: string

Organization identifier.

  • connection_id: string

Connection identifier.

Request-specific configuration.

Returns HttpResponsePromise<UpdateOrganizationAllConnectionResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

await client.organizations.connections.update("id", "connection_id")Copy

Properties

Protected Readonly_options

_options: NormalizedClientOptionsWithAuth<BaseClientOptions>

Settings

Member Visibility

  • Protected
  • Inherited

ThemeOSLightDark

On This Page

Constructors constructor Methods listcreategetdeleteupdate Properties _options