Viewing docs for Cloudflare v6.20.0
published on Tuesday, Aug 25, 2026 by Pulumi
published on Tuesday, Aug 25, 2026 by Pulumi
Viewing docs for Cloudflare v6.20.0
published on Tuesday, Aug 25, 2026 by Pulumi
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 dictionarydata "cloudflare_get_moq_relays" "name" {
# arguments
}The following arguments are supported:
- 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
createdvalue 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
createdvalue 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.
- 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
createdvalue 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
createdvalue 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.
- 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
createdvalue 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
createdvalue 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.
- account
Id String - Cloudflare account identifier.
- asc Boolean
- 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
createdvalue 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
createdvalue of the first item on the current page, to fetch the previous page). - max
Items Integer - Max items to fetch, default: 1000
- per
Page Integer - 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 boolean
- 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
createdvalue 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
createdvalue 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.
- 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
createdvalue 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
createdvalue 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.
- account
Id String - Cloudflare account identifier.
- asc Boolean
- 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
createdvalue 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
createdvalue 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.
getMoqRelays Result
The following output properties are available:
- 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 int - Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
- Results
List<Get
Moq Relays Result> - The items returned by the data source
- Created
After string - Cursor for pagination. Returns relays created strictly after this
RFC 3339 timestamp (typically the
createdvalue 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
createdvalue of the first item on the current page, to fetch the previous page). - Max
Items 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 int - Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
- Results
[]Get
Moq Relays Result - The items returned by the data source
- Created
After string - Cursor for pagination. Returns relays created strictly after this
RFC 3339 timestamp (typically the
createdvalue 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
createdvalue of the first item on the current page, to fetch the previous page). - Max
Items 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
createdvalue 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
createdvalue of the first item on the current page, to fetch the previous page). - max_
items number - Max items to fetch, default: 1000
- account
Id String - Cloudflare account identifier.
- asc Boolean
- Sort order by
created. When true, results are returned oldest-first (ascending); otherwise newest-first (descending, the default). - per
Page Integer - Maximum number of relays to return per page. Values above the maximum are clamped to it rather than rejected.
- results
List<Get
Moq Relays Result> - The items returned by the data source
- created
After String - Cursor for pagination. Returns relays created strictly after this
RFC 3339 timestamp (typically the
createdvalue 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
createdvalue of the first item on the current page, to fetch the previous page). - max
Items Integer - Max items to fetch, default: 1000
- account
Id string - Cloudflare account identifier.
- asc boolean
- 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
Get
Moq Relays Result[] - The items returned by the data source
- created
After string - Cursor for pagination. Returns relays created strictly after this
RFC 3339 timestamp (typically the
createdvalue 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
createdvalue of the first item on the current page, to fetch the previous page). - max
Items 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[Get
Moq Relays Result] - The items returned by the data source
- created_
after str - Cursor for pagination. Returns relays created strictly after this
RFC 3339 timestamp (typically the
createdvalue 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
createdvalue of the first item on the current page, to fetch the previous page). - max_
items int - Max items to fetch, default: 1000
- account
Id String - Cloudflare account identifier.
- asc Boolean
- 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<Property Map>
- The items returned by the data source
- created
After String - Cursor for pagination. Returns relays created strictly after this
RFC 3339 timestamp (typically the
createdvalue 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
createdvalue of the first item on the current page, to fetch the previous page). - max
Items Number - Max items to fetch, default: 1000
Supporting Types
GetMoqRelaysResult
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.20.0
published on Tuesday, Aug 25, 2026 by Pulumi
published on Tuesday, Aug 25, 2026 by Pulumi