1. Packages
  2. Azure Native v2
  3. API Docs
  4. media
  5. getAssetEncryptionKey
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.media.getAssetEncryptionKey

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API Azure REST API version: 2023-01-01.

Using getAssetEncryptionKey

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAssetEncryptionKey(args: GetAssetEncryptionKeyArgs, opts?: InvokeOptions): Promise<GetAssetEncryptionKeyResult>
function getAssetEncryptionKeyOutput(args: GetAssetEncryptionKeyOutputArgs, opts?: InvokeOptions): Output<GetAssetEncryptionKeyResult>
Copy
def get_asset_encryption_key(account_name: Optional[str] = None,
                             asset_name: Optional[str] = None,
                             resource_group_name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetAssetEncryptionKeyResult
def get_asset_encryption_key_output(account_name: Optional[pulumi.Input[str]] = None,
                             asset_name: Optional[pulumi.Input[str]] = None,
                             resource_group_name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetAssetEncryptionKeyResult]
Copy
func GetAssetEncryptionKey(ctx *Context, args *GetAssetEncryptionKeyArgs, opts ...InvokeOption) (*GetAssetEncryptionKeyResult, error)
func GetAssetEncryptionKeyOutput(ctx *Context, args *GetAssetEncryptionKeyOutputArgs, opts ...InvokeOption) GetAssetEncryptionKeyResultOutput
Copy

> Note: This function is named GetAssetEncryptionKey in the Go SDK.

public static class GetAssetEncryptionKey 
{
    public static Task<GetAssetEncryptionKeyResult> InvokeAsync(GetAssetEncryptionKeyArgs args, InvokeOptions? opts = null)
    public static Output<GetAssetEncryptionKeyResult> Invoke(GetAssetEncryptionKeyInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAssetEncryptionKeyResult> getAssetEncryptionKey(GetAssetEncryptionKeyArgs args, InvokeOptions options)
public static Output<GetAssetEncryptionKeyResult> getAssetEncryptionKey(GetAssetEncryptionKeyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:media:getAssetEncryptionKey
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountName
This property is required.
Changes to this property will trigger replacement.
string
The Media Services account name.
AssetName
This property is required.
Changes to this property will trigger replacement.
string
The Asset name.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the Azure subscription.
AccountName
This property is required.
Changes to this property will trigger replacement.
string
The Media Services account name.
AssetName
This property is required.
Changes to this property will trigger replacement.
string
The Asset name.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the Azure subscription.
accountName
This property is required.
Changes to this property will trigger replacement.
String
The Media Services account name.
assetName
This property is required.
Changes to this property will trigger replacement.
String
The Asset name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group within the Azure subscription.
accountName
This property is required.
Changes to this property will trigger replacement.
string
The Media Services account name.
assetName
This property is required.
Changes to this property will trigger replacement.
string
The Asset name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the Azure subscription.
account_name
This property is required.
Changes to this property will trigger replacement.
str
The Media Services account name.
asset_name
This property is required.
Changes to this property will trigger replacement.
str
The Asset name.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group within the Azure subscription.
accountName
This property is required.
Changes to this property will trigger replacement.
String
The Media Services account name.
assetName
This property is required.
Changes to this property will trigger replacement.
String
The Asset name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group within the Azure subscription.

getAssetEncryptionKey Result

The following output properties are available:

AssetFileEncryptionMetadata List<Pulumi.AzureNative.Media.Outputs.AssetFileEncryptionMetadataResponse>
Asset File encryption metadata.
Key string
The Asset File storage encryption key.
AssetFileEncryptionMetadata []AssetFileEncryptionMetadataResponse
Asset File encryption metadata.
Key string
The Asset File storage encryption key.
assetFileEncryptionMetadata List<AssetFileEncryptionMetadataResponse>
Asset File encryption metadata.
key String
The Asset File storage encryption key.
assetFileEncryptionMetadata AssetFileEncryptionMetadataResponse[]
Asset File encryption metadata.
key string
The Asset File storage encryption key.
asset_file_encryption_metadata Sequence[AssetFileEncryptionMetadataResponse]
Asset File encryption metadata.
key str
The Asset File storage encryption key.
assetFileEncryptionMetadata List<Property Map>
Asset File encryption metadata.
key String
The Asset File storage encryption key.

Supporting Types

AssetFileEncryptionMetadataResponse

AssetFileId This property is required. string
The Asset File Id.
AssetFileName string
The Asset File name.
InitializationVector string
The Asset File initialization vector.
AssetFileId This property is required. string
The Asset File Id.
AssetFileName string
The Asset File name.
InitializationVector string
The Asset File initialization vector.
assetFileId This property is required. String
The Asset File Id.
assetFileName String
The Asset File name.
initializationVector String
The Asset File initialization vector.
assetFileId This property is required. string
The Asset File Id.
assetFileName string
The Asset File name.
initializationVector string
The Asset File initialization vector.
asset_file_id This property is required. str
The Asset File Id.
asset_file_name str
The Asset File name.
initialization_vector str
The Asset File initialization vector.
assetFileId This property is required. String
The Asset File Id.
assetFileName String
The Asset File name.
initializationVector String
The Asset File initialization vector.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi