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

artifactory.PushReplication

Explore with Pulumi AI

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

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

    Provides an Artifactory push replication resource. This can be used to create and manage Artifactory push 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 requires Artifactory Enterprise license.

    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 foo_rep = new artifactory.PushReplication("foo-rep", {
        repoKey: providerTestSource.key,
        cronExp: "0 0 * * * ?",
        enableEventReplication: true,
        replications: [{
            url: pulumi.interpolate`${artifactoryUrl}/${providerTestDest.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")
    foo_rep = artifactory.PushReplication("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}/{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
    		}
    		_, err = artifactory.NewPushReplication(ctx, "foo-rep", &artifactory.PushReplicationArgs{
    			RepoKey:                providerTestSource.Key,
    			CronExp:                pulumi.String("0 0 * * * ?"),
    			EnableEventReplication: pulumi.Bool(true),
    			Replications: artifactory.PushReplicationReplicationArray{
    				&artifactory.PushReplicationReplicationArgs{
    					Url: providerTestDest.Key.ApplyT(func(key string) (string, error) {
    						return fmt.Sprintf("%v/%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 foo_rep = new Artifactory.PushReplication("foo-rep", new()
        {
            RepoKey = providerTestSource.Key,
            CronExp = "0 0 * * * ?",
            EnableEventReplication = true,
            Replications = new[]
            {
                new Artifactory.Inputs.PushReplicationReplicationArgs
                {
                    Url = providerTestDest.Key.Apply(key => $"{artifactoryUrl}/{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.PushReplication;
    import com.pulumi.artifactory.PushReplicationArgs;
    import com.pulumi.artifactory.inputs.PushReplicationReplicationArgs;
    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 foo_rep = new PushReplication("foo-rep", PushReplicationArgs.builder()
                .repoKey(providerTestSource.key())
                .cronExp("0 0 * * * ?")
                .enableEventReplication(true)
                .replications(PushReplicationReplicationArgs.builder()
                    .url(providerTestDest.key().applyValue(key -> String.format("%s/%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
      foo-rep:
        type: artifactory:PushReplication
        properties:
          repoKey: ${providerTestSource.key}
          cronExp: 0 0 * * * ?
          enableEventReplication: true
          replications:
            - url: ${artifactoryUrl}/${providerTestDest.key}
              username: $var.artifactory_username
              password: $var.artifactory_password
              enabled: true
    

    Create PushReplication Resource

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

    Constructor syntax

    new PushReplication(name: string, args: PushReplicationArgs, opts?: CustomResourceOptions);
    @overload
    def PushReplication(resource_name: str,
                        args: PushReplicationArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def PushReplication(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[PushReplicationReplicationArgs]] = None)
    func NewPushReplication(ctx *Context, name string, args PushReplicationArgs, opts ...ResourceOption) (*PushReplication, error)
    public PushReplication(string name, PushReplicationArgs args, CustomResourceOptions? opts = null)
    public PushReplication(String name, PushReplicationArgs args)
    public PushReplication(String name, PushReplicationArgs args, CustomResourceOptions options)
    
    type: artifactory:PushReplication
    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 PushReplicationArgs
    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 PushReplicationArgs
    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 PushReplicationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PushReplicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PushReplicationArgs
    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 pushReplicationResource = new Artifactory.PushReplication("pushReplicationResource", new()
    {
        CronExp = "string",
        RepoKey = "string",
        EnableEventReplication = false,
        Replications = new[]
        {
            new Artifactory.Inputs.PushReplicationReplicationArgs
            {
                Password = "string",
                Url = "string",
                Username = "string",
                CheckBinaryExistenceInFilestore = false,
                Enabled = false,
                PathPrefix = "string",
                Proxy = "string",
                SocketTimeoutMillis = 0,
                SyncDeletes = false,
                SyncProperties = false,
                SyncStatistics = false,
            },
        },
    });
    
    example, err := artifactory.NewPushReplication(ctx, "pushReplicationResource", &artifactory.PushReplicationArgs{
    	CronExp:                pulumi.String("string"),
    	RepoKey:                pulumi.String("string"),
    	EnableEventReplication: pulumi.Bool(false),
    	Replications: artifactory.PushReplicationReplicationArray{
    		&artifactory.PushReplicationReplicationArgs{
    			Password:                        pulumi.String("string"),
    			Url:                             pulumi.String("string"),
    			Username:                        pulumi.String("string"),
    			CheckBinaryExistenceInFilestore: pulumi.Bool(false),
    			Enabled:                         pulumi.Bool(false),
    			PathPrefix:                      pulumi.String("string"),
    			Proxy:                           pulumi.String("string"),
    			SocketTimeoutMillis:             pulumi.Int(0),
    			SyncDeletes:                     pulumi.Bool(false),
    			SyncProperties:                  pulumi.Bool(false),
    			SyncStatistics:                  pulumi.Bool(false),
    		},
    	},
    })
    
    var pushReplicationResource = new PushReplication("pushReplicationResource", PushReplicationArgs.builder()
        .cronExp("string")
        .repoKey("string")
        .enableEventReplication(false)
        .replications(PushReplicationReplicationArgs.builder()
            .password("string")
            .url("string")
            .username("string")
            .checkBinaryExistenceInFilestore(false)
            .enabled(false)
            .pathPrefix("string")
            .proxy("string")
            .socketTimeoutMillis(0)
            .syncDeletes(false)
            .syncProperties(false)
            .syncStatistics(false)
            .build())
        .build());
    
    push_replication_resource = artifactory.PushReplication("pushReplicationResource",
        cron_exp="string",
        repo_key="string",
        enable_event_replication=False,
        replications=[{
            "password": "string",
            "url": "string",
            "username": "string",
            "check_binary_existence_in_filestore": False,
            "enabled": False,
            "path_prefix": "string",
            "proxy": "string",
            "socket_timeout_millis": 0,
            "sync_deletes": False,
            "sync_properties": False,
            "sync_statistics": False,
        }])
    
    const pushReplicationResource = new artifactory.PushReplication("pushReplicationResource", {
        cronExp: "string",
        repoKey: "string",
        enableEventReplication: false,
        replications: [{
            password: "string",
            url: "string",
            username: "string",
            checkBinaryExistenceInFilestore: false,
            enabled: false,
            pathPrefix: "string",
            proxy: "string",
            socketTimeoutMillis: 0,
            syncDeletes: false,
            syncProperties: false,
            syncStatistics: false,
        }],
    });
    
    type: artifactory:PushReplication
    properties:
        cronExp: string
        enableEventReplication: false
        replications:
            - checkBinaryExistenceInFilestore: false
              enabled: false
              password: string
              pathPrefix: string
              proxy: string
              socketTimeoutMillis: 0
              syncDeletes: false
              syncProperties: false
              syncStatistics: false
              url: string
              username: string
        repoKey: string
    

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

    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.
    RepoKey string
    Repository name.
    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.
    Replications List<PushReplicationReplication>
    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.
    RepoKey string
    Repository name.
    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.
    Replications []PushReplicationReplicationArgs
    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.
    repoKey String
    Repository name.
    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.
    replications List<PushReplicationReplication>
    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.
    repoKey string
    Repository name.
    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.
    replications PushReplicationReplication[]
    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_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.
    replications Sequence[PushReplicationReplicationArgs]
    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.
    repoKey String
    Repository name.
    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.
    replications List<Property Map>

    Outputs

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

    Get an existing PushReplication 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?: PushReplicationState, opts?: CustomResourceOptions): PushReplication
    @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[PushReplicationReplicationArgs]] = None,
            repo_key: Optional[str] = None) -> PushReplication
    func GetPushReplication(ctx *Context, name string, id IDInput, state *PushReplicationState, opts ...ResourceOption) (*PushReplication, error)
    public static PushReplication Get(string name, Input<string> id, PushReplicationState? state, CustomResourceOptions? opts = null)
    public static PushReplication get(String name, Output<String> id, PushReplicationState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    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.
    Replications List<PushReplicationReplication>
    RepoKey string
    Repository name.
    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.
    Replications []PushReplicationReplicationArgs
    RepoKey string
    Repository name.
    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.
    replications List<PushReplicationReplication>
    repoKey String
    Repository name.
    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.
    replications PushReplicationReplication[]
    repoKey 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_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.
    replications Sequence[PushReplicationReplicationArgs]
    repo_key str
    Repository name.
    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.
    replications List<Property Map>
    repoKey String
    Repository name.

    Supporting Types

    PushReplicationReplication, PushReplicationReplicationArgs

    Password string
    Required for local repository, but not needed for remote repository.
    Url string
    The URL of the target local repository on a remote Artifactory server. 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.
    Enabled bool
    When set, this replication will be enabled when saved.
    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 settings. The proxy configuration will be used when communicating with the remote instance.
    SocketTimeoutMillis int
    The network timeout in milliseconds to use for remote operations.
    SyncDeletes bool
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository.
    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.
    Password string
    Required for local repository, but not needed for remote repository.
    Url string
    The URL of the target local repository on a remote Artifactory server. 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.
    Enabled bool
    When set, this replication will be enabled when saved.
    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 settings. The proxy configuration will be used when communicating with the remote instance.
    SocketTimeoutMillis int
    The network timeout in milliseconds to use for remote operations.
    SyncDeletes bool
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository.
    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.
    password String
    Required for local repository, but not needed for remote repository.
    url String
    The URL of the target local repository on a remote Artifactory server. 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.
    enabled Boolean
    When set, this replication will be enabled when saved.
    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 settings. The proxy configuration will be used when communicating with the remote instance.
    socketTimeoutMillis Integer
    The network timeout in milliseconds to use for remote operations.
    syncDeletes Boolean
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository.
    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.
    password string
    Required for local repository, but not needed for remote repository.
    url string
    The URL of the target local repository on a remote Artifactory server. 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.
    enabled boolean
    When set, this replication will be enabled when saved.
    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 settings. The proxy configuration will be used when communicating with the remote instance.
    socketTimeoutMillis number
    The network timeout in milliseconds to use for remote operations.
    syncDeletes boolean
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository.
    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.
    password str
    Required for local repository, but not needed for remote repository.
    url str
    The URL of the target local repository on a remote Artifactory server. Required for local repository, but not needed for remote repository.
    username str
    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.
    enabled bool
    When set, this replication will be enabled when saved.
    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 settings. The proxy configuration will be used when communicating with the remote instance.
    socket_timeout_millis int
    The network timeout in milliseconds to use for remote operations.
    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.
    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.
    password String
    Required for local repository, but not needed for remote repository.
    url String
    The URL of the target local repository on a remote Artifactory server. 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.
    enabled Boolean
    When set, this replication will be enabled when saved.
    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 settings. The proxy configuration will be used when communicating with the remote instance.
    socketTimeoutMillis Number
    The network timeout in milliseconds to use for remote operations.
    syncDeletes Boolean
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata). Note that enabling this option, will delete artifacts on the target that do not exist in the source repository.
    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.

    Import

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

    $ pulumi import artifactory:index/pushReplication:PushReplication foo-rep provider_test_source
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    artifactory pulumi/pulumi-artifactory
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the artifactory Terraform Provider.
    artifactory logo
    artifactory v8.4.0 published on Tuesday, Nov 19, 2024 by Pulumi