ICloudServiceRoleInstancesOperations.GetWithHttpMessagesAsync 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 un rôle instance à partir d’un service cloud.
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Compute.Models.RoleInstance>> GetWithHttpMessagesAsync(string roleInstanceName, string resourceGroupName, string cloudServiceName, Microsoft.Azure.Management.Compute.Models.InstanceViewTypes? expand = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetWithHttpMessagesAsync : string * string * string * Nullable<Microsoft.Azure.Management.Compute.Models.InstanceViewTypes> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Compute.Models.RoleInstance>>
Public Function GetWithHttpMessagesAsync (roleInstanceName As String, resourceGroupName As String, cloudServiceName As String, Optional expand As Nullable(Of InstanceViewTypes) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of RoleInstance))
Paramètres
- roleInstanceName
- String
Nom du rôle instance.
- resourceGroupName
- String
Nom du groupe de ressources.
- cloudServiceName
- String
Nom du service cloud.
- expand
- Nullable<InstanceViewTypes>
Expression de développement à appliquer à l’opération. « UserData » n’est pas pris en charge pour les services cloud. Les valeurs possibles sont les suivantes : 'instanceView', 'userData'
- customHeaders
- Dictionary<String,List<String>>
En-têtes qui seront ajoutés à la demande.
- cancellationToken
- CancellationToken
Jeton d'annulation.
Retours
Exceptions
Levée lorsque l’opération a retourné un code de status non valide
Levée en cas d’impossibilité de désérialiser la réponse
Levée lorsqu’un paramètre obligatoire a la valeur Null
S’applique à
Azure SDK for .NET