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

cloudflare.getPageShieldConnectionsList

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 examplePageShieldConnectionsList = cloudflare.getPageShieldConnectionsList({
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
        direction: "asc",
        excludeCdnCgi: true,
        excludeUrls: "blog.cloudflare.com,www.example",
        "export": "csv",
        hosts: "blog.cloudflare.com,www.example*,*cloudflare.com",
        orderBy: "first_seen_at",
        page: "2",
        pageUrl: "example.com/page,*/checkout,example.com/*,*checkout*",
        perPage: 100,
        prioritizeMalicious: true,
        status: "active,inactive",
        urls: "blog.cloudflare.com,www.example",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_page_shield_connections_list = cloudflare.get_page_shield_connections_list(zone_id="023e105f4ecef8ad9ca31a8372d0c353",
        direction="asc",
        exclude_cdn_cgi=True,
        exclude_urls="blog.cloudflare.com,www.example",
        export="csv",
        hosts="blog.cloudflare.com,www.example*,*cloudflare.com",
        order_by="first_seen_at",
        page="2",
        page_url="example.com/page,*/checkout,example.com/*,*checkout*",
        per_page=100,
        prioritize_malicious=True,
        status="active,inactive",
        urls="blog.cloudflare.com,www.example")
    
    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.LookupPageShieldConnectionsList(ctx, &cloudflare.LookupPageShieldConnectionsListArgs{
    			ZoneId:              "023e105f4ecef8ad9ca31a8372d0c353",
    			Direction:           pulumi.StringRef("asc"),
    			ExcludeCdnCgi:       pulumi.BoolRef(true),
    			ExcludeUrls:         pulumi.StringRef("blog.cloudflare.com,www.example"),
    			Export:              pulumi.StringRef("csv"),
    			Hosts:               pulumi.StringRef("blog.cloudflare.com,www.example*,*cloudflare.com"),
    			OrderBy:             pulumi.StringRef("first_seen_at"),
    			Page:                pulumi.StringRef("2"),
    			PageUrl:             pulumi.StringRef("example.com/page,*/checkout,example.com/*,*checkout*"),
    			PerPage:             pulumi.Float64Ref(100),
    			PrioritizeMalicious: pulumi.BoolRef(true),
    			Status:              pulumi.StringRef("active,inactive"),
    			Urls:                pulumi.StringRef("blog.cloudflare.com,www.example"),
    		}, 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 examplePageShieldConnectionsList = Cloudflare.GetPageShieldConnectionsList.Invoke(new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
            Direction = "asc",
            ExcludeCdnCgi = true,
            ExcludeUrls = "blog.cloudflare.com,www.example",
            Export = "csv",
            Hosts = "blog.cloudflare.com,www.example*,*cloudflare.com",
            OrderBy = "first_seen_at",
            Page = "2",
            PageUrl = "example.com/page,*/checkout,example.com/*,*checkout*",
            PerPage = 100,
            PrioritizeMalicious = true,
            Status = "active,inactive",
            Urls = "blog.cloudflare.com,www.example",
        });
    
    });
    
    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.GetPageShieldConnectionsListArgs;
    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 examplePageShieldConnectionsList = CloudflareFunctions.getPageShieldConnectionsList(GetPageShieldConnectionsListArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .direction("asc")
                .excludeCdnCgi(true)
                .excludeUrls("blog.cloudflare.com,www.example")
                .export("csv")
                .hosts("blog.cloudflare.com,www.example*,*cloudflare.com")
                .orderBy("first_seen_at")
                .page("2")
                .pageUrl("example.com/page,*/checkout,example.com/*,*checkout*")
                .perPage(100)
                .prioritizeMalicious(true)
                .status("active,inactive")
                .urls("blog.cloudflare.com,www.example")
                .build());
    
        }
    }
    
    variables:
      examplePageShieldConnectionsList:
        fn::invoke:
          function: cloudflare:getPageShieldConnectionsList
          arguments:
            zoneId: 023e105f4ecef8ad9ca31a8372d0c353
            direction: asc
            excludeCdnCgi: true
            excludeUrls: blog.cloudflare.com,www.example
            export: csv
            hosts: blog.cloudflare.com,www.example*,*cloudflare.com
            orderBy: first_seen_at
            page: '2'
            pageUrl: example.com/page,*/checkout,example.com/*,*checkout*
            perPage: 100
            prioritizeMalicious: true
            status: active,inactive
            urls: blog.cloudflare.com,www.example
    

    Using getPageShieldConnectionsList

    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 getPageShieldConnectionsList(args: GetPageShieldConnectionsListArgs, opts?: InvokeOptions): Promise<GetPageShieldConnectionsListResult>
    function getPageShieldConnectionsListOutput(args: GetPageShieldConnectionsListOutputArgs, opts?: InvokeOptions): Output<GetPageShieldConnectionsListResult>
    def get_page_shield_connections_list(direction: Optional[str] = None,
                                         exclude_cdn_cgi: Optional[bool] = None,
                                         exclude_urls: Optional[str] = None,
                                         export: Optional[str] = None,
                                         hosts: Optional[str] = None,
                                         max_items: Optional[int] = None,
                                         order_by: Optional[str] = None,
                                         page: Optional[str] = None,
                                         page_url: Optional[str] = None,
                                         per_page: Optional[float] = None,
                                         prioritize_malicious: Optional[bool] = None,
                                         status: Optional[str] = None,
                                         urls: Optional[str] = None,
                                         zone_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetPageShieldConnectionsListResult
    def get_page_shield_connections_list_output(direction: Optional[pulumi.Input[str]] = None,
                                         exclude_cdn_cgi: Optional[pulumi.Input[bool]] = None,
                                         exclude_urls: Optional[pulumi.Input[str]] = None,
                                         export: Optional[pulumi.Input[str]] = None,
                                         hosts: Optional[pulumi.Input[str]] = None,
                                         max_items: Optional[pulumi.Input[int]] = None,
                                         order_by: Optional[pulumi.Input[str]] = None,
                                         page: Optional[pulumi.Input[str]] = None,
                                         page_url: Optional[pulumi.Input[str]] = None,
                                         per_page: Optional[pulumi.Input[float]] = None,
                                         prioritize_malicious: Optional[pulumi.Input[bool]] = None,
                                         status: Optional[pulumi.Input[str]] = None,
                                         urls: Optional[pulumi.Input[str]] = None,
                                         zone_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetPageShieldConnectionsListResult]
    func LookupPageShieldConnectionsList(ctx *Context, args *LookupPageShieldConnectionsListArgs, opts ...InvokeOption) (*LookupPageShieldConnectionsListResult, error)
    func LookupPageShieldConnectionsListOutput(ctx *Context, args *LookupPageShieldConnectionsListOutputArgs, opts ...InvokeOption) LookupPageShieldConnectionsListResultOutput

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

    public static class GetPageShieldConnectionsList 
    {
        public static Task<GetPageShieldConnectionsListResult> InvokeAsync(GetPageShieldConnectionsListArgs args, InvokeOptions? opts = null)
        public static Output<GetPageShieldConnectionsListResult> Invoke(GetPageShieldConnectionsListInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPageShieldConnectionsListResult> getPageShieldConnectionsList(GetPageShieldConnectionsListArgs args, InvokeOptions options)
    public static Output<GetPageShieldConnectionsListResult> getPageShieldConnectionsList(GetPageShieldConnectionsListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getPageShieldConnectionsList:getPageShieldConnectionsList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ZoneId string
    Identifier
    Direction string
    The direction used to sort returned connections. Available values: "asc", "desc".
    ExcludeCdnCgi bool
    When true, excludes connections seen in a /cdn-cgi path from the returned connections. The default value is true.
    ExcludeUrls string
    Excludes connections whose URL contains one of the URL-encoded URLs separated by commas.
    Export string
    Export the list of connections as a file. Available values: "csv".
    Hosts string
    Includes connections that match one or more URL-encoded hostnames separated by commas.
    MaxItems int
    OrderBy string
    Page string
    PageUrl string
    PerPage double
    PrioritizeMalicious bool
    Status string
    Urls string
    ZoneId string
    Identifier
    Direction string
    The direction used to sort returned connections. Available values: "asc", "desc".
    ExcludeCdnCgi bool
    When true, excludes connections seen in a /cdn-cgi path from the returned connections. The default value is true.
    ExcludeUrls string
    Excludes connections whose URL contains one of the URL-encoded URLs separated by commas.
    Export string
    Export the list of connections as a file. Available values: "csv".
    Hosts string
    Includes connections that match one or more URL-encoded hostnames separated by commas.
    MaxItems int
    OrderBy string
    Page string
    PageUrl string
    PerPage float64
    PrioritizeMalicious bool
    Status string
    Urls string
    zoneId String
    Identifier
    direction String
    The direction used to sort returned connections. Available values: "asc", "desc".
    excludeCdnCgi Boolean
    When true, excludes connections seen in a /cdn-cgi path from the returned connections. The default value is true.
    excludeUrls String
    Excludes connections whose URL contains one of the URL-encoded URLs separated by commas.
    export String
    Export the list of connections as a file. Available values: "csv".
    hosts String
    Includes connections that match one or more URL-encoded hostnames separated by commas.
    maxItems Integer
    orderBy String
    page String
    pageUrl String
    perPage Double
    prioritizeMalicious Boolean
    status String
    urls String
    zoneId string
    Identifier
    direction string
    The direction used to sort returned connections. Available values: "asc", "desc".
    excludeCdnCgi boolean
    When true, excludes connections seen in a /cdn-cgi path from the returned connections. The default value is true.
    excludeUrls string
    Excludes connections whose URL contains one of the URL-encoded URLs separated by commas.
    export string
    Export the list of connections as a file. Available values: "csv".
    hosts string
    Includes connections that match one or more URL-encoded hostnames separated by commas.
    maxItems number
    orderBy string
    page string
    pageUrl string
    perPage number
    prioritizeMalicious boolean
    status string
    urls string
    zone_id str
    Identifier
    direction str
    The direction used to sort returned connections. Available values: "asc", "desc".
    exclude_cdn_cgi bool
    When true, excludes connections seen in a /cdn-cgi path from the returned connections. The default value is true.
    exclude_urls str
    Excludes connections whose URL contains one of the URL-encoded URLs separated by commas.
    export str
    Export the list of connections as a file. Available values: "csv".
    hosts str
    Includes connections that match one or more URL-encoded hostnames separated by commas.
    max_items int
    order_by str
    page str
    page_url str
    per_page float
    prioritize_malicious bool
    status str
    urls str
    zoneId String
    Identifier
    direction String
    The direction used to sort returned connections. Available values: "asc", "desc".
    excludeCdnCgi Boolean
    When true, excludes connections seen in a /cdn-cgi path from the returned connections. The default value is true.
    excludeUrls String
    Excludes connections whose URL contains one of the URL-encoded URLs separated by commas.
    export String
    Export the list of connections as a file. Available values: "csv".
    hosts String
    Includes connections that match one or more URL-encoded hostnames separated by commas.
    maxItems Number
    orderBy String
    page String
    pageUrl String
    perPage Number
    prioritizeMalicious Boolean
    status String
    urls String

    getPageShieldConnectionsList Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetPageShieldConnectionsListResult>
    ZoneId string
    Identifier
    Direction string
    The direction used to sort returned connections. Available values: "asc", "desc".
    ExcludeCdnCgi bool
    When true, excludes connections seen in a /cdn-cgi path from the returned connections. The default value is true.
    ExcludeUrls string
    Excludes connections whose URL contains one of the URL-encoded URLs separated by commas.
    Export string
    Export the list of connections as a file. Available values: "csv".
    Hosts string
    Includes connections that match one or more URL-encoded hostnames separated by commas.
    MaxItems int
    OrderBy string
    Page string
    PageUrl string
    PerPage double
    PrioritizeMalicious bool
    Status string
    Urls string
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetPageShieldConnectionsListResult
    ZoneId string
    Identifier
    Direction string
    The direction used to sort returned connections. Available values: "asc", "desc".
    ExcludeCdnCgi bool
    When true, excludes connections seen in a /cdn-cgi path from the returned connections. The default value is true.
    ExcludeUrls string
    Excludes connections whose URL contains one of the URL-encoded URLs separated by commas.
    Export string
    Export the list of connections as a file. Available values: "csv".
    Hosts string
    Includes connections that match one or more URL-encoded hostnames separated by commas.
    MaxItems int
    OrderBy string
    Page string
    PageUrl string
    PerPage float64
    PrioritizeMalicious bool
    Status string
    Urls string
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetPageShieldConnectionsListResult>
    zoneId String
    Identifier
    direction String
    The direction used to sort returned connections. Available values: "asc", "desc".
    excludeCdnCgi Boolean
    When true, excludes connections seen in a /cdn-cgi path from the returned connections. The default value is true.
    excludeUrls String
    Excludes connections whose URL contains one of the URL-encoded URLs separated by commas.
    export String
    Export the list of connections as a file. Available values: "csv".
    hosts String
    Includes connections that match one or more URL-encoded hostnames separated by commas.
    maxItems Integer
    orderBy String
    page String
    pageUrl String
    perPage Double
    prioritizeMalicious Boolean
    status String
    urls String
    id string
    The provider-assigned unique ID for this managed resource.
    results GetPageShieldConnectionsListResult[]
    zoneId string
    Identifier
    direction string
    The direction used to sort returned connections. Available values: "asc", "desc".
    excludeCdnCgi boolean
    When true, excludes connections seen in a /cdn-cgi path from the returned connections. The default value is true.
    excludeUrls string
    Excludes connections whose URL contains one of the URL-encoded URLs separated by commas.
    export string
    Export the list of connections as a file. Available values: "csv".
    hosts string
    Includes connections that match one or more URL-encoded hostnames separated by commas.
    maxItems number
    orderBy string
    page string
    pageUrl string
    perPage number
    prioritizeMalicious boolean
    status string
    urls string
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetPageShieldConnectionsListResult]
    zone_id str
    Identifier
    direction str
    The direction used to sort returned connections. Available values: "asc", "desc".
    exclude_cdn_cgi bool
    When true, excludes connections seen in a /cdn-cgi path from the returned connections. The default value is true.
    exclude_urls str
    Excludes connections whose URL contains one of the URL-encoded URLs separated by commas.
    export str
    Export the list of connections as a file. Available values: "csv".
    hosts str
    Includes connections that match one or more URL-encoded hostnames separated by commas.
    max_items int
    order_by str
    page str
    page_url str
    per_page float
    prioritize_malicious bool
    status str
    urls str
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    zoneId String
    Identifier
    direction String
    The direction used to sort returned connections. Available values: "asc", "desc".
    excludeCdnCgi Boolean
    When true, excludes connections seen in a /cdn-cgi path from the returned connections. The default value is true.
    excludeUrls String
    Excludes connections whose URL contains one of the URL-encoded URLs separated by commas.
    export String
    Export the list of connections as a file. Available values: "csv".
    hosts String
    Includes connections that match one or more URL-encoded hostnames separated by commas.
    maxItems Number
    orderBy String
    page String
    pageUrl String
    perPage Number
    prioritizeMalicious Boolean
    status String
    urls String

    Supporting Types

    GetPageShieldConnectionsListResult

    AddedAt string
    DomainReportedMalicious bool
    FirstPageUrl string
    FirstSeenAt string
    Host string
    Id string
    Identifier
    LastSeenAt string
    MaliciousDomainCategories List<string>
    MaliciousUrlCategories List<string>
    PageUrls List<string>
    Url string
    UrlContainsCdnCgiPath bool
    UrlReportedMalicious bool
    addedAt String
    domainReportedMalicious Boolean
    firstPageUrl String
    firstSeenAt String
    host String
    id String
    Identifier
    lastSeenAt String
    maliciousDomainCategories List<String>
    maliciousUrlCategories List<String>
    pageUrls List<String>
    url String
    urlContainsCdnCgiPath Boolean
    urlReportedMalicious Boolean
    addedAt String
    domainReportedMalicious Boolean
    firstPageUrl String
    firstSeenAt String
    host String
    id String
    Identifier
    lastSeenAt String
    maliciousDomainCategories List<String>
    maliciousUrlCategories List<String>
    pageUrls List<String>
    url String
    urlContainsCdnCgiPath Boolean
    urlReportedMalicious Boolean

    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