Share via


KeyVaultClient.UpdateSasDefinitionWithHttpMessagesAsync Method

Definition

Updates the specified attributes associated with the given SAS definition. This operation requires the storage/setsas permission.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.KeyVault.Models.SasDefinitionBundle>> UpdateSasDefinitionWithHttpMessagesAsync (string vaultBaseUrl, string storageAccountName, string sasDefinitionName, string templateUri = default, string sasType = default, string validityPeriod = default, Microsoft.Azure.KeyVault.Models.SasDefinitionAttributes sasDefinitionAttributes = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateSasDefinitionWithHttpMessagesAsync : string * string * string * string * string * string * Microsoft.Azure.KeyVault.Models.SasDefinitionAttributes * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.KeyVault.Models.SasDefinitionBundle>>
override this.UpdateSasDefinitionWithHttpMessagesAsync : string * string * string * string * string * string * Microsoft.Azure.KeyVault.Models.SasDefinitionAttributes * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.KeyVault.Models.SasDefinitionBundle>>
Public Function UpdateSasDefinitionWithHttpMessagesAsync (vaultBaseUrl As String, storageAccountName As String, sasDefinitionName As String, Optional templateUri As String = Nothing, Optional sasType As String = Nothing, Optional validityPeriod As String = Nothing, Optional sasDefinitionAttributes As SasDefinitionAttributes = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of SasDefinitionBundle))

Parameters

vaultBaseUrl
String

The vault name, for example https://myvault.vault.azure.net.

storageAccountName
String

The name of the storage account.

sasDefinitionName
String

The name of the SAS definition.

templateUri
String

The SAS definition token template signed with an arbitrary key. Tokens created according to the SAS definition will have the same properties as the template.

sasType
String

The type of SAS token the SAS definition will create. Possible values include: 'account', 'service'

validityPeriod
String

The validity period of SAS tokens created according to the SAS definition.

sasDefinitionAttributes
SasDefinitionAttributes

The attributes of the SAS definition.

tags
IDictionary<String,String>

Application specific metadata in the form of key-value pairs.

customHeaders
Dictionary<String,List<String>>

Headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Implements

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Thrown when a required parameter is null

Applies to