Streaming Endpoint
The streaming endpoint. API Version: 2020-05-01.
Example Usage
Create a streaming endpoint
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var streamingEndpoint = new AzureNative.Media.StreamingEndpoint("streamingEndpoint", new()
{
AccessControl = new AzureNative.Media.Inputs.StreamingEndpointAccessControlArgs
{
Akamai = new AzureNative.Media.Inputs.AkamaiAccessControlArgs
{
AkamaiSignatureHeaderAuthenticationKeyList = new[]
{
new AzureNative.Media.Inputs.AkamaiSignatureHeaderAuthenticationKeyArgs
{
Base64Key = "dGVzdGlkMQ==",
Expiration = "2029-12-31T16:00:00-08:00",
Identifier = "id1",
},
new AzureNative.Media.Inputs.AkamaiSignatureHeaderAuthenticationKeyArgs
{
Base64Key = "dGVzdGlkMQ==",
Expiration = "2030-12-31T16:00:00-08:00",
Identifier = "id2",
},
},
},
Ip = new AzureNative.Media.Inputs.IPAccessControlArgs
{
Allow = new[]
{
new AzureNative.Media.Inputs.IPRangeArgs
{
Address = "192.168.1.1",
Name = "AllowedIp",
},
},
},
},
AccountName = "slitestmedia10",
AvailabilitySetName = "availableset",
CdnEnabled = false,
Description = "test event 1",
Location = "West US",
ResourceGroupName = "mediaresources",
ScaleUnits = 1,
StreamingEndpointName = "myStreamingEndpoint1",
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.media.StreamingEndpoint;
import com.pulumi.azurenative.media.StreamingEndpointArgs;
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 streamingEndpoint = new StreamingEndpoint("streamingEndpoint", StreamingEndpointArgs.builder()
.accessControl(Map.ofEntries(
Map.entry("akamai", Map.of("akamaiSignatureHeaderAuthenticationKeyList",
Map.ofEntries(
Map.entry("base64Key", "dGVzdGlkMQ=="),
Map.entry("expiration", "2029-12-31T16:00:00-08:00"),
Map.entry("identifier", "id1")
),
Map.ofEntries(
Map.entry("base64Key", "dGVzdGlkMQ=="),
Map.entry("expiration", "2030-12-31T16:00:00-08:00"),
Map.entry("identifier", "id2")
))),
Map.entry("ip", Map.of("allow", Map.ofEntries(
Map.entry("address", "192.168.1.1"),
Map.entry("name", "AllowedIp")
)))
))
.accountName("slitestmedia10")
.availabilitySetName("availableset")
.cdnEnabled(false)
.description("test event 1")
.location("West US")
.resourceGroupName("mediaresources")
.scaleUnits(1)
.streamingEndpointName("myStreamingEndpoint1")
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:media:StreamingEndpoint myStreamingEndpoint1 /subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1
Properties
The access control definition of the streaming endpoint.
This feature is deprecated, do not set a value for this property.
The CDN enabled flag.
The CDN profile name.
The CDN provider name.
The streaming endpoint access policies.
The custom host names of the streaming endpoint
The streaming endpoint description.
The free trial expiration time.
The exact time the streaming endpoint was last modified.
Max cache age
The provisioning state of the streaming endpoint.
The resource state of the streaming endpoint.
The number of scale units. Use the Scale operation to adjust this value.
The system metadata relating to this resource.