다음을 통해 공유


KeyVaultClient.SetSasDefinitionWithHttpMessagesAsync Method

Definition

Creates or updates a new SAS definition for the specified storage account. This operation requires the storage/setsas permission.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.KeyVault.Models.SasDefinitionBundle>> SetSasDefinitionWithHttpMessagesAsync (string vaultBaseUrl, string storageAccountName, string sasDefinitionName, string templateUri, string sasType, string validityPeriod, 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 SetSasDefinitionWithHttpMessagesAsync : 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.SetSasDefinitionWithHttpMessagesAsync : 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 SetSasDefinitionWithHttpMessagesAsync (vaultBaseUrl As String, storageAccountName As String, sasDefinitionName As String, templateUri As String, sasType As String, validityPeriod As String, 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