1. Packages
  2. Artifactory Provider
  3. API Docs
  4. RemoteRepositoryReplication
artifactory v8.4.0 published on Tuesday, Nov 19, 2024 by Pulumi

artifactory.RemoteRepositoryReplication

Explore with Pulumi AI

artifactory logo
artifactory v8.4.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Provides a remote repository replication resource, also referred to as Artifactory pull replication. This resource provides a convenient way to proactively populate a remote cache, and is very useful when waiting for new artifacts to arrive on demand (when first requested) is not desirable due to network latency. See official documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as artifactory from "@pulumi/artifactory";
    
    const config = new pulumi.Config();
    // The base URL of the Artifactory deployment
    const artifactoryUrl = config.require("artifactoryUrl");
    const providerTestSource = new artifactory.LocalMavenRepository("provider_test_source", {key: "provider_test_source"});
    const providerTestDest = new artifactory.RemoteMavenRepository("provider_test_dest", {
        key: "provider_test_dest",
        url: `${artifactoryUrl}/artifactory/${artifactoryLocalMavenRepository.key}`,
        username: "foo",
        password: "bar",
    });
    const remote_rep = new artifactory.RemoteRepositoryReplication("remote-rep", {
        repoKey: providerTestDest.key,
        cronExp: "0 0 * * * ?",
        enableEventReplication: true,
        enabled: true,
        syncDeletes: false,
        syncProperties: true,
        includePathPrefixPattern: "/some-repo/",
        excludePathPrefixPattern: "/some-other-repo/",
        checkBinaryExistenceInFilestore: false,
    });
    
    import pulumi
    import pulumi_artifactory as artifactory
    
    config = pulumi.Config()
    # The base URL of the Artifactory deployment
    artifactory_url = config.require("artifactoryUrl")
    provider_test_source = artifactory.LocalMavenRepository("provider_test_source", key="provider_test_source")
    provider_test_dest = artifactory.RemoteMavenRepository("provider_test_dest",
        key="provider_test_dest",
        url=f"{artifactory_url}/artifactory/{artifactory_local_maven_repository['key']}",
        username="foo",
        password="bar")
    remote_rep = artifactory.RemoteRepositoryReplication("remote-rep",
        repo_key=provider_test_dest.key,
        cron_exp="0 0 * * * ?",
        enable_event_replication=True,
        enabled=True,
        sync_deletes=False,
        sync_properties=True,
        include_path_prefix_pattern="/some-repo/",
        exclude_path_prefix_pattern="/some-other-repo/",
        check_binary_existence_in_filestore=False)
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-artifactory/sdk/v8/go/artifactory"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		// The base URL of the Artifactory deployment
    		artifactoryUrl := cfg.Require("artifactoryUrl")
    		_, err := artifactory.NewLocalMavenRepository(ctx, "provider_test_source", &artifactory.LocalMavenRepositoryArgs{
    			Key: pulumi.String("provider_test_source"),
    		})
    		if err != nil {
    			return err
    		}
    		providerTestDest, err := artifactory.NewRemoteMavenRepository(ctx, "provider_test_dest", &artifactory.RemoteMavenRepositoryArgs{
    			Key:      pulumi.String("provider_test_dest"),
    			Url:      pulumi.Sprintf("%v/artifactory/%v", artifactoryUrl, artifactoryLocalMavenRepository.Key),
    			Username: pulumi.String("foo"),
    			Password: pulumi.String("bar"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = artifactory.NewRemoteRepositoryReplication(ctx, "remote-rep", &artifactory.RemoteRepositoryReplicationArgs{
    			RepoKey:                         providerTestDest.Key,
    			CronExp:                         pulumi.String("0 0 * * * ?"),
    			EnableEventReplication:          pulumi.Bool(true),
    			Enabled:                         pulumi.Bool(true),
    			SyncDeletes:                     pulumi.Bool(false),
    			SyncProperties:                  pulumi.Bool(true),
    			IncludePathPrefixPattern:        pulumi.String("/some-repo/"),
    			ExcludePathPrefixPattern:        pulumi.String("/some-other-repo/"),
    			CheckBinaryExistenceInFilestore: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Artifactory = Pulumi.Artifactory;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        // The base URL of the Artifactory deployment
        var artifactoryUrl = config.Require("artifactoryUrl");
        var providerTestSource = new Artifactory.LocalMavenRepository("provider_test_source", new()
        {
            Key = "provider_test_source",
        });
    
        var providerTestDest = new Artifactory.RemoteMavenRepository("provider_test_dest", new()
        {
            Key = "provider_test_dest",
            Url = $"{artifactoryUrl}/artifactory/{artifactoryLocalMavenRepository.Key}",
            Username = "foo",
            Password = "bar",
        });
    
        var remote_rep = new Artifactory.RemoteRepositoryReplication("remote-rep", new()
        {
            RepoKey = providerTestDest.Key,
            CronExp = "0 0 * * * ?",
            EnableEventReplication = true,
            Enabled = true,
            SyncDeletes = false,
            SyncProperties = true,
            IncludePathPrefixPattern = "/some-repo/",
            ExcludePathPrefixPattern = "/some-other-repo/",
            CheckBinaryExistenceInFilestore = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.artifactory.LocalMavenRepository;
    import com.pulumi.artifactory.LocalMavenRepositoryArgs;
    import com.pulumi.artifactory.RemoteMavenRepository;
    import com.pulumi.artifactory.RemoteMavenRepositoryArgs;
    import com.pulumi.artifactory.RemoteRepositoryReplication;
    import com.pulumi.artifactory.RemoteRepositoryReplicationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var artifactoryUrl = config.get("artifactoryUrl");
            var providerTestSource = new LocalMavenRepository("providerTestSource", LocalMavenRepositoryArgs.builder()
                .key("provider_test_source")
                .build());
    
            var providerTestDest = new RemoteMavenRepository("providerTestDest", RemoteMavenRepositoryArgs.builder()
                .key("provider_test_dest")
                .url(String.format("%s/artifactory/%s", artifactoryUrl,artifactoryLocalMavenRepository.key()))
                .username("foo")
                .password("bar")
                .build());
    
            var remote_rep = new RemoteRepositoryReplication("remote-rep", RemoteRepositoryReplicationArgs.builder()
                .repoKey(providerTestDest.key())
                .cronExp("0 0 * * * ?")
                .enableEventReplication(true)
                .enabled(true)
                .syncDeletes(false)
                .syncProperties(true)
                .includePathPrefixPattern("/some-repo/")
                .excludePathPrefixPattern("/some-other-repo/")
                .checkBinaryExistenceInFilestore(false)
                .build());
    
        }
    }
    
    configuration:
      artifactoryUrl:
        type: string
    resources:
      providerTestSource:
        type: artifactory:LocalMavenRepository
        name: provider_test_source
        properties:
          key: provider_test_source
      providerTestDest:
        type: artifactory:RemoteMavenRepository
        name: provider_test_dest
        properties:
          key: provider_test_dest
          url: ${artifactoryUrl}/artifactory/${artifactoryLocalMavenRepository.key}
          username: foo
          password: bar
      remote-rep:
        type: artifactory:RemoteRepositoryReplication
        properties:
          repoKey: ${providerTestDest.key}
          cronExp: 0 0 * * * ?
          enableEventReplication: true
          enabled: true
          syncDeletes: false
          syncProperties: true
          includePathPrefixPattern: /some-repo/
          excludePathPrefixPattern: /some-other-repo/
          checkBinaryExistenceInFilestore: false
    

    Create RemoteRepositoryReplication Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RemoteRepositoryReplication(name: string, args: RemoteRepositoryReplicationArgs, opts?: CustomResourceOptions);
    @overload
    def RemoteRepositoryReplication(resource_name: str,
                                    args: RemoteRepositoryReplicationArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def RemoteRepositoryReplication(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    repo_key: Optional[str] = None,
                                    check_binary_existence_in_filestore: Optional[bool] = None,
                                    cron_exp: Optional[str] = None,
                                    enable_event_replication: Optional[bool] = None,
                                    enabled: Optional[bool] = None,
                                    exclude_path_prefix_pattern: Optional[str] = None,
                                    include_path_prefix_pattern: Optional[str] = None,
                                    replication_key: Optional[str] = None,
                                    sync_deletes: Optional[bool] = None,
                                    sync_properties: Optional[bool] = None)
    func NewRemoteRepositoryReplication(ctx *Context, name string, args RemoteRepositoryReplicationArgs, opts ...ResourceOption) (*RemoteRepositoryReplication, error)
    public RemoteRepositoryReplication(string name, RemoteRepositoryReplicationArgs args, CustomResourceOptions? opts = null)
    public RemoteRepositoryReplication(String name, RemoteRepositoryReplicationArgs args)
    public RemoteRepositoryReplication(String name, RemoteRepositoryReplicationArgs args, CustomResourceOptions options)
    
    type: artifactory:RemoteRepositoryReplication
    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 RemoteRepositoryReplicationArgs
    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 RemoteRepositoryReplicationArgs
    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 RemoteRepositoryReplicationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RemoteRepositoryReplicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RemoteRepositoryReplicationArgs
    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 remoteRepositoryReplicationResource = new Artifactory.RemoteRepositoryReplication("remoteRepositoryReplicationResource", new()
    {
        RepoKey = "string",
        CheckBinaryExistenceInFilestore = false,
        CronExp = "string",
        EnableEventReplication = false,
        Enabled = false,
        ExcludePathPrefixPattern = "string",
        IncludePathPrefixPattern = "string",
        ReplicationKey = "string",
        SyncDeletes = false,
        SyncProperties = false,
    });
    
    example, err := artifactory.NewRemoteRepositoryReplication(ctx, "remoteRepositoryReplicationResource", &artifactory.RemoteRepositoryReplicationArgs{
    	RepoKey:                         pulumi.String("string"),
    	CheckBinaryExistenceInFilestore: pulumi.Bool(false),
    	CronExp:                         pulumi.String("string"),
    	EnableEventReplication:          pulumi.Bool(false),
    	Enabled:                         pulumi.Bool(false),
    	ExcludePathPrefixPattern:        pulumi.String("string"),
    	IncludePathPrefixPattern:        pulumi.String("string"),
    	ReplicationKey:                  pulumi.String("string"),
    	SyncDeletes:                     pulumi.Bool(false),
    	SyncProperties:                  pulumi.Bool(false),
    })
    
    var remoteRepositoryReplicationResource = new RemoteRepositoryReplication("remoteRepositoryReplicationResource", RemoteRepositoryReplicationArgs.builder()
        .repoKey("string")
        .checkBinaryExistenceInFilestore(false)
        .cronExp("string")
        .enableEventReplication(false)
        .enabled(false)
        .excludePathPrefixPattern("string")
        .includePathPrefixPattern("string")
        .replicationKey("string")
        .syncDeletes(false)
        .syncProperties(false)
        .build());
    
    remote_repository_replication_resource = artifactory.RemoteRepositoryReplication("remoteRepositoryReplicationResource",
        repo_key="string",
        check_binary_existence_in_filestore=False,
        cron_exp="string",
        enable_event_replication=False,
        enabled=False,
        exclude_path_prefix_pattern="string",
        include_path_prefix_pattern="string",
        replication_key="string",
        sync_deletes=False,
        sync_properties=False)
    
    const remoteRepositoryReplicationResource = new artifactory.RemoteRepositoryReplication("remoteRepositoryReplicationResource", {
        repoKey: "string",
        checkBinaryExistenceInFilestore: false,
        cronExp: "string",
        enableEventReplication: false,
        enabled: false,
        excludePathPrefixPattern: "string",
        includePathPrefixPattern: "string",
        replicationKey: "string",
        syncDeletes: false,
        syncProperties: false,
    });
    
    type: artifactory:RemoteRepositoryReplication
    properties:
        checkBinaryExistenceInFilestore: false
        cronExp: string
        enableEventReplication: false
        enabled: false
        excludePathPrefixPattern: string
        includePathPrefixPattern: string
        replicationKey: string
        repoKey: string
        syncDeletes: false
        syncProperties: false
    

    RemoteRepositoryReplication 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 RemoteRepositoryReplication resource accepts the following input properties:

    RepoKey string
    Repository name.
    CheckBinaryExistenceInFilestore bool
    Enabling the check_binary_existence_in_filestore flag requires an Enterprise Plus license. When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    CronExp string
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    EnableEventReplication bool
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. add, deleted or property change. Default value is false. com/confluence/display/JFROG/User+Profile#UserProfile-IdentityTokenidentitytoken).
    Enabled bool
    When set, enables replication of this repository to the target specified in url attribute. Default value is true.
    ExcludePathPrefixPattern string
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default, no artifacts are excluded.
    IncludePathPrefixPattern string
    List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
    ReplicationKey string
    Replication ID, the value is unknown until the resource is created. Can't be set or updated.
    SyncDeletes bool
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository. Default value is false.
    SyncProperties bool
    When set, the task also synchronizes the properties of replicated artifacts. Default value is true.
    RepoKey string
    Repository name.
    CheckBinaryExistenceInFilestore bool
    Enabling the check_binary_existence_in_filestore flag requires an Enterprise Plus license. When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    CronExp string
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    EnableEventReplication bool
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. add, deleted or property change. Default value is false. com/confluence/display/JFROG/User+Profile#UserProfile-IdentityTokenidentitytoken).
    Enabled bool
    When set, enables replication of this repository to the target specified in url attribute. Default value is true.
    ExcludePathPrefixPattern string
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default, no artifacts are excluded.
    IncludePathPrefixPattern string
    List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
    ReplicationKey string
    Replication ID, the value is unknown until the resource is created. Can't be set or updated.
    SyncDeletes bool
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository. Default value is false.
    SyncProperties bool
    When set, the task also synchronizes the properties of replicated artifacts. Default value is true.
    repoKey String
    Repository name.
    checkBinaryExistenceInFilestore Boolean
    Enabling the check_binary_existence_in_filestore flag requires an Enterprise Plus license. When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cronExp String
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enableEventReplication Boolean
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. add, deleted or property change. Default value is false. com/confluence/display/JFROG/User+Profile#UserProfile-IdentityTokenidentitytoken).
    enabled Boolean
    When set, enables replication of this repository to the target specified in url attribute. Default value is true.
    excludePathPrefixPattern String
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default, no artifacts are excluded.
    includePathPrefixPattern String
    List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
    replicationKey String
    Replication ID, the value is unknown until the resource is created. Can't be set or updated.
    syncDeletes Boolean
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository. Default value is false.
    syncProperties Boolean
    When set, the task also synchronizes the properties of replicated artifacts. Default value is true.
    repoKey string
    Repository name.
    checkBinaryExistenceInFilestore boolean
    Enabling the check_binary_existence_in_filestore flag requires an Enterprise Plus license. When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cronExp string
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enableEventReplication boolean
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. add, deleted or property change. Default value is false. com/confluence/display/JFROG/User+Profile#UserProfile-IdentityTokenidentitytoken).
    enabled boolean
    When set, enables replication of this repository to the target specified in url attribute. Default value is true.
    excludePathPrefixPattern string
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default, no artifacts are excluded.
    includePathPrefixPattern string
    List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
    replicationKey string
    Replication ID, the value is unknown until the resource is created. Can't be set or updated.
    syncDeletes boolean
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository. Default value is false.
    syncProperties boolean
    When set, the task also synchronizes the properties of replicated artifacts. Default value is true.
    repo_key str
    Repository name.
    check_binary_existence_in_filestore bool
    Enabling the check_binary_existence_in_filestore flag requires an Enterprise Plus license. When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cron_exp str
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enable_event_replication bool
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. add, deleted or property change. Default value is false. com/confluence/display/JFROG/User+Profile#UserProfile-IdentityTokenidentitytoken).
    enabled bool
    When set, enables replication of this repository to the target specified in url attribute. Default value is true.
    exclude_path_prefix_pattern str
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default, no artifacts are excluded.
    include_path_prefix_pattern str
    List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
    replication_key str
    Replication ID, the value is unknown until the resource is created. Can't be set or updated.
    sync_deletes bool
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository. Default value is false.
    sync_properties bool
    When set, the task also synchronizes the properties of replicated artifacts. Default value is true.
    repoKey String
    Repository name.
    checkBinaryExistenceInFilestore Boolean
    Enabling the check_binary_existence_in_filestore flag requires an Enterprise Plus license. When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cronExp String
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enableEventReplication Boolean
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. add, deleted or property change. Default value is false. com/confluence/display/JFROG/User+Profile#UserProfile-IdentityTokenidentitytoken).
    enabled Boolean
    When set, enables replication of this repository to the target specified in url attribute. Default value is true.
    excludePathPrefixPattern String
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default, no artifacts are excluded.
    includePathPrefixPattern String
    List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
    replicationKey String
    Replication ID, the value is unknown until the resource is created. Can't be set or updated.
    syncDeletes Boolean
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository. Default value is false.
    syncProperties Boolean
    When set, the task also synchronizes the properties of replicated artifacts. Default value is true.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RemoteRepositoryReplication 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 RemoteRepositoryReplication Resource

    Get an existing RemoteRepositoryReplication 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?: RemoteRepositoryReplicationState, opts?: CustomResourceOptions): RemoteRepositoryReplication
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            check_binary_existence_in_filestore: Optional[bool] = None,
            cron_exp: Optional[str] = None,
            enable_event_replication: Optional[bool] = None,
            enabled: Optional[bool] = None,
            exclude_path_prefix_pattern: Optional[str] = None,
            include_path_prefix_pattern: Optional[str] = None,
            replication_key: Optional[str] = None,
            repo_key: Optional[str] = None,
            sync_deletes: Optional[bool] = None,
            sync_properties: Optional[bool] = None) -> RemoteRepositoryReplication
    func GetRemoteRepositoryReplication(ctx *Context, name string, id IDInput, state *RemoteRepositoryReplicationState, opts ...ResourceOption) (*RemoteRepositoryReplication, error)
    public static RemoteRepositoryReplication Get(string name, Input<string> id, RemoteRepositoryReplicationState? state, CustomResourceOptions? opts = null)
    public static RemoteRepositoryReplication get(String name, Output<String> id, RemoteRepositoryReplicationState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    CheckBinaryExistenceInFilestore bool
    Enabling the check_binary_existence_in_filestore flag requires an Enterprise Plus license. When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    CronExp string
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    EnableEventReplication bool
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. add, deleted or property change. Default value is false. com/confluence/display/JFROG/User+Profile#UserProfile-IdentityTokenidentitytoken).
    Enabled bool
    When set, enables replication of this repository to the target specified in url attribute. Default value is true.
    ExcludePathPrefixPattern string
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default, no artifacts are excluded.
    IncludePathPrefixPattern string
    List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
    ReplicationKey string
    Replication ID, the value is unknown until the resource is created. Can't be set or updated.
    RepoKey string
    Repository name.
    SyncDeletes bool
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository. Default value is false.
    SyncProperties bool
    When set, the task also synchronizes the properties of replicated artifacts. Default value is true.
    CheckBinaryExistenceInFilestore bool
    Enabling the check_binary_existence_in_filestore flag requires an Enterprise Plus license. When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    CronExp string
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    EnableEventReplication bool
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. add, deleted or property change. Default value is false. com/confluence/display/JFROG/User+Profile#UserProfile-IdentityTokenidentitytoken).
    Enabled bool
    When set, enables replication of this repository to the target specified in url attribute. Default value is true.
    ExcludePathPrefixPattern string
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default, no artifacts are excluded.
    IncludePathPrefixPattern string
    List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
    ReplicationKey string
    Replication ID, the value is unknown until the resource is created. Can't be set or updated.
    RepoKey string
    Repository name.
    SyncDeletes bool
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository. Default value is false.
    SyncProperties bool
    When set, the task also synchronizes the properties of replicated artifacts. Default value is true.
    checkBinaryExistenceInFilestore Boolean
    Enabling the check_binary_existence_in_filestore flag requires an Enterprise Plus license. When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cronExp String
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enableEventReplication Boolean
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. add, deleted or property change. Default value is false. com/confluence/display/JFROG/User+Profile#UserProfile-IdentityTokenidentitytoken).
    enabled Boolean
    When set, enables replication of this repository to the target specified in url attribute. Default value is true.
    excludePathPrefixPattern String
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default, no artifacts are excluded.
    includePathPrefixPattern String
    List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
    replicationKey String
    Replication ID, the value is unknown until the resource is created. Can't be set or updated.
    repoKey String
    Repository name.
    syncDeletes Boolean
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository. Default value is false.
    syncProperties Boolean
    When set, the task also synchronizes the properties of replicated artifacts. Default value is true.
    checkBinaryExistenceInFilestore boolean
    Enabling the check_binary_existence_in_filestore flag requires an Enterprise Plus license. When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cronExp string
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enableEventReplication boolean
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. add, deleted or property change. Default value is false. com/confluence/display/JFROG/User+Profile#UserProfile-IdentityTokenidentitytoken).
    enabled boolean
    When set, enables replication of this repository to the target specified in url attribute. Default value is true.
    excludePathPrefixPattern string
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default, no artifacts are excluded.
    includePathPrefixPattern string
    List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
    replicationKey string
    Replication ID, the value is unknown until the resource is created. Can't be set or updated.
    repoKey string
    Repository name.
    syncDeletes boolean
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository. Default value is false.
    syncProperties boolean
    When set, the task also synchronizes the properties of replicated artifacts. Default value is true.
    check_binary_existence_in_filestore bool
    Enabling the check_binary_existence_in_filestore flag requires an Enterprise Plus license. When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cron_exp str
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enable_event_replication bool
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. add, deleted or property change. Default value is false. com/confluence/display/JFROG/User+Profile#UserProfile-IdentityTokenidentitytoken).
    enabled bool
    When set, enables replication of this repository to the target specified in url attribute. Default value is true.
    exclude_path_prefix_pattern str
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default, no artifacts are excluded.
    include_path_prefix_pattern str
    List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
    replication_key str
    Replication ID, the value is unknown until the resource is created. Can't be set or updated.
    repo_key str
    Repository name.
    sync_deletes bool
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository. Default value is false.
    sync_properties bool
    When set, the task also synchronizes the properties of replicated artifacts. Default value is true.
    checkBinaryExistenceInFilestore Boolean
    Enabling the check_binary_existence_in_filestore flag requires an Enterprise Plus license. When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cronExp String
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enableEventReplication Boolean
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. add, deleted or property change. Default value is false. com/confluence/display/JFROG/User+Profile#UserProfile-IdentityTokenidentitytoken).
    enabled Boolean
    When set, enables replication of this repository to the target specified in url attribute. Default value is true.
    excludePathPrefixPattern String
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default, no artifacts are excluded.
    includePathPrefixPattern String
    List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
    replicationKey String
    Replication ID, the value is unknown until the resource is created. Can't be set or updated.
    repoKey String
    Repository name.
    syncDeletes Boolean
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository. Default value is false.
    syncProperties Boolean
    When set, the task also synchronizes the properties of replicated artifacts. Default value is true.

    Import

    Push replication configs can be imported using their repo key, e.g.

    $ pulumi import artifactory:index/remoteRepositoryReplication:RemoteRepositoryReplication foo-rep provider_test_source
    

    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.4.0 published on Tuesday, Nov 19, 2024 by Pulumi