1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cs
  5. RegistryEnterpriseSyncRule
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cs.RegistryEnterpriseSyncRule

Explore with Pulumi AI

Provides a Container Registry Sync Rule resource.

For information about Container Registry Sync Rule and how to use it, see What is Sync Rule

NOTE: Available since v1.90.0.

NOTE: You need to set your registry password in Container Registry console before use this resource.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";

const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = alicloud.getRegions({
    current: true,
});
const defaultInteger = new random.index.Integer("default", {
    min: 10000,
    max: 99999,
});
const source = new alicloud.cr.RegistryEnterpriseInstance("source", {
    paymentType: "Subscription",
    period: 1,
    renewPeriod: 0,
    renewalStatus: "ManualRenewal",
    instanceType: "Advanced",
    instanceName: `${name}-source-${defaultInteger.result}`,
});
const target = new alicloud.cr.RegistryEnterpriseInstance("target", {
    paymentType: "Subscription",
    period: 1,
    renewPeriod: 0,
    renewalStatus: "ManualRenewal",
    instanceType: "Advanced",
    instanceName: `${name}-target-${defaultInteger.result}`,
});
const sourceRegistryEnterpriseNamespace = new alicloud.cs.RegistryEnterpriseNamespace("source", {
    instanceId: source.id,
    name: `${name}-${defaultInteger.result}`,
    autoCreate: false,
    defaultVisibility: "PUBLIC",
});
const targetRegistryEnterpriseNamespace = new alicloud.cs.RegistryEnterpriseNamespace("target", {
    instanceId: target.id,
    name: `${name}-${defaultInteger.result}`,
    autoCreate: false,
    defaultVisibility: "PUBLIC",
});
const sourceRegistryEnterpriseRepo = new alicloud.cs.RegistryEnterpriseRepo("source", {
    instanceId: source.id,
    namespace: sourceRegistryEnterpriseNamespace.name,
    name: `${name}-${defaultInteger.result}`,
    summary: "this is summary of my new repo",
    repoType: "PUBLIC",
});
const targetRegistryEnterpriseRepo = new alicloud.cs.RegistryEnterpriseRepo("target", {
    instanceId: target.id,
    namespace: targetRegistryEnterpriseNamespace.name,
    name: `${name}-${defaultInteger.result}`,
    summary: "this is summary of my new repo",
    repoType: "PUBLIC",
});
const defaultRegistryEnterpriseSyncRule = new alicloud.cs.RegistryEnterpriseSyncRule("default", {
    instanceId: source.id,
    namespaceName: sourceRegistryEnterpriseNamespace.name,
    syncRuleName: `${name}-${defaultInteger.result}`,
    targetInstanceId: target.id,
    targetNamespaceName: targetRegistryEnterpriseNamespace.name,
    targetRegionId: _default.then(_default => _default.regions?.[0]?.id),
    tagFilter: ".*",
    repoName: sourceRegistryEnterpriseRepo.name,
    targetRepoName: targetRegistryEnterpriseRepo.name,
});
Copy
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "terraform-example"
default = alicloud.get_regions(current=True)
default_integer = random.index.Integer("default",
    min=10000,
    max=99999)
source = alicloud.cr.RegistryEnterpriseInstance("source",
    payment_type="Subscription",
    period=1,
    renew_period=0,
    renewal_status="ManualRenewal",
    instance_type="Advanced",
    instance_name=f"{name}-source-{default_integer['result']}")
target = alicloud.cr.RegistryEnterpriseInstance("target",
    payment_type="Subscription",
    period=1,
    renew_period=0,
    renewal_status="ManualRenewal",
    instance_type="Advanced",
    instance_name=f"{name}-target-{default_integer['result']}")
source_registry_enterprise_namespace = alicloud.cs.RegistryEnterpriseNamespace("source",
    instance_id=source.id,
    name=f"{name}-{default_integer['result']}",
    auto_create=False,
    default_visibility="PUBLIC")
target_registry_enterprise_namespace = alicloud.cs.RegistryEnterpriseNamespace("target",
    instance_id=target.id,
    name=f"{name}-{default_integer['result']}",
    auto_create=False,
    default_visibility="PUBLIC")
source_registry_enterprise_repo = alicloud.cs.RegistryEnterpriseRepo("source",
    instance_id=source.id,
    namespace=source_registry_enterprise_namespace.name,
    name=f"{name}-{default_integer['result']}",
    summary="this is summary of my new repo",
    repo_type="PUBLIC")
target_registry_enterprise_repo = alicloud.cs.RegistryEnterpriseRepo("target",
    instance_id=target.id,
    namespace=target_registry_enterprise_namespace.name,
    name=f"{name}-{default_integer['result']}",
    summary="this is summary of my new repo",
    repo_type="PUBLIC")
default_registry_enterprise_sync_rule = alicloud.cs.RegistryEnterpriseSyncRule("default",
    instance_id=source.id,
    namespace_name=source_registry_enterprise_namespace.name,
    sync_rule_name=f"{name}-{default_integer['result']}",
    target_instance_id=target.id,
    target_namespace_name=target_registry_enterprise_namespace.name,
    target_region_id=default.regions[0].id,
    tag_filter=".*",
    repo_name=source_registry_enterprise_repo.name,
    target_repo_name=target_registry_enterprise_repo.name)
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cr"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cs"
	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{
			Current: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Min: 10000,
			Max: 99999,
		})
		if err != nil {
			return err
		}
		source, err := cr.NewRegistryEnterpriseInstance(ctx, "source", &cr.RegistryEnterpriseInstanceArgs{
			PaymentType:   pulumi.String("Subscription"),
			Period:        pulumi.Int(1),
			RenewPeriod:   pulumi.Int(0),
			RenewalStatus: pulumi.String("ManualRenewal"),
			InstanceType:  pulumi.String("Advanced"),
			InstanceName:  pulumi.Sprintf("%v-source-%v", name, defaultInteger.Result),
		})
		if err != nil {
			return err
		}
		target, err := cr.NewRegistryEnterpriseInstance(ctx, "target", &cr.RegistryEnterpriseInstanceArgs{
			PaymentType:   pulumi.String("Subscription"),
			Period:        pulumi.Int(1),
			RenewPeriod:   pulumi.Int(0),
			RenewalStatus: pulumi.String("ManualRenewal"),
			InstanceType:  pulumi.String("Advanced"),
			InstanceName:  pulumi.Sprintf("%v-target-%v", name, defaultInteger.Result),
		})
		if err != nil {
			return err
		}
		sourceRegistryEnterpriseNamespace, err := cs.NewRegistryEnterpriseNamespace(ctx, "source", &cs.RegistryEnterpriseNamespaceArgs{
			InstanceId:        source.ID(),
			Name:              pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
			AutoCreate:        pulumi.Bool(false),
			DefaultVisibility: pulumi.String("PUBLIC"),
		})
		if err != nil {
			return err
		}
		targetRegistryEnterpriseNamespace, err := cs.NewRegistryEnterpriseNamespace(ctx, "target", &cs.RegistryEnterpriseNamespaceArgs{
			InstanceId:        target.ID(),
			Name:              pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
			AutoCreate:        pulumi.Bool(false),
			DefaultVisibility: pulumi.String("PUBLIC"),
		})
		if err != nil {
			return err
		}
		sourceRegistryEnterpriseRepo, err := cs.NewRegistryEnterpriseRepo(ctx, "source", &cs.RegistryEnterpriseRepoArgs{
			InstanceId: source.ID(),
			Namespace:  sourceRegistryEnterpriseNamespace.Name,
			Name:       pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
			Summary:    pulumi.String("this is summary of my new repo"),
			RepoType:   pulumi.String("PUBLIC"),
		})
		if err != nil {
			return err
		}
		targetRegistryEnterpriseRepo, err := cs.NewRegistryEnterpriseRepo(ctx, "target", &cs.RegistryEnterpriseRepoArgs{
			InstanceId: target.ID(),
			Namespace:  targetRegistryEnterpriseNamespace.Name,
			Name:       pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
			Summary:    pulumi.String("this is summary of my new repo"),
			RepoType:   pulumi.String("PUBLIC"),
		})
		if err != nil {
			return err
		}
		_, err = cs.NewRegistryEnterpriseSyncRule(ctx, "default", &cs.RegistryEnterpriseSyncRuleArgs{
			InstanceId:          source.ID(),
			NamespaceName:       sourceRegistryEnterpriseNamespace.Name,
			SyncRuleName:        pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
			TargetInstanceId:    target.ID(),
			TargetNamespaceName: targetRegistryEnterpriseNamespace.Name,
			TargetRegionId:      pulumi.String(_default.Regions[0].Id),
			TagFilter:           pulumi.String(".*"),
			RepoName:            sourceRegistryEnterpriseRepo.Name,
			TargetRepoName:      targetRegistryEnterpriseRepo.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "terraform-example";
    var @default = AliCloud.GetRegions.Invoke(new()
    {
        Current = true,
    });

    var defaultInteger = new Random.Index.Integer("default", new()
    {
        Min = 10000,
        Max = 99999,
    });

    var source = new AliCloud.CR.RegistryEnterpriseInstance("source", new()
    {
        PaymentType = "Subscription",
        Period = 1,
        RenewPeriod = 0,
        RenewalStatus = "ManualRenewal",
        InstanceType = "Advanced",
        InstanceName = $"{name}-source-{defaultInteger.Result}",
    });

    var target = new AliCloud.CR.RegistryEnterpriseInstance("target", new()
    {
        PaymentType = "Subscription",
        Period = 1,
        RenewPeriod = 0,
        RenewalStatus = "ManualRenewal",
        InstanceType = "Advanced",
        InstanceName = $"{name}-target-{defaultInteger.Result}",
    });

    var sourceRegistryEnterpriseNamespace = new AliCloud.CS.RegistryEnterpriseNamespace("source", new()
    {
        InstanceId = source.Id,
        Name = $"{name}-{defaultInteger.Result}",
        AutoCreate = false,
        DefaultVisibility = "PUBLIC",
    });

    var targetRegistryEnterpriseNamespace = new AliCloud.CS.RegistryEnterpriseNamespace("target", new()
    {
        InstanceId = target.Id,
        Name = $"{name}-{defaultInteger.Result}",
        AutoCreate = false,
        DefaultVisibility = "PUBLIC",
    });

    var sourceRegistryEnterpriseRepo = new AliCloud.CS.RegistryEnterpriseRepo("source", new()
    {
        InstanceId = source.Id,
        Namespace = sourceRegistryEnterpriseNamespace.Name,
        Name = $"{name}-{defaultInteger.Result}",
        Summary = "this is summary of my new repo",
        RepoType = "PUBLIC",
    });

    var targetRegistryEnterpriseRepo = new AliCloud.CS.RegistryEnterpriseRepo("target", new()
    {
        InstanceId = target.Id,
        Namespace = targetRegistryEnterpriseNamespace.Name,
        Name = $"{name}-{defaultInteger.Result}",
        Summary = "this is summary of my new repo",
        RepoType = "PUBLIC",
    });

    var defaultRegistryEnterpriseSyncRule = new AliCloud.CS.RegistryEnterpriseSyncRule("default", new()
    {
        InstanceId = source.Id,
        NamespaceName = sourceRegistryEnterpriseNamespace.Name,
        SyncRuleName = $"{name}-{defaultInteger.Result}",
        TargetInstanceId = target.Id,
        TargetNamespaceName = targetRegistryEnterpriseNamespace.Name,
        TargetRegionId = @default.Apply(@default => @default.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id)),
        TagFilter = ".*",
        RepoName = sourceRegistryEnterpriseRepo.Name,
        TargetRepoName = targetRegistryEnterpriseRepo.Name,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetRegionsArgs;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.cr.RegistryEnterpriseInstance;
import com.pulumi.alicloud.cr.RegistryEnterpriseInstanceArgs;
import com.pulumi.alicloud.cs.RegistryEnterpriseNamespace;
import com.pulumi.alicloud.cs.RegistryEnterpriseNamespaceArgs;
import com.pulumi.alicloud.cs.RegistryEnterpriseRepo;
import com.pulumi.alicloud.cs.RegistryEnterpriseRepoArgs;
import com.pulumi.alicloud.cs.RegistryEnterpriseSyncRule;
import com.pulumi.alicloud.cs.RegistryEnterpriseSyncRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var config = ctx.config();
        final var name = config.get("name").orElse("terraform-example");
        final var default = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
            .current(true)
            .build());

        var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
            .min(10000)
            .max(99999)
            .build());

        var source = new RegistryEnterpriseInstance("source", RegistryEnterpriseInstanceArgs.builder()
            .paymentType("Subscription")
            .period(1)
            .renewPeriod(0)
            .renewalStatus("ManualRenewal")
            .instanceType("Advanced")
            .instanceName(String.format("%s-source-%s", name,defaultInteger.result()))
            .build());

        var target = new RegistryEnterpriseInstance("target", RegistryEnterpriseInstanceArgs.builder()
            .paymentType("Subscription")
            .period(1)
            .renewPeriod(0)
            .renewalStatus("ManualRenewal")
            .instanceType("Advanced")
            .instanceName(String.format("%s-target-%s", name,defaultInteger.result()))
            .build());

        var sourceRegistryEnterpriseNamespace = new RegistryEnterpriseNamespace("sourceRegistryEnterpriseNamespace", RegistryEnterpriseNamespaceArgs.builder()
            .instanceId(source.id())
            .name(String.format("%s-%s", name,defaultInteger.result()))
            .autoCreate(false)
            .defaultVisibility("PUBLIC")
            .build());

        var targetRegistryEnterpriseNamespace = new RegistryEnterpriseNamespace("targetRegistryEnterpriseNamespace", RegistryEnterpriseNamespaceArgs.builder()
            .instanceId(target.id())
            .name(String.format("%s-%s", name,defaultInteger.result()))
            .autoCreate(false)
            .defaultVisibility("PUBLIC")
            .build());

        var sourceRegistryEnterpriseRepo = new RegistryEnterpriseRepo("sourceRegistryEnterpriseRepo", RegistryEnterpriseRepoArgs.builder()
            .instanceId(source.id())
            .namespace(sourceRegistryEnterpriseNamespace.name())
            .name(String.format("%s-%s", name,defaultInteger.result()))
            .summary("this is summary of my new repo")
            .repoType("PUBLIC")
            .build());

        var targetRegistryEnterpriseRepo = new RegistryEnterpriseRepo("targetRegistryEnterpriseRepo", RegistryEnterpriseRepoArgs.builder()
            .instanceId(target.id())
            .namespace(targetRegistryEnterpriseNamespace.name())
            .name(String.format("%s-%s", name,defaultInteger.result()))
            .summary("this is summary of my new repo")
            .repoType("PUBLIC")
            .build());

        var defaultRegistryEnterpriseSyncRule = new RegistryEnterpriseSyncRule("defaultRegistryEnterpriseSyncRule", RegistryEnterpriseSyncRuleArgs.builder()
            .instanceId(source.id())
            .namespaceName(sourceRegistryEnterpriseNamespace.name())
            .syncRuleName(String.format("%s-%s", name,defaultInteger.result()))
            .targetInstanceId(target.id())
            .targetNamespaceName(targetRegistryEnterpriseNamespace.name())
            .targetRegionId(default_.regions()[0].id())
            .tagFilter(".*")
            .repoName(sourceRegistryEnterpriseRepo.name())
            .targetRepoName(targetRegistryEnterpriseRepo.name())
            .build());

    }
}
Copy
configuration:
  name:
    type: string
    default: terraform-example
resources:
  defaultInteger:
    type: random:integer
    name: default
    properties:
      min: 10000
      max: 99999
  source:
    type: alicloud:cr:RegistryEnterpriseInstance
    properties:
      paymentType: Subscription
      period: 1
      renewPeriod: 0
      renewalStatus: ManualRenewal
      instanceType: Advanced
      instanceName: ${name}-source-${defaultInteger.result}
  target:
    type: alicloud:cr:RegistryEnterpriseInstance
    properties:
      paymentType: Subscription
      period: 1
      renewPeriod: 0
      renewalStatus: ManualRenewal
      instanceType: Advanced
      instanceName: ${name}-target-${defaultInteger.result}
  sourceRegistryEnterpriseNamespace:
    type: alicloud:cs:RegistryEnterpriseNamespace
    name: source
    properties:
      instanceId: ${source.id}
      name: ${name}-${defaultInteger.result}
      autoCreate: false
      defaultVisibility: PUBLIC
  targetRegistryEnterpriseNamespace:
    type: alicloud:cs:RegistryEnterpriseNamespace
    name: target
    properties:
      instanceId: ${target.id}
      name: ${name}-${defaultInteger.result}
      autoCreate: false
      defaultVisibility: PUBLIC
  sourceRegistryEnterpriseRepo:
    type: alicloud:cs:RegistryEnterpriseRepo
    name: source
    properties:
      instanceId: ${source.id}
      namespace: ${sourceRegistryEnterpriseNamespace.name}
      name: ${name}-${defaultInteger.result}
      summary: this is summary of my new repo
      repoType: PUBLIC
  targetRegistryEnterpriseRepo:
    type: alicloud:cs:RegistryEnterpriseRepo
    name: target
    properties:
      instanceId: ${target.id}
      namespace: ${targetRegistryEnterpriseNamespace.name}
      name: ${name}-${defaultInteger.result}
      summary: this is summary of my new repo
      repoType: PUBLIC
  defaultRegistryEnterpriseSyncRule:
    type: alicloud:cs:RegistryEnterpriseSyncRule
    name: default
    properties:
      instanceId: ${source.id}
      namespaceName: ${sourceRegistryEnterpriseNamespace.name}
      syncRuleName: ${name}-${defaultInteger.result}
      targetInstanceId: ${target.id}
      targetNamespaceName: ${targetRegistryEnterpriseNamespace.name}
      targetRegionId: ${default.regions[0].id}
      tagFilter: .*
      repoName: ${sourceRegistryEnterpriseRepo.name}
      targetRepoName: ${targetRegistryEnterpriseRepo.name}
variables:
  default:
    fn::invoke:
      function: alicloud:getRegions
      arguments:
        current: true
Copy

Create RegistryEnterpriseSyncRule Resource

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

Constructor syntax

new RegistryEnterpriseSyncRule(name: string, args: RegistryEnterpriseSyncRuleArgs, opts?: CustomResourceOptions);
@overload
def RegistryEnterpriseSyncRule(resource_name: str,
                               args: RegistryEnterpriseSyncRuleArgs,
                               opts: Optional[ResourceOptions] = None)

@overload
def RegistryEnterpriseSyncRule(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               tag_filter: Optional[str] = None,
                               target_region_id: Optional[str] = None,
                               namespace_name: Optional[str] = None,
                               instance_id: Optional[str] = None,
                               target_namespace_name: Optional[str] = None,
                               target_instance_id: Optional[str] = None,
                               repo_name: Optional[str] = None,
                               sync_trigger: Optional[str] = None,
                               sync_scope: Optional[str] = None,
                               sync_rule_name: Optional[str] = None,
                               name: Optional[str] = None,
                               target_repo_name: Optional[str] = None,
                               target_user_id: Optional[str] = None)
func NewRegistryEnterpriseSyncRule(ctx *Context, name string, args RegistryEnterpriseSyncRuleArgs, opts ...ResourceOption) (*RegistryEnterpriseSyncRule, error)
public RegistryEnterpriseSyncRule(string name, RegistryEnterpriseSyncRuleArgs args, CustomResourceOptions? opts = null)
public RegistryEnterpriseSyncRule(String name, RegistryEnterpriseSyncRuleArgs args)
public RegistryEnterpriseSyncRule(String name, RegistryEnterpriseSyncRuleArgs args, CustomResourceOptions options)
type: alicloud:cs:RegistryEnterpriseSyncRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RegistryEnterpriseSyncRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RegistryEnterpriseSyncRuleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RegistryEnterpriseSyncRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RegistryEnterpriseSyncRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RegistryEnterpriseSyncRuleArgs
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 registryEnterpriseSyncRuleResource = new AliCloud.CS.RegistryEnterpriseSyncRule("registryEnterpriseSyncRuleResource", new()
{
    TagFilter = "string",
    TargetRegionId = "string",
    NamespaceName = "string",
    InstanceId = "string",
    TargetNamespaceName = "string",
    TargetInstanceId = "string",
    RepoName = "string",
    SyncTrigger = "string",
    SyncScope = "string",
    SyncRuleName = "string",
    TargetRepoName = "string",
    TargetUserId = "string",
});
Copy
example, err := cs.NewRegistryEnterpriseSyncRule(ctx, "registryEnterpriseSyncRuleResource", &cs.RegistryEnterpriseSyncRuleArgs{
	TagFilter:           pulumi.String("string"),
	TargetRegionId:      pulumi.String("string"),
	NamespaceName:       pulumi.String("string"),
	InstanceId:          pulumi.String("string"),
	TargetNamespaceName: pulumi.String("string"),
	TargetInstanceId:    pulumi.String("string"),
	RepoName:            pulumi.String("string"),
	SyncTrigger:         pulumi.String("string"),
	SyncScope:           pulumi.String("string"),
	SyncRuleName:        pulumi.String("string"),
	TargetRepoName:      pulumi.String("string"),
	TargetUserId:        pulumi.String("string"),
})
Copy
var registryEnterpriseSyncRuleResource = new RegistryEnterpriseSyncRule("registryEnterpriseSyncRuleResource", RegistryEnterpriseSyncRuleArgs.builder()
    .tagFilter("string")
    .targetRegionId("string")
    .namespaceName("string")
    .instanceId("string")
    .targetNamespaceName("string")
    .targetInstanceId("string")
    .repoName("string")
    .syncTrigger("string")
    .syncScope("string")
    .syncRuleName("string")
    .targetRepoName("string")
    .targetUserId("string")
    .build());
Copy
registry_enterprise_sync_rule_resource = alicloud.cs.RegistryEnterpriseSyncRule("registryEnterpriseSyncRuleResource",
    tag_filter="string",
    target_region_id="string",
    namespace_name="string",
    instance_id="string",
    target_namespace_name="string",
    target_instance_id="string",
    repo_name="string",
    sync_trigger="string",
    sync_scope="string",
    sync_rule_name="string",
    target_repo_name="string",
    target_user_id="string")
Copy
const registryEnterpriseSyncRuleResource = new alicloud.cs.RegistryEnterpriseSyncRule("registryEnterpriseSyncRuleResource", {
    tagFilter: "string",
    targetRegionId: "string",
    namespaceName: "string",
    instanceId: "string",
    targetNamespaceName: "string",
    targetInstanceId: "string",
    repoName: "string",
    syncTrigger: "string",
    syncScope: "string",
    syncRuleName: "string",
    targetRepoName: "string",
    targetUserId: "string",
});
Copy
type: alicloud:cs:RegistryEnterpriseSyncRule
properties:
    instanceId: string
    namespaceName: string
    repoName: string
    syncRuleName: string
    syncScope: string
    syncTrigger: string
    tagFilter: string
    targetInstanceId: string
    targetNamespaceName: string
    targetRegionId: string
    targetRepoName: string
    targetUserId: string
Copy

RegistryEnterpriseSyncRule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The RegistryEnterpriseSyncRule resource accepts the following input properties:

InstanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Container Registry source instance.
NamespaceName
This property is required.
Changes to this property will trigger replacement.
string
The namespace name of the source instance.
TagFilter
This property is required.
Changes to this property will trigger replacement.
string
The regular expression used to filter image tags.
TargetInstanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the destination instance.
TargetNamespaceName
This property is required.
Changes to this property will trigger replacement.
string
The namespace name of the destination instance.
TargetRegionId
This property is required.
Changes to this property will trigger replacement.
string
The region ID of the destination instance.
Name Changes to this property will trigger replacement. string
Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

Deprecated: Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

RepoName Changes to this property will trigger replacement. string
The image repository name of the source instance.
SyncRuleName Changes to this property will trigger replacement. string
The name of the sync rule.
SyncScope Changes to this property will trigger replacement. string

The synchronization scope. Valid values:

  • REPO: Encrypts or decrypts data.
  • NAMESPACE: Generates or verifies a digital signature.

NOTE: From version 1.240.0, sync_scope can be set.

SyncTrigger Changes to this property will trigger replacement. string
The policy configured to trigger the synchronization rule. Default value: PASSIVE. Valid values:

  • INITIATIVE: Manually triggers the synchronization rule.
  • PASSIVE: Automatically triggers the synchronization rule.
TargetRepoName Changes to this property will trigger replacement. string
The image repository name of the destination instance.
TargetUserId string
The UID of the account to which the target instance belongs.
InstanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Container Registry source instance.
NamespaceName
This property is required.
Changes to this property will trigger replacement.
string
The namespace name of the source instance.
TagFilter
This property is required.
Changes to this property will trigger replacement.
string
The regular expression used to filter image tags.
TargetInstanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the destination instance.
TargetNamespaceName
This property is required.
Changes to this property will trigger replacement.
string
The namespace name of the destination instance.
TargetRegionId
This property is required.
Changes to this property will trigger replacement.
string
The region ID of the destination instance.
Name Changes to this property will trigger replacement. string
Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

Deprecated: Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

RepoName Changes to this property will trigger replacement. string
The image repository name of the source instance.
SyncRuleName Changes to this property will trigger replacement. string
The name of the sync rule.
SyncScope Changes to this property will trigger replacement. string

The synchronization scope. Valid values:

  • REPO: Encrypts or decrypts data.
  • NAMESPACE: Generates or verifies a digital signature.

NOTE: From version 1.240.0, sync_scope can be set.

SyncTrigger Changes to this property will trigger replacement. string
The policy configured to trigger the synchronization rule. Default value: PASSIVE. Valid values:

  • INITIATIVE: Manually triggers the synchronization rule.
  • PASSIVE: Automatically triggers the synchronization rule.
TargetRepoName Changes to this property will trigger replacement. string
The image repository name of the destination instance.
TargetUserId string
The UID of the account to which the target instance belongs.
instanceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Container Registry source instance.
namespaceName
This property is required.
Changes to this property will trigger replacement.
String
The namespace name of the source instance.
tagFilter
This property is required.
Changes to this property will trigger replacement.
String
The regular expression used to filter image tags.
targetInstanceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the destination instance.
targetNamespaceName
This property is required.
Changes to this property will trigger replacement.
String
The namespace name of the destination instance.
targetRegionId
This property is required.
Changes to this property will trigger replacement.
String
The region ID of the destination instance.
name Changes to this property will trigger replacement. String
Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

Deprecated: Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

repoName Changes to this property will trigger replacement. String
The image repository name of the source instance.
syncRuleName Changes to this property will trigger replacement. String
The name of the sync rule.
syncScope Changes to this property will trigger replacement. String

The synchronization scope. Valid values:

  • REPO: Encrypts or decrypts data.
  • NAMESPACE: Generates or verifies a digital signature.

NOTE: From version 1.240.0, sync_scope can be set.

syncTrigger Changes to this property will trigger replacement. String
The policy configured to trigger the synchronization rule. Default value: PASSIVE. Valid values:

  • INITIATIVE: Manually triggers the synchronization rule.
  • PASSIVE: Automatically triggers the synchronization rule.
targetRepoName Changes to this property will trigger replacement. String
The image repository name of the destination instance.
targetUserId String
The UID of the account to which the target instance belongs.
instanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Container Registry source instance.
namespaceName
This property is required.
Changes to this property will trigger replacement.
string
The namespace name of the source instance.
tagFilter
This property is required.
Changes to this property will trigger replacement.
string
The regular expression used to filter image tags.
targetInstanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the destination instance.
targetNamespaceName
This property is required.
Changes to this property will trigger replacement.
string
The namespace name of the destination instance.
targetRegionId
This property is required.
Changes to this property will trigger replacement.
string
The region ID of the destination instance.
name Changes to this property will trigger replacement. string
Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

Deprecated: Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

repoName Changes to this property will trigger replacement. string
The image repository name of the source instance.
syncRuleName Changes to this property will trigger replacement. string
The name of the sync rule.
syncScope Changes to this property will trigger replacement. string

The synchronization scope. Valid values:

  • REPO: Encrypts or decrypts data.
  • NAMESPACE: Generates or verifies a digital signature.

NOTE: From version 1.240.0, sync_scope can be set.

syncTrigger Changes to this property will trigger replacement. string
The policy configured to trigger the synchronization rule. Default value: PASSIVE. Valid values:

  • INITIATIVE: Manually triggers the synchronization rule.
  • PASSIVE: Automatically triggers the synchronization rule.
targetRepoName Changes to this property will trigger replacement. string
The image repository name of the destination instance.
targetUserId string
The UID of the account to which the target instance belongs.
instance_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Container Registry source instance.
namespace_name
This property is required.
Changes to this property will trigger replacement.
str
The namespace name of the source instance.
tag_filter
This property is required.
Changes to this property will trigger replacement.
str
The regular expression used to filter image tags.
target_instance_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the destination instance.
target_namespace_name
This property is required.
Changes to this property will trigger replacement.
str
The namespace name of the destination instance.
target_region_id
This property is required.
Changes to this property will trigger replacement.
str
The region ID of the destination instance.
name Changes to this property will trigger replacement. str
Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

Deprecated: Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

repo_name Changes to this property will trigger replacement. str
The image repository name of the source instance.
sync_rule_name Changes to this property will trigger replacement. str
The name of the sync rule.
sync_scope Changes to this property will trigger replacement. str

The synchronization scope. Valid values:

  • REPO: Encrypts or decrypts data.
  • NAMESPACE: Generates or verifies a digital signature.

NOTE: From version 1.240.0, sync_scope can be set.

sync_trigger Changes to this property will trigger replacement. str
The policy configured to trigger the synchronization rule. Default value: PASSIVE. Valid values:

  • INITIATIVE: Manually triggers the synchronization rule.
  • PASSIVE: Automatically triggers the synchronization rule.
target_repo_name Changes to this property will trigger replacement. str
The image repository name of the destination instance.
target_user_id str
The UID of the account to which the target instance belongs.
instanceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Container Registry source instance.
namespaceName
This property is required.
Changes to this property will trigger replacement.
String
The namespace name of the source instance.
tagFilter
This property is required.
Changes to this property will trigger replacement.
String
The regular expression used to filter image tags.
targetInstanceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the destination instance.
targetNamespaceName
This property is required.
Changes to this property will trigger replacement.
String
The namespace name of the destination instance.
targetRegionId
This property is required.
Changes to this property will trigger replacement.
String
The region ID of the destination instance.
name Changes to this property will trigger replacement. String
Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

Deprecated: Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

repoName Changes to this property will trigger replacement. String
The image repository name of the source instance.
syncRuleName Changes to this property will trigger replacement. String
The name of the sync rule.
syncScope Changes to this property will trigger replacement. String

The synchronization scope. Valid values:

  • REPO: Encrypts or decrypts data.
  • NAMESPACE: Generates or verifies a digital signature.

NOTE: From version 1.240.0, sync_scope can be set.

syncTrigger Changes to this property will trigger replacement. String
The policy configured to trigger the synchronization rule. Default value: PASSIVE. Valid values:

  • INITIATIVE: Manually triggers the synchronization rule.
  • PASSIVE: Automatically triggers the synchronization rule.
targetRepoName Changes to this property will trigger replacement. String
The image repository name of the destination instance.
targetUserId String
The UID of the account to which the target instance belongs.

Outputs

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

CreateTime string
(Available since v1.240.0) The time when the synchronization rule was created.
Id string
The provider-assigned unique ID for this managed resource.
RegionId string
(Available since v1.240.0) The region ID of the source instance.
RepoSyncRuleId string
(Available since v1.240.0) The ID of the synchronization rule.
RuleId string
(Deprecated since v1.240.0) Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

Deprecated: Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

SyncDirection string
The synchronization direction.
CreateTime string
(Available since v1.240.0) The time when the synchronization rule was created.
Id string
The provider-assigned unique ID for this managed resource.
RegionId string
(Available since v1.240.0) The region ID of the source instance.
RepoSyncRuleId string
(Available since v1.240.0) The ID of the synchronization rule.
RuleId string
(Deprecated since v1.240.0) Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

Deprecated: Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

SyncDirection string
The synchronization direction.
createTime String
(Available since v1.240.0) The time when the synchronization rule was created.
id String
The provider-assigned unique ID for this managed resource.
regionId String
(Available since v1.240.0) The region ID of the source instance.
repoSyncRuleId String
(Available since v1.240.0) The ID of the synchronization rule.
ruleId String
(Deprecated since v1.240.0) Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

Deprecated: Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

syncDirection String
The synchronization direction.
createTime string
(Available since v1.240.0) The time when the synchronization rule was created.
id string
The provider-assigned unique ID for this managed resource.
regionId string
(Available since v1.240.0) The region ID of the source instance.
repoSyncRuleId string
(Available since v1.240.0) The ID of the synchronization rule.
ruleId string
(Deprecated since v1.240.0) Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

Deprecated: Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

syncDirection string
The synchronization direction.
create_time str
(Available since v1.240.0) The time when the synchronization rule was created.
id str
The provider-assigned unique ID for this managed resource.
region_id str
(Available since v1.240.0) The region ID of the source instance.
repo_sync_rule_id str
(Available since v1.240.0) The ID of the synchronization rule.
rule_id str
(Deprecated since v1.240.0) Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

Deprecated: Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

sync_direction str
The synchronization direction.
createTime String
(Available since v1.240.0) The time when the synchronization rule was created.
id String
The provider-assigned unique ID for this managed resource.
regionId String
(Available since v1.240.0) The region ID of the source instance.
repoSyncRuleId String
(Available since v1.240.0) The ID of the synchronization rule.
ruleId String
(Deprecated since v1.240.0) Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

Deprecated: Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

syncDirection String
The synchronization direction.

Look up Existing RegistryEnterpriseSyncRule Resource

Get an existing RegistryEnterpriseSyncRule 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?: RegistryEnterpriseSyncRuleState, opts?: CustomResourceOptions): RegistryEnterpriseSyncRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_time: Optional[str] = None,
        instance_id: Optional[str] = None,
        name: Optional[str] = None,
        namespace_name: Optional[str] = None,
        region_id: Optional[str] = None,
        repo_name: Optional[str] = None,
        repo_sync_rule_id: Optional[str] = None,
        rule_id: Optional[str] = None,
        sync_direction: Optional[str] = None,
        sync_rule_name: Optional[str] = None,
        sync_scope: Optional[str] = None,
        sync_trigger: Optional[str] = None,
        tag_filter: Optional[str] = None,
        target_instance_id: Optional[str] = None,
        target_namespace_name: Optional[str] = None,
        target_region_id: Optional[str] = None,
        target_repo_name: Optional[str] = None,
        target_user_id: Optional[str] = None) -> RegistryEnterpriseSyncRule
func GetRegistryEnterpriseSyncRule(ctx *Context, name string, id IDInput, state *RegistryEnterpriseSyncRuleState, opts ...ResourceOption) (*RegistryEnterpriseSyncRule, error)
public static RegistryEnterpriseSyncRule Get(string name, Input<string> id, RegistryEnterpriseSyncRuleState? state, CustomResourceOptions? opts = null)
public static RegistryEnterpriseSyncRule get(String name, Output<String> id, RegistryEnterpriseSyncRuleState state, CustomResourceOptions options)
resources:  _:    type: alicloud:cs:RegistryEnterpriseSyncRule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CreateTime string
(Available since v1.240.0) The time when the synchronization rule was created.
InstanceId Changes to this property will trigger replacement. string
The ID of the Container Registry source instance.
Name Changes to this property will trigger replacement. string
Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

Deprecated: Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

NamespaceName Changes to this property will trigger replacement. string
The namespace name of the source instance.
RegionId string
(Available since v1.240.0) The region ID of the source instance.
RepoName Changes to this property will trigger replacement. string
The image repository name of the source instance.
RepoSyncRuleId string
(Available since v1.240.0) The ID of the synchronization rule.
RuleId string
(Deprecated since v1.240.0) Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

Deprecated: Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

SyncDirection string
The synchronization direction.
SyncRuleName Changes to this property will trigger replacement. string
The name of the sync rule.
SyncScope Changes to this property will trigger replacement. string

The synchronization scope. Valid values:

  • REPO: Encrypts or decrypts data.
  • NAMESPACE: Generates or verifies a digital signature.

NOTE: From version 1.240.0, sync_scope can be set.

SyncTrigger Changes to this property will trigger replacement. string
The policy configured to trigger the synchronization rule. Default value: PASSIVE. Valid values:

  • INITIATIVE: Manually triggers the synchronization rule.
  • PASSIVE: Automatically triggers the synchronization rule.
TagFilter Changes to this property will trigger replacement. string
The regular expression used to filter image tags.
TargetInstanceId Changes to this property will trigger replacement. string
The ID of the destination instance.
TargetNamespaceName Changes to this property will trigger replacement. string
The namespace name of the destination instance.
TargetRegionId Changes to this property will trigger replacement. string
The region ID of the destination instance.
TargetRepoName Changes to this property will trigger replacement. string
The image repository name of the destination instance.
TargetUserId string
The UID of the account to which the target instance belongs.
CreateTime string
(Available since v1.240.0) The time when the synchronization rule was created.
InstanceId Changes to this property will trigger replacement. string
The ID of the Container Registry source instance.
Name Changes to this property will trigger replacement. string
Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

Deprecated: Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

NamespaceName Changes to this property will trigger replacement. string
The namespace name of the source instance.
RegionId string
(Available since v1.240.0) The region ID of the source instance.
RepoName Changes to this property will trigger replacement. string
The image repository name of the source instance.
RepoSyncRuleId string
(Available since v1.240.0) The ID of the synchronization rule.
RuleId string
(Deprecated since v1.240.0) Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

Deprecated: Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

SyncDirection string
The synchronization direction.
SyncRuleName Changes to this property will trigger replacement. string
The name of the sync rule.
SyncScope Changes to this property will trigger replacement. string

The synchronization scope. Valid values:

  • REPO: Encrypts or decrypts data.
  • NAMESPACE: Generates or verifies a digital signature.

NOTE: From version 1.240.0, sync_scope can be set.

SyncTrigger Changes to this property will trigger replacement. string
The policy configured to trigger the synchronization rule. Default value: PASSIVE. Valid values:

  • INITIATIVE: Manually triggers the synchronization rule.
  • PASSIVE: Automatically triggers the synchronization rule.
TagFilter Changes to this property will trigger replacement. string
The regular expression used to filter image tags.
TargetInstanceId Changes to this property will trigger replacement. string
The ID of the destination instance.
TargetNamespaceName Changes to this property will trigger replacement. string
The namespace name of the destination instance.
TargetRegionId Changes to this property will trigger replacement. string
The region ID of the destination instance.
TargetRepoName Changes to this property will trigger replacement. string
The image repository name of the destination instance.
TargetUserId string
The UID of the account to which the target instance belongs.
createTime String
(Available since v1.240.0) The time when the synchronization rule was created.
instanceId Changes to this property will trigger replacement. String
The ID of the Container Registry source instance.
name Changes to this property will trigger replacement. String
Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

Deprecated: Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

namespaceName Changes to this property will trigger replacement. String
The namespace name of the source instance.
regionId String
(Available since v1.240.0) The region ID of the source instance.
repoName Changes to this property will trigger replacement. String
The image repository name of the source instance.
repoSyncRuleId String
(Available since v1.240.0) The ID of the synchronization rule.
ruleId String
(Deprecated since v1.240.0) Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

Deprecated: Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

syncDirection String
The synchronization direction.
syncRuleName Changes to this property will trigger replacement. String
The name of the sync rule.
syncScope Changes to this property will trigger replacement. String

The synchronization scope. Valid values:

  • REPO: Encrypts or decrypts data.
  • NAMESPACE: Generates or verifies a digital signature.

NOTE: From version 1.240.0, sync_scope can be set.

syncTrigger Changes to this property will trigger replacement. String
The policy configured to trigger the synchronization rule. Default value: PASSIVE. Valid values:

  • INITIATIVE: Manually triggers the synchronization rule.
  • PASSIVE: Automatically triggers the synchronization rule.
tagFilter Changes to this property will trigger replacement. String
The regular expression used to filter image tags.
targetInstanceId Changes to this property will trigger replacement. String
The ID of the destination instance.
targetNamespaceName Changes to this property will trigger replacement. String
The namespace name of the destination instance.
targetRegionId Changes to this property will trigger replacement. String
The region ID of the destination instance.
targetRepoName Changes to this property will trigger replacement. String
The image repository name of the destination instance.
targetUserId String
The UID of the account to which the target instance belongs.
createTime string
(Available since v1.240.0) The time when the synchronization rule was created.
instanceId Changes to this property will trigger replacement. string
The ID of the Container Registry source instance.
name Changes to this property will trigger replacement. string
Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

Deprecated: Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

namespaceName Changes to this property will trigger replacement. string
The namespace name of the source instance.
regionId string
(Available since v1.240.0) The region ID of the source instance.
repoName Changes to this property will trigger replacement. string
The image repository name of the source instance.
repoSyncRuleId string
(Available since v1.240.0) The ID of the synchronization rule.
ruleId string
(Deprecated since v1.240.0) Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

Deprecated: Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

syncDirection string
The synchronization direction.
syncRuleName Changes to this property will trigger replacement. string
The name of the sync rule.
syncScope Changes to this property will trigger replacement. string

The synchronization scope. Valid values:

  • REPO: Encrypts or decrypts data.
  • NAMESPACE: Generates or verifies a digital signature.

NOTE: From version 1.240.0, sync_scope can be set.

syncTrigger Changes to this property will trigger replacement. string
The policy configured to trigger the synchronization rule. Default value: PASSIVE. Valid values:

  • INITIATIVE: Manually triggers the synchronization rule.
  • PASSIVE: Automatically triggers the synchronization rule.
tagFilter Changes to this property will trigger replacement. string
The regular expression used to filter image tags.
targetInstanceId Changes to this property will trigger replacement. string
The ID of the destination instance.
targetNamespaceName Changes to this property will trigger replacement. string
The namespace name of the destination instance.
targetRegionId Changes to this property will trigger replacement. string
The region ID of the destination instance.
targetRepoName Changes to this property will trigger replacement. string
The image repository name of the destination instance.
targetUserId string
The UID of the account to which the target instance belongs.
create_time str
(Available since v1.240.0) The time when the synchronization rule was created.
instance_id Changes to this property will trigger replacement. str
The ID of the Container Registry source instance.
name Changes to this property will trigger replacement. str
Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

Deprecated: Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

namespace_name Changes to this property will trigger replacement. str
The namespace name of the source instance.
region_id str
(Available since v1.240.0) The region ID of the source instance.
repo_name Changes to this property will trigger replacement. str
The image repository name of the source instance.
repo_sync_rule_id str
(Available since v1.240.0) The ID of the synchronization rule.
rule_id str
(Deprecated since v1.240.0) Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

Deprecated: Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

sync_direction str
The synchronization direction.
sync_rule_name Changes to this property will trigger replacement. str
The name of the sync rule.
sync_scope Changes to this property will trigger replacement. str

The synchronization scope. Valid values:

  • REPO: Encrypts or decrypts data.
  • NAMESPACE: Generates or verifies a digital signature.

NOTE: From version 1.240.0, sync_scope can be set.

sync_trigger Changes to this property will trigger replacement. str
The policy configured to trigger the synchronization rule. Default value: PASSIVE. Valid values:

  • INITIATIVE: Manually triggers the synchronization rule.
  • PASSIVE: Automatically triggers the synchronization rule.
tag_filter Changes to this property will trigger replacement. str
The regular expression used to filter image tags.
target_instance_id Changes to this property will trigger replacement. str
The ID of the destination instance.
target_namespace_name Changes to this property will trigger replacement. str
The namespace name of the destination instance.
target_region_id Changes to this property will trigger replacement. str
The region ID of the destination instance.
target_repo_name Changes to this property will trigger replacement. str
The image repository name of the destination instance.
target_user_id str
The UID of the account to which the target instance belongs.
createTime String
(Available since v1.240.0) The time when the synchronization rule was created.
instanceId Changes to this property will trigger replacement. String
The ID of the Container Registry source instance.
name Changes to this property will trigger replacement. String
Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

Deprecated: Field name has been deprecated from provider version 1.240.0. New field sync_rule_name instead.

namespaceName Changes to this property will trigger replacement. String
The namespace name of the source instance.
regionId String
(Available since v1.240.0) The region ID of the source instance.
repoName Changes to this property will trigger replacement. String
The image repository name of the source instance.
repoSyncRuleId String
(Available since v1.240.0) The ID of the synchronization rule.
ruleId String
(Deprecated since v1.240.0) Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

Deprecated: Field rule_id has been deprecated from provider version 1.240.0. New field repo_sync_rule_id instead.

syncDirection String
The synchronization direction.
syncRuleName Changes to this property will trigger replacement. String
The name of the sync rule.
syncScope Changes to this property will trigger replacement. String

The synchronization scope. Valid values:

  • REPO: Encrypts or decrypts data.
  • NAMESPACE: Generates or verifies a digital signature.

NOTE: From version 1.240.0, sync_scope can be set.

syncTrigger Changes to this property will trigger replacement. String
The policy configured to trigger the synchronization rule. Default value: PASSIVE. Valid values:

  • INITIATIVE: Manually triggers the synchronization rule.
  • PASSIVE: Automatically triggers the synchronization rule.
tagFilter Changes to this property will trigger replacement. String
The regular expression used to filter image tags.
targetInstanceId Changes to this property will trigger replacement. String
The ID of the destination instance.
targetNamespaceName Changes to this property will trigger replacement. String
The namespace name of the destination instance.
targetRegionId Changes to this property will trigger replacement. String
The region ID of the destination instance.
targetRepoName Changes to this property will trigger replacement. String
The image repository name of the destination instance.
targetUserId String
The UID of the account to which the target instance belongs.

Import

Container Registry Sync Rule can be imported using the id, e.g.

$ pulumi import alicloud:cs/registryEnterpriseSyncRule:RegistryEnterpriseSyncRule example <instance_id>:<namespace_name>:<repo_sync_rule_id>
Copy

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

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.