Azure Classic
getRegistryScopeMap
Use this data source to access information about an existing Container Registry scope map.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.ContainerService.GetRegistryScopeMap.InvokeAsync(new Azure.ContainerService.GetRegistryScopeMapArgs
{
Name = "example-scope-map",
ResourceGroupName = "example-resource-group",
ContainerRegistryName = "example-registry",
}));
this.Actions = example.Apply(example => example.Actions);
}
[Output("actions")]
public Output<string> Actions { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/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
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = Output.of(ContainerserviceFunctions.getRegistryScopeMap(GetRegistryScopeMapArgs.builder()
.name("example-scope-map")
.resourceGroupName("example-resource-group")
.containerRegistryName("example-registry")
.build()));
ctx.export("actions", example.apply(getRegistryScopeMapResult -> getRegistryScopeMapResult.getActions()));
}
}
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)
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);
variables:
example:
Fn::Invoke:
Function: azure:containerservice:getRegistryScopeMap
Arguments:
name: example-scope-map
resourceGroupName: example-resource-group
containerRegistryName: example-registry
outputs:
actions: ${example.actions}
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>
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]
func LookupRegistryScopeMap(ctx *Context, args *LookupRegistryScopeMapArgs, opts ...InvokeOption) (*LookupRegistryScopeMapResult, error)
func LookupRegistryScopeMapOutput(ctx *Context, args *LookupRegistryScopeMapOutputArgs, opts ...InvokeOption) LookupRegistryScopeMapResultOutput
> 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)
}
public static CompletableFuture<GetRegistryScopeMapResult> getRegistryScopeMap(GetRegistryScopeMapArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: azure:containerservice/getRegistryScopeMap:getRegistryScopeMap
Arguments:
# Arguments dictionary
The following arguments are supported:
- Container
Registry stringName The Name of the Container Registry where the token exists.
- Name string
The name of the Container Registry token.
- Resource
Group stringName The Name of the Resource Group where this Container Registry token exists.
- Container
Registry stringName The Name of the Container Registry where the token exists.
- Name string
The name of the Container Registry token.
- Resource
Group stringName The Name of the Resource Group where this Container Registry token exists.
- container
Registry StringName The Name of the Container Registry where the token exists.
- name String
The name of the Container Registry token.
- resource
Group StringName The Name of the Resource Group where this Container Registry token exists.
- container
Registry stringName The Name of the Container Registry where the token exists.
- name string
The name of the Container Registry token.
- resource
Group stringName The Name of the Resource Group where this Container Registry token exists.
- container_
registry_ strname The Name of the Container Registry where the token exists.
- name str
The name of the Container Registry token.
- resource_
group_ strname The Name of the Resource Group where this Container Registry token exists.
- container
Registry StringName The Name of the Container Registry where the token exists.
- name String
The name of the Container Registry token.
- resource
Group StringName 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.
- Container
Registry stringName - Description string
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Resource
Group stringName
- Actions []string
The actions for the Scope Map.
- Container
Registry stringName - Description string
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Resource
Group stringName
- actions
List
The actions for the Scope Map.
- container
Registry StringName - description String
- id String
The provider-assigned unique ID for this managed resource.
- name String
- resource
Group StringName
- actions string[]
The actions for the Scope Map.
- container
Registry stringName - description string
- id string
The provider-assigned unique ID for this managed resource.
- name string
- resource
Group stringName
- actions Sequence[str]
The actions for the Scope Map.
- container_
registry_ strname - description str
- id str
The provider-assigned unique ID for this managed resource.
- name str
- resource_
group_ strname
- actions
List
The actions for the Scope Map.
- container
Registry StringName - description String
- id String
The provider-assigned unique ID for this managed resource.
- name String
- resource
Group StringName
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.