1. Packages
  2. Artifactory
  3. API Docs
  4. PullReplication
artifactory v6.7.0 published on Friday, Apr 19, 2024 by Pulumi

artifactory.PullReplication

Explore with Pulumi AI

artifactory logo
artifactory v6.7.0 published on Friday, Apr 19, 2024 by Pulumi

    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("providerTestSource", {key: "provider_test_source"});
    const providerTestDest = new artifactory.RemoteMavenRepository("providerTestDest", {
        key: "provider_test_dest",
        password: "bar",
        url: `https://example.com/artifactory/${artifactory_local_maven_repository.artifactory_local_maven_repository.key}`,
        username: "foo",
    });
    const remote_rep = new artifactory.PullReplication("remote-rep", {
        cronExp: "0 0 * * * ?",
        enableEventReplication: true,
        repoKey: providerTestDest.key,
    });
    
    import pulumi
    import pulumi_artifactory as artifactory
    
    # Create a replication between two artifactory local repositories
    provider_test_source = artifactory.LocalMavenRepository("providerTestSource", key="provider_test_source")
    provider_test_dest = artifactory.RemoteMavenRepository("providerTestDest",
        key="provider_test_dest",
        password="bar",
        url=f"https://example.com/artifactory/{artifactory_local_maven_repository['artifactory_local_maven_repository']['key']}",
        username="foo")
    remote_rep = artifactory.PullReplication("remote-rep",
        cron_exp="0 0 * * * ?",
        enable_event_replication=True,
        repo_key=provider_test_dest.key)
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-artifactory/sdk/v6/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, "providerTestSource", &artifactory.LocalMavenRepositoryArgs{
    			Key: pulumi.String("provider_test_source"),
    		})
    		if err != nil {
    			return err
    		}
    		providerTestDest, err := artifactory.NewRemoteMavenRepository(ctx, "providerTestDest", &artifactory.RemoteMavenRepositoryArgs{
    			Key:      pulumi.String("provider_test_dest"),
    			Password: pulumi.String("bar"),
    			Url:      pulumi.String(fmt.Sprintf("https://example.com/artifactory/%v", artifactory_local_maven_repository.Artifactory_local_maven_repository.Key)),
    			Username: pulumi.String("foo"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = artifactory.NewPullReplication(ctx, "remote-rep", &artifactory.PullReplicationArgs{
    			CronExp:                pulumi.String("0 0 * * * ?"),
    			EnableEventReplication: pulumi.Bool(true),
    			RepoKey:                providerTestDest.Key,
    		})
    		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("providerTestSource", new()
        {
            Key = "provider_test_source",
        });
    
        var providerTestDest = new Artifactory.RemoteMavenRepository("providerTestDest", new()
        {
            Key = "provider_test_dest",
            Password = "bar",
            Url = $"https://example.com/artifactory/{artifactory_local_maven_repository.Artifactory_local_maven_repository.Key}",
            Username = "foo",
        });
    
        var remote_rep = new Artifactory.PullReplication("remote-rep", new()
        {
            CronExp = "0 0 * * * ?",
            EnableEventReplication = true,
            RepoKey = providerTestDest.Key,
        });
    
    });
    
    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")
                .password("bar")
                .url(String.format("https://example.com/artifactory/%s", artifactory_local_maven_repository.artifactory_local_maven_repository().key()))
                .username("foo")
                .build());
    
            var remote_rep = new PullReplication("remote-rep", PullReplicationArgs.builder()        
                .cronExp("0 0 * * * ?")
                .enableEventReplication(true)
                .repoKey(providerTestDest.key())
                .build());
    
        }
    }
    
    resources:
      # Create a replication between two artifactory local repositories
      providerTestSource:
        type: artifactory:LocalMavenRepository
        properties:
          key: provider_test_source
      providerTestDest:
        type: artifactory:RemoteMavenRepository
        properties:
          key: provider_test_dest
          password: bar
          url: https://example.com/artifactory/${artifactory_local_maven_repository.artifactory_local_maven_repository.key}
          username: foo
      remote-rep:
        type: artifactory:PullReplication
        properties:
          cronExp: 0 0 * * * ?
          enableEventReplication: true
          repoKey: ${providerTestDest.key}
    

    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.

    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

    The PullReplication resource accepts the following input properties:

    RepoKey string
    Repository name.
    CheckBinaryExistenceInFilestore bool
    When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    CronExp string
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    EnableEventReplication bool
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. added, deleted or property change.
    Enabled bool
    When set, this replication will be enabled when saved.
    Password string
    Required for local repository, but not needed for remote repository.
    PathPrefix string
    Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
    Proxy string
    Proxy key from Artifactory Proxies setting
    SocketTimeoutMillis int
    SyncDeletes bool
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
    SyncProperties bool
    When set, the task also synchronizes the properties of replicated artifacts.
    SyncStatistics bool
    When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
    Url string
    The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
    Username string
    Required for local repository, but not needed for remote repository.
    RepoKey string
    Repository name.
    CheckBinaryExistenceInFilestore bool
    When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    CronExp string
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    EnableEventReplication bool
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. added, deleted or property change.
    Enabled bool
    When set, this replication will be enabled when saved.
    Password string
    Required for local repository, but not needed for remote repository.
    PathPrefix string
    Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
    Proxy string
    Proxy key from Artifactory Proxies setting
    SocketTimeoutMillis int
    SyncDeletes bool
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
    SyncProperties bool
    When set, the task also synchronizes the properties of replicated artifacts.
    SyncStatistics bool
    When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
    Url string
    The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
    Username string
    Required for local repository, but not needed for remote repository.
    repoKey String
    Repository name.
    checkBinaryExistenceInFilestore Boolean
    When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cronExp String
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enableEventReplication Boolean
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. added, deleted or property change.
    enabled Boolean
    When set, this replication will be enabled when saved.
    password String
    Required for local repository, but not needed for remote repository.
    pathPrefix String
    Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
    proxy String
    Proxy key from Artifactory Proxies setting
    socketTimeoutMillis Integer
    syncDeletes Boolean
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
    syncProperties Boolean
    When set, the task also synchronizes the properties of replicated artifacts.
    syncStatistics Boolean
    When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
    url String
    The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
    username String
    Required for local repository, but not needed for remote repository.
    repoKey string
    Repository name.
    checkBinaryExistenceInFilestore boolean
    When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cronExp string
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enableEventReplication boolean
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. added, deleted or property change.
    enabled boolean
    When set, this replication will be enabled when saved.
    password string
    Required for local repository, but not needed for remote repository.
    pathPrefix string
    Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
    proxy string
    Proxy key from Artifactory Proxies setting
    socketTimeoutMillis number
    syncDeletes boolean
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
    syncProperties boolean
    When set, the task also synchronizes the properties of replicated artifacts.
    syncStatistics boolean
    When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
    url 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_existence_in_filestore bool
    When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cron_exp str
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enable_event_replication bool
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. added, deleted or property change.
    enabled bool
    When set, this replication will be enabled when saved.
    password str
    Required for local repository, but not needed for remote repository.
    path_prefix str
    Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
    proxy str
    Proxy key from Artifactory Proxies setting
    socket_timeout_millis int
    sync_deletes bool
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
    sync_properties bool
    When set, the task also synchronizes the properties of replicated artifacts.
    sync_statistics bool
    When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
    url str
    The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
    username str
    Required for local repository, but not needed for remote repository.
    repoKey String
    Repository name.
    checkBinaryExistenceInFilestore Boolean
    When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cronExp String
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enableEventReplication Boolean
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. added, deleted or property change.
    enabled Boolean
    When set, this replication will be enabled when saved.
    password String
    Required for local repository, but not needed for remote repository.
    pathPrefix String
    Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
    proxy String
    Proxy key from Artifactory Proxies setting
    socketTimeoutMillis Number
    syncDeletes Boolean
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
    syncProperties Boolean
    When set, the task also synchronizes the properties of replicated artifacts.
    syncStatistics Boolean
    When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
    url 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.
    The following state arguments are supported:
    CheckBinaryExistenceInFilestore bool
    When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    CronExp string
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    EnableEventReplication bool
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. added, deleted or property change.
    Enabled bool
    When set, this replication will be enabled when saved.
    Password string
    Required for local repository, but not needed for remote repository.
    PathPrefix string
    Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
    Proxy string
    Proxy key from Artifactory Proxies setting
    RepoKey string
    Repository name.
    SocketTimeoutMillis int
    SyncDeletes bool
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
    SyncProperties bool
    When set, the task also synchronizes the properties of replicated artifacts.
    SyncStatistics bool
    When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
    Url string
    The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
    Username string
    Required for local repository, but not needed for remote repository.
    CheckBinaryExistenceInFilestore bool
    When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    CronExp string
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    EnableEventReplication bool
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. added, deleted or property change.
    Enabled bool
    When set, this replication will be enabled when saved.
    Password string
    Required for local repository, but not needed for remote repository.
    PathPrefix string
    Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
    Proxy string
    Proxy key from Artifactory Proxies setting
    RepoKey string
    Repository name.
    SocketTimeoutMillis int
    SyncDeletes bool
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
    SyncProperties bool
    When set, the task also synchronizes the properties of replicated artifacts.
    SyncStatistics bool
    When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
    Url string
    The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
    Username string
    Required for local repository, but not needed for remote repository.
    checkBinaryExistenceInFilestore Boolean
    When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cronExp String
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enableEventReplication Boolean
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. added, deleted or property change.
    enabled Boolean
    When set, this replication will be enabled when saved.
    password String
    Required for local repository, but not needed for remote repository.
    pathPrefix String
    Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
    proxy String
    Proxy key from Artifactory Proxies setting
    repoKey String
    Repository name.
    socketTimeoutMillis Integer
    syncDeletes Boolean
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
    syncProperties Boolean
    When set, the task also synchronizes the properties of replicated artifacts.
    syncStatistics Boolean
    When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
    url String
    The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
    username String
    Required for local repository, but not needed for remote repository.
    checkBinaryExistenceInFilestore boolean
    When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cronExp string
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enableEventReplication boolean
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. added, deleted or property change.
    enabled boolean
    When set, this replication will be enabled when saved.
    password string
    Required for local repository, but not needed for remote repository.
    pathPrefix string
    Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
    proxy string
    Proxy key from Artifactory Proxies setting
    repoKey string
    Repository name.
    socketTimeoutMillis number
    syncDeletes boolean
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
    syncProperties boolean
    When set, the task also synchronizes the properties of replicated artifacts.
    syncStatistics boolean
    When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
    url string
    The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
    username string
    Required for local repository, but not needed for remote repository.
    check_binary_existence_in_filestore bool
    When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cron_exp str
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enable_event_replication bool
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. added, deleted or property change.
    enabled bool
    When set, this replication will be enabled when saved.
    password str
    Required for local repository, but not needed for remote repository.
    path_prefix str
    Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
    proxy str
    Proxy key from Artifactory Proxies setting
    repo_key str
    Repository name.
    socket_timeout_millis int
    sync_deletes bool
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
    sync_properties bool
    When set, the task also synchronizes the properties of replicated artifacts.
    sync_statistics bool
    When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
    url str
    The URL of the target local repository on a remote Artifactory server. For some package types, you need to prefix the repository key in the URL with api/. For a list of package types where this is required, see the note. Required for local repository, but not needed for remote repository.
    username str
    Required for local repository, but not needed for remote repository.
    checkBinaryExistenceInFilestore Boolean
    When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum-Based Storage.
    cronExp String
    A valid CRON expression that you can use to control replication frequency. Eg: 0 0 12 * * ? *, 0 0 2 ? * MON-SAT *. Note: use 6 or 7 parts format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year (optional). Specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by ?. Incorrect: * 5,7,9 14/2 * * WED,SAT *, correct: * 5,7,9 14/2 ? * WED,SAT *. See details in Cron Trigger Tutorial.
    enableEventReplication Boolean
    When set, each event will trigger replication of the artifacts changed in this event. This can be any type of event on artifact, e.g. added, deleted or property change.
    enabled Boolean
    When set, this replication will be enabled when saved.
    password String
    Required for local repository, but not needed for remote repository.
    pathPrefix String
    Only artifacts that located in path that matches the subpath within the remote repository will be replicated.
    proxy String
    Proxy key from Artifactory Proxies setting
    repoKey String
    Repository name.
    socketTimeoutMillis Number
    syncDeletes Boolean
    When set, items that were deleted locally should also be deleted remotely (also applies to properties metadata).
    syncProperties Boolean
    When set, the task also synchronizes the properties of replicated artifacts.
    syncStatistics Boolean
    When set, artifact download statistics will also be replicated. Set to avoid inadvertent cleanup at the target instance when setting up replication for disaster recovery.
    url 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.
    artifactory logo
    artifactory v6.7.0 published on Friday, Apr 19, 2024 by Pulumi