Create an Archive Policy

Creates a new archive policy in Artifactory using the provided policy configuration. This Cold Storage feature is available only for Artifactory Enterprise and Enterprise+ users.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Unique policy key that identifies the policy.

Body Params
string
required

Unique policy key that identifies the policy.

boolean
required

Enable/disable policy. If disabled, policy execution is blocked.

string
required

The Cron expression for scheduling the policy.

string

Description for the policy.

boolean

Determines whether the archive policy works on packages (true) or artifacts (false). The default value is false.

string

Search for artifacts to be archived using Artifactory Query Language (AQL). This can be used instead of searchCriteriaForm to include/exclude artifacts in the retention policy. aqlQuery cannot be used for packages. Required if searchCriteriaForm is not provided.

searchCriteriaForm
object

Search Criteria Form for retention policy. This can be used instead of aqlQuery to include/exclude artifacts in the retention policy. Required if aqlQuery is not provided.

packageSearchCriteriaForm
object

Package Search Criteria Form for package retention policies.

int64

The maximum duration (in minutes) for policy execution. If policy execution exceeds this period, it is stopped.

int64

The expiration period (in months) that it takes for archived artifacts to be cleaned up from the Cold instance.

boolean

Prevent the transfer of the artifacts to the Trash Can Settings repository, and allow the artifacts to be deleted by a full GC cleanup. Default value is false.

Responses

Language
Credentials
:
URL
LoadingLoading…
Response
Choose an example:
application/json