ServiceResource.GetServiceUnitResourceAsync(String, CancellationToken) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient l’unité de service.
- Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}/serviceUnits/{serviceUnitName}
- IdServiceUnits_Get d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceUnitResource>> GetServiceUnitResourceAsync (string serviceUnitName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetServiceUnitResourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceUnitResource>>
override this.GetServiceUnitResourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceUnitResource>>
Public Overridable Function GetServiceUnitResourceAsync (serviceUnitName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ServiceUnitResource))
Paramètres
- serviceUnitName
- String
Nom de la ressource d’unité de service.
- cancellationToken
- CancellationToken
Jeton d’annulation à utiliser.
Retours
Exceptions
serviceUnitName
est une chaîne vide, et on s’attendait à ce qu’elle ne soit pas vide.
serviceUnitName
a la valeur null.
S’applique à
Azure SDK for .NET
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour