1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getStreamDownload
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getStreamDownload

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleStreamDownload = cloudflare.getStreamDownload({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        identifier: "ea95132c15732412d22c1476fa83f27a",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_stream_download = cloudflare.get_stream_download(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.LookupStreamDownload(ctx, &cloudflare.LookupStreamDownloadArgs{
    			AccountId:  "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 exampleStreamDownload = Cloudflare.GetStreamDownload.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.GetStreamDownloadArgs;
    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 exampleStreamDownload = CloudflareFunctions.getStreamDownload(GetStreamDownloadArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .identifier("ea95132c15732412d22c1476fa83f27a")
                .build());
    
        }
    }
    
    variables:
      exampleStreamDownload:
        fn::invoke:
          function: cloudflare:getStreamDownload
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            identifier: ea95132c15732412d22c1476fa83f27a
    

    Using getStreamDownload

    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 getStreamDownload(args: GetStreamDownloadArgs, opts?: InvokeOptions): Promise<GetStreamDownloadResult>
    function getStreamDownloadOutput(args: GetStreamDownloadOutputArgs, opts?: InvokeOptions): Output<GetStreamDownloadResult>
    def get_stream_download(account_id: Optional[str] = None,
                            identifier: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetStreamDownloadResult
    def get_stream_download_output(account_id: Optional[pulumi.Input[str]] = None,
                            identifier: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetStreamDownloadResult]
    func LookupStreamDownload(ctx *Context, args *LookupStreamDownloadArgs, opts ...InvokeOption) (*LookupStreamDownloadResult, error)
    func LookupStreamDownloadOutput(ctx *Context, args *LookupStreamDownloadOutputArgs, opts ...InvokeOption) LookupStreamDownloadResultOutput

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

    public static class GetStreamDownload 
    {
        public static Task<GetStreamDownloadResult> InvokeAsync(GetStreamDownloadArgs args, InvokeOptions? opts = null)
        public static Output<GetStreamDownloadResult> Invoke(GetStreamDownloadInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStreamDownloadResult> getStreamDownload(GetStreamDownloadArgs args, InvokeOptions options)
    public static Output<GetStreamDownloadResult> getStreamDownload(GetStreamDownloadArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getStreamDownload:getStreamDownload
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getStreamDownload Result

    The following output properties are available:

    AccountId string
    Identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    A Cloudflare-generated unique identifier for a media item.
    AccountId string
    Identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    A Cloudflare-generated unique identifier for a media item.
    accountId String
    Identifier.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    A Cloudflare-generated unique identifier for a media item.
    accountId string
    Identifier.
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    A Cloudflare-generated unique identifier for a media item.
    account_id str
    Identifier.
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    A Cloudflare-generated unique identifier for a media item.
    accountId String
    Identifier.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier 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
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi