Class VersionsClient
- Namespace
- Auth0.ManagementApi.Actions
- Assembly
- Auth0.ManagementApi.dll
public class VersionsClient : IVersionsClient
- Inheritance
-
VersionsClient
- Implements
- Inherited Members
- Extension Methods
Methods
DeployAsync(string, string, Optional<DeployActionVersionRequestContent?>, RequestOptions?, CancellationToken)
Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately.
public WithRawResponseTask<DeployActionVersionResponseContent> DeployAsync(string actionId, string id, Optional<DeployActionVersionRequestContent?> request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
actionIdstringidstringrequestOptional<DeployActionVersionRequestContent>optionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Actions.Versions.DeployAsync(
"actionId",
"id",
new DeployActionVersionRequestContent()
);
GetAsync(string, string, RequestOptions?, CancellationToken)
Retrieve a specific version of an action. An action version is created whenever an action is deployed. An action version is immutable, once created.
public WithRawResponseTask<GetActionVersionResponseContent> GetAsync(string actionId, string id, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
actionIdstringidstringoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Actions.Versions.GetAsync("actionId", "id");
ListAsync(string, ListActionVersionsRequestParameters, RequestOptions?, CancellationToken)
Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created.
public Task<Pager<ActionVersion>> ListAsync(string actionId, ListActionVersionsRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
actionIdstringrequestListActionVersionsRequestParametersoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Actions.Versions.ListAsync(
"actionId",
new ListActionVersionsRequestParameters { Page = 1, PerPage = 1 }
);