Partilhar via


IContainerGroups.GetLogContentAsync Método

Definição

Sobrecargas

GetLogContentAsync(String, String, String, CancellationToken)

Obtenha o conteúdo do log da instância de contêiner especificada em um grupo de contêineres.

GetLogContentAsync(String, String, String, Int32, CancellationToken)

Obtenha o conteúdo do log da instância de contêiner especificada em um grupo de contêineres.

GetLogContentAsync(String, String, String, CancellationToken)

Obtenha o conteúdo do log da instância de contêiner especificada em um grupo de contêineres.

public System.Threading.Tasks.Task<string> GetLogContentAsync (string resourceGroupName, string containerGroupName, string containerName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLogContentAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetLogContentAsync (resourceGroupName As String, containerGroupName As String, containerName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parâmetros

resourceGroupName
String

O nome do grupo de recursos do Azure.

containerGroupName
String

O nome do grupo de contêineres.

containerName
String

O nome da instância do contêiner.

cancellationToken
CancellationToken

Retornos

Aplica-se a

GetLogContentAsync(String, String, String, Int32, CancellationToken)

Obtenha o conteúdo do log da instância de contêiner especificada em um grupo de contêineres.

public System.Threading.Tasks.Task<string> GetLogContentAsync (string resourceGroupName, string containerGroupName, string containerName, int tailLineCount, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLogContentAsync : string * string * string * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetLogContentAsync (resourceGroupName As String, containerGroupName As String, containerName As String, tailLineCount As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parâmetros

resourceGroupName
String

O nome do grupo de recursos do Azure.

containerGroupName
String

O nome do grupo de contêineres.

containerName
String

O nome da instância do contêiner.

tailLineCount
Int32

Obtenha apenas as últimas linhas de log para isso.

cancellationToken
CancellationToken

Retornos

Aplica-se a