1. Packages
  2. Harbor
  3. API Docs
  4. Replication
Harbor v3.10.11 published on Wednesday, Jun 19, 2024 by Pulumiverse

harbor.Replication

Explore with Pulumi AI

harbor logo
Harbor v3.10.11 published on Wednesday, Jun 19, 2024 by Pulumiverse

    Example Usage

    resource "harbor_registry" "main" {
      provider_name = "docker-hub"
      name          = "test_docker_harbor"
      endpoint_url  = "https://hub.docker.com"
    
    }
    
    resource "harbor_replication" "push" {
      name        = "test_push"
      action      = "push"
      registry_id = harbor_registry.main.registry_id
    }
    
    resource "harbor_replication" "alpine" {
      name        = "alpine"
      action      = "pull"
      registry_id = harbor_registry.main.registry_id
      schedule = "0 0/15 * * * *"
      filters {
        name = "library/alpine"
      }
      filters {
        tag = "3.*.*"
      }
      filters {
        resource = "artifact"
      }
      filters {
        labels = ["qa"]
      }
    }
    
    resource "harbor_replication" "alpine" {
      name        = "alpine"
      action      = "push"
      registry_id = harbor_registry.main.registry_id
      schedule = "event_based"
      filters {
        name = "library/alpine"
      }
      filters {
        tag = "3.*.*"
      }
    }
    

    Create Replication Resource

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

    Constructor syntax

    new Replication(name: string, args: ReplicationArgs, opts?: CustomResourceOptions);
    @overload
    def Replication(resource_name: str,
                    args: ReplicationArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Replication(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    action: Optional[str] = None,
                    registry_id: Optional[int] = None,
                    enabled: Optional[bool] = None,
                    description: Optional[str] = None,
                    dest_namespace: Optional[str] = None,
                    dest_namespace_replace: Optional[int] = None,
                    deletion: Optional[bool] = None,
                    execute_on_changed: Optional[bool] = None,
                    filters: Optional[Sequence[ReplicationFilterArgs]] = None,
                    name: Optional[str] = None,
                    override: Optional[bool] = None,
                    copy_by_chunk: Optional[bool] = None,
                    schedule: Optional[str] = None,
                    speed: Optional[int] = None)
    func NewReplication(ctx *Context, name string, args ReplicationArgs, opts ...ResourceOption) (*Replication, error)
    public Replication(string name, ReplicationArgs args, CustomResourceOptions? opts = null)
    public Replication(String name, ReplicationArgs args)
    public Replication(String name, ReplicationArgs args, CustomResourceOptions options)
    
    type: harbor:Replication
    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 ReplicationArgs
    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 ReplicationArgs
    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 ReplicationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReplicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReplicationArgs
    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 replicationResource = new Harbor.Replication("replicationResource", new()
    {
        Action = "string",
        RegistryId = 0,
        Enabled = false,
        Description = "string",
        DestNamespace = "string",
        DestNamespaceReplace = 0,
        Deletion = false,
        ExecuteOnChanged = false,
        Filters = new[]
        {
            new Harbor.Inputs.ReplicationFilterArgs
            {
                Decoration = "string",
                Labels = new[]
                {
                    "string",
                },
                Name = "string",
                Resource = "string",
                Tag = "string",
            },
        },
        Name = "string",
        Override = false,
        CopyByChunk = false,
        Schedule = "string",
        Speed = 0,
    });
    
    example, err := harbor.NewReplication(ctx, "replicationResource", &harbor.ReplicationArgs{
    	Action:               pulumi.String("string"),
    	RegistryId:           pulumi.Int(0),
    	Enabled:              pulumi.Bool(false),
    	Description:          pulumi.String("string"),
    	DestNamespace:        pulumi.String("string"),
    	DestNamespaceReplace: pulumi.Int(0),
    	Deletion:             pulumi.Bool(false),
    	ExecuteOnChanged:     pulumi.Bool(false),
    	Filters: harbor.ReplicationFilterArray{
    		&harbor.ReplicationFilterArgs{
    			Decoration: pulumi.String("string"),
    			Labels: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Name:     pulumi.String("string"),
    			Resource: pulumi.String("string"),
    			Tag:      pulumi.String("string"),
    		},
    	},
    	Name:        pulumi.String("string"),
    	Override:    pulumi.Bool(false),
    	CopyByChunk: pulumi.Bool(false),
    	Schedule:    pulumi.String("string"),
    	Speed:       pulumi.Int(0),
    })
    
    var replicationResource = new Replication("replicationResource", ReplicationArgs.builder()
        .action("string")
        .registryId(0)
        .enabled(false)
        .description("string")
        .destNamespace("string")
        .destNamespaceReplace(0)
        .deletion(false)
        .executeOnChanged(false)
        .filters(ReplicationFilterArgs.builder()
            .decoration("string")
            .labels("string")
            .name("string")
            .resource("string")
            .tag("string")
            .build())
        .name("string")
        .override(false)
        .copyByChunk(false)
        .schedule("string")
        .speed(0)
        .build());
    
    replication_resource = harbor.Replication("replicationResource",
        action="string",
        registry_id=0,
        enabled=False,
        description="string",
        dest_namespace="string",
        dest_namespace_replace=0,
        deletion=False,
        execute_on_changed=False,
        filters=[harbor.ReplicationFilterArgs(
            decoration="string",
            labels=["string"],
            name="string",
            resource="string",
            tag="string",
        )],
        name="string",
        override=False,
        copy_by_chunk=False,
        schedule="string",
        speed=0)
    
    const replicationResource = new harbor.Replication("replicationResource", {
        action: "string",
        registryId: 0,
        enabled: false,
        description: "string",
        destNamespace: "string",
        destNamespaceReplace: 0,
        deletion: false,
        executeOnChanged: false,
        filters: [{
            decoration: "string",
            labels: ["string"],
            name: "string",
            resource: "string",
            tag: "string",
        }],
        name: "string",
        override: false,
        copyByChunk: false,
        schedule: "string",
        speed: 0,
    });
    
    type: harbor:Replication
    properties:
        action: string
        copyByChunk: false
        deletion: false
        description: string
        destNamespace: string
        destNamespaceReplace: 0
        enabled: false
        executeOnChanged: false
        filters:
            - decoration: string
              labels:
                - string
              name: string
              resource: string
              tag: string
        name: string
        override: false
        registryId: 0
        schedule: string
        speed: 0
    

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

    Action string
    RegistryId int
    The registry ID of the Registry Endpoint.
    CopyByChunk bool
    Specify whether to enable the artifact blobs copied by chunks. (Default: false)
    Deletion bool
    Specify whether to delete the remote resources when locally deleted. (Default: false)
    Description string
    Description of the replication policy.
    DestNamespace string
    Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
    DestNamespaceReplace int
    Specify the destination namespace flattening policy. Integers from -1 to 3 are valid values in the harbor API. A value of -1 will 'Flatten All Levels', 0 means 'No Flattening', 1 'Flatten 1 Level', 2 'Flatten 2 Levels', 3 'Flatten 3 Levels' (Default: -1, see Replication Rules for more details)
    Enabled bool
    Specify whether the replication is enabled. (Default: true)
    ExecuteOnChanged bool
    Specify whether to execute the replication rule if new or modified. (Default: false)
    Filters List<Pulumiverse.Harbor.Inputs.ReplicationFilter>
    Name string
    The name of the replication.
    Override bool
    Specify whether to override the resources at the destination if a resources with the same name exist. (Default: true)
    Schedule string
    The scheduled time of when the container register will be push / pull. In cron base format. Hourly "0 0 * * * *", Daily "0 0 0 * * *", Monthly "0 0 0 * * 0". Can be one of the following: event_based, manual, cron format (Default: manual)
    Speed int
    The Maximum network bandwidth in Kbps for each execution. Default is -1 (unlimited).
    Action string
    RegistryId int
    The registry ID of the Registry Endpoint.
    CopyByChunk bool
    Specify whether to enable the artifact blobs copied by chunks. (Default: false)
    Deletion bool
    Specify whether to delete the remote resources when locally deleted. (Default: false)
    Description string
    Description of the replication policy.
    DestNamespace string
    Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
    DestNamespaceReplace int
    Specify the destination namespace flattening policy. Integers from -1 to 3 are valid values in the harbor API. A value of -1 will 'Flatten All Levels', 0 means 'No Flattening', 1 'Flatten 1 Level', 2 'Flatten 2 Levels', 3 'Flatten 3 Levels' (Default: -1, see Replication Rules for more details)
    Enabled bool
    Specify whether the replication is enabled. (Default: true)
    ExecuteOnChanged bool
    Specify whether to execute the replication rule if new or modified. (Default: false)
    Filters []ReplicationFilterArgs
    Name string
    The name of the replication.
    Override bool
    Specify whether to override the resources at the destination if a resources with the same name exist. (Default: true)
    Schedule string
    The scheduled time of when the container register will be push / pull. In cron base format. Hourly "0 0 * * * *", Daily "0 0 0 * * *", Monthly "0 0 0 * * 0". Can be one of the following: event_based, manual, cron format (Default: manual)
    Speed int
    The Maximum network bandwidth in Kbps for each execution. Default is -1 (unlimited).
    action String
    registryId Integer
    The registry ID of the Registry Endpoint.
    copyByChunk Boolean
    Specify whether to enable the artifact blobs copied by chunks. (Default: false)
    deletion Boolean
    Specify whether to delete the remote resources when locally deleted. (Default: false)
    description String
    Description of the replication policy.
    destNamespace String
    Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
    destNamespaceReplace Integer
    Specify the destination namespace flattening policy. Integers from -1 to 3 are valid values in the harbor API. A value of -1 will 'Flatten All Levels', 0 means 'No Flattening', 1 'Flatten 1 Level', 2 'Flatten 2 Levels', 3 'Flatten 3 Levels' (Default: -1, see Replication Rules for more details)
    enabled Boolean
    Specify whether the replication is enabled. (Default: true)
    executeOnChanged Boolean
    Specify whether to execute the replication rule if new or modified. (Default: false)
    filters List<ReplicationFilter>
    name String
    The name of the replication.
    override Boolean
    Specify whether to override the resources at the destination if a resources with the same name exist. (Default: true)
    schedule String
    The scheduled time of when the container register will be push / pull. In cron base format. Hourly "0 0 * * * *", Daily "0 0 0 * * *", Monthly "0 0 0 * * 0". Can be one of the following: event_based, manual, cron format (Default: manual)
    speed Integer
    The Maximum network bandwidth in Kbps for each execution. Default is -1 (unlimited).
    action string
    registryId number
    The registry ID of the Registry Endpoint.
    copyByChunk boolean
    Specify whether to enable the artifact blobs copied by chunks. (Default: false)
    deletion boolean
    Specify whether to delete the remote resources when locally deleted. (Default: false)
    description string
    Description of the replication policy.
    destNamespace string
    Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
    destNamespaceReplace number
    Specify the destination namespace flattening policy. Integers from -1 to 3 are valid values in the harbor API. A value of -1 will 'Flatten All Levels', 0 means 'No Flattening', 1 'Flatten 1 Level', 2 'Flatten 2 Levels', 3 'Flatten 3 Levels' (Default: -1, see Replication Rules for more details)
    enabled boolean
    Specify whether the replication is enabled. (Default: true)
    executeOnChanged boolean
    Specify whether to execute the replication rule if new or modified. (Default: false)
    filters ReplicationFilter[]
    name string
    The name of the replication.
    override boolean
    Specify whether to override the resources at the destination if a resources with the same name exist. (Default: true)
    schedule string
    The scheduled time of when the container register will be push / pull. In cron base format. Hourly "0 0 * * * *", Daily "0 0 0 * * *", Monthly "0 0 0 * * 0". Can be one of the following: event_based, manual, cron format (Default: manual)
    speed number
    The Maximum network bandwidth in Kbps for each execution. Default is -1 (unlimited).
    action str
    registry_id int
    The registry ID of the Registry Endpoint.
    copy_by_chunk bool
    Specify whether to enable the artifact blobs copied by chunks. (Default: false)
    deletion bool
    Specify whether to delete the remote resources when locally deleted. (Default: false)
    description str
    Description of the replication policy.
    dest_namespace str
    Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
    dest_namespace_replace int
    Specify the destination namespace flattening policy. Integers from -1 to 3 are valid values in the harbor API. A value of -1 will 'Flatten All Levels', 0 means 'No Flattening', 1 'Flatten 1 Level', 2 'Flatten 2 Levels', 3 'Flatten 3 Levels' (Default: -1, see Replication Rules for more details)
    enabled bool
    Specify whether the replication is enabled. (Default: true)
    execute_on_changed bool
    Specify whether to execute the replication rule if new or modified. (Default: false)
    filters Sequence[ReplicationFilterArgs]
    name str
    The name of the replication.
    override bool
    Specify whether to override the resources at the destination if a resources with the same name exist. (Default: true)
    schedule str
    The scheduled time of when the container register will be push / pull. In cron base format. Hourly "0 0 * * * *", Daily "0 0 0 * * *", Monthly "0 0 0 * * 0". Can be one of the following: event_based, manual, cron format (Default: manual)
    speed int
    The Maximum network bandwidth in Kbps for each execution. Default is -1 (unlimited).
    action String
    registryId Number
    The registry ID of the Registry Endpoint.
    copyByChunk Boolean
    Specify whether to enable the artifact blobs copied by chunks. (Default: false)
    deletion Boolean
    Specify whether to delete the remote resources when locally deleted. (Default: false)
    description String
    Description of the replication policy.
    destNamespace String
    Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
    destNamespaceReplace Number
    Specify the destination namespace flattening policy. Integers from -1 to 3 are valid values in the harbor API. A value of -1 will 'Flatten All Levels', 0 means 'No Flattening', 1 'Flatten 1 Level', 2 'Flatten 2 Levels', 3 'Flatten 3 Levels' (Default: -1, see Replication Rules for more details)
    enabled Boolean
    Specify whether the replication is enabled. (Default: true)
    executeOnChanged Boolean
    Specify whether to execute the replication rule if new or modified. (Default: false)
    filters List<Property Map>
    name String
    The name of the replication.
    override Boolean
    Specify whether to override the resources at the destination if a resources with the same name exist. (Default: true)
    schedule String
    The scheduled time of when the container register will be push / pull. In cron base format. Hourly "0 0 * * * *", Daily "0 0 0 * * *", Monthly "0 0 0 * * 0". Can be one of the following: event_based, manual, cron format (Default: manual)
    speed Number
    The Maximum network bandwidth in Kbps for each execution. Default is -1 (unlimited).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Replication resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    ReplicationPolicyId int
    Id string
    The provider-assigned unique ID for this managed resource.
    ReplicationPolicyId int
    id String
    The provider-assigned unique ID for this managed resource.
    replicationPolicyId Integer
    id string
    The provider-assigned unique ID for this managed resource.
    replicationPolicyId number
    id str
    The provider-assigned unique ID for this managed resource.
    replication_policy_id int
    id String
    The provider-assigned unique ID for this managed resource.
    replicationPolicyId Number

    Look up Existing Replication Resource

    Get an existing Replication 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?: ReplicationState, opts?: CustomResourceOptions): Replication
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            copy_by_chunk: Optional[bool] = None,
            deletion: Optional[bool] = None,
            description: Optional[str] = None,
            dest_namespace: Optional[str] = None,
            dest_namespace_replace: Optional[int] = None,
            enabled: Optional[bool] = None,
            execute_on_changed: Optional[bool] = None,
            filters: Optional[Sequence[ReplicationFilterArgs]] = None,
            name: Optional[str] = None,
            override: Optional[bool] = None,
            registry_id: Optional[int] = None,
            replication_policy_id: Optional[int] = None,
            schedule: Optional[str] = None,
            speed: Optional[int] = None) -> Replication
    func GetReplication(ctx *Context, name string, id IDInput, state *ReplicationState, opts ...ResourceOption) (*Replication, error)
    public static Replication Get(string name, Input<string> id, ReplicationState? state, CustomResourceOptions? opts = null)
    public static Replication get(String name, Output<String> id, ReplicationState 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:
    Action string
    CopyByChunk bool
    Specify whether to enable the artifact blobs copied by chunks. (Default: false)
    Deletion bool
    Specify whether to delete the remote resources when locally deleted. (Default: false)
    Description string
    Description of the replication policy.
    DestNamespace string
    Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
    DestNamespaceReplace int
    Specify the destination namespace flattening policy. Integers from -1 to 3 are valid values in the harbor API. A value of -1 will 'Flatten All Levels', 0 means 'No Flattening', 1 'Flatten 1 Level', 2 'Flatten 2 Levels', 3 'Flatten 3 Levels' (Default: -1, see Replication Rules for more details)
    Enabled bool
    Specify whether the replication is enabled. (Default: true)
    ExecuteOnChanged bool
    Specify whether to execute the replication rule if new or modified. (Default: false)
    Filters List<Pulumiverse.Harbor.Inputs.ReplicationFilter>
    Name string
    The name of the replication.
    Override bool
    Specify whether to override the resources at the destination if a resources with the same name exist. (Default: true)
    RegistryId int
    The registry ID of the Registry Endpoint.
    ReplicationPolicyId int
    Schedule string
    The scheduled time of when the container register will be push / pull. In cron base format. Hourly "0 0 * * * *", Daily "0 0 0 * * *", Monthly "0 0 0 * * 0". Can be one of the following: event_based, manual, cron format (Default: manual)
    Speed int
    The Maximum network bandwidth in Kbps for each execution. Default is -1 (unlimited).
    Action string
    CopyByChunk bool
    Specify whether to enable the artifact blobs copied by chunks. (Default: false)
    Deletion bool
    Specify whether to delete the remote resources when locally deleted. (Default: false)
    Description string
    Description of the replication policy.
    DestNamespace string
    Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
    DestNamespaceReplace int
    Specify the destination namespace flattening policy. Integers from -1 to 3 are valid values in the harbor API. A value of -1 will 'Flatten All Levels', 0 means 'No Flattening', 1 'Flatten 1 Level', 2 'Flatten 2 Levels', 3 'Flatten 3 Levels' (Default: -1, see Replication Rules for more details)
    Enabled bool
    Specify whether the replication is enabled. (Default: true)
    ExecuteOnChanged bool
    Specify whether to execute the replication rule if new or modified. (Default: false)
    Filters []ReplicationFilterArgs
    Name string
    The name of the replication.
    Override bool
    Specify whether to override the resources at the destination if a resources with the same name exist. (Default: true)
    RegistryId int
    The registry ID of the Registry Endpoint.
    ReplicationPolicyId int
    Schedule string
    The scheduled time of when the container register will be push / pull. In cron base format. Hourly "0 0 * * * *", Daily "0 0 0 * * *", Monthly "0 0 0 * * 0". Can be one of the following: event_based, manual, cron format (Default: manual)
    Speed int
    The Maximum network bandwidth in Kbps for each execution. Default is -1 (unlimited).
    action String
    copyByChunk Boolean
    Specify whether to enable the artifact blobs copied by chunks. (Default: false)
    deletion Boolean
    Specify whether to delete the remote resources when locally deleted. (Default: false)
    description String
    Description of the replication policy.
    destNamespace String
    Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
    destNamespaceReplace Integer
    Specify the destination namespace flattening policy. Integers from -1 to 3 are valid values in the harbor API. A value of -1 will 'Flatten All Levels', 0 means 'No Flattening', 1 'Flatten 1 Level', 2 'Flatten 2 Levels', 3 'Flatten 3 Levels' (Default: -1, see Replication Rules for more details)
    enabled Boolean
    Specify whether the replication is enabled. (Default: true)
    executeOnChanged Boolean
    Specify whether to execute the replication rule if new or modified. (Default: false)
    filters List<ReplicationFilter>
    name String
    The name of the replication.
    override Boolean
    Specify whether to override the resources at the destination if a resources with the same name exist. (Default: true)
    registryId Integer
    The registry ID of the Registry Endpoint.
    replicationPolicyId Integer
    schedule String
    The scheduled time of when the container register will be push / pull. In cron base format. Hourly "0 0 * * * *", Daily "0 0 0 * * *", Monthly "0 0 0 * * 0". Can be one of the following: event_based, manual, cron format (Default: manual)
    speed Integer
    The Maximum network bandwidth in Kbps for each execution. Default is -1 (unlimited).
    action string
    copyByChunk boolean
    Specify whether to enable the artifact blobs copied by chunks. (Default: false)
    deletion boolean
    Specify whether to delete the remote resources when locally deleted. (Default: false)
    description string
    Description of the replication policy.
    destNamespace string
    Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
    destNamespaceReplace number
    Specify the destination namespace flattening policy. Integers from -1 to 3 are valid values in the harbor API. A value of -1 will 'Flatten All Levels', 0 means 'No Flattening', 1 'Flatten 1 Level', 2 'Flatten 2 Levels', 3 'Flatten 3 Levels' (Default: -1, see Replication Rules for more details)
    enabled boolean
    Specify whether the replication is enabled. (Default: true)
    executeOnChanged boolean
    Specify whether to execute the replication rule if new or modified. (Default: false)
    filters ReplicationFilter[]
    name string
    The name of the replication.
    override boolean
    Specify whether to override the resources at the destination if a resources with the same name exist. (Default: true)
    registryId number
    The registry ID of the Registry Endpoint.
    replicationPolicyId number
    schedule string
    The scheduled time of when the container register will be push / pull. In cron base format. Hourly "0 0 * * * *", Daily "0 0 0 * * *", Monthly "0 0 0 * * 0". Can be one of the following: event_based, manual, cron format (Default: manual)
    speed number
    The Maximum network bandwidth in Kbps for each execution. Default is -1 (unlimited).
    action str
    copy_by_chunk bool
    Specify whether to enable the artifact blobs copied by chunks. (Default: false)
    deletion bool
    Specify whether to delete the remote resources when locally deleted. (Default: false)
    description str
    Description of the replication policy.
    dest_namespace str
    Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
    dest_namespace_replace int
    Specify the destination namespace flattening policy. Integers from -1 to 3 are valid values in the harbor API. A value of -1 will 'Flatten All Levels', 0 means 'No Flattening', 1 'Flatten 1 Level', 2 'Flatten 2 Levels', 3 'Flatten 3 Levels' (Default: -1, see Replication Rules for more details)
    enabled bool
    Specify whether the replication is enabled. (Default: true)
    execute_on_changed bool
    Specify whether to execute the replication rule if new or modified. (Default: false)
    filters Sequence[ReplicationFilterArgs]
    name str
    The name of the replication.
    override bool
    Specify whether to override the resources at the destination if a resources with the same name exist. (Default: true)
    registry_id int
    The registry ID of the Registry Endpoint.
    replication_policy_id int
    schedule str
    The scheduled time of when the container register will be push / pull. In cron base format. Hourly "0 0 * * * *", Daily "0 0 0 * * *", Monthly "0 0 0 * * 0". Can be one of the following: event_based, manual, cron format (Default: manual)
    speed int
    The Maximum network bandwidth in Kbps for each execution. Default is -1 (unlimited).
    action String
    copyByChunk Boolean
    Specify whether to enable the artifact blobs copied by chunks. (Default: false)
    deletion Boolean
    Specify whether to delete the remote resources when locally deleted. (Default: false)
    description String
    Description of the replication policy.
    destNamespace String
    Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
    destNamespaceReplace Number
    Specify the destination namespace flattening policy. Integers from -1 to 3 are valid values in the harbor API. A value of -1 will 'Flatten All Levels', 0 means 'No Flattening', 1 'Flatten 1 Level', 2 'Flatten 2 Levels', 3 'Flatten 3 Levels' (Default: -1, see Replication Rules for more details)
    enabled Boolean
    Specify whether the replication is enabled. (Default: true)
    executeOnChanged Boolean
    Specify whether to execute the replication rule if new or modified. (Default: false)
    filters List<Property Map>
    name String
    The name of the replication.
    override Boolean
    Specify whether to override the resources at the destination if a resources with the same name exist. (Default: true)
    registryId Number
    The registry ID of the Registry Endpoint.
    replicationPolicyId Number
    schedule String
    The scheduled time of when the container register will be push / pull. In cron base format. Hourly "0 0 * * * *", Daily "0 0 0 * * *", Monthly "0 0 0 * * 0". Can be one of the following: event_based, manual, cron format (Default: manual)
    speed Number
    The Maximum network bandwidth in Kbps for each execution. Default is -1 (unlimited).

    Supporting Types

    ReplicationFilter, ReplicationFilterArgs

    Decoration string
    Matches or excludes the result. Can be one of the following. matches, excludes
    Labels List<string>
    Filter on the resource according to labels.
    Name string
    Filter on the name of the resource.
    Resource string
    Filter on the resource type. Can be one of the following types. chart, artifact
    Tag string
    Filter on the tag/version of the resource.
    Decoration string
    Matches or excludes the result. Can be one of the following. matches, excludes
    Labels []string
    Filter on the resource according to labels.
    Name string
    Filter on the name of the resource.
    Resource string
    Filter on the resource type. Can be one of the following types. chart, artifact
    Tag string
    Filter on the tag/version of the resource.
    decoration String
    Matches or excludes the result. Can be one of the following. matches, excludes
    labels List<String>
    Filter on the resource according to labels.
    name String
    Filter on the name of the resource.
    resource String
    Filter on the resource type. Can be one of the following types. chart, artifact
    tag String
    Filter on the tag/version of the resource.
    decoration string
    Matches or excludes the result. Can be one of the following. matches, excludes
    labels string[]
    Filter on the resource according to labels.
    name string
    Filter on the name of the resource.
    resource string
    Filter on the resource type. Can be one of the following types. chart, artifact
    tag string
    Filter on the tag/version of the resource.
    decoration str
    Matches or excludes the result. Can be one of the following. matches, excludes
    labels Sequence[str]
    Filter on the resource according to labels.
    name str
    Filter on the name of the resource.
    resource str
    Filter on the resource type. Can be one of the following types. chart, artifact
    tag str
    Filter on the tag/version of the resource.
    decoration String
    Matches or excludes the result. Can be one of the following. matches, excludes
    labels List<String>
    Filter on the resource according to labels.
    name String
    Filter on the name of the resource.
    resource String
    Filter on the resource type. Can be one of the following types. chart, artifact
    tag String
    Filter on the tag/version of the resource.

    Import

    $ pulumi import harbor:index/replication:Replication main /replication/policies/1
    

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

    Package Details

    Repository
    harbor pulumiverse/pulumi-harbor
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harbor Terraform Provider.
    harbor logo
    Harbor v3.10.11 published on Wednesday, Jun 19, 2024 by Pulumiverse