Compartir a través de


ContainerAppResource.GetSourceControlAsync(String, CancellationToken) Método

Definición

Obtiene un SourceControl de una aplicación contenedora. Ruta de acceso de solicitud: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName} Id. de operación: ContainerAppsSourceControls_Get

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Applications.Containers.SourceControlResource>> GetSourceControlAsync (string sourceControlName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSourceControlAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Applications.Containers.SourceControlResource>>
override this.GetSourceControlAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Applications.Containers.SourceControlResource>>
Public Overridable Function GetSourceControlAsync (sourceControlName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SourceControlResource))

Parámetros

sourceControlName
String

Nombre de Container App SourceControl.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

sourceControlName es una cadena vacía y se esperaba que no estuviera vacía.

sourceControlName es null.

Se aplica a