1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getMoqRelays
Viewing docs for Cloudflare v6.20.0
published on Tuesday, Aug 25, 2026 by Pulumi
cloudflare logo cloudflare logo
Viewing docs for Cloudflare v6.20.0
published on Tuesday, Aug 25, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleMoqRelays = cloudflare.getMoqRelays({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        createdAfter: "2026-03-27T15:00:00Z",
        createdBefore: "2026-03-27T15:00:00Z",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_moq_relays = cloudflare.get_moq_relays(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        created_after="2026-03-27T15:00:00Z",
        created_before="2026-03-27T15:00:00Z")
    
    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.GetMoqRelays(ctx, &cloudflare.LookupMoqRelaysArgs{
    			AccountId:     "023e105f4ecef8ad9ca31a8372d0c353",
    			CreatedAfter:  pulumi.StringRef("2026-03-27T15:00:00Z"),
    			CreatedBefore: pulumi.StringRef("2026-03-27T15:00:00Z"),
    		}, 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 exampleMoqRelays = Cloudflare.GetMoqRelays.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            CreatedAfter = "2026-03-27T15:00:00Z",
            CreatedBefore = "2026-03-27T15:00:00Z",
        });
    
    });
    
    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.GetMoqRelaysArgs;
    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 exampleMoqRelays = CloudflareFunctions.getMoqRelays(GetMoqRelaysArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .createdAfter("2026-03-27T15:00:00Z")
                .createdBefore("2026-03-27T15:00:00Z")
                .build());
    
        }
    }
    
    variables:
      exampleMoqRelays:
        fn::invoke:
          function: cloudflare:getMoqRelays
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            createdAfter: 2026-03-27T15:00:00Z
            createdBefore: 2026-03-27T15:00:00Z
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getmoqrelays" "exampleMoqRelays" {
      account_id     = "023e105f4ecef8ad9ca31a8372d0c353"
      created_after  = "2026-03-27T15:00:00Z"
      created_before = "2026-03-27T15:00:00Z"
    }
    

    Using getMoqRelays

    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 getMoqRelays(args: GetMoqRelaysArgs, opts?: InvokeOptions): Promise<GetMoqRelaysResult>
    function getMoqRelaysOutput(args: GetMoqRelaysOutputArgs, opts?: InvokeOutputOptions): Output<GetMoqRelaysResult>
    def get_moq_relays(account_id: Optional[str] = None,
                       asc: Optional[bool] = None,
                       created_after: Optional[str] = None,
                       created_before: Optional[str] = None,
                       max_items: Optional[int] = None,
                       per_page: Optional[int] = None,
                       opts: Optional[InvokeOptions] = None) -> GetMoqRelaysResult
    def get_moq_relays_output(account_id: pulumi.Input[Optional[str]] = None,
                       asc: pulumi.Input[Optional[bool]] = None,
                       created_after: pulumi.Input[Optional[str]] = None,
                       created_before: pulumi.Input[Optional[str]] = None,
                       max_items: pulumi.Input[Optional[int]] = None,
                       per_page: pulumi.Input[Optional[int]] = None,
                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetMoqRelaysResult]
    func LookupMoqRelays(ctx *Context, args *LookupMoqRelaysArgs, opts ...InvokeOption) (*LookupMoqRelaysResult, error)
    func LookupMoqRelaysOutput(ctx *Context, args *LookupMoqRelaysOutputArgs, opts ...InvokeOption) LookupMoqRelaysResultOutput

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

    public static class GetMoqRelays 
    {
        public static Task<GetMoqRelaysResult> InvokeAsync(GetMoqRelaysArgs args, InvokeOptions? opts = null)
        public static Output<GetMoqRelaysResult> Invoke(GetMoqRelaysInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetMoqRelaysResult> Invoke(GetMoqRelaysInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetMoqRelaysResult> getMoqRelays(GetMoqRelaysArgs args, InvokeOptions options)
    public static Output<GetMoqRelaysResult> getMoqRelays(GetMoqRelaysArgs args, InvokeOptions options)
    public static Output<GetMoqRelaysResult> getMoqRelays(GetMoqRelaysArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudflare:index/getMoqRelays:getMoqRelays
      arguments:
        # arguments dictionary
    data "cloudflare_get_moq_relays" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Cloudflare account identifier.
    Asc bool
    Sort order by created. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).
    CreatedAfter string
    Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the created value of the last item on the current page, to fetch the next page).
    CreatedBefore string
    Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the created value of the first item on the current page, to fetch the previous page).
    MaxItems int
    Max items to fetch, default: 1000
    PerPage int
    Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
    AccountId string
    Cloudflare account identifier.
    Asc bool
    Sort order by created. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).
    CreatedAfter string
    Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the created value of the last item on the current page, to fetch the next page).
    CreatedBefore string
    Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the created value of the first item on the current page, to fetch the previous page).
    MaxItems int
    Max items to fetch, default: 1000
    PerPage int
    Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
    account_id string
    Cloudflare account identifier.
    asc bool
    Sort order by created. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).
    created_after string
    Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the created value of the last item on the current page, to fetch the next page).
    created_before string
    Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the created value of the first item on the current page, to fetch the previous page).
    max_items number
    Max items to fetch, default: 1000
    per_page number
    Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
    accountId String
    Cloudflare account identifier.
    asc Boolean
    Sort order by created. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).
    createdAfter String
    Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the created value of the last item on the current page, to fetch the next page).
    createdBefore String
    Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the created value of the first item on the current page, to fetch the previous page).
    maxItems Integer
    Max items to fetch, default: 1000
    perPage Integer
    Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
    accountId string
    Cloudflare account identifier.
    asc boolean
    Sort order by created. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).
    createdAfter string
    Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the created value of the last item on the current page, to fetch the next page).
    createdBefore string
    Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the created value of the first item on the current page, to fetch the previous page).
    maxItems number
    Max items to fetch, default: 1000
    perPage number
    Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
    account_id str
    Cloudflare account identifier.
    asc bool
    Sort order by created. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).
    created_after str
    Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the created value of the last item on the current page, to fetch the next page).
    created_before str
    Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the created value of the first item on the current page, to fetch the previous page).
    max_items int
    Max items to fetch, default: 1000
    per_page int
    Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
    accountId String
    Cloudflare account identifier.
    asc Boolean
    Sort order by created. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).
    createdAfter String
    Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the created value of the last item on the current page, to fetch the next page).
    createdBefore String
    Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the created value of the first item on the current page, to fetch the previous page).
    maxItems Number
    Max items to fetch, default: 1000
    perPage Number
    Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.

    getMoqRelays Result

    The following output properties are available:

    AccountId string
    Cloudflare account identifier.
    Asc bool
    Sort order by created. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).
    PerPage int
    Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
    Results List<GetMoqRelaysResult>
    The items returned by the data source
    CreatedAfter string
    Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the created value of the last item on the current page, to fetch the next page).
    CreatedBefore string
    Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the created value of the first item on the current page, to fetch the previous page).
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Cloudflare account identifier.
    Asc bool
    Sort order by created. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).
    PerPage int
    Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
    Results []GetMoqRelaysResult
    The items returned by the data source
    CreatedAfter string
    Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the created value of the last item on the current page, to fetch the next page).
    CreatedBefore string
    Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the created value of the first item on the current page, to fetch the previous page).
    MaxItems int
    Max items to fetch, default: 1000
    account_id string
    Cloudflare account identifier.
    asc bool
    Sort order by created. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).
    per_page number
    Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
    results list(object)
    The items returned by the data source
    created_after string
    Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the created value of the last item on the current page, to fetch the next page).
    created_before string
    Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the created value of the first item on the current page, to fetch the previous page).
    max_items number
    Max items to fetch, default: 1000
    accountId String
    Cloudflare account identifier.
    asc Boolean
    Sort order by created. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).
    perPage Integer
    Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
    results List<GetMoqRelaysResult>
    The items returned by the data source
    createdAfter String
    Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the created value of the last item on the current page, to fetch the next page).
    createdBefore String
    Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the created value of the first item on the current page, to fetch the previous page).
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Cloudflare account identifier.
    asc boolean
    Sort order by created. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).
    perPage number
    Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
    results GetMoqRelaysResult[]
    The items returned by the data source
    createdAfter string
    Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the created value of the last item on the current page, to fetch the next page).
    createdBefore string
    Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the created value of the first item on the current page, to fetch the previous page).
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Cloudflare account identifier.
    asc bool
    Sort order by created. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).
    per_page int
    Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
    results Sequence[GetMoqRelaysResult]
    The items returned by the data source
    created_after str
    Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the created value of the last item on the current page, to fetch the next page).
    created_before str
    Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the created value of the first item on the current page, to fetch the previous page).
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Cloudflare account identifier.
    asc Boolean
    Sort order by created. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default).
    perPage Number
    Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
    results List<Property Map>
    The items returned by the data source
    createdAfter String
    Cursor for pagination. Returns relays created strictly after this RFC 3339 timestamp (typically the created value of the last item on the current page, to fetch the next page).
    createdBefore String
    Cursor for pagination. Returns relays created strictly before this RFC 3339 timestamp (typically the created value of the first item on the current page, to fetch the previous page).
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetMoqRelaysResult

    Created string
    Id string
    Modified string
    Name string
    Uid string
    Created string
    Id string
    Modified string
    Name string
    Uid string
    created string
    id string
    modified string
    name string
    uid string
    created String
    id String
    modified String
    name String
    uid String
    created string
    id string
    modified string
    name string
    uid string
    created str
    id str
    modified str
    name str
    uid str
    created String
    id String
    modified String
    name String
    uid String

    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.20.0
    published on Tuesday, Aug 25, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial