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,
});
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)
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
})
}
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,
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args PullReplicationArgs
- 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 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 string
- The unique name of the resource.
- args PullReplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PullReplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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:
- Repo
Key string - Repository name.
- Check
Binary boolExistence In Filestore - When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
- Cron
Exp 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. - Enable
Event boolReplication - 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.
- Path
Prefix 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
- Socket
Timeout intMillis - 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 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 string - Repository name.
- Check
Binary boolExistence In Filestore - When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
- Cron
Exp 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. - Enable
Event boolReplication - 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.
- Path
Prefix 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
- Socket
Timeout intMillis - 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 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 String - Repository name.
- check
Binary BooleanExistence In Filestore - When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
- cron
Exp 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. - enable
Event BooleanReplication - 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.
- path
Prefix 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
- socket
Timeout IntegerMillis - sync
Deletes Boolean - When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
- sync
Properties Boolean - When set, the task also synchronizes the properties of replicated artifacts.
- sync
Statistics 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 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 string - Repository name.
- check
Binary booleanExistence In Filestore - When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
- cron
Exp 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. - enable
Event booleanReplication - 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.
- path
Prefix 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
- socket
Timeout numberMillis - sync
Deletes boolean - When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
- sync
Properties boolean - When set, the task also synchronizes the properties of replicated artifacts.
- sync
Statistics 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 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 str - Repository name.
- check_
binary_ boolexistence_ in_ filestore - 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_ boolreplication - 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_ intmillis - 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 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.
- repo
Key String - Repository name.
- check
Binary BooleanExistence In Filestore - When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
- cron
Exp 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. - enable
Event BooleanReplication - 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.
- path
Prefix 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
- socket
Timeout NumberMillis - sync
Deletes Boolean - When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
- sync
Properties Boolean - When set, the task also synchronizes the properties of replicated artifacts.
- sync
Statistics 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 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)
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.
- Check
Binary boolExistence In Filestore - When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
- Cron
Exp 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. - Enable
Event boolReplication - 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.
- Path
Prefix 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
- Repo
Key string - Repository name.
- Socket
Timeout intMillis - 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 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 boolExistence In Filestore - When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
- Cron
Exp 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. - Enable
Event boolReplication - 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.
- Path
Prefix 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
- Repo
Key string - Repository name.
- Socket
Timeout intMillis - 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 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 BooleanExistence In Filestore - When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
- cron
Exp 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. - enable
Event BooleanReplication - 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.
- path
Prefix 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
- repo
Key String - Repository name.
- socket
Timeout IntegerMillis - sync
Deletes Boolean - When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
- sync
Properties Boolean - When set, the task also synchronizes the properties of replicated artifacts.
- sync
Statistics 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 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 booleanExistence In Filestore - When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
- cron
Exp 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. - enable
Event booleanReplication - 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.
- path
Prefix 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
- repo
Key string - Repository name.
- socket
Timeout numberMillis - sync
Deletes boolean - When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
- sync
Properties boolean - When set, the task also synchronizes the properties of replicated artifacts.
- sync
Statistics 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 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_ boolexistence_ in_ filestore - 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_ boolreplication - 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_ intmillis - 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 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.
- check
Binary BooleanExistence In Filestore - When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
- cron
Exp 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. - enable
Event BooleanReplication - 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.
- path
Prefix 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
- repo
Key String - Repository name.
- socket
Timeout NumberMillis - sync
Deletes Boolean - When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
- sync
Properties Boolean - When set, the task also synchronizes the properties of replicated artifacts.
- sync
Statistics 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 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
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.