1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getStreamAudioTrack
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi

    Accepted Permissions

    • Stream Read
    • Stream Write

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleStreamAudioTrack = cloudflare.getStreamAudioTrack({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        identifier: "ea95132c15732412d22c1476fa83f27a",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_stream_audio_track = cloudflare.get_stream_audio_track(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        identifier="ea95132c15732412d22c1476fa83f27a")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.GetStreamAudioTrack(ctx, &cloudflare.LookupStreamAudioTrackArgs{
    			AccountId:  pulumi.StringRef("023e105f4ecef8ad9ca31a8372d0c353"),
    			Identifier: "ea95132c15732412d22c1476fa83f27a",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleStreamAudioTrack = Cloudflare.Index.GetStreamAudioTrack.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            Identifier = "ea95132c15732412d22c1476fa83f27a",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetStreamAudioTrackArgs;
    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) {
            final var exampleStreamAudioTrack = CloudflareFunctions.getStreamAudioTrack(GetStreamAudioTrackArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .identifier("ea95132c15732412d22c1476fa83f27a")
                .build());
    
        }
    }
    
    variables:
      exampleStreamAudioTrack:
        fn::invoke:
          function: cloudflare:getStreamAudioTrack
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            identifier: ea95132c15732412d22c1476fa83f27a
    

    Using getStreamAudioTrack

    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 getStreamAudioTrack(args: GetStreamAudioTrackArgs, opts?: InvokeOptions): Promise<GetStreamAudioTrackResult>
    function getStreamAudioTrackOutput(args: GetStreamAudioTrackOutputArgs, opts?: InvokeOptions): Output<GetStreamAudioTrackResult>
    def get_stream_audio_track(account_id: Optional[str] = None,
                               identifier: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetStreamAudioTrackResult
    def get_stream_audio_track_output(account_id: Optional[pulumi.Input[str]] = None,
                               identifier: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetStreamAudioTrackResult]
    func LookupStreamAudioTrack(ctx *Context, args *LookupStreamAudioTrackArgs, opts ...InvokeOption) (*LookupStreamAudioTrackResult, error)
    func LookupStreamAudioTrackOutput(ctx *Context, args *LookupStreamAudioTrackOutputArgs, opts ...InvokeOption) LookupStreamAudioTrackResultOutput

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

    public static class GetStreamAudioTrack 
    {
        public static Task<GetStreamAudioTrackResult> InvokeAsync(GetStreamAudioTrackArgs args, InvokeOptions? opts = null)
        public static Output<GetStreamAudioTrackResult> Invoke(GetStreamAudioTrackInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStreamAudioTrackResult> getStreamAudioTrack(GetStreamAudioTrackArgs args, InvokeOptions options)
    public static Output<GetStreamAudioTrackResult> getStreamAudioTrack(GetStreamAudioTrackArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getStreamAudioTrack:getStreamAudioTrack
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Identifier string
    A Cloudflare-generated unique identifier for a media item.
    AccountId string
    The account identifier tag.
    Identifier string
    A Cloudflare-generated unique identifier for a media item.
    AccountId string
    The account identifier tag.
    identifier String
    A Cloudflare-generated unique identifier for a media item.
    accountId String
    The account identifier tag.
    identifier string
    A Cloudflare-generated unique identifier for a media item.
    accountId string
    The account identifier tag.
    identifier str
    A Cloudflare-generated unique identifier for a media item.
    account_id str
    The account identifier tag.
    identifier String
    A Cloudflare-generated unique identifier for a media item.
    accountId String
    The account identifier tag.

    getStreamAudioTrack Result

    The following output properties are available:

    Audios List<GetStreamAudioTrackAudio>
    Array of audio tracks for the video.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    A Cloudflare-generated unique identifier for a media item.
    AccountId string
    The account identifier tag.
    Audios []GetStreamAudioTrackAudio
    Array of audio tracks for the video.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    A Cloudflare-generated unique identifier for a media item.
    AccountId string
    The account identifier tag.
    audios List<GetStreamAudioTrackAudio>
    Array of audio tracks for the video.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    A Cloudflare-generated unique identifier for a media item.
    accountId String
    The account identifier tag.
    audios GetStreamAudioTrackAudio[]
    Array of audio tracks for the video.
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    A Cloudflare-generated unique identifier for a media item.
    accountId string
    The account identifier tag.
    audios Sequence[GetStreamAudioTrackAudio]
    Array of audio tracks for the video.
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    A Cloudflare-generated unique identifier for a media item.
    account_id str
    The account identifier tag.
    audios List<Property Map>
    Array of audio tracks for the video.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    A Cloudflare-generated unique identifier for a media item.
    accountId String
    The account identifier tag.

    Supporting Types

    GetStreamAudioTrackAudio

    Default bool
    Denotes whether the audio track will be played by default in a player.
    Label string
    A string to uniquely identify the track amongst other audio track labels for the specified video.
    Status string
    Specifies the processing status of the video. Available values: "queued", "ready", "error".
    Uid string
    A Cloudflare-generated unique identifier for a media item.
    Default bool
    Denotes whether the audio track will be played by default in a player.
    Label string
    A string to uniquely identify the track amongst other audio track labels for the specified video.
    Status string
    Specifies the processing status of the video. Available values: "queued", "ready", "error".
    Uid string
    A Cloudflare-generated unique identifier for a media item.
    default_ Boolean
    Denotes whether the audio track will be played by default in a player.
    label String
    A string to uniquely identify the track amongst other audio track labels for the specified video.
    status String
    Specifies the processing status of the video. Available values: "queued", "ready", "error".
    uid String
    A Cloudflare-generated unique identifier for a media item.
    default boolean
    Denotes whether the audio track will be played by default in a player.
    label string
    A string to uniquely identify the track amongst other audio track labels for the specified video.
    status string
    Specifies the processing status of the video. Available values: "queued", "ready", "error".
    uid string
    A Cloudflare-generated unique identifier for a media item.
    default bool
    Denotes whether the audio track will be played by default in a player.
    label str
    A string to uniquely identify the track amongst other audio track labels for the specified video.
    status str
    Specifies the processing status of the video. Available values: "queued", "ready", "error".
    uid str
    A Cloudflare-generated unique identifier for a media item.
    default Boolean
    Denotes whether the audio track will be played by default in a player.
    label String
    A string to uniquely identify the track amongst other audio track labels for the specified video.
    status String
    Specifies the processing status of the video. Available values: "queued", "ready", "error".
    uid String
    A Cloudflare-generated unique identifier for a media item.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.15.0
    published on Saturday, May 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.