docs/classes/management.SDK.ResourceServersClient.html
new ResourceServersClient(options: BaseClientOptions): ResourceServersClient
list(
request?: ListResourceServerRequestParameters,
requestOptions?: ResourceServersClient.RequestOptions,
): Promise<
Page<ResourceServer, ListResourceServerOffsetPaginatedResponseContent>,
>
Retrieve details of all APIs associated with your tenant.
OptionalrequestOptions: ResourceServersClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.resourceServers.list({ identifiers: ["identifiers"], page: 1, per_page: 1, include_totals: true, include_fields: true })Copy
create(
request: CreateResourceServerRequestContent,
requestOptions?: ResourceServersClient.RequestOptions,
): HttpResponsePromise<CreateResourceServerResponseContent>
Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs.
OptionalrequestOptions: ResourceServersClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.resourceServers.create({ identifier: "identifier" })Copy
get(
id: string,
request?: GetResourceServerRequestParameters,
requestOptions?: ResourceServersClient.RequestOptions,
): HttpResponsePromise<GetResourceServerResponseContent>
Retrieve API details with the given ID.
ID or audience of the resource server to retrieve.
OptionalrequestOptions: ResourceServersClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.resourceServers.get("id", { include_fields: true })Copy
delete(
id: string,
requestOptions?: ResourceServersClient.RequestOptions,
): HttpResponsePromise<void>
Delete an existing API by ID. For more information, read API Settings.
ID or the audience of the resource server to delete.
OptionalrequestOptions: ResourceServersClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.resourceServers.delete("id")Copy
update(
id: string,
request?: UpdateResourceServerRequestContent,
requestOptions?: ResourceServersClient.RequestOptions,
): HttpResponsePromise<UpdateResourceServerResponseContent>
Change an existing API setting by resource server ID. For more information, read API Settings.
ID or audience of the resource server to update.
OptionalrequestOptions: ResourceServersClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.resourceServers.update("id")Copy
Protected Readonly_options_options: NormalizedClientOptionsWithAuth<BaseClientOptions>
Member Visibility
ThemeOSLightDark
Constructors constructor Methods listcreategetdeleteupdate Properties _options