ScopeMap

An object that represents a scope map for a container registry. API Version: 2020-11-01-preview.

Example Usage

ScopeMapCreate

using System.Collections.Generic;
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/go/azure/containerregistry"
"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/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap

Properties

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

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 creationDate: Output<String>

The creation date of scope map.

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

The user friendly description of the scope map.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource.

Link copied to clipboard

Provisioning state of the resource.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard
val urn: Output<String>