你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmContainerInstanceModelFactory.ContainerGroupImageRegistryCredential Method

Definition

public static Azure.ResourceManager.ContainerInstance.Models.ContainerGroupImageRegistryCredential ContainerGroupImageRegistryCredential(string server = default, string username = default, string password = default, string passwordReference = default, string identity = default, Uri identityUri = default);
static member ContainerGroupImageRegistryCredential : string * string * string * string * string * Uri -> Azure.ResourceManager.ContainerInstance.Models.ContainerGroupImageRegistryCredential
Public Shared Function ContainerGroupImageRegistryCredential (Optional server As String = Nothing, Optional username As String = Nothing, Optional password As String = Nothing, Optional passwordReference As String = Nothing, Optional identity As String = Nothing, Optional identityUri As Uri = Nothing) As ContainerGroupImageRegistryCredential

Parameters

server
String

The Docker image registry server without a protocol such as "http" and "https".

username
String

The username for the private registry.

password
String

The password for the private registry.

passwordReference
String

The reference for the private registry password.

identity
String

The identity for the private registry.

identityUri
Uri

The identity URL for the private registry.

Returns

A new ContainerGroupImageRegistryCredential instance for mocking.

Applies to