1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getSpectrumProtocols
Viewing docs for Cloudflare v6.21.0
published on Thursday, Sep 17, 2026 by Pulumi
cloudflare logo cloudflare logo
Viewing docs for Cloudflare v6.21.0
published on Thursday, Sep 17, 2026 by Pulumi

    Accepted Permissions

    • Zone Settings Read
    • Zone Settings Write

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleSpectrumProtocols = cloudflare.getSpectrumProtocols({
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_spectrum_protocols = cloudflare.get_spectrum_protocols(zone_id="023e105f4ecef8ad9ca31a8372d0c353")
    
    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.GetSpectrumProtocols(ctx, &cloudflare.LookupSpectrumProtocolsArgs{
    			ZoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    		}, 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 exampleSpectrumProtocols = Cloudflare.GetSpectrumProtocols.Invoke(new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    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.GetSpectrumProtocolsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 exampleSpectrumProtocols = CloudflareFunctions.getSpectrumProtocols(GetSpectrumProtocolsArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleSpectrumProtocols:
        fn::invoke:
          function: cloudflare:getSpectrumProtocols
          arguments:
            zoneId: 023e105f4ecef8ad9ca31a8372d0c353
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getspectrumprotocols" "exampleSpectrumProtocols" {
      zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
    }
    

    Using getSpectrumProtocols

    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 getSpectrumProtocols(args: GetSpectrumProtocolsArgs, opts?: InvokeOptions): Promise<GetSpectrumProtocolsResult>
    function getSpectrumProtocolsOutput(args: GetSpectrumProtocolsOutputArgs, opts?: InvokeOutputOptions): Output<GetSpectrumProtocolsResult>
    def get_spectrum_protocols(max_items: Optional[int] = None,
                               zone_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetSpectrumProtocolsResult
    def get_spectrum_protocols_output(max_items: pulumi.Input[Optional[int]] = None,
                               zone_id: pulumi.Input[Optional[str]] = None,
                               opts: Optional[InvokeOutputOptions] = None) -> Output[GetSpectrumProtocolsResult]
    func LookupSpectrumProtocols(ctx *Context, args *LookupSpectrumProtocolsArgs, opts ...InvokeOption) (*LookupSpectrumProtocolsResult, error)
    func LookupSpectrumProtocolsOutput(ctx *Context, args *LookupSpectrumProtocolsOutputArgs, opts ...InvokeOption) LookupSpectrumProtocolsResultOutput

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

    public static class GetSpectrumProtocols 
    {
        public static Task<GetSpectrumProtocolsResult> InvokeAsync(GetSpectrumProtocolsArgs args, InvokeOptions? opts = null)
        public static Output<GetSpectrumProtocolsResult> Invoke(GetSpectrumProtocolsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetSpectrumProtocolsResult> Invoke(GetSpectrumProtocolsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetSpectrumProtocolsResult> getSpectrumProtocols(GetSpectrumProtocolsArgs args, InvokeOptions options)
    public static Output<GetSpectrumProtocolsResult> getSpectrumProtocols(GetSpectrumProtocolsArgs args, InvokeOptions options)
    public static Output<GetSpectrumProtocolsResult> getSpectrumProtocols(GetSpectrumProtocolsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudflare:index/getSpectrumProtocols:getSpectrumProtocols
      arguments:
        # arguments dictionary
    data "cloudflare_get_spectrum_protocols" "name" {
        # arguments
    }

    The following arguments are supported:

    ZoneId string
    Zone identifier.
    MaxItems int
    Max items to fetch, default: 1000
    ZoneId string
    Zone identifier.
    MaxItems int
    Max items to fetch, default: 1000
    zone_id string
    Zone identifier.
    max_items number
    Max items to fetch, default: 1000
    zoneId String
    Zone identifier.
    maxItems Integer
    Max items to fetch, default: 1000
    zoneId string
    Zone identifier.
    maxItems number
    Max items to fetch, default: 1000
    zone_id str
    Zone identifier.
    max_items int
    Max items to fetch, default: 1000
    zoneId String
    Zone identifier.
    maxItems Number
    Max items to fetch, default: 1000

    getSpectrumProtocols Result

    The following output properties are available:

    Results List<GetSpectrumProtocolsResult>
    The items returned by the data source
    ZoneId string
    Zone identifier.
    MaxItems int
    Max items to fetch, default: 1000
    Results []GetSpectrumProtocolsResult
    The items returned by the data source
    ZoneId string
    Zone identifier.
    MaxItems int
    Max items to fetch, default: 1000
    results list(object)
    The items returned by the data source
    zone_id string
    Zone identifier.
    max_items number
    Max items to fetch, default: 1000
    results List<GetSpectrumProtocolsResult>
    The items returned by the data source
    zoneId String
    Zone identifier.
    maxItems Integer
    Max items to fetch, default: 1000
    results GetSpectrumProtocolsResult[]
    The items returned by the data source
    zoneId string
    Zone identifier.
    maxItems number
    Max items to fetch, default: 1000
    results Sequence[GetSpectrumProtocolsResult]
    The items returned by the data source
    zone_id str
    Zone identifier.
    max_items int
    Max items to fetch, default: 1000
    results List<Property Map>
    The items returned by the data source
    zoneId String
    Zone identifier.
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetSpectrumProtocolsResult

    Description string
    The full name of the application protocol.
    Name string
    The short name of the application protocol.
    Ports List<int>
    The available listening ports for the given protocol.
    Transport string
    The transport layer protocol used by the application protocol
    Description string
    The full name of the application protocol.
    Name string
    The short name of the application protocol.
    Ports []int
    The available listening ports for the given protocol.
    Transport string
    The transport layer protocol used by the application protocol
    description string
    The full name of the application protocol.
    name string
    The short name of the application protocol.
    ports list(number)
    The available listening ports for the given protocol.
    transport string
    The transport layer protocol used by the application protocol
    description String
    The full name of the application protocol.
    name String
    The short name of the application protocol.
    ports List<Integer>
    The available listening ports for the given protocol.
    transport String
    The transport layer protocol used by the application protocol
    description string
    The full name of the application protocol.
    name string
    The short name of the application protocol.
    ports number[]
    The available listening ports for the given protocol.
    transport string
    The transport layer protocol used by the application protocol
    description str
    The full name of the application protocol.
    name str
    The short name of the application protocol.
    ports Sequence[int]
    The available listening ports for the given protocol.
    transport str
    The transport layer protocol used by the application protocol
    description String
    The full name of the application protocol.
    name String
    The short name of the application protocol.
    ports List<Number>
    The available listening ports for the given protocol.
    transport String
    The transport layer protocol used by the application protocol

    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 logo
    Viewing docs for Cloudflare v6.21.0
    published on Thursday, Sep 17, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial