Scope Map
An object that represents a scope map for a container registry. Uses Azure REST API version 2022-12-01. In version 1.x of the Azure Native provider, it used API version 2020-11-01-preview. Other available API versions: 2023-01-01-preview, 2023-06-01-preview, 2023-07-01, 2023-08-01-preview, 2023-11-01-preview, 2024-11-01-preview.
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",
});
});
Content copied to clipboard
package main
import (
containerregistry "github.com/pulumi/pulumi-azure-native-sdk/containerregistry/v2"
"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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Properties
Link copied to clipboard
The creation date of scope map.
Link copied to clipboard
The user friendly description of the scope map.
Link copied to clipboard
Provisioning state of the resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Metadata pertaining to creation and last modification of the resource.