1. Packages
  2. Azure Native
  3. API Docs
  4. containerregistry
  5. listRegistryCredentials
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.containerregistry.listRegistryCredentials

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

Lists the login credentials for the specified container registry.

Uses Azure REST API version 2024-11-01-preview.

Other available API versions: 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview, 2022-12-01, 2023-01-01-preview, 2023-06-01-preview, 2023-07-01, 2023-08-01-preview, 2023-11-01-preview, 2025-03-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native containerregistry [ApiVersion]. See the version guide for details.

Using listRegistryCredentials

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 listRegistryCredentials(args: ListRegistryCredentialsArgs, opts?: InvokeOptions): Promise<ListRegistryCredentialsResult>
function listRegistryCredentialsOutput(args: ListRegistryCredentialsOutputArgs, opts?: InvokeOptions): Output<ListRegistryCredentialsResult>
Copy
def list_registry_credentials(registry_name: Optional[str] = None,
                              resource_group_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> ListRegistryCredentialsResult
def list_registry_credentials_output(registry_name: Optional[pulumi.Input[str]] = None,
                              resource_group_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[ListRegistryCredentialsResult]
Copy
func ListRegistryCredentials(ctx *Context, args *ListRegistryCredentialsArgs, opts ...InvokeOption) (*ListRegistryCredentialsResult, error)
func ListRegistryCredentialsOutput(ctx *Context, args *ListRegistryCredentialsOutputArgs, opts ...InvokeOption) ListRegistryCredentialsResultOutput
Copy

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

public static class ListRegistryCredentials 
{
    public static Task<ListRegistryCredentialsResult> InvokeAsync(ListRegistryCredentialsArgs args, InvokeOptions? opts = null)
    public static Output<ListRegistryCredentialsResult> Invoke(ListRegistryCredentialsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<ListRegistryCredentialsResult> listRegistryCredentials(ListRegistryCredentialsArgs args, InvokeOptions options)
public static Output<ListRegistryCredentialsResult> listRegistryCredentials(ListRegistryCredentialsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:containerregistry:listRegistryCredentials
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

RegistryName
This property is required.
Changes to this property will trigger replacement.
string
The name of the container registry.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
RegistryName
This property is required.
Changes to this property will trigger replacement.
string
The name of the container registry.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
registryName
This property is required.
Changes to this property will trigger replacement.
String
The name of the container registry.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
registryName
This property is required.
Changes to this property will trigger replacement.
string
The name of the container registry.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
registry_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the container registry.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
registryName
This property is required.
Changes to this property will trigger replacement.
String
The name of the container registry.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.

listRegistryCredentials Result

The following output properties are available:

Passwords List<Pulumi.AzureNative.ContainerRegistry.Outputs.RegistryPasswordResponse>
The list of passwords for a container registry.
Username string
The username for a container registry.
Passwords []RegistryPasswordResponse
The list of passwords for a container registry.
Username string
The username for a container registry.
passwords List<RegistryPasswordResponse>
The list of passwords for a container registry.
username String
The username for a container registry.
passwords RegistryPasswordResponse[]
The list of passwords for a container registry.
username string
The username for a container registry.
passwords Sequence[RegistryPasswordResponse]
The list of passwords for a container registry.
username str
The username for a container registry.
passwords List<Property Map>
The list of passwords for a container registry.
username String
The username for a container registry.

Supporting Types

RegistryPasswordResponse

Name string
The password name.
Value string
The password value.
Name string
The password name.
Value string
The password value.
name String
The password name.
value String
The password value.
name string
The password name.
value string
The password value.
name str
The password name.
value str
The password value.
name String
The password name.
value String
The password value.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi