ScopeMapArgs

data class ScopeMapArgs(val actions: Output<List<String>>? = null, val description: Output<String>? = null, val registryName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val scopeMapName: Output<String>? = null) : ConvertibleToJava<ScopeMapArgs>

An object that represents a scope map for a container registry. Uses Azure REST API version 2024-11-01-preview. In version 2.x of the Azure Native provider, it used API version 2022-12-01. Other available API versions: 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview, 2022-12-01, 2023-01-01-preview, 2023-06-01-preview, 2023-07-01, 2023-08-01-preview, 2023-11-01-preview, 2025-03-01-preview, 2025-04-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native containerregistry [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

ScopeMapCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var scopeMap = new AzureNative.ContainerRegistry.ScopeMap("scopeMap", new()
{
Actions = new[]
{
"repositories/myrepository/contentWrite",
"repositories/myrepository/delete",
},
Description = "Developer Scopes",
RegistryName = "myRegistry",
ResourceGroupName = "myResourceGroup",
ScopeMapName = "myScopeMap",
});
});
package main
import (
containerregistry "github.com/pulumi/pulumi-azure-native-sdk/containerregistry/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerregistry.NewScopeMap(ctx, "scopeMap", &containerregistry.ScopeMapArgs{
Actions: pulumi.StringArray{
pulumi.String("repositories/myrepository/contentWrite"),
pulumi.String("repositories/myrepository/delete"),
},
Description: pulumi.String("Developer Scopes"),
RegistryName: pulumi.String("myRegistry"),
ResourceGroupName: pulumi.String("myResourceGroup"),
ScopeMapName: pulumi.String("myScopeMap"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.containerregistry.ScopeMap;
import com.pulumi.azurenative.containerregistry.ScopeMapArgs;
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 scopeMap = new ScopeMap("scopeMap", ScopeMapArgs.builder()
.actions(
"repositories/myrepository/contentWrite",
"repositories/myrepository/delete")
.description("Developer Scopes")
.registryName("myRegistry")
.resourceGroupName("myResourceGroup")
.scopeMapName("myScopeMap")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:containerregistry:ScopeMap myScopeMap /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}

Constructors

Link copied to clipboard
constructor(actions: Output<List<String>>? = null, description: Output<String>? = null, registryName: Output<String>? = null, resourceGroupName: Output<String>? = null, scopeMapName: Output<String>? = null)

Properties

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

The list of scoped permissions for registry artifacts. E.g. repositories/repository-name/content/read, repositories/repository-name/metadata/write

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

The user friendly description of the scope map.

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

The name of the container registry.

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

The name of the resource group. The name is case insensitive.

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

The name of the scope map.

Functions

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