ArmSearchModelFactory.SearchResourceEncryptionKey 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.
public static Azure.ResourceManager.Search.Models.SearchResourceEncryptionKey SearchResourceEncryptionKey(string keyName = default, string keyVersion = default, Uri vaultUri = default, Azure.ResourceManager.Search.Models.SearchDataIdentity identity = default, Azure.ResourceManager.Search.Models.SearchAadApplicationCredentials accessCredentials = default);
static member SearchResourceEncryptionKey : string * string * Uri * Azure.ResourceManager.Search.Models.SearchDataIdentity * Azure.ResourceManager.Search.Models.SearchAadApplicationCredentials -> Azure.ResourceManager.Search.Models.SearchResourceEncryptionKey
Public Shared Function SearchResourceEncryptionKey (Optional keyName As String = Nothing, Optional keyVersion As String = Nothing, Optional vaultUri As Uri = Nothing, Optional identity As SearchDataIdentity = Nothing, Optional accessCredentials As SearchAadApplicationCredentials = Nothing) As SearchResourceEncryptionKey
Parameters
- keyName
- String
The name of your Azure Key Vault key to be used to encrypt your data at rest.
- keyVersion
- String
The version of your Azure Key Vault key to be used to encrypt your data at rest.
- vaultUri
- Uri
The URI of your Azure Key Vault, also referred to as DNS name, that contains the key to be used to encrypt your data at rest. An example URI might be https://my-keyvault-name.vault.azure.net.
- identity
- SearchDataIdentity
An explicit managed identity to use for this encryption key. If not specified and the access credentials property is null, the system-assigned managed identity is used. On update to the resource, if the explicit identity is unspecified, it remains unchanged. If "none" is specified, the value of this property is cleared.
- accessCredentials
- SearchAadApplicationCredentials
Optional Azure Active Directory credentials used for accessing your Azure Key Vault. Not required if using managed identity instead.
Returns
A new SearchResourceEncryptionKey instance for mocking.