artifactory.ReleaseBundleV2CleanupPolicy
Explore with Pulumi AI
Provides an Artifactory Archive Policy resource. This resource enable system administrators to configure and maintain JFrog cleanup policies for Release Bundles V2. See Cleanup Policies for more details.
~>Release Bundles V2 Cleanup Policies APIs are supported on Artifactory version 7.104.2 and later.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
my-release-bundle-v2-rb:
type: artifactory:ReleaseBundleV2
properties:
name: my-release-bundle-v2-rb
version: 2.0.0
keypairName: my-keypair-name
skipDockerManifestResolution: true
sourceType: release_bundles
source:
release_bundles:
- name: my-rb-name
version: 1.0.0
my-resource-bundle-v2-cleanup-policy:
type: artifactory:ReleaseBundleV2CleanupPolicy
properties:
key: my-release-bundle-v2-policy-key
description: Cleanup policy description
cronExpression: 0 0 2 * * ?
durationInMinutes: 60
enabled: true
searchCriteria:
include_all_projects: true
included_projects: []
release_bundles:
- name: my-release-bundle-v2-rb
projectKey: ""
exclude_promoted_environments:
- '**'
Create ReleaseBundleV2CleanupPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ReleaseBundleV2CleanupPolicy(name: string, args: ReleaseBundleV2CleanupPolicyArgs, opts?: CustomResourceOptions);
@overload
def ReleaseBundleV2CleanupPolicy(resource_name: str,
args: ReleaseBundleV2CleanupPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ReleaseBundleV2CleanupPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
key: Optional[str] = None,
search_criteria: Optional[ReleaseBundleV2CleanupPolicySearchCriteriaArgs] = None,
cron_expression: Optional[str] = None,
description: Optional[str] = None,
duration_in_minutes: Optional[int] = None,
enabled: Optional[bool] = None,
item_type: Optional[str] = None)
func NewReleaseBundleV2CleanupPolicy(ctx *Context, name string, args ReleaseBundleV2CleanupPolicyArgs, opts ...ResourceOption) (*ReleaseBundleV2CleanupPolicy, error)
public ReleaseBundleV2CleanupPolicy(string name, ReleaseBundleV2CleanupPolicyArgs args, CustomResourceOptions? opts = null)
public ReleaseBundleV2CleanupPolicy(String name, ReleaseBundleV2CleanupPolicyArgs args)
public ReleaseBundleV2CleanupPolicy(String name, ReleaseBundleV2CleanupPolicyArgs args, CustomResourceOptions options)
type: artifactory:ReleaseBundleV2CleanupPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ReleaseBundleV2CleanupPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ReleaseBundleV2CleanupPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ReleaseBundleV2CleanupPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReleaseBundleV2CleanupPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReleaseBundleV2CleanupPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var releaseBundleV2CleanupPolicyResource = new Artifactory.ReleaseBundleV2CleanupPolicy("releaseBundleV2CleanupPolicyResource", new()
{
Key = "string",
SearchCriteria = new Artifactory.Inputs.ReleaseBundleV2CleanupPolicySearchCriteriaArgs
{
ExcludePromotedEnvironments = new[]
{
"string",
},
CreatedBeforeInMonths = 0,
IncludeAllProjects = false,
IncludedProjects = new[]
{
"string",
},
ReleaseBundles = new[]
{
new Artifactory.Inputs.ReleaseBundleV2CleanupPolicySearchCriteriaReleaseBundleArgs
{
Name = "string",
ProjectKey = "string",
},
},
},
CronExpression = "string",
Description = "string",
DurationInMinutes = 0,
Enabled = false,
ItemType = "string",
});
example, err := artifactory.NewReleaseBundleV2CleanupPolicy(ctx, "releaseBundleV2CleanupPolicyResource", &artifactory.ReleaseBundleV2CleanupPolicyArgs{
Key: pulumi.String("string"),
SearchCriteria: &artifactory.ReleaseBundleV2CleanupPolicySearchCriteriaArgs{
ExcludePromotedEnvironments: pulumi.StringArray{
pulumi.String("string"),
},
CreatedBeforeInMonths: pulumi.Int(0),
IncludeAllProjects: pulumi.Bool(false),
IncludedProjects: pulumi.StringArray{
pulumi.String("string"),
},
ReleaseBundles: artifactory.ReleaseBundleV2CleanupPolicySearchCriteriaReleaseBundleArray{
&artifactory.ReleaseBundleV2CleanupPolicySearchCriteriaReleaseBundleArgs{
Name: pulumi.String("string"),
ProjectKey: pulumi.String("string"),
},
},
},
CronExpression: pulumi.String("string"),
Description: pulumi.String("string"),
DurationInMinutes: pulumi.Int(0),
Enabled: pulumi.Bool(false),
ItemType: pulumi.String("string"),
})
var releaseBundleV2CleanupPolicyResource = new ReleaseBundleV2CleanupPolicy("releaseBundleV2CleanupPolicyResource", ReleaseBundleV2CleanupPolicyArgs.builder()
.key("string")
.searchCriteria(ReleaseBundleV2CleanupPolicySearchCriteriaArgs.builder()
.excludePromotedEnvironments("string")
.createdBeforeInMonths(0)
.includeAllProjects(false)
.includedProjects("string")
.releaseBundles(ReleaseBundleV2CleanupPolicySearchCriteriaReleaseBundleArgs.builder()
.name("string")
.projectKey("string")
.build())
.build())
.cronExpression("string")
.description("string")
.durationInMinutes(0)
.enabled(false)
.itemType("string")
.build());
release_bundle_v2_cleanup_policy_resource = artifactory.ReleaseBundleV2CleanupPolicy("releaseBundleV2CleanupPolicyResource",
key="string",
search_criteria={
"exclude_promoted_environments": ["string"],
"created_before_in_months": 0,
"include_all_projects": False,
"included_projects": ["string"],
"release_bundles": [{
"name": "string",
"project_key": "string",
}],
},
cron_expression="string",
description="string",
duration_in_minutes=0,
enabled=False,
item_type="string")
const releaseBundleV2CleanupPolicyResource = new artifactory.ReleaseBundleV2CleanupPolicy("releaseBundleV2CleanupPolicyResource", {
key: "string",
searchCriteria: {
excludePromotedEnvironments: ["string"],
createdBeforeInMonths: 0,
includeAllProjects: false,
includedProjects: ["string"],
releaseBundles: [{
name: "string",
projectKey: "string",
}],
},
cronExpression: "string",
description: "string",
durationInMinutes: 0,
enabled: false,
itemType: "string",
});
type: artifactory:ReleaseBundleV2CleanupPolicy
properties:
cronExpression: string
description: string
durationInMinutes: 0
enabled: false
itemType: string
key: string
searchCriteria:
createdBeforeInMonths: 0
excludePromotedEnvironments:
- string
includeAllProjects: false
includedProjects:
- string
releaseBundles:
- name: string
projectKey: string
ReleaseBundleV2CleanupPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ReleaseBundleV2CleanupPolicy resource accepts the following input properties:
- Key string
- An ID that is used to identify the cleanup policy. A minimum of three characters is required and can include letters, numbers, underscore and hyphen.
- Search
Criteria ReleaseBundle V2Cleanup Policy Search Criteria - Cron
Expression string - The cron expression determines when the policy is run. This parameter is not mandatory, however if left empty the policy will not run automatically and can only be triggered manually.
- Description string
- Duration
In intMinutes - The maximum duration (in minutes) for policy execution, after which the policy will stop running even if not completed. While setting a maximum run duration for a policy is useful for adhering to a strict archive V2 schedule, it can cause the policy to stop before completion.
- Enabled bool
- Enables or disabled the release bundles v2 cleanup policy. This allows the user to run the policy manually. If a policy has a valid cron expression, then it will be scheduled for execution based on it. If a policy is disabled, its future executions will be unscheduled. Defaults to
true
- Item
Type string - Needs to be set to releaseBundle.
- Key string
- An ID that is used to identify the cleanup policy. A minimum of three characters is required and can include letters, numbers, underscore and hyphen.
- Search
Criteria ReleaseBundle V2Cleanup Policy Search Criteria Args - Cron
Expression string - The cron expression determines when the policy is run. This parameter is not mandatory, however if left empty the policy will not run automatically and can only be triggered manually.
- Description string
- Duration
In intMinutes - The maximum duration (in minutes) for policy execution, after which the policy will stop running even if not completed. While setting a maximum run duration for a policy is useful for adhering to a strict archive V2 schedule, it can cause the policy to stop before completion.
- Enabled bool
- Enables or disabled the release bundles v2 cleanup policy. This allows the user to run the policy manually. If a policy has a valid cron expression, then it will be scheduled for execution based on it. If a policy is disabled, its future executions will be unscheduled. Defaults to
true
- Item
Type string - Needs to be set to releaseBundle.
- key String
- An ID that is used to identify the cleanup policy. A minimum of three characters is required and can include letters, numbers, underscore and hyphen.
- search
Criteria ReleaseBundle V2Cleanup Policy Search Criteria - cron
Expression String - The cron expression determines when the policy is run. This parameter is not mandatory, however if left empty the policy will not run automatically and can only be triggered manually.
- description String
- duration
In IntegerMinutes - The maximum duration (in minutes) for policy execution, after which the policy will stop running even if not completed. While setting a maximum run duration for a policy is useful for adhering to a strict archive V2 schedule, it can cause the policy to stop before completion.
- enabled Boolean
- Enables or disabled the release bundles v2 cleanup policy. This allows the user to run the policy manually. If a policy has a valid cron expression, then it will be scheduled for execution based on it. If a policy is disabled, its future executions will be unscheduled. Defaults to
true
- item
Type String - Needs to be set to releaseBundle.
- key string
- An ID that is used to identify the cleanup policy. A minimum of three characters is required and can include letters, numbers, underscore and hyphen.
- search
Criteria ReleaseBundle V2Cleanup Policy Search Criteria - cron
Expression string - The cron expression determines when the policy is run. This parameter is not mandatory, however if left empty the policy will not run automatically and can only be triggered manually.
- description string
- duration
In numberMinutes - The maximum duration (in minutes) for policy execution, after which the policy will stop running even if not completed. While setting a maximum run duration for a policy is useful for adhering to a strict archive V2 schedule, it can cause the policy to stop before completion.
- enabled boolean
- Enables or disabled the release bundles v2 cleanup policy. This allows the user to run the policy manually. If a policy has a valid cron expression, then it will be scheduled for execution based on it. If a policy is disabled, its future executions will be unscheduled. Defaults to
true
- item
Type string - Needs to be set to releaseBundle.
- key str
- An ID that is used to identify the cleanup policy. A minimum of three characters is required and can include letters, numbers, underscore and hyphen.
- search_
criteria ReleaseBundle V2Cleanup Policy Search Criteria Args - cron_
expression str - The cron expression determines when the policy is run. This parameter is not mandatory, however if left empty the policy will not run automatically and can only be triggered manually.
- description str
- duration_
in_ intminutes - The maximum duration (in minutes) for policy execution, after which the policy will stop running even if not completed. While setting a maximum run duration for a policy is useful for adhering to a strict archive V2 schedule, it can cause the policy to stop before completion.
- enabled bool
- Enables or disabled the release bundles v2 cleanup policy. This allows the user to run the policy manually. If a policy has a valid cron expression, then it will be scheduled for execution based on it. If a policy is disabled, its future executions will be unscheduled. Defaults to
true
- item_
type str - Needs to be set to releaseBundle.
- key String
- An ID that is used to identify the cleanup policy. A minimum of three characters is required and can include letters, numbers, underscore and hyphen.
- search
Criteria Property Map - cron
Expression String - The cron expression determines when the policy is run. This parameter is not mandatory, however if left empty the policy will not run automatically and can only be triggered manually.
- description String
- duration
In NumberMinutes - The maximum duration (in minutes) for policy execution, after which the policy will stop running even if not completed. While setting a maximum run duration for a policy is useful for adhering to a strict archive V2 schedule, it can cause the policy to stop before completion.
- enabled Boolean
- Enables or disabled the release bundles v2 cleanup policy. This allows the user to run the policy manually. If a policy has a valid cron expression, then it will be scheduled for execution based on it. If a policy is disabled, its future executions will be unscheduled. Defaults to
true
- item
Type String - Needs to be set to releaseBundle.
Outputs
All input properties are implicitly available as output properties. Additionally, the ReleaseBundleV2CleanupPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ReleaseBundleV2CleanupPolicy Resource
Get an existing ReleaseBundleV2CleanupPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ReleaseBundleV2CleanupPolicyState, opts?: CustomResourceOptions): ReleaseBundleV2CleanupPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cron_expression: Optional[str] = None,
description: Optional[str] = None,
duration_in_minutes: Optional[int] = None,
enabled: Optional[bool] = None,
item_type: Optional[str] = None,
key: Optional[str] = None,
search_criteria: Optional[ReleaseBundleV2CleanupPolicySearchCriteriaArgs] = None) -> ReleaseBundleV2CleanupPolicy
func GetReleaseBundleV2CleanupPolicy(ctx *Context, name string, id IDInput, state *ReleaseBundleV2CleanupPolicyState, opts ...ResourceOption) (*ReleaseBundleV2CleanupPolicy, error)
public static ReleaseBundleV2CleanupPolicy Get(string name, Input<string> id, ReleaseBundleV2CleanupPolicyState? state, CustomResourceOptions? opts = null)
public static ReleaseBundleV2CleanupPolicy get(String name, Output<String> id, ReleaseBundleV2CleanupPolicyState state, CustomResourceOptions options)
resources: _: type: artifactory:ReleaseBundleV2CleanupPolicy get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cron
Expression string - The cron expression determines when the policy is run. This parameter is not mandatory, however if left empty the policy will not run automatically and can only be triggered manually.
- Description string
- Duration
In intMinutes - The maximum duration (in minutes) for policy execution, after which the policy will stop running even if not completed. While setting a maximum run duration for a policy is useful for adhering to a strict archive V2 schedule, it can cause the policy to stop before completion.
- Enabled bool
- Enables or disabled the release bundles v2 cleanup policy. This allows the user to run the policy manually. If a policy has a valid cron expression, then it will be scheduled for execution based on it. If a policy is disabled, its future executions will be unscheduled. Defaults to
true
- Item
Type string - Needs to be set to releaseBundle.
- Key string
- An ID that is used to identify the cleanup policy. A minimum of three characters is required and can include letters, numbers, underscore and hyphen.
- Search
Criteria ReleaseBundle V2Cleanup Policy Search Criteria
- Cron
Expression string - The cron expression determines when the policy is run. This parameter is not mandatory, however if left empty the policy will not run automatically and can only be triggered manually.
- Description string
- Duration
In intMinutes - The maximum duration (in minutes) for policy execution, after which the policy will stop running even if not completed. While setting a maximum run duration for a policy is useful for adhering to a strict archive V2 schedule, it can cause the policy to stop before completion.
- Enabled bool
- Enables or disabled the release bundles v2 cleanup policy. This allows the user to run the policy manually. If a policy has a valid cron expression, then it will be scheduled for execution based on it. If a policy is disabled, its future executions will be unscheduled. Defaults to
true
- Item
Type string - Needs to be set to releaseBundle.
- Key string
- An ID that is used to identify the cleanup policy. A minimum of three characters is required and can include letters, numbers, underscore and hyphen.
- Search
Criteria ReleaseBundle V2Cleanup Policy Search Criteria Args
- cron
Expression String - The cron expression determines when the policy is run. This parameter is not mandatory, however if left empty the policy will not run automatically and can only be triggered manually.
- description String
- duration
In IntegerMinutes - The maximum duration (in minutes) for policy execution, after which the policy will stop running even if not completed. While setting a maximum run duration for a policy is useful for adhering to a strict archive V2 schedule, it can cause the policy to stop before completion.
- enabled Boolean
- Enables or disabled the release bundles v2 cleanup policy. This allows the user to run the policy manually. If a policy has a valid cron expression, then it will be scheduled for execution based on it. If a policy is disabled, its future executions will be unscheduled. Defaults to
true
- item
Type String - Needs to be set to releaseBundle.
- key String
- An ID that is used to identify the cleanup policy. A minimum of three characters is required and can include letters, numbers, underscore and hyphen.
- search
Criteria ReleaseBundle V2Cleanup Policy Search Criteria
- cron
Expression string - The cron expression determines when the policy is run. This parameter is not mandatory, however if left empty the policy will not run automatically and can only be triggered manually.
- description string
- duration
In numberMinutes - The maximum duration (in minutes) for policy execution, after which the policy will stop running even if not completed. While setting a maximum run duration for a policy is useful for adhering to a strict archive V2 schedule, it can cause the policy to stop before completion.
- enabled boolean
- Enables or disabled the release bundles v2 cleanup policy. This allows the user to run the policy manually. If a policy has a valid cron expression, then it will be scheduled for execution based on it. If a policy is disabled, its future executions will be unscheduled. Defaults to
true
- item
Type string - Needs to be set to releaseBundle.
- key string
- An ID that is used to identify the cleanup policy. A minimum of three characters is required and can include letters, numbers, underscore and hyphen.
- search
Criteria ReleaseBundle V2Cleanup Policy Search Criteria
- cron_
expression str - The cron expression determines when the policy is run. This parameter is not mandatory, however if left empty the policy will not run automatically and can only be triggered manually.
- description str
- duration_
in_ intminutes - The maximum duration (in minutes) for policy execution, after which the policy will stop running even if not completed. While setting a maximum run duration for a policy is useful for adhering to a strict archive V2 schedule, it can cause the policy to stop before completion.
- enabled bool
- Enables or disabled the release bundles v2 cleanup policy. This allows the user to run the policy manually. If a policy has a valid cron expression, then it will be scheduled for execution based on it. If a policy is disabled, its future executions will be unscheduled. Defaults to
true
- item_
type str - Needs to be set to releaseBundle.
- key str
- An ID that is used to identify the cleanup policy. A minimum of three characters is required and can include letters, numbers, underscore and hyphen.
- search_
criteria ReleaseBundle V2Cleanup Policy Search Criteria Args
- cron
Expression String - The cron expression determines when the policy is run. This parameter is not mandatory, however if left empty the policy will not run automatically and can only be triggered manually.
- description String
- duration
In NumberMinutes - The maximum duration (in minutes) for policy execution, after which the policy will stop running even if not completed. While setting a maximum run duration for a policy is useful for adhering to a strict archive V2 schedule, it can cause the policy to stop before completion.
- enabled Boolean
- Enables or disabled the release bundles v2 cleanup policy. This allows the user to run the policy manually. If a policy has a valid cron expression, then it will be scheduled for execution based on it. If a policy is disabled, its future executions will be unscheduled. Defaults to
true
- item
Type String - Needs to be set to releaseBundle.
- key String
- An ID that is used to identify the cleanup policy. A minimum of three characters is required and can include letters, numbers, underscore and hyphen.
- search
Criteria Property Map
Supporting Types
ReleaseBundleV2CleanupPolicySearchCriteria, ReleaseBundleV2CleanupPolicySearchCriteriaArgs
- Exclude
Promoted List<string>Environments - A list of environments to exclude from the cleanup process. To exclude all, set to
**
. Example:exclude_promoted_environments = ["**"]
- Created
Before intIn Months - The cleanup policy will cleanup release bundles based on how long ago they were created. For example, if this parameter is 2 then release bundles created more than 2 months ago will be cleaned up as part of the policy.
- Include
All boolProjects - Set this value to
true
if you want the policy to run on all Artifactory projects. The default value isfalse
. - Included
Projects List<string> List of projects on which you want this policy to run. To include repositories that are not assigned to any project, enter the project key
default
.~>This setting is relevant only on the global level, for Platform Admins.
- Release
Bundles List<ReleaseBundle V2Cleanup Policy Search Criteria Release Bundle> - Specify the release bundles to include in the cleanup policy. The policy will only clean up the release bundles that match the specified criteria.
- Exclude
Promoted []stringEnvironments - A list of environments to exclude from the cleanup process. To exclude all, set to
**
. Example:exclude_promoted_environments = ["**"]
- Created
Before intIn Months - The cleanup policy will cleanup release bundles based on how long ago they were created. For example, if this parameter is 2 then release bundles created more than 2 months ago will be cleaned up as part of the policy.
- Include
All boolProjects - Set this value to
true
if you want the policy to run on all Artifactory projects. The default value isfalse
. - Included
Projects []string List of projects on which you want this policy to run. To include repositories that are not assigned to any project, enter the project key
default
.~>This setting is relevant only on the global level, for Platform Admins.
- Release
Bundles []ReleaseBundle V2Cleanup Policy Search Criteria Release Bundle - Specify the release bundles to include in the cleanup policy. The policy will only clean up the release bundles that match the specified criteria.
- exclude
Promoted List<String>Environments - A list of environments to exclude from the cleanup process. To exclude all, set to
**
. Example:exclude_promoted_environments = ["**"]
- created
Before IntegerIn Months - The cleanup policy will cleanup release bundles based on how long ago they were created. For example, if this parameter is 2 then release bundles created more than 2 months ago will be cleaned up as part of the policy.
- include
All BooleanProjects - Set this value to
true
if you want the policy to run on all Artifactory projects. The default value isfalse
. - included
Projects List<String> List of projects on which you want this policy to run. To include repositories that are not assigned to any project, enter the project key
default
.~>This setting is relevant only on the global level, for Platform Admins.
- release
Bundles List<ReleaseBundle V2Cleanup Policy Search Criteria Release Bundle> - Specify the release bundles to include in the cleanup policy. The policy will only clean up the release bundles that match the specified criteria.
- exclude
Promoted string[]Environments - A list of environments to exclude from the cleanup process. To exclude all, set to
**
. Example:exclude_promoted_environments = ["**"]
- created
Before numberIn Months - The cleanup policy will cleanup release bundles based on how long ago they were created. For example, if this parameter is 2 then release bundles created more than 2 months ago will be cleaned up as part of the policy.
- include
All booleanProjects - Set this value to
true
if you want the policy to run on all Artifactory projects. The default value isfalse
. - included
Projects string[] List of projects on which you want this policy to run. To include repositories that are not assigned to any project, enter the project key
default
.~>This setting is relevant only on the global level, for Platform Admins.
- release
Bundles ReleaseBundle V2Cleanup Policy Search Criteria Release Bundle[] - Specify the release bundles to include in the cleanup policy. The policy will only clean up the release bundles that match the specified criteria.
- exclude_
promoted_ Sequence[str]environments - A list of environments to exclude from the cleanup process. To exclude all, set to
**
. Example:exclude_promoted_environments = ["**"]
- created_
before_ intin_ months - The cleanup policy will cleanup release bundles based on how long ago they were created. For example, if this parameter is 2 then release bundles created more than 2 months ago will be cleaned up as part of the policy.
- include_
all_ boolprojects - Set this value to
true
if you want the policy to run on all Artifactory projects. The default value isfalse
. - included_
projects Sequence[str] List of projects on which you want this policy to run. To include repositories that are not assigned to any project, enter the project key
default
.~>This setting is relevant only on the global level, for Platform Admins.
- release_
bundles Sequence[ReleaseBundle V2Cleanup Policy Search Criteria Release Bundle] - Specify the release bundles to include in the cleanup policy. The policy will only clean up the release bundles that match the specified criteria.
- exclude
Promoted List<String>Environments - A list of environments to exclude from the cleanup process. To exclude all, set to
**
. Example:exclude_promoted_environments = ["**"]
- created
Before NumberIn Months - The cleanup policy will cleanup release bundles based on how long ago they were created. For example, if this parameter is 2 then release bundles created more than 2 months ago will be cleaned up as part of the policy.
- include
All BooleanProjects - Set this value to
true
if you want the policy to run on all Artifactory projects. The default value isfalse
. - included
Projects List<String> List of projects on which you want this policy to run. To include repositories that are not assigned to any project, enter the project key
default
.~>This setting is relevant only on the global level, for Platform Admins.
- release
Bundles List<Property Map> - Specify the release bundles to include in the cleanup policy. The policy will only clean up the release bundles that match the specified criteria.
ReleaseBundleV2CleanupPolicySearchCriteriaReleaseBundle, ReleaseBundleV2CleanupPolicySearchCriteriaReleaseBundleArgs
- Name string
- The name of the release bundle. Set
**
to include all bundles. Example:name = "**"
- Project
Key string - The project identifier associated with the release bundle. This key is obtained from the Project Settings screen. Leave the field blank to apply at a global level.
- Name string
- The name of the release bundle. Set
**
to include all bundles. Example:name = "**"
- Project
Key string - The project identifier associated with the release bundle. This key is obtained from the Project Settings screen. Leave the field blank to apply at a global level.
- name String
- The name of the release bundle. Set
**
to include all bundles. Example:name = "**"
- project
Key String - The project identifier associated with the release bundle. This key is obtained from the Project Settings screen. Leave the field blank to apply at a global level.
- name string
- The name of the release bundle. Set
**
to include all bundles. Example:name = "**"
- project
Key string - The project identifier associated with the release bundle. This key is obtained from the Project Settings screen. Leave the field blank to apply at a global level.
- name str
- The name of the release bundle. Set
**
to include all bundles. Example:name = "**"
- project_
key str - The project identifier associated with the release bundle. This key is obtained from the Project Settings screen. Leave the field blank to apply at a global level.
- name String
- The name of the release bundle. Set
**
to include all bundles. Example:name = "**"
- project
Key String - The project identifier associated with the release bundle. This key is obtained from the Project Settings screen. Leave the field blank to apply at a global level.
Import
$ pulumi import artifactory:index/releaseBundleV2CleanupPolicy:ReleaseBundleV2CleanupPolicy my-cleanup-policy my-policy
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- artifactory pulumi/pulumi-artifactory
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
artifactory
Terraform Provider.