harbor.Replication
Explore with Pulumi AI
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
- Registry
Id int - The registry ID of the Registry Endpoint.
- Copy
By boolChunk - 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.
- Dest
Namespace string - Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
- Dest
Namespace intReplace - Specify the destination namespace flattening policy. Integers from
-1
to3
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 boolChanged - Specify whether to execute the replication rule if new or modified. (Default:
false
) - Filters
List<Pulumiverse.
Harbor. Inputs. Replication Filter> - 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
- Registry
Id int - The registry ID of the Registry Endpoint.
- Copy
By boolChunk - 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.
- Dest
Namespace string - Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
- Dest
Namespace intReplace - Specify the destination namespace flattening policy. Integers from
-1
to3
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 boolChanged - Specify whether to execute the replication rule if new or modified. (Default:
false
) - Filters
[]Replication
Filter Args - 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
- registry
Id Integer - The registry ID of the Registry Endpoint.
- copy
By BooleanChunk - 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.
- dest
Namespace String - Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
- dest
Namespace IntegerReplace - Specify the destination namespace flattening policy. Integers from
-1
to3
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
) - execute
On BooleanChanged - Specify whether to execute the replication rule if new or modified. (Default:
false
) - filters
List<Replication
Filter> - 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
- registry
Id number - The registry ID of the Registry Endpoint.
- copy
By booleanChunk - 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.
- dest
Namespace string - Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
- dest
Namespace numberReplace - Specify the destination namespace flattening policy. Integers from
-1
to3
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
) - execute
On booleanChanged - Specify whether to execute the replication rule if new or modified. (Default:
false
) - filters
Replication
Filter[] - 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_ boolchunk - 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_ intreplace - Specify the destination namespace flattening policy. Integers from
-1
to3
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_ boolchanged - Specify whether to execute the replication rule if new or modified. (Default:
false
) - filters
Sequence[Replication
Filter Args] - 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
- registry
Id Number - The registry ID of the Registry Endpoint.
- copy
By BooleanChunk - 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.
- dest
Namespace String - Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
- dest
Namespace NumberReplace - Specify the destination namespace flattening policy. Integers from
-1
to3
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
) - execute
On BooleanChanged - 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.
- Replication
Policy intId
- Id string
- The provider-assigned unique ID for this managed resource.
- Replication
Policy intId
- id String
- The provider-assigned unique ID for this managed resource.
- replication
Policy IntegerId
- id string
- The provider-assigned unique ID for this managed resource.
- replication
Policy numberId
- id str
- The provider-assigned unique ID for this managed resource.
- replication_
policy_ intid
- id String
- The provider-assigned unique ID for this managed resource.
- replication
Policy NumberId
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.
- Action string
- Copy
By boolChunk - 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.
- Dest
Namespace string - Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
- Dest
Namespace intReplace - Specify the destination namespace flattening policy. Integers from
-1
to3
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 boolChanged - Specify whether to execute the replication rule if new or modified. (Default:
false
) - Filters
List<Pulumiverse.
Harbor. Inputs. Replication Filter> - 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
) - Registry
Id int - The registry ID of the Registry Endpoint.
- Replication
Policy intId - 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
- Copy
By boolChunk - 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.
- Dest
Namespace string - Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
- Dest
Namespace intReplace - Specify the destination namespace flattening policy. Integers from
-1
to3
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 boolChanged - Specify whether to execute the replication rule if new or modified. (Default:
false
) - Filters
[]Replication
Filter Args - 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
) - Registry
Id int - The registry ID of the Registry Endpoint.
- Replication
Policy intId - 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
- copy
By BooleanChunk - 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.
- dest
Namespace String - Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
- dest
Namespace IntegerReplace - Specify the destination namespace flattening policy. Integers from
-1
to3
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
) - execute
On BooleanChanged - Specify whether to execute the replication rule if new or modified. (Default:
false
) - filters
List<Replication
Filter> - 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
) - registry
Id Integer - The registry ID of the Registry Endpoint.
- replication
Policy IntegerId - 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
- copy
By booleanChunk - 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.
- dest
Namespace string - Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
- dest
Namespace numberReplace - Specify the destination namespace flattening policy. Integers from
-1
to3
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
) - execute
On booleanChanged - Specify whether to execute the replication rule if new or modified. (Default:
false
) - filters
Replication
Filter[] - 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
) - registry
Id number - The registry ID of the Registry Endpoint.
- replication
Policy numberId - 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_ boolchunk - 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_ intreplace - Specify the destination namespace flattening policy. Integers from
-1
to3
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_ boolchanged - Specify whether to execute the replication rule if new or modified. (Default:
false
) - filters
Sequence[Replication
Filter Args] - 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_ intid - 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
- copy
By BooleanChunk - 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.
- dest
Namespace String - Specify the destination namespace. if empty, the resource will be put under the same namespace as the source.
- dest
Namespace NumberReplace - Specify the destination namespace flattening policy. Integers from
-1
to3
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
) - execute
On BooleanChanged - 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
) - registry
Id Number - The registry ID of the Registry Endpoint.
- replication
Policy NumberId - 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.