GetRegistry
Use this data source to access information about an existing Container Registry.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.ContainerService.GetRegistry.InvokeAsync(new Azure.ContainerService.GetRegistryArgs
{
Name = "testacr",
ResourceGroupName = "test",
}));
this.LoginServer = example.Apply(example => example.LoginServer);
}
[Output("loginServer")]
public Output<string> LoginServer { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/containerservice"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := containerservice.LookupRegistry(ctx, &containerservice.LookupRegistryArgs{
Name: "testacr",
ResourceGroupName: "test",
}, nil)
if err != nil {
return err
}
ctx.Export("loginServer", example.LoginServer)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.containerservice.get_registry(name="testacr",
resource_group_name="test")
pulumi.export("loginServer", example.login_server)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.containerservice.getRegistry({
name: "testacr",
resourceGroupName: "test",
});
export const loginServer = example.then(example => example.loginServer);Using GetRegistry
function getRegistry(args: GetRegistryArgs, opts?: InvokeOptions): Promise<GetRegistryResult>function get_registry(name=None, resource_group_name=None, opts=None)func LookupRegistry(ctx *Context, args *LookupRegistryArgs, opts ...InvokeOption) (*LookupRegistryResult, error)Note: This function is named
LookupRegistryin the Go SDK.
public static class GetRegistry {
public static Task<GetRegistryResult> InvokeAsync(GetRegistryArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the Container Registry.
- Resource
Group stringName The Name of the Resource Group where this Container Registry exists.
- Name string
The name of the Container Registry.
- Resource
Group stringName The Name of the Resource Group where this Container Registry exists.
- name string
The name of the Container Registry.
- resource
Group stringName The Name of the Resource Group where this Container Registry exists.
- name str
The name of the Container Registry.
- resource_
group_ strname The Name of the Resource Group where this Container Registry exists.
GetRegistry Result
The following output properties are available:
- Admin
Enabled bool Is the Administrator account enabled for this Container Registry.
- Admin
Password string The Password associated with the Container Registry Admin account - if the admin account is enabled.
- Admin
Username string The Username associated with the Container Registry Admin account - if the admin account is enabled.
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
The Azure Region in which this Container Registry exists.
- Login
Server string The URL that can be used to log into the container registry.
- Name string
- Resource
Group stringName - Sku string
The SKU of this Container Registry, such as
Basic.- Storage
Account stringId The ID of the Storage Account used for this Container Registry. This is only returned for
ClassicSKU’s.- Dictionary<string, string>
A map of tags assigned to the Container Registry.
- Admin
Enabled bool Is the Administrator account enabled for this Container Registry.
- Admin
Password string The Password associated with the Container Registry Admin account - if the admin account is enabled.
- Admin
Username string The Username associated with the Container Registry Admin account - if the admin account is enabled.
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
The Azure Region in which this Container Registry exists.
- Login
Server string The URL that can be used to log into the container registry.
- Name string
- Resource
Group stringName - Sku string
The SKU of this Container Registry, such as
Basic.- Storage
Account stringId The ID of the Storage Account used for this Container Registry. This is only returned for
ClassicSKU’s.- map[string]string
A map of tags assigned to the Container Registry.
- admin
Enabled boolean Is the Administrator account enabled for this Container Registry.
- admin
Password string The Password associated with the Container Registry Admin account - if the admin account is enabled.
- admin
Username string The Username associated with the Container Registry Admin account - if the admin account is enabled.
- id string
The provider-assigned unique ID for this managed resource.
- location string
The Azure Region in which this Container Registry exists.
- login
Server string The URL that can be used to log into the container registry.
- name string
- resource
Group stringName - sku string
The SKU of this Container Registry, such as
Basic.- storage
Account stringId The ID of the Storage Account used for this Container Registry. This is only returned for
ClassicSKU’s.- {[key: string]: string}
A map of tags assigned to the Container Registry.
- admin_
enabled bool Is the Administrator account enabled for this Container Registry.
- admin_
password str The Password associated with the Container Registry Admin account - if the admin account is enabled.
- admin_
username str The Username associated with the Container Registry Admin account - if the admin account is enabled.
- id str
The provider-assigned unique ID for this managed resource.
- location str
The Azure Region in which this Container Registry exists.
- login_
server str The URL that can be used to log into the container registry.
- name str
- resource_
group_ strname - sku str
The SKU of this Container Registry, such as
Basic.- storage_
account_ strid The ID of the Storage Account used for this Container Registry. This is only returned for
ClassicSKU’s.- Dict[str, str]
A map of tags assigned to the Container Registry.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.