IInstructionsOperations.PutWithHttpMessagesAsync(String, String, String, Instruction, Dictionary<String,List<String>>, CancellationToken) Method

Definition

Creates or updates an instruction. These are custom billing instructions and are only applicable for certain customers.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Billing.Models.Instruction>> PutWithHttpMessagesAsync (string billingAccountName, string billingProfileName, string instructionName, Microsoft.Azure.Management.Billing.Models.Instruction parameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member PutWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.Billing.Models.Instruction * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Billing.Models.Instruction>>
Public Function PutWithHttpMessagesAsync (billingAccountName As String, billingProfileName As String, instructionName As String, parameters As Instruction, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Instruction))

Parameters

billingAccountName
String

The ID that uniquely identifies a billing account.

billingProfileName
String

The ID that uniquely identifies a billing profile.

instructionName
String

Instruction Name.

parameters
Instruction

The new instruction.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<AzureOperationResponse<Instruction>>

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to