We recommend using Azure Native.
azure.media.StreamingLocator
Explore with Pulumi AI
Manages a Media Streaming Locator.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "media-resources",
location: "West Europe",
});
const exampleAccount = new azure.storage.Account("example", {
name: "examplestoracc",
resourceGroupName: example.name,
location: example.location,
accountTier: "Standard",
accountReplicationType: "GRS",
});
const exampleServiceAccount = new azure.media.ServiceAccount("example", {
name: "examplemediaacc",
location: example.location,
resourceGroupName: example.name,
storageAccounts: [{
id: exampleAccount.id,
isPrimary: true,
}],
});
const exampleAccountFilter = new azure.media.AccountFilter("example", {
name: "Filter1",
resourceGroupName: example.name,
mediaServicesAccountName: exampleServiceAccount.name,
});
const exampleAsset = new azure.media.Asset("example", {
name: "Asset1",
resourceGroupName: example.name,
mediaServicesAccountName: exampleServiceAccount.name,
description: "Asset description",
});
const exampleStreamingLocator = new azure.media.StreamingLocator("example", {
name: "example",
resourceGroupName: example.name,
mediaServicesAccountName: exampleServiceAccount.name,
assetName: exampleAsset.name,
streamingPolicyName: "Predefined_ClearStreamingOnly",
filterNames: [exampleAccountFilter.name],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="media-resources",
location="West Europe")
example_account = azure.storage.Account("example",
name="examplestoracc",
resource_group_name=example.name,
location=example.location,
account_tier="Standard",
account_replication_type="GRS")
example_service_account = azure.media.ServiceAccount("example",
name="examplemediaacc",
location=example.location,
resource_group_name=example.name,
storage_accounts=[azure.media.ServiceAccountStorageAccountArgs(
id=example_account.id,
is_primary=True,
)])
example_account_filter = azure.media.AccountFilter("example",
name="Filter1",
resource_group_name=example.name,
media_services_account_name=example_service_account.name)
example_asset = azure.media.Asset("example",
name="Asset1",
resource_group_name=example.name,
media_services_account_name=example_service_account.name,
description="Asset description")
example_streaming_locator = azure.media.StreamingLocator("example",
name="example",
resource_group_name=example.name,
media_services_account_name=example_service_account.name,
asset_name=example_asset.name,
streaming_policy_name="Predefined_ClearStreamingOnly",
filter_names=[example_account_filter.name])
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/media"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("media-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
Name: pulumi.String("examplestoracc"),
ResourceGroupName: example.Name,
Location: example.Location,
AccountTier: pulumi.String("Standard"),
AccountReplicationType: pulumi.String("GRS"),
})
if err != nil {
return err
}
exampleServiceAccount, err := media.NewServiceAccount(ctx, "example", &media.ServiceAccountArgs{
Name: pulumi.String("examplemediaacc"),
Location: example.Location,
ResourceGroupName: example.Name,
StorageAccounts: media.ServiceAccountStorageAccountArray{
&media.ServiceAccountStorageAccountArgs{
Id: exampleAccount.ID(),
IsPrimary: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
exampleAccountFilter, err := media.NewAccountFilter(ctx, "example", &media.AccountFilterArgs{
Name: pulumi.String("Filter1"),
ResourceGroupName: example.Name,
MediaServicesAccountName: exampleServiceAccount.Name,
})
if err != nil {
return err
}
exampleAsset, err := media.NewAsset(ctx, "example", &media.AssetArgs{
Name: pulumi.String("Asset1"),
ResourceGroupName: example.Name,
MediaServicesAccountName: exampleServiceAccount.Name,
Description: pulumi.String("Asset description"),
})
if err != nil {
return err
}
_, err = media.NewStreamingLocator(ctx, "example", &media.StreamingLocatorArgs{
Name: pulumi.String("example"),
ResourceGroupName: example.Name,
MediaServicesAccountName: exampleServiceAccount.Name,
AssetName: exampleAsset.Name,
StreamingPolicyName: pulumi.String("Predefined_ClearStreamingOnly"),
FilterNames: pulumi.StringArray{
exampleAccountFilter.Name,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "media-resources",
Location = "West Europe",
});
var exampleAccount = new Azure.Storage.Account("example", new()
{
Name = "examplestoracc",
ResourceGroupName = example.Name,
Location = example.Location,
AccountTier = "Standard",
AccountReplicationType = "GRS",
});
var exampleServiceAccount = new Azure.Media.ServiceAccount("example", new()
{
Name = "examplemediaacc",
Location = example.Location,
ResourceGroupName = example.Name,
StorageAccounts = new[]
{
new Azure.Media.Inputs.ServiceAccountStorageAccountArgs
{
Id = exampleAccount.Id,
IsPrimary = true,
},
},
});
var exampleAccountFilter = new Azure.Media.AccountFilter("example", new()
{
Name = "Filter1",
ResourceGroupName = example.Name,
MediaServicesAccountName = exampleServiceAccount.Name,
});
var exampleAsset = new Azure.Media.Asset("example", new()
{
Name = "Asset1",
ResourceGroupName = example.Name,
MediaServicesAccountName = exampleServiceAccount.Name,
Description = "Asset description",
});
var exampleStreamingLocator = new Azure.Media.StreamingLocator("example", new()
{
Name = "example",
ResourceGroupName = example.Name,
MediaServicesAccountName = exampleServiceAccount.Name,
AssetName = exampleAsset.Name,
StreamingPolicyName = "Predefined_ClearStreamingOnly",
FilterNames = new[]
{
exampleAccountFilter.Name,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.media.ServiceAccount;
import com.pulumi.azure.media.ServiceAccountArgs;
import com.pulumi.azure.media.inputs.ServiceAccountStorageAccountArgs;
import com.pulumi.azure.media.AccountFilter;
import com.pulumi.azure.media.AccountFilterArgs;
import com.pulumi.azure.media.Asset;
import com.pulumi.azure.media.AssetArgs;
import com.pulumi.azure.media.StreamingLocator;
import com.pulumi.azure.media.StreamingLocatorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("media-resources")
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.name("examplestoracc")
.resourceGroupName(example.name())
.location(example.location())
.accountTier("Standard")
.accountReplicationType("GRS")
.build());
var exampleServiceAccount = new ServiceAccount("exampleServiceAccount", ServiceAccountArgs.builder()
.name("examplemediaacc")
.location(example.location())
.resourceGroupName(example.name())
.storageAccounts(ServiceAccountStorageAccountArgs.builder()
.id(exampleAccount.id())
.isPrimary(true)
.build())
.build());
var exampleAccountFilter = new AccountFilter("exampleAccountFilter", AccountFilterArgs.builder()
.name("Filter1")
.resourceGroupName(example.name())
.mediaServicesAccountName(exampleServiceAccount.name())
.build());
var exampleAsset = new Asset("exampleAsset", AssetArgs.builder()
.name("Asset1")
.resourceGroupName(example.name())
.mediaServicesAccountName(exampleServiceAccount.name())
.description("Asset description")
.build());
var exampleStreamingLocator = new StreamingLocator("exampleStreamingLocator", StreamingLocatorArgs.builder()
.name("example")
.resourceGroupName(example.name())
.mediaServicesAccountName(exampleServiceAccount.name())
.assetName(exampleAsset.name())
.streamingPolicyName("Predefined_ClearStreamingOnly")
.filterNames(exampleAccountFilter.name())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: media-resources
location: West Europe
exampleAccount:
type: azure:storage:Account
name: example
properties:
name: examplestoracc
resourceGroupName: ${example.name}
location: ${example.location}
accountTier: Standard
accountReplicationType: GRS
exampleServiceAccount:
type: azure:media:ServiceAccount
name: example
properties:
name: examplemediaacc
location: ${example.location}
resourceGroupName: ${example.name}
storageAccounts:
- id: ${exampleAccount.id}
isPrimary: true
exampleAccountFilter:
type: azure:media:AccountFilter
name: example
properties:
name: Filter1
resourceGroupName: ${example.name}
mediaServicesAccountName: ${exampleServiceAccount.name}
exampleAsset:
type: azure:media:Asset
name: example
properties:
name: Asset1
resourceGroupName: ${example.name}
mediaServicesAccountName: ${exampleServiceAccount.name}
description: Asset description
exampleStreamingLocator:
type: azure:media:StreamingLocator
name: example
properties:
name: example
resourceGroupName: ${example.name}
mediaServicesAccountName: ${exampleServiceAccount.name}
assetName: ${exampleAsset.name}
streamingPolicyName: Predefined_ClearStreamingOnly
filterNames:
- ${exampleAccountFilter.name}
Create StreamingLocator Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StreamingLocator(name: string, args: StreamingLocatorArgs, opts?: CustomResourceOptions);
@overload
def StreamingLocator(resource_name: str,
args: StreamingLocatorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StreamingLocator(resource_name: str,
opts: Optional[ResourceOptions] = None,
asset_name: Optional[str] = None,
media_services_account_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
streaming_policy_name: Optional[str] = None,
alternative_media_id: Optional[str] = None,
content_keys: Optional[Sequence[StreamingLocatorContentKeyArgs]] = None,
default_content_key_policy_name: Optional[str] = None,
end_time: Optional[str] = None,
filter_names: Optional[Sequence[str]] = None,
name: Optional[str] = None,
start_time: Optional[str] = None,
streaming_locator_id: Optional[str] = None)
func NewStreamingLocator(ctx *Context, name string, args StreamingLocatorArgs, opts ...ResourceOption) (*StreamingLocator, error)
public StreamingLocator(string name, StreamingLocatorArgs args, CustomResourceOptions? opts = null)
public StreamingLocator(String name, StreamingLocatorArgs args)
public StreamingLocator(String name, StreamingLocatorArgs args, CustomResourceOptions options)
type: azure:media:StreamingLocator
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args StreamingLocatorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args StreamingLocatorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args StreamingLocatorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StreamingLocatorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StreamingLocatorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var streamingLocatorResource = new Azure.Media.StreamingLocator("streamingLocatorResource", new()
{
AssetName = "string",
MediaServicesAccountName = "string",
ResourceGroupName = "string",
StreamingPolicyName = "string",
AlternativeMediaId = "string",
ContentKeys = new[]
{
new Azure.Media.Inputs.StreamingLocatorContentKeyArgs
{
ContentKeyId = "string",
LabelReferenceInStreamingPolicy = "string",
PolicyName = "string",
Type = "string",
Value = "string",
},
},
DefaultContentKeyPolicyName = "string",
EndTime = "string",
FilterNames = new[]
{
"string",
},
Name = "string",
StartTime = "string",
StreamingLocatorId = "string",
});
example, err := media.NewStreamingLocator(ctx, "streamingLocatorResource", &media.StreamingLocatorArgs{
AssetName: pulumi.String("string"),
MediaServicesAccountName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
StreamingPolicyName: pulumi.String("string"),
AlternativeMediaId: pulumi.String("string"),
ContentKeys: media.StreamingLocatorContentKeyArray{
&media.StreamingLocatorContentKeyArgs{
ContentKeyId: pulumi.String("string"),
LabelReferenceInStreamingPolicy: pulumi.String("string"),
PolicyName: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
DefaultContentKeyPolicyName: pulumi.String("string"),
EndTime: pulumi.String("string"),
FilterNames: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
StartTime: pulumi.String("string"),
StreamingLocatorId: pulumi.String("string"),
})
var streamingLocatorResource = new StreamingLocator("streamingLocatorResource", StreamingLocatorArgs.builder()
.assetName("string")
.mediaServicesAccountName("string")
.resourceGroupName("string")
.streamingPolicyName("string")
.alternativeMediaId("string")
.contentKeys(StreamingLocatorContentKeyArgs.builder()
.contentKeyId("string")
.labelReferenceInStreamingPolicy("string")
.policyName("string")
.type("string")
.value("string")
.build())
.defaultContentKeyPolicyName("string")
.endTime("string")
.filterNames("string")
.name("string")
.startTime("string")
.streamingLocatorId("string")
.build());
streaming_locator_resource = azure.media.StreamingLocator("streamingLocatorResource",
asset_name="string",
media_services_account_name="string",
resource_group_name="string",
streaming_policy_name="string",
alternative_media_id="string",
content_keys=[azure.media.StreamingLocatorContentKeyArgs(
content_key_id="string",
label_reference_in_streaming_policy="string",
policy_name="string",
type="string",
value="string",
)],
default_content_key_policy_name="string",
end_time="string",
filter_names=["string"],
name="string",
start_time="string",
streaming_locator_id="string")
const streamingLocatorResource = new azure.media.StreamingLocator("streamingLocatorResource", {
assetName: "string",
mediaServicesAccountName: "string",
resourceGroupName: "string",
streamingPolicyName: "string",
alternativeMediaId: "string",
contentKeys: [{
contentKeyId: "string",
labelReferenceInStreamingPolicy: "string",
policyName: "string",
type: "string",
value: "string",
}],
defaultContentKeyPolicyName: "string",
endTime: "string",
filterNames: ["string"],
name: "string",
startTime: "string",
streamingLocatorId: "string",
});
type: azure:media:StreamingLocator
properties:
alternativeMediaId: string
assetName: string
contentKeys:
- contentKeyId: string
labelReferenceInStreamingPolicy: string
policyName: string
type: string
value: string
defaultContentKeyPolicyName: string
endTime: string
filterNames:
- string
mediaServicesAccountName: string
name: string
resourceGroupName: string
startTime: string
streamingLocatorId: string
streamingPolicyName: string
StreamingLocator Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The StreamingLocator resource accepts the following input properties:
- Asset
Name string - Asset Name. Changing this forces a new Streaming Locator to be created.
- Media
Services stringAccount Name - The Media Services account name. Changing this forces a new Streaming Locator to be created.
- Resource
Group stringName - The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
- Streaming
Policy stringName - Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are:
Predefined_DownloadOnly
,Predefined_ClearStreamingOnly
,Predefined_DownloadAndClearStreaming
,Predefined_ClearKey
,Predefined_MultiDrmCencStreaming
andPredefined_MultiDrmStreaming
. Changing this forces a new Streaming Locator to be created. - Alternative
Media stringId - Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Content
Keys List<StreamingLocator Content Key> - One or more
content_key
blocks as defined below. Changing this forces a new Streaming Locator to be created. - Default
Content stringKey Policy Name - Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
- End
Time string - The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Filter
Names List<string> - A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Name string
- The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Start
Time string - The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Streaming
Locator stringId - The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Asset
Name string - Asset Name. Changing this forces a new Streaming Locator to be created.
- Media
Services stringAccount Name - The Media Services account name. Changing this forces a new Streaming Locator to be created.
- Resource
Group stringName - The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
- Streaming
Policy stringName - Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are:
Predefined_DownloadOnly
,Predefined_ClearStreamingOnly
,Predefined_DownloadAndClearStreaming
,Predefined_ClearKey
,Predefined_MultiDrmCencStreaming
andPredefined_MultiDrmStreaming
. Changing this forces a new Streaming Locator to be created. - Alternative
Media stringId - Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Content
Keys []StreamingLocator Content Key Args - One or more
content_key
blocks as defined below. Changing this forces a new Streaming Locator to be created. - Default
Content stringKey Policy Name - Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
- End
Time string - The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Filter
Names []string - A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Name string
- The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Start
Time string - The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Streaming
Locator stringId - The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- asset
Name String - Asset Name. Changing this forces a new Streaming Locator to be created.
- media
Services StringAccount Name - The Media Services account name. Changing this forces a new Streaming Locator to be created.
- resource
Group StringName - The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
- streaming
Policy StringName - Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are:
Predefined_DownloadOnly
,Predefined_ClearStreamingOnly
,Predefined_DownloadAndClearStreaming
,Predefined_ClearKey
,Predefined_MultiDrmCencStreaming
andPredefined_MultiDrmStreaming
. Changing this forces a new Streaming Locator to be created. - alternative
Media StringId - Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- content
Keys List<StreamingLocator Content Key> - One or more
content_key
blocks as defined below. Changing this forces a new Streaming Locator to be created. - default
Content StringKey Policy Name - Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
- end
Time String - The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- filter
Names List<String> - A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- name String
- The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- start
Time String - The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- streaming
Locator StringId - The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- asset
Name string - Asset Name. Changing this forces a new Streaming Locator to be created.
- media
Services stringAccount Name - The Media Services account name. Changing this forces a new Streaming Locator to be created.
- resource
Group stringName - The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
- streaming
Policy stringName - Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are:
Predefined_DownloadOnly
,Predefined_ClearStreamingOnly
,Predefined_DownloadAndClearStreaming
,Predefined_ClearKey
,Predefined_MultiDrmCencStreaming
andPredefined_MultiDrmStreaming
. Changing this forces a new Streaming Locator to be created. - alternative
Media stringId - Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- content
Keys StreamingLocator Content Key[] - One or more
content_key
blocks as defined below. Changing this forces a new Streaming Locator to be created. - default
Content stringKey Policy Name - Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
- end
Time string - The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- filter
Names string[] - A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- name string
- The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- start
Time string - The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- streaming
Locator stringId - The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- asset_
name str - Asset Name. Changing this forces a new Streaming Locator to be created.
- media_
services_ straccount_ name - The Media Services account name. Changing this forces a new Streaming Locator to be created.
- resource_
group_ strname - The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
- streaming_
policy_ strname - Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are:
Predefined_DownloadOnly
,Predefined_ClearStreamingOnly
,Predefined_DownloadAndClearStreaming
,Predefined_ClearKey
,Predefined_MultiDrmCencStreaming
andPredefined_MultiDrmStreaming
. Changing this forces a new Streaming Locator to be created. - alternative_
media_ strid - Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- content_
keys Sequence[StreamingLocator Content Key Args] - One or more
content_key
blocks as defined below. Changing this forces a new Streaming Locator to be created. - default_
content_ strkey_ policy_ name - Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
- end_
time str - The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- filter_
names Sequence[str] - A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- name str
- The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- start_
time str - The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- streaming_
locator_ strid - The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- asset
Name String - Asset Name. Changing this forces a new Streaming Locator to be created.
- media
Services StringAccount Name - The Media Services account name. Changing this forces a new Streaming Locator to be created.
- resource
Group StringName - The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
- streaming
Policy StringName - Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are:
Predefined_DownloadOnly
,Predefined_ClearStreamingOnly
,Predefined_DownloadAndClearStreaming
,Predefined_ClearKey
,Predefined_MultiDrmCencStreaming
andPredefined_MultiDrmStreaming
. Changing this forces a new Streaming Locator to be created. - alternative
Media StringId - Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- content
Keys List<Property Map> - One or more
content_key
blocks as defined below. Changing this forces a new Streaming Locator to be created. - default
Content StringKey Policy Name - Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
- end
Time String - The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- filter
Names List<String> - A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- name String
- The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- start
Time String - The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- streaming
Locator StringId - The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the StreamingLocator resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing StreamingLocator Resource
Get an existing StreamingLocator resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: StreamingLocatorState, opts?: CustomResourceOptions): StreamingLocator
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alternative_media_id: Optional[str] = None,
asset_name: Optional[str] = None,
content_keys: Optional[Sequence[StreamingLocatorContentKeyArgs]] = None,
default_content_key_policy_name: Optional[str] = None,
end_time: Optional[str] = None,
filter_names: Optional[Sequence[str]] = None,
media_services_account_name: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
start_time: Optional[str] = None,
streaming_locator_id: Optional[str] = None,
streaming_policy_name: Optional[str] = None) -> StreamingLocator
func GetStreamingLocator(ctx *Context, name string, id IDInput, state *StreamingLocatorState, opts ...ResourceOption) (*StreamingLocator, error)
public static StreamingLocator Get(string name, Input<string> id, StreamingLocatorState? state, CustomResourceOptions? opts = null)
public static StreamingLocator get(String name, Output<String> id, StreamingLocatorState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Alternative
Media stringId - Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Asset
Name string - Asset Name. Changing this forces a new Streaming Locator to be created.
- Content
Keys List<StreamingLocator Content Key> - One or more
content_key
blocks as defined below. Changing this forces a new Streaming Locator to be created. - Default
Content stringKey Policy Name - Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
- End
Time string - The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Filter
Names List<string> - A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Media
Services stringAccount Name - The Media Services account name. Changing this forces a new Streaming Locator to be created.
- Name string
- The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Resource
Group stringName - The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
- Start
Time string - The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Streaming
Locator stringId - The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Streaming
Policy stringName - Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are:
Predefined_DownloadOnly
,Predefined_ClearStreamingOnly
,Predefined_DownloadAndClearStreaming
,Predefined_ClearKey
,Predefined_MultiDrmCencStreaming
andPredefined_MultiDrmStreaming
. Changing this forces a new Streaming Locator to be created.
- Alternative
Media stringId - Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Asset
Name string - Asset Name. Changing this forces a new Streaming Locator to be created.
- Content
Keys []StreamingLocator Content Key Args - One or more
content_key
blocks as defined below. Changing this forces a new Streaming Locator to be created. - Default
Content stringKey Policy Name - Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
- End
Time string - The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Filter
Names []string - A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Media
Services stringAccount Name - The Media Services account name. Changing this forces a new Streaming Locator to be created.
- Name string
- The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Resource
Group stringName - The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
- Start
Time string - The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Streaming
Locator stringId - The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- Streaming
Policy stringName - Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are:
Predefined_DownloadOnly
,Predefined_ClearStreamingOnly
,Predefined_DownloadAndClearStreaming
,Predefined_ClearKey
,Predefined_MultiDrmCencStreaming
andPredefined_MultiDrmStreaming
. Changing this forces a new Streaming Locator to be created.
- alternative
Media StringId - Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- asset
Name String - Asset Name. Changing this forces a new Streaming Locator to be created.
- content
Keys List<StreamingLocator Content Key> - One or more
content_key
blocks as defined below. Changing this forces a new Streaming Locator to be created. - default
Content StringKey Policy Name - Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
- end
Time String - The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- filter
Names List<String> - A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- media
Services StringAccount Name - The Media Services account name. Changing this forces a new Streaming Locator to be created.
- name String
- The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- resource
Group StringName - The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
- start
Time String - The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- streaming
Locator StringId - The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- streaming
Policy StringName - Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are:
Predefined_DownloadOnly
,Predefined_ClearStreamingOnly
,Predefined_DownloadAndClearStreaming
,Predefined_ClearKey
,Predefined_MultiDrmCencStreaming
andPredefined_MultiDrmStreaming
. Changing this forces a new Streaming Locator to be created.
- alternative
Media stringId - Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- asset
Name string - Asset Name. Changing this forces a new Streaming Locator to be created.
- content
Keys StreamingLocator Content Key[] - One or more
content_key
blocks as defined below. Changing this forces a new Streaming Locator to be created. - default
Content stringKey Policy Name - Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
- end
Time string - The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- filter
Names string[] - A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- media
Services stringAccount Name - The Media Services account name. Changing this forces a new Streaming Locator to be created.
- name string
- The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- resource
Group stringName - The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
- start
Time string - The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- streaming
Locator stringId - The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- streaming
Policy stringName - Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are:
Predefined_DownloadOnly
,Predefined_ClearStreamingOnly
,Predefined_DownloadAndClearStreaming
,Predefined_ClearKey
,Predefined_MultiDrmCencStreaming
andPredefined_MultiDrmStreaming
. Changing this forces a new Streaming Locator to be created.
- alternative_
media_ strid - Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- asset_
name str - Asset Name. Changing this forces a new Streaming Locator to be created.
- content_
keys Sequence[StreamingLocator Content Key Args] - One or more
content_key
blocks as defined below. Changing this forces a new Streaming Locator to be created. - default_
content_ strkey_ policy_ name - Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
- end_
time str - The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- filter_
names Sequence[str] - A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- media_
services_ straccount_ name - The Media Services account name. Changing this forces a new Streaming Locator to be created.
- name str
- The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- resource_
group_ strname - The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
- start_
time str - The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- streaming_
locator_ strid - The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- streaming_
policy_ strname - Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are:
Predefined_DownloadOnly
,Predefined_ClearStreamingOnly
,Predefined_DownloadAndClearStreaming
,Predefined_ClearKey
,Predefined_MultiDrmCencStreaming
andPredefined_MultiDrmStreaming
. Changing this forces a new Streaming Locator to be created.
- alternative
Media StringId - Alternative Media ID of this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- asset
Name String - Asset Name. Changing this forces a new Streaming Locator to be created.
- content
Keys List<Property Map> - One or more
content_key
blocks as defined below. Changing this forces a new Streaming Locator to be created. - default
Content StringKey Policy Name - Name of the default Content Key Policy used by this Streaming Locator.Changing this forces a new Streaming Locator to be created.
- end
Time String - The end time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- filter
Names List<String> - A list of names of asset or account filters which apply to this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- media
Services StringAccount Name - The Media Services account name. Changing this forces a new Streaming Locator to be created.
- name String
- The name which should be used for this Streaming Locator. Changing this forces a new Streaming Locator to be created.
- resource
Group StringName - The name of the Resource Group where the Streaming Locator should exist. Changing this forces a new Streaming Locator to be created.
- start
Time String - The start time of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- streaming
Locator StringId - The ID of the Streaming Locator. Changing this forces a new Streaming Locator to be created.
- streaming
Policy StringName - Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are:
Predefined_DownloadOnly
,Predefined_ClearStreamingOnly
,Predefined_DownloadAndClearStreaming
,Predefined_ClearKey
,Predefined_MultiDrmCencStreaming
andPredefined_MultiDrmStreaming
. Changing this forces a new Streaming Locator to be created.
Supporting Types
StreamingLocatorContentKey, StreamingLocatorContentKeyArgs
- Content
Key stringId - ID of Content Key. Changing this forces a new Streaming Locator to be created.
- Label
Reference stringIn Streaming Policy - Label of Content Key as specified in the Streaming Policy. Changing this forces a new Streaming Locator to be created.
- Policy
Name string - Content Key Policy used by Content Key. Changing this forces a new Streaming Locator to be created.
- Type string
- Encryption type of Content Key. Supported values are
CommonEncryptionCbcs
,CommonEncryptionCenc
orEnvelopeEncryption
. Changing this forces a new Streaming Locator to be created. - Value string
- Value of Content Key. Changing this forces a new Streaming Locator to be created.
- Content
Key stringId - ID of Content Key. Changing this forces a new Streaming Locator to be created.
- Label
Reference stringIn Streaming Policy - Label of Content Key as specified in the Streaming Policy. Changing this forces a new Streaming Locator to be created.
- Policy
Name string - Content Key Policy used by Content Key. Changing this forces a new Streaming Locator to be created.
- Type string
- Encryption type of Content Key. Supported values are
CommonEncryptionCbcs
,CommonEncryptionCenc
orEnvelopeEncryption
. Changing this forces a new Streaming Locator to be created. - Value string
- Value of Content Key. Changing this forces a new Streaming Locator to be created.
- content
Key StringId - ID of Content Key. Changing this forces a new Streaming Locator to be created.
- label
Reference StringIn Streaming Policy - Label of Content Key as specified in the Streaming Policy. Changing this forces a new Streaming Locator to be created.
- policy
Name String - Content Key Policy used by Content Key. Changing this forces a new Streaming Locator to be created.
- type String
- Encryption type of Content Key. Supported values are
CommonEncryptionCbcs
,CommonEncryptionCenc
orEnvelopeEncryption
. Changing this forces a new Streaming Locator to be created. - value String
- Value of Content Key. Changing this forces a new Streaming Locator to be created.
- content
Key stringId - ID of Content Key. Changing this forces a new Streaming Locator to be created.
- label
Reference stringIn Streaming Policy - Label of Content Key as specified in the Streaming Policy. Changing this forces a new Streaming Locator to be created.
- policy
Name string - Content Key Policy used by Content Key. Changing this forces a new Streaming Locator to be created.
- type string
- Encryption type of Content Key. Supported values are
CommonEncryptionCbcs
,CommonEncryptionCenc
orEnvelopeEncryption
. Changing this forces a new Streaming Locator to be created. - value string
- Value of Content Key. Changing this forces a new Streaming Locator to be created.
- content_
key_ strid - ID of Content Key. Changing this forces a new Streaming Locator to be created.
- label_
reference_ strin_ streaming_ policy - Label of Content Key as specified in the Streaming Policy. Changing this forces a new Streaming Locator to be created.
- policy_
name str - Content Key Policy used by Content Key. Changing this forces a new Streaming Locator to be created.
- type str
- Encryption type of Content Key. Supported values are
CommonEncryptionCbcs
,CommonEncryptionCenc
orEnvelopeEncryption
. Changing this forces a new Streaming Locator to be created. - value str
- Value of Content Key. Changing this forces a new Streaming Locator to be created.
- content
Key StringId - ID of Content Key. Changing this forces a new Streaming Locator to be created.
- label
Reference StringIn Streaming Policy - Label of Content Key as specified in the Streaming Policy. Changing this forces a new Streaming Locator to be created.
- policy
Name String - Content Key Policy used by Content Key. Changing this forces a new Streaming Locator to be created.
- type String
- Encryption type of Content Key. Supported values are
CommonEncryptionCbcs
,CommonEncryptionCenc
orEnvelopeEncryption
. Changing this forces a new Streaming Locator to be created. - value String
- Value of Content Key. Changing this forces a new Streaming Locator to be created.
Import
Streaming Locators can be imported using the resource id
, e.g.
$ pulumi import azure:media/streamingLocator:StreamingLocator example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Media/mediaServices/account1/streamingLocators/locator1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.