1. Packages
  2. Azure Classic
  3. API Docs
  4. containerservice
  5. getRegistryScopeMap

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.containerservice.getRegistryScopeMap

Explore with Pulumi AI

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

Use this data source to access information about an existing Container Registry scope map.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.containerservice.getRegistryScopeMap({
    name: "example-scope-map",
    resourceGroupName: "example-resource-group",
    containerRegistryName: "example-registry",
});
export const actions = example.then(example => example.actions);
Copy
import pulumi
import pulumi_azure as azure

example = azure.containerservice.get_registry_scope_map(name="example-scope-map",
    resource_group_name="example-resource-group",
    container_registry_name="example-registry")
pulumi.export("actions", example.actions)
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := containerservice.LookupRegistryScopeMap(ctx, &containerservice.LookupRegistryScopeMapArgs{
			Name:                  "example-scope-map",
			ResourceGroupName:     "example-resource-group",
			ContainerRegistryName: "example-registry",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("actions", example.Actions)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.ContainerService.GetRegistryScopeMap.Invoke(new()
    {
        Name = "example-scope-map",
        ResourceGroupName = "example-resource-group",
        ContainerRegistryName = "example-registry",
    });

    return new Dictionary<string, object?>
    {
        ["actions"] = example.Apply(getRegistryScopeMapResult => getRegistryScopeMapResult.Actions),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.containerservice.ContainerserviceFunctions;
import com.pulumi.azure.containerservice.inputs.GetRegistryScopeMapArgs;
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 example = ContainerserviceFunctions.getRegistryScopeMap(GetRegistryScopeMapArgs.builder()
            .name("example-scope-map")
            .resourceGroupName("example-resource-group")
            .containerRegistryName("example-registry")
            .build());

        ctx.export("actions", example.applyValue(getRegistryScopeMapResult -> getRegistryScopeMapResult.actions()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azure:containerservice:getRegistryScopeMap
      arguments:
        name: example-scope-map
        resourceGroupName: example-resource-group
        containerRegistryName: example-registry
outputs:
  actions: ${example.actions}
Copy

Using getRegistryScopeMap

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getRegistryScopeMap(args: GetRegistryScopeMapArgs, opts?: InvokeOptions): Promise<GetRegistryScopeMapResult>
function getRegistryScopeMapOutput(args: GetRegistryScopeMapOutputArgs, opts?: InvokeOptions): Output<GetRegistryScopeMapResult>
Copy
def get_registry_scope_map(container_registry_name: Optional[str] = None,
                           name: Optional[str] = None,
                           resource_group_name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetRegistryScopeMapResult
def get_registry_scope_map_output(container_registry_name: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           resource_group_name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetRegistryScopeMapResult]
Copy
func LookupRegistryScopeMap(ctx *Context, args *LookupRegistryScopeMapArgs, opts ...InvokeOption) (*LookupRegistryScopeMapResult, error)
func LookupRegistryScopeMapOutput(ctx *Context, args *LookupRegistryScopeMapOutputArgs, opts ...InvokeOption) LookupRegistryScopeMapResultOutput
Copy

> Note: This function is named LookupRegistryScopeMap in the Go SDK.

public static class GetRegistryScopeMap 
{
    public static Task<GetRegistryScopeMapResult> InvokeAsync(GetRegistryScopeMapArgs args, InvokeOptions? opts = null)
    public static Output<GetRegistryScopeMapResult> Invoke(GetRegistryScopeMapInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRegistryScopeMapResult> getRegistryScopeMap(GetRegistryScopeMapArgs args, InvokeOptions options)
public static Output<GetRegistryScopeMapResult> getRegistryScopeMap(GetRegistryScopeMapArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:containerservice/getRegistryScopeMap:getRegistryScopeMap
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ContainerRegistryName This property is required. string
The Name of the Container Registry where the token exists.
Name This property is required. string
The name of the Container Registry token.
ResourceGroupName This property is required. string
The Name of the Resource Group where this Container Registry token exists.
ContainerRegistryName This property is required. string
The Name of the Container Registry where the token exists.
Name This property is required. string
The name of the Container Registry token.
ResourceGroupName This property is required. string
The Name of the Resource Group where this Container Registry token exists.
containerRegistryName This property is required. String
The Name of the Container Registry where the token exists.
name This property is required. String
The name of the Container Registry token.
resourceGroupName This property is required. String
The Name of the Resource Group where this Container Registry token exists.
containerRegistryName This property is required. string
The Name of the Container Registry where the token exists.
name This property is required. string
The name of the Container Registry token.
resourceGroupName This property is required. string
The Name of the Resource Group where this Container Registry token exists.
container_registry_name This property is required. str
The Name of the Container Registry where the token exists.
name This property is required. str
The name of the Container Registry token.
resource_group_name This property is required. str
The Name of the Resource Group where this Container Registry token exists.
containerRegistryName This property is required. String
The Name of the Container Registry where the token exists.
name This property is required. String
The name of the Container Registry token.
resourceGroupName This property is required. String
The Name of the Resource Group where this Container Registry token exists.

getRegistryScopeMap Result

The following output properties are available:

Actions List<string>
The actions for the Scope Map.
ContainerRegistryName string
Description string
Id string
The provider-assigned unique ID for this managed resource.
Name string
ResourceGroupName string
Actions []string
The actions for the Scope Map.
ContainerRegistryName string
Description string
Id string
The provider-assigned unique ID for this managed resource.
Name string
ResourceGroupName string
actions List<String>
The actions for the Scope Map.
containerRegistryName String
description String
id String
The provider-assigned unique ID for this managed resource.
name String
resourceGroupName String
actions string[]
The actions for the Scope Map.
containerRegistryName string
description string
id string
The provider-assigned unique ID for this managed resource.
name string
resourceGroupName string
actions Sequence[str]
The actions for the Scope Map.
container_registry_name str
description str
id str
The provider-assigned unique ID for this managed resource.
name str
resource_group_name str
actions List<String>
The actions for the Scope Map.
containerRegistryName String
description String
id String
The provider-assigned unique ID for this managed resource.
name String
resourceGroupName String

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi