1. Packages
  2. Artifactory Provider
  3. API Docs
  4. ReleaseBundleV2CleanupPolicy
artifactory v8.8.4 published on Thursday, Jun 5, 2025 by Pulumi

artifactory.ReleaseBundleV2CleanupPolicy

Explore with Pulumi AI

artifactory logo
artifactory v8.8.4 published on Thursday, Jun 5, 2025 by Pulumi

    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.
    SearchCriteria ReleaseBundleV2CleanupPolicySearchCriteria
    CronExpression 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
    DurationInMinutes int
    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
    ItemType 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.
    SearchCriteria ReleaseBundleV2CleanupPolicySearchCriteriaArgs
    CronExpression 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
    DurationInMinutes int
    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
    ItemType 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.
    searchCriteria ReleaseBundleV2CleanupPolicySearchCriteria
    cronExpression 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
    durationInMinutes Integer
    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
    itemType 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.
    searchCriteria ReleaseBundleV2CleanupPolicySearchCriteria
    cronExpression 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
    durationInMinutes number
    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
    itemType 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 ReleaseBundleV2CleanupPolicySearchCriteriaArgs
    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_minutes int
    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.
    searchCriteria Property Map
    cronExpression 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
    durationInMinutes Number
    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
    itemType 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.
    The following state arguments are supported:
    CronExpression 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
    DurationInMinutes int
    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
    ItemType 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.
    SearchCriteria ReleaseBundleV2CleanupPolicySearchCriteria
    CronExpression 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
    DurationInMinutes int
    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
    ItemType 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.
    SearchCriteria ReleaseBundleV2CleanupPolicySearchCriteriaArgs
    cronExpression 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
    durationInMinutes Integer
    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
    itemType 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.
    searchCriteria ReleaseBundleV2CleanupPolicySearchCriteria
    cronExpression 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
    durationInMinutes number
    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
    itemType 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.
    searchCriteria ReleaseBundleV2CleanupPolicySearchCriteria
    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_minutes int
    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 ReleaseBundleV2CleanupPolicySearchCriteriaArgs
    cronExpression 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
    durationInMinutes Number
    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
    itemType 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.
    searchCriteria Property Map

    Supporting Types

    ReleaseBundleV2CleanupPolicySearchCriteria, ReleaseBundleV2CleanupPolicySearchCriteriaArgs

    ExcludePromotedEnvironments List<string>
    A list of environments to exclude from the cleanup process. To exclude all, set to **. Example: exclude_promoted_environments = ["**"]
    CreatedBeforeInMonths int
    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.
    IncludeAllProjects bool
    Set this value to true if you want the policy to run on all Artifactory projects. The default value is false.
    IncludedProjects 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.

    ReleaseBundles List<ReleaseBundleV2CleanupPolicySearchCriteriaReleaseBundle>
    Specify the release bundles to include in the cleanup policy. The policy will only clean up the release bundles that match the specified criteria.
    ExcludePromotedEnvironments []string
    A list of environments to exclude from the cleanup process. To exclude all, set to **. Example: exclude_promoted_environments = ["**"]
    CreatedBeforeInMonths int
    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.
    IncludeAllProjects bool
    Set this value to true if you want the policy to run on all Artifactory projects. The default value is false.
    IncludedProjects []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.

    ReleaseBundles []ReleaseBundleV2CleanupPolicySearchCriteriaReleaseBundle
    Specify the release bundles to include in the cleanup policy. The policy will only clean up the release bundles that match the specified criteria.
    excludePromotedEnvironments List<String>
    A list of environments to exclude from the cleanup process. To exclude all, set to **. Example: exclude_promoted_environments = ["**"]
    createdBeforeInMonths Integer
    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.
    includeAllProjects Boolean
    Set this value to true if you want the policy to run on all Artifactory projects. The default value is false.
    includedProjects 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.

    releaseBundles List<ReleaseBundleV2CleanupPolicySearchCriteriaReleaseBundle>
    Specify the release bundles to include in the cleanup policy. The policy will only clean up the release bundles that match the specified criteria.
    excludePromotedEnvironments string[]
    A list of environments to exclude from the cleanup process. To exclude all, set to **. Example: exclude_promoted_environments = ["**"]
    createdBeforeInMonths number
    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.
    includeAllProjects boolean
    Set this value to true if you want the policy to run on all Artifactory projects. The default value is false.
    includedProjects 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.

    releaseBundles ReleaseBundleV2CleanupPolicySearchCriteriaReleaseBundle[]
    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_environments Sequence[str]
    A list of environments to exclude from the cleanup process. To exclude all, set to **. Example: exclude_promoted_environments = ["**"]
    created_before_in_months int
    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_projects bool
    Set this value to true if you want the policy to run on all Artifactory projects. The default value is false.
    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[ReleaseBundleV2CleanupPolicySearchCriteriaReleaseBundle]
    Specify the release bundles to include in the cleanup policy. The policy will only clean up the release bundles that match the specified criteria.
    excludePromotedEnvironments List<String>
    A list of environments to exclude from the cleanup process. To exclude all, set to **. Example: exclude_promoted_environments = ["**"]
    createdBeforeInMonths Number
    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.
    includeAllProjects Boolean
    Set this value to true if you want the policy to run on all Artifactory projects. The default value is false.
    includedProjects 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.

    releaseBundles 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 = "**"
    ProjectKey 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 = "**"
    ProjectKey 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 = "**"
    projectKey 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 = "**"
    projectKey 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 = "**"
    projectKey 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.
    artifactory logo
    artifactory v8.8.4 published on Thursday, Jun 5, 2025 by Pulumi