Cloudflare v6.3.0 published on Tuesday, Jun 10, 2025 by Pulumi
cloudflare.getCloudConnectorRules
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleCloudConnectorRules = cloudflare.getCloudConnectorRules({
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_cloud_connector_rules = cloudflare.get_cloud_connector_rules(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.LookupCloudConnectorRules(ctx, &cloudflare.LookupCloudConnectorRulesArgs{
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 exampleCloudConnectorRules = Cloudflare.GetCloudConnectorRules.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.GetCloudConnectorRulesArgs;
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 exampleCloudConnectorRules = CloudflareFunctions.getCloudConnectorRules(GetCloudConnectorRulesArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
variables:
exampleCloudConnectorRules:
fn::invoke:
function: cloudflare:getCloudConnectorRules
arguments:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
Using getCloudConnectorRules
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 getCloudConnectorRules(args: GetCloudConnectorRulesArgs, opts?: InvokeOptions): Promise<GetCloudConnectorRulesResult>
function getCloudConnectorRulesOutput(args: GetCloudConnectorRulesOutputArgs, opts?: InvokeOptions): Output<GetCloudConnectorRulesResult>
def get_cloud_connector_rules(zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudConnectorRulesResult
def get_cloud_connector_rules_output(zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudConnectorRulesResult]
func LookupCloudConnectorRules(ctx *Context, args *LookupCloudConnectorRulesArgs, opts ...InvokeOption) (*LookupCloudConnectorRulesResult, error)
func LookupCloudConnectorRulesOutput(ctx *Context, args *LookupCloudConnectorRulesOutputArgs, opts ...InvokeOption) LookupCloudConnectorRulesResultOutput
> Note: This function is named LookupCloudConnectorRules
in the Go SDK.
public static class GetCloudConnectorRules
{
public static Task<GetCloudConnectorRulesResult> InvokeAsync(GetCloudConnectorRulesArgs args, InvokeOptions? opts = null)
public static Output<GetCloudConnectorRulesResult> Invoke(GetCloudConnectorRulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCloudConnectorRulesResult> getCloudConnectorRules(GetCloudConnectorRulesArgs args, InvokeOptions options)
public static Output<GetCloudConnectorRulesResult> getCloudConnectorRules(GetCloudConnectorRulesArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getCloudConnectorRules:getCloudConnectorRules
arguments:
# arguments dictionary
The following arguments are supported:
- Zone
Id string - Identifier.
- Zone
Id string - Identifier.
- zone
Id String - Identifier.
- zone
Id string - Identifier.
- zone_
id str - Identifier.
- zone
Id String - Identifier.
getCloudConnectorRules Result
The following output properties are available:
- Id string
- The ID of this resource.
- Rules
List<Get
Cloud Connector Rules Rule> - Zone
Id string - Identifier.
- Id string
- The ID of this resource.
- Rules
[]Get
Cloud Connector Rules Rule - Zone
Id string - Identifier.
- id String
- The ID of this resource.
- rules
List<Get
Cloud Connector Rules Rule> - zone
Id String - Identifier.
- id string
- The ID of this resource.
- rules
Get
Cloud Connector Rules Rule[] - zone
Id string - Identifier.
- id str
- The ID of this resource.
- rules
Sequence[Get
Cloud Connector Rules Rule] - zone_
id str - Identifier.
- id String
- The ID of this resource.
- rules List<Property Map>
- zone
Id String - Identifier.
Supporting Types
GetCloudConnectorRulesRule
- Description string
- Enabled bool
- Expression string
- Id string
- Parameters
Get
Cloud Connector Rules Rule Parameters - Parameters of Cloud Connector Rule
- Provider string
- Cloud Provider type Available values: "awss3", "r2", "gcpstorage", "azure_storage".
- Description string
- Enabled bool
- Expression string
- Id string
- Parameters
Get
Cloud Connector Rules Rule Parameters - Parameters of Cloud Connector Rule
- Provider string
- Cloud Provider type Available values: "awss3", "r2", "gcpstorage", "azure_storage".
- description String
- enabled Boolean
- expression String
- id String
- parameters
Get
Cloud Connector Rules Rule Parameters - Parameters of Cloud Connector Rule
- provider String
- Cloud Provider type Available values: "awss3", "r2", "gcpstorage", "azure_storage".
- description string
- enabled boolean
- expression string
- id string
- parameters
Get
Cloud Connector Rules Rule Parameters - Parameters of Cloud Connector Rule
- provider string
- Cloud Provider type Available values: "awss3", "r2", "gcpstorage", "azure_storage".
- description str
- enabled bool
- expression str
- id str
- parameters
Get
Cloud Connector Rules Rule Parameters - Parameters of Cloud Connector Rule
- provider str
- Cloud Provider type Available values: "awss3", "r2", "gcpstorage", "azure_storage".
- description String
- enabled Boolean
- expression String
- id String
- parameters Property Map
- Parameters of Cloud Connector Rule
- provider String
- Cloud Provider type Available values: "awss3", "r2", "gcpstorage", "azure_storage".
GetCloudConnectorRulesRuleParameters
- Host string
- Host to perform Cloud Connection to
- Host string
- Host to perform Cloud Connection to
- host String
- Host to perform Cloud Connection to
- host string
- Host to perform Cloud Connection to
- host str
- Host to perform Cloud Connection to
- host String
- Host to perform Cloud Connection to
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.