KeyVaultClient.SetSasDefinitionWithHttpMessagesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기