Partilhar via


ProtectionContainerMappingCollection.GetIfExists Método

Definição

Tenta obter detalhes para esse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}
  • Operação IdReplicationProtectionContainerMappings_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.ProtectionContainerMappingResource> GetIfExists (string mappingName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.ProtectionContainerMappingResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.ProtectionContainerMappingResource>
Public Overridable Function GetIfExists (mappingName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ProtectionContainerMappingResource)

Parâmetros

mappingName
String

Nome do mapeamento de contêiner de proteção.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

mappingName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

mappingName é nulo.

Aplica-se a