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" },
},
});
});
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard