Table of Contents

Class VersionsClient

Namespace
Auth0.ManagementApi.Actions.Modules
Assembly
Auth0.ManagementApi.dll
public class VersionsClient : IVersionsClient
Inheritance
VersionsClient
Implements
Inherited Members
Extension Methods

Methods

CreateAsync(string, RequestOptions?, CancellationToken)

Creates a new immutable version of an Actions Module from the current draft version. This publishes the draft as a new version that can be referenced by actions, while maintaining the existing draft for continued development.

public WithRawResponseTask<CreateActionModuleVersionResponseContent> CreateAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<CreateActionModuleVersionResponseContent>

Examples

await client.Actions.Modules.Versions.CreateAsync("id");

GetAsync(string, string, RequestOptions?, CancellationToken)

Retrieve the details of a specific, immutable version of an Actions Module.

public WithRawResponseTask<GetActionModuleVersionResponseContent> GetAsync(string id, string versionId, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
versionId string
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<GetActionModuleVersionResponseContent>

Examples

await client.Actions.Modules.Versions.GetAsync("id", "versionId");

ListAsync(string, GetActionModuleVersionsRequestParameters, RequestOptions?, CancellationToken)

List all published versions of a specific Actions Module.

public Task<Pager<ActionModuleVersion>> ListAsync(string id, GetActionModuleVersionsRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
request GetActionModuleVersionsRequestParameters
options RequestOptions
cancellationToken CancellationToken

Returns

Task<Pager<ActionModuleVersion>>

Examples

await client.Actions.Modules.Versions.ListAsync(
    "id",
    new GetActionModuleVersionsRequestParameters { Page = 1, PerPage = 1 }
);