docs/classes/management.SDK.VersionsClient-1.html
new VersionsClient(options: BaseClientOptions): VersionsClient
list(
actionId: string,
request?: ListActionVersionsRequestParameters,
requestOptions?: VersionsClient.RequestOptions,
): Promise<Page<ActionVersion, ListActionVersionsPaginatedResponseContent>>
Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created.
The ID of the action.
OptionalrequestOptions: VersionsClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.actions.versions.list("actionId", { page: 1, per_page: 1 })Copy
get(
actionId: string,
id: string,
requestOptions?: VersionsClient.RequestOptions,
): HttpResponsePromise<GetActionVersionResponseContent>
Retrieve a specific version of an action. An action version is created whenever an action is deployed. An action version is immutable, once created.
The ID of the action.
The ID of the action version.
OptionalrequestOptions: VersionsClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.actions.versions.get("actionId", "id")Copy
deploy(
actionId: string,
id: string,
request?: DeployActionVersionRequestContent | null,
requestOptions?: VersionsClient.RequestOptions,
): HttpResponsePromise<DeployActionVersionResponseContent>
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.
The ID of an action.
The ID of an action version.
Optionalrequest: DeployActionVersionRequestContent | nullOptionalrequestOptions: VersionsClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.actions.versions.deploy("actionId", "id")Copy
Protected Readonly_options_options: NormalizedClientOptionsWithAuth<BaseClientOptions>
Member Visibility
ThemeOSLightDark
Constructors constructor Methods listgetdeploy Properties _options