1. Packages
  2. Artifactory Provider
  3. API Docs
  4. PullReplication
artifactory v8.8.1 published on Wednesday, Apr 9, 2025 by Pulumi

artifactory.PullReplication

Explore with Pulumi AI

This resource is deprecated and replaced by artifactory.RemoteRepositoryReplication for clarity.

Provides an Artifactory pull replication resource. This can be used to create and manage pull replication in Artifactory for a local or remote repo. Pull replication 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 the Official Documentation.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as artifactory from "@pulumi/artifactory";

// Create a replication between two artifactory local repositories
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: `https://example.com/artifactory/${artifactoryLocalMavenRepository.key}`,
    username: "foo",
    password: "bar",
});
const remote_rep = new artifactory.PullReplication("remote-rep", {
    repoKey: providerTestDest.key,
    cronExp: "0 0 * * * ?",
    enableEventReplication: true,
});
Copy
import pulumi
import pulumi_artifactory as artifactory

# Create a replication between two artifactory local repositories
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"https://example.com/artifactory/{artifactory_local_maven_repository['key']}",
    username="foo",
    password="bar")
remote_rep = artifactory.PullReplication("remote-rep",
    repo_key=provider_test_dest.key,
    cron_exp="0 0 * * * ?",
    enable_event_replication=True)
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-artifactory/sdk/v8/go/artifactory"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Create a replication between two artifactory local repositories
		_, 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("https://example.com/artifactory/%v", artifactoryLocalMavenRepository.Key),
			Username: pulumi.String("foo"),
			Password: pulumi.String("bar"),
		})
		if err != nil {
			return err
		}
		_, err = artifactory.NewPullReplication(ctx, "remote-rep", &artifactory.PullReplicationArgs{
			RepoKey:                providerTestDest.Key,
			CronExp:                pulumi.String("0 0 * * * ?"),
			EnableEventReplication: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Artifactory = Pulumi.Artifactory;

return await Deployment.RunAsync(() => 
{
    // Create a replication between two artifactory local repositories
    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 = $"https://example.com/artifactory/{artifactoryLocalMavenRepository.Key}",
        Username = "foo",
        Password = "bar",
    });

    var remote_rep = new Artifactory.PullReplication("remote-rep", new()
    {
        RepoKey = providerTestDest.Key,
        CronExp = "0 0 * * * ?",
        EnableEventReplication = true,
    });

});
Copy
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.PullReplication;
import com.pulumi.artifactory.PullReplicationArgs;
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) {
        // Create a replication between two artifactory local repositories
        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("https://example.com/artifactory/%s", artifactoryLocalMavenRepository.key()))
            .username("foo")
            .password("bar")
            .build());

        var remote_rep = new PullReplication("remote-rep", PullReplicationArgs.builder()
            .repoKey(providerTestDest.key())
            .cronExp("0 0 * * * ?")
            .enableEventReplication(true)
            .build());

    }
}
Copy
resources:
  # Create a replication between two artifactory local repositories
  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: https://example.com/artifactory/${artifactoryLocalMavenRepository.key}
      username: foo
      password: bar
  remote-rep:
    type: artifactory:PullReplication
    properties:
      repoKey: ${providerTestDest.key}
      cronExp: 0 0 * * * ?
      enableEventReplication: true
Copy

Create PullReplication Resource

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

Constructor syntax

new PullReplication(name: string, args: PullReplicationArgs, opts?: CustomResourceOptions);
@overload
def PullReplication(resource_name: str,
                    args: PullReplicationArgs,
                    opts: Optional[ResourceOptions] = None)

@overload
def PullReplication(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    repo_key: Optional[str] = None,
                    proxy: Optional[str] = None,
                    enable_event_replication: Optional[bool] = None,
                    enabled: Optional[bool] = None,
                    password: Optional[str] = None,
                    path_prefix: Optional[str] = None,
                    check_binary_existence_in_filestore: Optional[bool] = None,
                    cron_exp: Optional[str] = None,
                    socket_timeout_millis: Optional[int] = None,
                    sync_deletes: Optional[bool] = None,
                    sync_properties: Optional[bool] = None,
                    sync_statistics: Optional[bool] = None,
                    url: Optional[str] = None,
                    username: Optional[str] = None)
func NewPullReplication(ctx *Context, name string, args PullReplicationArgs, opts ...ResourceOption) (*PullReplication, error)
public PullReplication(string name, PullReplicationArgs args, CustomResourceOptions? opts = null)
public PullReplication(String name, PullReplicationArgs args)
public PullReplication(String name, PullReplicationArgs args, CustomResourceOptions options)
type: artifactory:PullReplication
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. PullReplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. PullReplicationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. PullReplicationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PullReplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PullReplicationArgs
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 pullReplicationResource = new Artifactory.PullReplication("pullReplicationResource", new()
{
    RepoKey = "string",
    Proxy = "string",
    EnableEventReplication = false,
    Enabled = false,
    Password = "string",
    PathPrefix = "string",
    CheckBinaryExistenceInFilestore = false,
    CronExp = "string",
    SocketTimeoutMillis = 0,
    SyncDeletes = false,
    SyncProperties = false,
    SyncStatistics = false,
    Url = "string",
    Username = "string",
});
Copy
example, err := artifactory.NewPullReplication(ctx, "pullReplicationResource", &artifactory.PullReplicationArgs{
	RepoKey:                         pulumi.String("string"),
	Proxy:                           pulumi.String("string"),
	EnableEventReplication:          pulumi.Bool(false),
	Enabled:                         pulumi.Bool(false),
	Password:                        pulumi.String("string"),
	PathPrefix:                      pulumi.String("string"),
	CheckBinaryExistenceInFilestore: pulumi.Bool(false),
	CronExp:                         pulumi.String("string"),
	SocketTimeoutMillis:             pulumi.Int(0),
	SyncDeletes:                     pulumi.Bool(false),
	SyncProperties:                  pulumi.Bool(false),
	SyncStatistics:                  pulumi.Bool(false),
	Url:                             pulumi.String("string"),
	Username:                        pulumi.String("string"),
})
Copy
var pullReplicationResource = new PullReplication("pullReplicationResource", PullReplicationArgs.builder()
    .repoKey("string")
    .proxy("string")
    .enableEventReplication(false)
    .enabled(false)
    .password("string")
    .pathPrefix("string")
    .checkBinaryExistenceInFilestore(false)
    .cronExp("string")
    .socketTimeoutMillis(0)
    .syncDeletes(false)
    .syncProperties(false)
    .syncStatistics(false)
    .url("string")
    .username("string")
    .build());
Copy
pull_replication_resource = artifactory.PullReplication("pullReplicationResource",
    repo_key="string",
    proxy="string",
    enable_event_replication=False,
    enabled=False,
    password="string",
    path_prefix="string",
    check_binary_existence_in_filestore=False,
    cron_exp="string",
    socket_timeout_millis=0,
    sync_deletes=False,
    sync_properties=False,
    sync_statistics=False,
    url="string",
    username="string")
Copy
const pullReplicationResource = new artifactory.PullReplication("pullReplicationResource", {
    repoKey: "string",
    proxy: "string",
    enableEventReplication: false,
    enabled: false,
    password: "string",
    pathPrefix: "string",
    checkBinaryExistenceInFilestore: false,
    cronExp: "string",
    socketTimeoutMillis: 0,
    syncDeletes: false,
    syncProperties: false,
    syncStatistics: false,
    url: "string",
    username: "string",
});
Copy
type: artifactory:PullReplication
properties:
    checkBinaryExistenceInFilestore: false
    cronExp: string
    enableEventReplication: false
    enabled: false
    password: string
    pathPrefix: string
    proxy: string
    repoKey: string
    socketTimeoutMillis: 0
    syncDeletes: false
    syncProperties: false
    syncStatistics: false
    url: string
    username: string
Copy

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

RepoKey This property is required. string
Repository name.
CheckBinaryExistenceInFilestore bool
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. added, deleted or property change.
Enabled bool
When set, this replication will be enabled when saved.
Password string
Required for local repository, but not needed for remote repository.
PathPrefix string
Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
Proxy string
Proxy key from Artifactory Proxies setting
SocketTimeoutMillis int
SyncDeletes bool
When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
SyncProperties bool
When set, the task also synchronizes the properties of replicated artifacts.
SyncStatistics bool
When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
Url Changes to this property will trigger replacement. string
The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
Username string
Required for local repository, but not needed for remote repository.
RepoKey This property is required. string
Repository name.
CheckBinaryExistenceInFilestore bool
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. added, deleted or property change.
Enabled bool
When set, this replication will be enabled when saved.
Password string
Required for local repository, but not needed for remote repository.
PathPrefix string
Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
Proxy string
Proxy key from Artifactory Proxies setting
SocketTimeoutMillis int
SyncDeletes bool
When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
SyncProperties bool
When set, the task also synchronizes the properties of replicated artifacts.
SyncStatistics bool
When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
Url Changes to this property will trigger replacement. string
The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
Username string
Required for local repository, but not needed for remote repository.
repoKey This property is required. String
Repository name.
checkBinaryExistenceInFilestore Boolean
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. added, deleted or property change.
enabled Boolean
When set, this replication will be enabled when saved.
password String
Required for local repository, but not needed for remote repository.
pathPrefix String
Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
proxy String
Proxy key from Artifactory Proxies setting
socketTimeoutMillis Integer
syncDeletes Boolean
When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
syncProperties Boolean
When set, the task also synchronizes the properties of replicated artifacts.
syncStatistics Boolean
When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
url Changes to this property will trigger replacement. String
The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
username String
Required for local repository, but not needed for remote repository.
repoKey This property is required. string
Repository name.
checkBinaryExistenceInFilestore boolean
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. added, deleted or property change.
enabled boolean
When set, this replication will be enabled when saved.
password string
Required for local repository, but not needed for remote repository.
pathPrefix string
Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
proxy string
Proxy key from Artifactory Proxies setting
socketTimeoutMillis number
syncDeletes boolean
When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
syncProperties boolean
When set, the task also synchronizes the properties of replicated artifacts.
syncStatistics boolean
When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
url Changes to this property will trigger replacement. string
The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
username string
Required for local repository, but not needed for remote repository.
repo_key This property is required. str
Repository name.
check_binary_existence_in_filestore bool
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. added, deleted or property change.
enabled bool
When set, this replication will be enabled when saved.
password str
Required for local repository, but not needed for remote repository.
path_prefix str
Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
proxy str
Proxy key from Artifactory Proxies setting
socket_timeout_millis int
sync_deletes bool
When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
sync_properties bool
When set, the task also synchronizes the properties of replicated artifacts.
sync_statistics bool
When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
url Changes to this property will trigger replacement. str
The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
username str
Required for local repository, but not needed for remote repository.
repoKey This property is required. String
Repository name.
checkBinaryExistenceInFilestore Boolean
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. added, deleted or property change.
enabled Boolean
When set, this replication will be enabled when saved.
password String
Required for local repository, but not needed for remote repository.
pathPrefix String
Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
proxy String
Proxy key from Artifactory Proxies setting
socketTimeoutMillis Number
syncDeletes Boolean
When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
syncProperties Boolean
When set, the task also synchronizes the properties of replicated artifacts.
syncStatistics Boolean
When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
url Changes to this property will trigger replacement. String
The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
username String
Required for local repository, but not needed for remote repository.

Outputs

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

Get an existing PullReplication 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?: PullReplicationState, opts?: CustomResourceOptions): PullReplication
@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,
        password: Optional[str] = None,
        path_prefix: Optional[str] = None,
        proxy: Optional[str] = None,
        repo_key: Optional[str] = None,
        socket_timeout_millis: Optional[int] = None,
        sync_deletes: Optional[bool] = None,
        sync_properties: Optional[bool] = None,
        sync_statistics: Optional[bool] = None,
        url: Optional[str] = None,
        username: Optional[str] = None) -> PullReplication
func GetPullReplication(ctx *Context, name string, id IDInput, state *PullReplicationState, opts ...ResourceOption) (*PullReplication, error)
public static PullReplication Get(string name, Input<string> id, PullReplicationState? state, CustomResourceOptions? opts = null)
public static PullReplication get(String name, Output<String> id, PullReplicationState state, CustomResourceOptions options)
resources:  _:    type: artifactory:PullReplication    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
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. added, deleted or property change.
Enabled bool
When set, this replication will be enabled when saved.
Password string
Required for local repository, but not needed for remote repository.
PathPrefix string
Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
Proxy string
Proxy key from Artifactory Proxies setting
RepoKey string
Repository name.
SocketTimeoutMillis int
SyncDeletes bool
When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
SyncProperties bool
When set, the task also synchronizes the properties of replicated artifacts.
SyncStatistics bool
When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
Url Changes to this property will trigger replacement. string
The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
Username string
Required for local repository, but not needed for remote repository.
CheckBinaryExistenceInFilestore bool
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. added, deleted or property change.
Enabled bool
When set, this replication will be enabled when saved.
Password string
Required for local repository, but not needed for remote repository.
PathPrefix string
Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
Proxy string
Proxy key from Artifactory Proxies setting
RepoKey string
Repository name.
SocketTimeoutMillis int
SyncDeletes bool
When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
SyncProperties bool
When set, the task also synchronizes the properties of replicated artifacts.
SyncStatistics bool
When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
Url Changes to this property will trigger replacement. string
The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
Username string
Required for local repository, but not needed for remote repository.
checkBinaryExistenceInFilestore Boolean
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. added, deleted or property change.
enabled Boolean
When set, this replication will be enabled when saved.
password String
Required for local repository, but not needed for remote repository.
pathPrefix String
Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
proxy String
Proxy key from Artifactory Proxies setting
repoKey String
Repository name.
socketTimeoutMillis Integer
syncDeletes Boolean
When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
syncProperties Boolean
When set, the task also synchronizes the properties of replicated artifacts.
syncStatistics Boolean
When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
url Changes to this property will trigger replacement. String
The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
username String
Required for local repository, but not needed for remote repository.
checkBinaryExistenceInFilestore boolean
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. added, deleted or property change.
enabled boolean
When set, this replication will be enabled when saved.
password string
Required for local repository, but not needed for remote repository.
pathPrefix string
Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
proxy string
Proxy key from Artifactory Proxies setting
repoKey string
Repository name.
socketTimeoutMillis number
syncDeletes boolean
When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
syncProperties boolean
When set, the task also synchronizes the properties of replicated artifacts.
syncStatistics boolean
When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
url Changes to this property will trigger replacement. string
The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
username string
Required for local repository, but not needed for remote repository.
check_binary_existence_in_filestore bool
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. added, deleted or property change.
enabled bool
When set, this replication will be enabled when saved.
password str
Required for local repository, but not needed for remote repository.
path_prefix str
Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
proxy str
Proxy key from Artifactory Proxies setting
repo_key str
Repository name.
socket_timeout_millis int
sync_deletes bool
When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
sync_properties bool
When set, the task also synchronizes the properties of replicated artifacts.
sync_statistics bool
When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
url Changes to this property will trigger replacement. str
The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
username str
Required for local repository, but not needed for remote repository.
checkBinaryExistenceInFilestore Boolean
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. added, deleted or property change.
enabled Boolean
When set, this replication will be enabled when saved.
password String
Required for local repository, but not needed for remote repository.
pathPrefix String
Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
proxy String
Proxy key from Artifactory Proxies setting
repoKey String
Repository name.
socketTimeoutMillis Number
syncDeletes Boolean
When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
syncProperties Boolean
When set, the task also synchronizes the properties of replicated artifacts.
syncStatistics Boolean
When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
url Changes to this property will trigger replacement. String
The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
username String
Required for local repository, but not needed for remote repository.

Import

Pull replication config can be imported using its repo key, e.g.

$ pulumi import artifactory:index/pullReplication:PullReplication foo-rep repository-key
Copy

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.