Partilhar via


DevSpacesExtensions.GetContainerHostMappingContainerHostMappingAsync Método

Definição

Retorna o objeto de mapeamento de host de contêiner para uma ID de recurso de host de contêiner se houver um controlador associado.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/locations/{location}/checkContainerHostMapping
  • Operação IdContainerHostMappings_GetContainerHostMapping
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevSpaces.Models.ContainerHostMapping>> GetContainerHostMappingContainerHostMappingAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation location, Azure.ResourceManager.DevSpaces.Models.ContainerHostMapping containerHostMapping, System.Threading.CancellationToken cancellationToken = default);
static member GetContainerHostMappingContainerHostMappingAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * Azure.ResourceManager.DevSpaces.Models.ContainerHostMapping * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevSpaces.Models.ContainerHostMapping>>
<Extension()>
Public Function GetContainerHostMappingContainerHostMappingAsync (resourceGroupResource As ResourceGroupResource, location As AzureLocation, containerHostMapping As ContainerHostMapping, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ContainerHostMapping))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância em que o método será executado.

location
AzureLocation

Local do host do contêiner.

containerHostMapping
ContainerHostMapping

O ContainerHostMapping a ser usado.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

containerHostMapping é nulo.

Aplica-se a