ConnectedRegistryArgs

data class ConnectedRegistryArgs(val auditLogEnabled: Output<Boolean>? = null, val clientTokenIds: Output<List<String>>? = null, val containerRegistryId: Output<String>? = null, val logLevel: Output<String>? = null, val mode: Output<String>? = null, val name: Output<String>? = null, val notifications: Output<List<ConnectedRegistryNotificationArgs>>? = null, val parentRegistryId: Output<String>? = null, val syncMessageTtl: Output<String>? = null, val syncSchedule: Output<String>? = null, val syncTokenId: Output<String>? = null, val syncWindow: Output<String>? = null) : ConvertibleToJava<ConnectedRegistryArgs>

Manages a Container Connected Registry.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.containerservice.Registry;
import com.pulumi.azure.containerservice.RegistryArgs;
import com.pulumi.azure.containerservice.RegistryScopeMap;
import com.pulumi.azure.containerservice.RegistryScopeMapArgs;
import com.pulumi.azure.containerservice.RegistryToken;
import com.pulumi.azure.containerservice.RegistryTokenArgs;
import com.pulumi.azure.containerservice.ConnectedRegistry;
import com.pulumi.azure.containerservice.ConnectedRegistryArgs;
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) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleRegistry = new Registry("exampleRegistry", RegistryArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.sku("Premium")
.dataEndpointEnabled(true)
.build());
var exampleRegistryScopeMap = new RegistryScopeMap("exampleRegistryScopeMap", RegistryScopeMapArgs.builder()
.containerRegistryName(exampleRegistry.name())
.resourceGroupName(exampleRegistry.resourceGroupName())
.actions(
"repositories/hello-world/content/delete",
"repositories/hello-world/content/read",
"repositories/hello-world/content/write",
"repositories/hello-world/metadata/read",
"repositories/hello-world/metadata/write",
"gateway/examplecr/config/read",
"gateway/examplecr/config/write",
"gateway/examplecr/message/read",
"gateway/examplecr/message/write")
.build());
var exampleRegistryToken = new RegistryToken("exampleRegistryToken", RegistryTokenArgs.builder()
.containerRegistryName(exampleRegistry.name())
.resourceGroupName(exampleRegistry.resourceGroupName())
.scopeMapId(exampleRegistryScopeMap.id())
.build());
var exampleConnectedRegistry = new ConnectedRegistry("exampleConnectedRegistry", ConnectedRegistryArgs.builder()
.containerRegistryId(exampleRegistry.id())
.syncTokenId(exampleRegistryToken.id())
.build());
}
}

Import

Container Connected Registries can be imported using the resource id, e.g.

$ pulumi import azure:containerservice/connectedRegistry:ConnectedRegistry example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.ContainerRegistry/registries/registry1/connectedRegistries/registry1

Constructors

Link copied to clipboard
fun ConnectedRegistryArgs(auditLogEnabled: Output<Boolean>? = null, clientTokenIds: Output<List<String>>? = null, containerRegistryId: Output<String>? = null, logLevel: Output<String>? = null, mode: Output<String>? = null, name: Output<String>? = null, notifications: Output<List<ConnectedRegistryNotificationArgs>>? = null, parentRegistryId: Output<String>? = null, syncMessageTtl: Output<String>? = null, syncSchedule: Output<String>? = null, syncTokenId: Output<String>? = null, syncWindow: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ConnectedRegistryArgs

Properties

Link copied to clipboard
val auditLogEnabled: Output<Boolean>? = null

Should the log auditing be enabled?

Link copied to clipboard
val clientTokenIds: Output<List<String>>? = null

Specifies a list of IDs of Container Registry Tokens, which are meant to be used by the clients to connect to the Connected Registry.

Link copied to clipboard
val containerRegistryId: Output<String>? = null

The ID of the Container Registry that this Connected Registry will reside in. Changing this forces a new Container Connected Registry to be created.

Link copied to clipboard
val logLevel: Output<String>? = null

The verbosity of the logs. Possible values are None, Debug, Information, Warning and Error.

Link copied to clipboard
val mode: Output<String>? = null

The mode of the Connected Registry. Possible values are Mirror, ReadOnly, ReadWrite and Registry. Changing this forces a new Container Connected Registry to be created.

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for this Container Connected Registry. Changing this forces a new Container Connected Registry to be created.

Link copied to clipboard

One or more notification blocks as defined below.

Link copied to clipboard
val parentRegistryId: Output<String>? = null

The ID of the parent registry. This can be either a Container Registry ID or a Connected Registry ID. Changing this forces a new Container Connected Registry to be created.

Link copied to clipboard
val syncMessageTtl: Output<String>? = null

The period of time (in form of ISO8601) for which a message is available to sync before it is expired. Allowed range is from P1D to P90D.

Link copied to clipboard
val syncSchedule: Output<String>? = null

The cron expression indicating the schedule that the Connected Registry will sync with its parent. Defaults to * * * * *.

Link copied to clipboard
val syncTokenId: Output<String>? = null

The ID of the Container Registry Token which is used for synchronizing the Connected Registry. Changing this forces a new Container Connected Registry to be created.

Link copied to clipboard
val syncWindow: Output<String>? = null

The time window (in form of ISO8601) during which sync is enabled for each schedule occurrence. Allowed range is from PT3H to P7D.