Dela via


KeyVaultClientExtensions.SetSasDefinitionAsync Method

Definition

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

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.SasDefinitionBundle> SetSasDefinitionAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, 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.Threading.CancellationToken cancellationToken = default);
static member SetSasDefinitionAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * string * string * string * string * Microsoft.Azure.KeyVault.Models.SasDefinitionAttributes * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.SasDefinitionBundle>
<Extension()>
Public Function SetSasDefinitionAsync (operations As IKeyVaultClient, 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 cancellationToken As CancellationToken = Nothing) As Task(Of SasDefinitionBundle)

Parameters

operations
IKeyVaultClient

The operations group for this extension method.

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.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to