ICredentialOperations.CreateOrUpdateWithHttpMessagesAsync Metod

Definition

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Automation.Models.Credential>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string automationAccountName, string credentialName, Microsoft.Azure.Management.Automation.Models.CredentialCreateOrUpdateParameters parameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.Automation.Models.CredentialCreateOrUpdateParameters * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Automation.Models.Credential>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, automationAccountName As String, credentialName As String, parameters As CredentialCreateOrUpdateParameters, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Credential))

Parametrar

resourceGroupName
String

Namnet på en Azure-resursgrupp.

automationAccountName
String

Namnet på Automation-kontot.

credentialName
String

De parametrar som angetts för åtgärden för att skapa eller uppdatera autentiseringsuppgifter.

parameters
CredentialCreateOrUpdateParameters

De parametrar som angetts för åtgärden för att skapa eller uppdatera autentiseringsuppgifter.

customHeaders
Dictionary<String,List<String>>

Rubrikerna som ska läggas till i begäran.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

Undantag

Genereras när åtgärden returnerade en ogiltig statuskod

Utlöses när det inte går att deserialisera svaret

Genereras när en obligatorisk parameter är null

Gäller för