artifactory.LocalRepositoryMultiReplication
Explore with Pulumi AI
Provides a local repository replication resource, also referred to as Artifactory push replication. This can be used to create and manage Artifactory local repository replications using Multi-push Replication API.
Push replication is used to synchronize Local Repositories, and is implemented by the Artifactory server on the near end invoking a synchronization of artifacts to the far end.
See the Official Documentation.
This resource replaces artifactory.PushReplication
and used to create a replication of one local repository to multiple repositories on the remote server.
This resource requires Artifactory Enterprise license. Use
artifactory.LocalRepositorySingleReplication
with other licenses.
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");
// The username for the Artifactory
const artifactoryUsername = config.require("artifactoryUsername");
// The password for the Artifactory
const artifactoryPassword = config.require("artifactoryPassword");
// Create a replication between two artifactory local repositories
const providerTestSource = new artifactory.LocalMavenRepository("provider_test_source", {key: "provider_test_source"});
const providerTestDest = new artifactory.LocalMavenRepository("provider_test_dest", {key: "provider_test_dest"});
const providerTestDest1 = new artifactory.LocalMavenRepository("provider_test_dest1", {key: "provider_test_dest1"});
const foo_rep = new artifactory.LocalRepositoryMultiReplication("foo-rep", {
repoKey: providerTestSource.key,
cronExp: "0 0 * * * ?",
enableEventReplication: true,
replications: [
{
url: pulumi.interpolate`${artifactoryUrl}/artifactory/${providerTestDest.key}`,
username: "$var.artifactory_username",
password: "$var.artifactory_password",
enabled: true,
},
{
url: pulumi.interpolate`${artifactoryUrl}/artifactory/${providerTestDest1.key}`,
username: "$var.artifactory_username",
password: "$var.artifactory_password",
enabled: true,
},
],
});
import pulumi
import pulumi_artifactory as artifactory
config = pulumi.Config()
# The base URL of the Artifactory deployment
artifactory_url = config.require("artifactoryUrl")
# The username for the Artifactory
artifactory_username = config.require("artifactoryUsername")
# The password for the Artifactory
artifactory_password = config.require("artifactoryPassword")
# Create a replication between two artifactory local repositories
provider_test_source = artifactory.LocalMavenRepository("provider_test_source", key="provider_test_source")
provider_test_dest = artifactory.LocalMavenRepository("provider_test_dest", key="provider_test_dest")
provider_test_dest1 = artifactory.LocalMavenRepository("provider_test_dest1", key="provider_test_dest1")
foo_rep = artifactory.LocalRepositoryMultiReplication("foo-rep",
repo_key=provider_test_source.key,
cron_exp="0 0 * * * ?",
enable_event_replication=True,
replications=[
{
"url": provider_test_dest.key.apply(lambda key: f"{artifactory_url}/artifactory/{key}"),
"username": "$var.artifactory_username",
"password": "$var.artifactory_password",
"enabled": True,
},
{
"url": provider_test_dest1.key.apply(lambda key: f"{artifactory_url}/artifactory/{key}"),
"username": "$var.artifactory_username",
"password": "$var.artifactory_password",
"enabled": True,
},
])
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")
// The username for the Artifactory
artifactoryUsername := cfg.Require("artifactoryUsername")
// The password for the Artifactory
artifactoryPassword := cfg.Require("artifactoryPassword")
// Create a replication between two artifactory local repositories
providerTestSource, err := artifactory.NewLocalMavenRepository(ctx, "provider_test_source", &artifactory.LocalMavenRepositoryArgs{
Key: pulumi.String("provider_test_source"),
})
if err != nil {
return err
}
providerTestDest, err := artifactory.NewLocalMavenRepository(ctx, "provider_test_dest", &artifactory.LocalMavenRepositoryArgs{
Key: pulumi.String("provider_test_dest"),
})
if err != nil {
return err
}
providerTestDest1, err := artifactory.NewLocalMavenRepository(ctx, "provider_test_dest1", &artifactory.LocalMavenRepositoryArgs{
Key: pulumi.String("provider_test_dest1"),
})
if err != nil {
return err
}
_, err = artifactory.NewLocalRepositoryMultiReplication(ctx, "foo-rep", &artifactory.LocalRepositoryMultiReplicationArgs{
RepoKey: providerTestSource.Key,
CronExp: pulumi.String("0 0 * * * ?"),
EnableEventReplication: pulumi.Bool(true),
Replications: artifactory.LocalRepositoryMultiReplicationReplicationArray{
&artifactory.LocalRepositoryMultiReplicationReplicationArgs{
Url: providerTestDest.Key.ApplyT(func(key string) (string, error) {
return fmt.Sprintf("%v/artifactory/%v", artifactoryUrl, key), nil
}).(pulumi.StringOutput),
Username: pulumi.String("$var.artifactory_username"),
Password: pulumi.String("$var.artifactory_password"),
Enabled: pulumi.Bool(true),
},
&artifactory.LocalRepositoryMultiReplicationReplicationArgs{
Url: providerTestDest1.Key.ApplyT(func(key string) (string, error) {
return fmt.Sprintf("%v/artifactory/%v", artifactoryUrl, key), nil
}).(pulumi.StringOutput),
Username: pulumi.String("$var.artifactory_username"),
Password: pulumi.String("$var.artifactory_password"),
Enabled: 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(() =>
{
var config = new Config();
// The base URL of the Artifactory deployment
var artifactoryUrl = config.Require("artifactoryUrl");
// The username for the Artifactory
var artifactoryUsername = config.Require("artifactoryUsername");
// The password for the Artifactory
var artifactoryPassword = config.Require("artifactoryPassword");
// 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.LocalMavenRepository("provider_test_dest", new()
{
Key = "provider_test_dest",
});
var providerTestDest1 = new Artifactory.LocalMavenRepository("provider_test_dest1", new()
{
Key = "provider_test_dest1",
});
var foo_rep = new Artifactory.LocalRepositoryMultiReplication("foo-rep", new()
{
RepoKey = providerTestSource.Key,
CronExp = "0 0 * * * ?",
EnableEventReplication = true,
Replications = new[]
{
new Artifactory.Inputs.LocalRepositoryMultiReplicationReplicationArgs
{
Url = providerTestDest.Key.Apply(key => $"{artifactoryUrl}/artifactory/{key}"),
Username = "$var.artifactory_username",
Password = "$var.artifactory_password",
Enabled = true,
},
new Artifactory.Inputs.LocalRepositoryMultiReplicationReplicationArgs
{
Url = providerTestDest1.Key.Apply(key => $"{artifactoryUrl}/artifactory/{key}"),
Username = "$var.artifactory_username",
Password = "$var.artifactory_password",
Enabled = 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.LocalRepositoryMultiReplication;
import com.pulumi.artifactory.LocalRepositoryMultiReplicationArgs;
import com.pulumi.artifactory.inputs.LocalRepositoryMultiReplicationReplicationArgs;
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");
final var artifactoryUsername = config.get("artifactoryUsername");
final var artifactoryPassword = config.get("artifactoryPassword");
// Create a replication between two artifactory local repositories
var providerTestSource = new LocalMavenRepository("providerTestSource", LocalMavenRepositoryArgs.builder()
.key("provider_test_source")
.build());
var providerTestDest = new LocalMavenRepository("providerTestDest", LocalMavenRepositoryArgs.builder()
.key("provider_test_dest")
.build());
var providerTestDest1 = new LocalMavenRepository("providerTestDest1", LocalMavenRepositoryArgs.builder()
.key("provider_test_dest1")
.build());
var foo_rep = new LocalRepositoryMultiReplication("foo-rep", LocalRepositoryMultiReplicationArgs.builder()
.repoKey(providerTestSource.key())
.cronExp("0 0 * * * ?")
.enableEventReplication(true)
.replications(
LocalRepositoryMultiReplicationReplicationArgs.builder()
.url(providerTestDest.key().applyValue(key -> String.format("%s/artifactory/%s", artifactoryUrl,key)))
.username("$var.artifactory_username")
.password("$var.artifactory_password")
.enabled(true)
.build(),
LocalRepositoryMultiReplicationReplicationArgs.builder()
.url(providerTestDest1.key().applyValue(key -> String.format("%s/artifactory/%s", artifactoryUrl,key)))
.username("$var.artifactory_username")
.password("$var.artifactory_password")
.enabled(true)
.build())
.build());
}
}
configuration:
artifactoryUrl:
type: string
artifactoryUsername:
type: string
artifactoryPassword:
type: string
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:LocalMavenRepository
name: provider_test_dest
properties:
key: provider_test_dest
providerTestDest1:
type: artifactory:LocalMavenRepository
name: provider_test_dest1
properties:
key: provider_test_dest1
foo-rep:
type: artifactory:LocalRepositoryMultiReplication
properties:
repoKey: ${providerTestSource.key}
cronExp: 0 0 * * * ?
enableEventReplication: true
replications:
- url: ${artifactoryUrl}/artifactory/${providerTestDest.key}
username: $var.artifactory_username
password: $var.artifactory_password
enabled: true
- url: ${artifactoryUrl}/artifactory/${providerTestDest1.key}
username: $var.artifactory_username
password: $var.artifactory_password
enabled: true
Create LocalRepositoryMultiReplication Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LocalRepositoryMultiReplication(name: string, args: LocalRepositoryMultiReplicationArgs, opts?: CustomResourceOptions);
@overload
def LocalRepositoryMultiReplication(resource_name: str,
args: LocalRepositoryMultiReplicationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LocalRepositoryMultiReplication(resource_name: str,
opts: Optional[ResourceOptions] = None,
cron_exp: Optional[str] = None,
repo_key: Optional[str] = None,
enable_event_replication: Optional[bool] = None,
replications: Optional[Sequence[LocalRepositoryMultiReplicationReplicationArgs]] = None)
func NewLocalRepositoryMultiReplication(ctx *Context, name string, args LocalRepositoryMultiReplicationArgs, opts ...ResourceOption) (*LocalRepositoryMultiReplication, error)
public LocalRepositoryMultiReplication(string name, LocalRepositoryMultiReplicationArgs args, CustomResourceOptions? opts = null)
public LocalRepositoryMultiReplication(String name, LocalRepositoryMultiReplicationArgs args)
public LocalRepositoryMultiReplication(String name, LocalRepositoryMultiReplicationArgs args, CustomResourceOptions options)
type: artifactory:LocalRepositoryMultiReplication
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 LocalRepositoryMultiReplicationArgs
- 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 LocalRepositoryMultiReplicationArgs
- 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 LocalRepositoryMultiReplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LocalRepositoryMultiReplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LocalRepositoryMultiReplicationArgs
- 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 localRepositoryMultiReplicationResource = new Artifactory.LocalRepositoryMultiReplication("localRepositoryMultiReplicationResource", new()
{
CronExp = "string",
RepoKey = "string",
EnableEventReplication = false,
Replications = new[]
{
new Artifactory.Inputs.LocalRepositoryMultiReplicationReplicationArgs
{
Url = "string",
Username = "string",
ReplicationKey = "string",
IncludePathPrefixPattern = "string",
Password = "string",
Proxy = "string",
CheckBinaryExistenceInFilestore = false,
SocketTimeoutMillis = 0,
SyncDeletes = false,
SyncProperties = false,
SyncStatistics = false,
ExcludePathPrefixPattern = "string",
Enabled = false,
},
},
});
example, err := artifactory.NewLocalRepositoryMultiReplication(ctx, "localRepositoryMultiReplicationResource", &artifactory.LocalRepositoryMultiReplicationArgs{
CronExp: pulumi.String("string"),
RepoKey: pulumi.String("string"),
EnableEventReplication: pulumi.Bool(false),
Replications: artifactory.LocalRepositoryMultiReplicationReplicationArray{
&artifactory.LocalRepositoryMultiReplicationReplicationArgs{
Url: pulumi.String("string"),
Username: pulumi.String("string"),
ReplicationKey: pulumi.String("string"),
IncludePathPrefixPattern: pulumi.String("string"),
Password: pulumi.String("string"),
Proxy: pulumi.String("string"),
CheckBinaryExistenceInFilestore: pulumi.Bool(false),
SocketTimeoutMillis: pulumi.Int(0),
SyncDeletes: pulumi.Bool(false),
SyncProperties: pulumi.Bool(false),
SyncStatistics: pulumi.Bool(false),
ExcludePathPrefixPattern: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
},
})
var localRepositoryMultiReplicationResource = new LocalRepositoryMultiReplication("localRepositoryMultiReplicationResource", LocalRepositoryMultiReplicationArgs.builder()
.cronExp("string")
.repoKey("string")
.enableEventReplication(false)
.replications(LocalRepositoryMultiReplicationReplicationArgs.builder()
.url("string")
.username("string")
.replicationKey("string")
.includePathPrefixPattern("string")
.password("string")
.proxy("string")
.checkBinaryExistenceInFilestore(false)
.socketTimeoutMillis(0)
.syncDeletes(false)
.syncProperties(false)
.syncStatistics(false)
.excludePathPrefixPattern("string")
.enabled(false)
.build())
.build());
local_repository_multi_replication_resource = artifactory.LocalRepositoryMultiReplication("localRepositoryMultiReplicationResource",
cron_exp="string",
repo_key="string",
enable_event_replication=False,
replications=[artifactory.LocalRepositoryMultiReplicationReplicationArgs(
url="string",
username="string",
replication_key="string",
include_path_prefix_pattern="string",
password="string",
proxy="string",
check_binary_existence_in_filestore=False,
socket_timeout_millis=0,
sync_deletes=False,
sync_properties=False,
sync_statistics=False,
exclude_path_prefix_pattern="string",
enabled=False,
)])
const localRepositoryMultiReplicationResource = new artifactory.LocalRepositoryMultiReplication("localRepositoryMultiReplicationResource", {
cronExp: "string",
repoKey: "string",
enableEventReplication: false,
replications: [{
url: "string",
username: "string",
replicationKey: "string",
includePathPrefixPattern: "string",
password: "string",
proxy: "string",
checkBinaryExistenceInFilestore: false,
socketTimeoutMillis: 0,
syncDeletes: false,
syncProperties: false,
syncStatistics: false,
excludePathPrefixPattern: "string",
enabled: false,
}],
});
type: artifactory:LocalRepositoryMultiReplication
properties:
cronExp: string
enableEventReplication: false
replications:
- checkBinaryExistenceInFilestore: false
enabled: false
excludePathPrefixPattern: string
includePathPrefixPattern: string
password: string
proxy: string
replicationKey: string
socketTimeoutMillis: 0
syncDeletes: false
syncProperties: false
syncStatistics: false
url: string
username: string
repoKey: string
LocalRepositoryMultiReplication Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The LocalRepositoryMultiReplication resource accepts the following input properties:
- 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. - Repo
Key string - Repository name.
- 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. add, deleted or property change. Default value is
false
. - Replications
List<Local
Repository Multi Replication Replication> - List of replications minimum 1 element.
- 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. - Repo
Key string - Repository name.
- 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. add, deleted or property change. Default value is
false
. - Replications
[]Local
Repository Multi Replication Replication Args - List of replications minimum 1 element.
- 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. - repo
Key String - Repository name.
- 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. add, deleted or property change. Default value is
false
. - replications
List<Local
Repository Multi Replication Replication> - List of replications minimum 1 element.
- 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. - repo
Key string - Repository name.
- 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. add, deleted or property change. Default value is
false
. - replications
Local
Repository Multi Replication Replication[] - List of replications minimum 1 element.
- 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. - repo_
key str - Repository name.
- 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. add, deleted or property change. Default value is
false
. - replications
Sequence[Local
Repository Multi Replication Replication Args] - List of replications minimum 1 element.
- 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. - repo
Key String - Repository name.
- 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. add, deleted or property change. Default value is
false
. - replications List<Property Map>
- List of replications minimum 1 element.
Outputs
All input properties are implicitly available as output properties. Additionally, the LocalRepositoryMultiReplication 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 LocalRepositoryMultiReplication Resource
Get an existing LocalRepositoryMultiReplication 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?: LocalRepositoryMultiReplicationState, opts?: CustomResourceOptions): LocalRepositoryMultiReplication
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cron_exp: Optional[str] = None,
enable_event_replication: Optional[bool] = None,
replications: Optional[Sequence[LocalRepositoryMultiReplicationReplicationArgs]] = None,
repo_key: Optional[str] = None) -> LocalRepositoryMultiReplication
func GetLocalRepositoryMultiReplication(ctx *Context, name string, id IDInput, state *LocalRepositoryMultiReplicationState, opts ...ResourceOption) (*LocalRepositoryMultiReplication, error)
public static LocalRepositoryMultiReplication Get(string name, Input<string> id, LocalRepositoryMultiReplicationState? state, CustomResourceOptions? opts = null)
public static LocalRepositoryMultiReplication get(String name, Output<String> id, LocalRepositoryMultiReplicationState 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.
- 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. add, deleted or property change. Default value is
false
. - Replications
List<Local
Repository Multi Replication Replication> - List of replications minimum 1 element.
- Repo
Key string - Repository name.
- 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. add, deleted or property change. Default value is
false
. - Replications
[]Local
Repository Multi Replication Replication Args - List of replications minimum 1 element.
- Repo
Key string - Repository name.
- 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. add, deleted or property change. Default value is
false
. - replications
List<Local
Repository Multi Replication Replication> - List of replications minimum 1 element.
- repo
Key String - Repository name.
- 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. add, deleted or property change. Default value is
false
. - replications
Local
Repository Multi Replication Replication[] - List of replications minimum 1 element.
- repo
Key string - Repository name.
- 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. add, deleted or property change. Default value is
false
. - replications
Sequence[Local
Repository Multi Replication Replication Args] - List of replications minimum 1 element.
- repo_
key str - Repository name.
- 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. add, deleted or property change. Default value is
false
. - replications List<Property Map>
- List of replications minimum 1 element.
- repo
Key String - Repository name.
Supporting Types
LocalRepositoryMultiReplicationReplication, LocalRepositoryMultiReplicationReplicationArgs
- Url string
- The URL of the target local repository on a remote Artifactory server. Use the format
https://<artifactory_url>/artifactory/<repository_name>
. - Username string
- Username on the remote Artifactory instance.
- Check
Binary boolExistence In Filestore - 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. - Enabled bool
- When set, enables replication of this repository to the target specified in
url
attribute. Default value istrue
. - Exclude
Path stringPrefix Pattern - 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 stringPrefix Pattern - 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(**/*)
. - Password string
- Use either the HTTP authentication password or identity token.
- Proxy string
- Proxy key from Artifactory Proxies settings. The proxy configuration will be used when communicating with the remote instance.
- Replication
Key string - Replication ID, the value is unknown until the resource is created. Can't be set or updated.
- Socket
Timeout intMillis - The network timeout in milliseconds to use for remote operations. Default value is
15000
. - 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
. - Sync
Statistics bool - When set, the task also synchronizes artifact download statistics. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery. Default value is
false
- Url string
- The URL of the target local repository on a remote Artifactory server. Use the format
https://<artifactory_url>/artifactory/<repository_name>
. - Username string
- Username on the remote Artifactory instance.
- Check
Binary boolExistence In Filestore - 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. - Enabled bool
- When set, enables replication of this repository to the target specified in
url
attribute. Default value istrue
. - Exclude
Path stringPrefix Pattern - 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 stringPrefix Pattern - 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(**/*)
. - Password string
- Use either the HTTP authentication password or identity token.
- Proxy string
- Proxy key from Artifactory Proxies settings. The proxy configuration will be used when communicating with the remote instance.
- Replication
Key string - Replication ID, the value is unknown until the resource is created. Can't be set or updated.
- Socket
Timeout intMillis - The network timeout in milliseconds to use for remote operations. Default value is
15000
. - 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
. - Sync
Statistics bool - When set, the task also synchronizes artifact download statistics. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery. Default value is
false
- url String
- The URL of the target local repository on a remote Artifactory server. Use the format
https://<artifactory_url>/artifactory/<repository_name>
. - username String
- Username on the remote Artifactory instance.
- check
Binary BooleanExistence In Filestore - 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. - enabled Boolean
- When set, enables replication of this repository to the target specified in
url
attribute. Default value istrue
. - exclude
Path StringPrefix Pattern - 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 StringPrefix Pattern - 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(**/*)
. - password String
- Use either the HTTP authentication password or identity token.
- proxy String
- Proxy key from Artifactory Proxies settings. The proxy configuration will be used when communicating with the remote instance.
- replication
Key String - Replication ID, the value is unknown until the resource is created. Can't be set or updated.
- socket
Timeout IntegerMillis - The network timeout in milliseconds to use for remote operations. Default value is
15000
. - sync
Deletes 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
. - sync
Properties Boolean - When set, the task also synchronizes the properties of replicated artifacts. Default value is
true
. - sync
Statistics Boolean - When set, the task also synchronizes artifact download statistics. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery. Default value is
false
- url string
- The URL of the target local repository on a remote Artifactory server. Use the format
https://<artifactory_url>/artifactory/<repository_name>
. - username string
- Username on the remote Artifactory instance.
- check
Binary booleanExistence In Filestore - 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. - enabled boolean
- When set, enables replication of this repository to the target specified in
url
attribute. Default value istrue
. - exclude
Path stringPrefix Pattern - 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 stringPrefix Pattern - 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(**/*)
. - password string
- Use either the HTTP authentication password or identity token.
- proxy string
- Proxy key from Artifactory Proxies settings. The proxy configuration will be used when communicating with the remote instance.
- replication
Key string - Replication ID, the value is unknown until the resource is created. Can't be set or updated.
- socket
Timeout numberMillis - The network timeout in milliseconds to use for remote operations. Default value is
15000
. - sync
Deletes 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
. - sync
Properties boolean - When set, the task also synchronizes the properties of replicated artifacts. Default value is
true
. - sync
Statistics boolean - When set, the task also synchronizes artifact download statistics. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery. Default value is
false
- url str
- The URL of the target local repository on a remote Artifactory server. Use the format
https://<artifactory_url>/artifactory/<repository_name>
. - username str
- Username on the remote Artifactory instance.
- check_
binary_ boolexistence_ in_ filestore - 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. - enabled bool
- When set, enables replication of this repository to the target specified in
url
attribute. Default value istrue
. - exclude_
path_ strprefix_ pattern - 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_ strprefix_ pattern - 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(**/*)
. - password str
- Use either the HTTP authentication password or identity token.
- proxy str
- Proxy key from Artifactory Proxies settings. The proxy configuration will be used when communicating with the remote instance.
- replication_
key str - Replication ID, the value is unknown until the resource is created. Can't be set or updated.
- socket_
timeout_ intmillis - The network timeout in milliseconds to use for remote operations. Default value is
15000
. - 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
. - sync_
statistics bool - When set, the task also synchronizes artifact download statistics. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery. Default value is
false
- url String
- The URL of the target local repository on a remote Artifactory server. Use the format
https://<artifactory_url>/artifactory/<repository_name>
. - username String
- Username on the remote Artifactory instance.
- check
Binary BooleanExistence In Filestore - 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. - enabled Boolean
- When set, enables replication of this repository to the target specified in
url
attribute. Default value istrue
. - exclude
Path StringPrefix Pattern - 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 StringPrefix Pattern - 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(**/*)
. - password String
- Use either the HTTP authentication password or identity token.
- proxy String
- Proxy key from Artifactory Proxies settings. The proxy configuration will be used when communicating with the remote instance.
- replication
Key String - Replication ID, the value is unknown until the resource is created. Can't be set or updated.
- socket
Timeout NumberMillis - The network timeout in milliseconds to use for remote operations. Default value is
15000
. - sync
Deletes 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
. - sync
Properties Boolean - When set, the task also synchronizes the properties of replicated artifacts. Default value is
true
. - sync
Statistics Boolean - When set, the task also synchronizes artifact download statistics. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery. Default value is
false
Import
Push replication configs can be imported using their repo key, e.g.
$ pulumi import artifactory:index/localRepositoryMultiReplication:LocalRepositoryMultiReplication 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.