Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getPageShieldScriptsList
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const examplePageShieldScriptsList = cloudflare.getPageShieldScriptsList({
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
direction: "asc",
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_scripts_list = cloudflare.get_page_shield_scripts_list(zone_id="023e105f4ecef8ad9ca31a8372d0c353",
direction="asc",
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.LookupPageShieldScriptsList(ctx, &cloudflare.LookupPageShieldScriptsListArgs{
ZoneId: "023e105f4ecef8ad9ca31a8372d0c353",
Direction: pulumi.StringRef("asc"),
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 examplePageShieldScriptsList = Cloudflare.GetPageShieldScriptsList.Invoke(new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
Direction = "asc",
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.GetPageShieldScriptsListArgs;
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 examplePageShieldScriptsList = CloudflareFunctions.getPageShieldScriptsList(GetPageShieldScriptsListArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.direction("asc")
.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:
examplePageShieldScriptsList:
fn::invoke:
function: cloudflare:getPageShieldScriptsList
arguments:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
direction: asc
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 getPageShieldScriptsList
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 getPageShieldScriptsList(args: GetPageShieldScriptsListArgs, opts?: InvokeOptions): Promise<GetPageShieldScriptsListResult>
function getPageShieldScriptsListOutput(args: GetPageShieldScriptsListOutputArgs, opts?: InvokeOptions): Output<GetPageShieldScriptsListResult>
def get_page_shield_scripts_list(direction: Optional[str] = None,
exclude_cdn_cgi: Optional[bool] = None,
exclude_duplicates: 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) -> GetPageShieldScriptsListResult
def get_page_shield_scripts_list_output(direction: Optional[pulumi.Input[str]] = None,
exclude_cdn_cgi: Optional[pulumi.Input[bool]] = None,
exclude_duplicates: 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[GetPageShieldScriptsListResult]
func LookupPageShieldScriptsList(ctx *Context, args *LookupPageShieldScriptsListArgs, opts ...InvokeOption) (*LookupPageShieldScriptsListResult, error)
func LookupPageShieldScriptsListOutput(ctx *Context, args *LookupPageShieldScriptsListOutputArgs, opts ...InvokeOption) LookupPageShieldScriptsListResultOutput
> Note: This function is named LookupPageShieldScriptsList
in the Go SDK.
public static class GetPageShieldScriptsList
{
public static Task<GetPageShieldScriptsListResult> InvokeAsync(GetPageShieldScriptsListArgs args, InvokeOptions? opts = null)
public static Output<GetPageShieldScriptsListResult> Invoke(GetPageShieldScriptsListInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPageShieldScriptsListResult> getPageShieldScriptsList(GetPageShieldScriptsListArgs args, InvokeOptions options)
public static Output<GetPageShieldScriptsListResult> getPageShieldScriptsList(GetPageShieldScriptsListArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getPageShieldScriptsList:getPageShieldScriptsList
arguments:
# arguments dictionary
The following arguments are supported:
- Zone
Id string - Identifier
- Direction string
- The direction used to sort returned scripts. Available values: "asc", "desc".
- Exclude
Cdn boolCgi - When true, excludes scripts seen in a
/cdn-cgi
path from the returned scripts. The default value is true. - Exclude
Duplicates bool - When true, excludes duplicate scripts. We consider a script duplicate of another if their javascript content matches and they share the same url host and zone hostname. In such case, we return the most recent script for the URL host and zone hostname combination.
- Exclude
Urls string - Excludes scripts whose URL contains one of the URL-encoded URLs separated by commas.
- Export string
- Export the list of scripts as a file. Available values: "csv".
- Hosts string
- Includes scripts that match one or more URL-encoded hostnames separated by commas.
- Max
Items int - Order
By string - Page string
- Page
Url string - Per
Page double - Prioritize
Malicious bool - Status string
- Urls string
- Zone
Id string - Identifier
- Direction string
- The direction used to sort returned scripts. Available values: "asc", "desc".
- Exclude
Cdn boolCgi - When true, excludes scripts seen in a
/cdn-cgi
path from the returned scripts. The default value is true. - Exclude
Duplicates bool - When true, excludes duplicate scripts. We consider a script duplicate of another if their javascript content matches and they share the same url host and zone hostname. In such case, we return the most recent script for the URL host and zone hostname combination.
- Exclude
Urls string - Excludes scripts whose URL contains one of the URL-encoded URLs separated by commas.
- Export string
- Export the list of scripts as a file. Available values: "csv".
- Hosts string
- Includes scripts that match one or more URL-encoded hostnames separated by commas.
- Max
Items int - Order
By string - Page string
- Page
Url string - Per
Page float64 - Prioritize
Malicious bool - Status string
- Urls string
- zone
Id String - Identifier
- direction String
- The direction used to sort returned scripts. Available values: "asc", "desc".
- exclude
Cdn BooleanCgi - When true, excludes scripts seen in a
/cdn-cgi
path from the returned scripts. The default value is true. - exclude
Duplicates Boolean - When true, excludes duplicate scripts. We consider a script duplicate of another if their javascript content matches and they share the same url host and zone hostname. In such case, we return the most recent script for the URL host and zone hostname combination.
- exclude
Urls String - Excludes scripts whose URL contains one of the URL-encoded URLs separated by commas.
- export String
- Export the list of scripts as a file. Available values: "csv".
- hosts String
- Includes scripts that match one or more URL-encoded hostnames separated by commas.
- max
Items Integer - order
By String - page String
- page
Url String - per
Page Double - prioritize
Malicious Boolean - status String
- urls String
- zone
Id string - Identifier
- direction string
- The direction used to sort returned scripts. Available values: "asc", "desc".
- exclude
Cdn booleanCgi - When true, excludes scripts seen in a
/cdn-cgi
path from the returned scripts. The default value is true. - exclude
Duplicates boolean - When true, excludes duplicate scripts. We consider a script duplicate of another if their javascript content matches and they share the same url host and zone hostname. In such case, we return the most recent script for the URL host and zone hostname combination.
- exclude
Urls string - Excludes scripts whose URL contains one of the URL-encoded URLs separated by commas.
- export string
- Export the list of scripts as a file. Available values: "csv".
- hosts string
- Includes scripts that match one or more URL-encoded hostnames separated by commas.
- max
Items number - order
By string - page string
- page
Url string - per
Page number - prioritize
Malicious boolean - status string
- urls string
- zone_
id str - Identifier
- direction str
- The direction used to sort returned scripts. Available values: "asc", "desc".
- exclude_
cdn_ boolcgi - When true, excludes scripts seen in a
/cdn-cgi
path from the returned scripts. The default value is true. - exclude_
duplicates bool - When true, excludes duplicate scripts. We consider a script duplicate of another if their javascript content matches and they share the same url host and zone hostname. In such case, we return the most recent script for the URL host and zone hostname combination.
- exclude_
urls str - Excludes scripts whose URL contains one of the URL-encoded URLs separated by commas.
- export str
- Export the list of scripts as a file. Available values: "csv".
- hosts str
- Includes scripts 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
- zone
Id String - Identifier
- direction String
- The direction used to sort returned scripts. Available values: "asc", "desc".
- exclude
Cdn BooleanCgi - When true, excludes scripts seen in a
/cdn-cgi
path from the returned scripts. The default value is true. - exclude
Duplicates Boolean - When true, excludes duplicate scripts. We consider a script duplicate of another if their javascript content matches and they share the same url host and zone hostname. In such case, we return the most recent script for the URL host and zone hostname combination.
- exclude
Urls String - Excludes scripts whose URL contains one of the URL-encoded URLs separated by commas.
- export String
- Export the list of scripts as a file. Available values: "csv".
- hosts String
- Includes scripts that match one or more URL-encoded hostnames separated by commas.
- max
Items Number - order
By String - page String
- page
Url String - per
Page Number - prioritize
Malicious Boolean - status String
- urls String
getPageShieldScriptsList Result
The following output properties are available:
- Exclude
Cdn boolCgi - When true, excludes scripts seen in a
/cdn-cgi
path from the returned scripts. The default value is true. - Exclude
Duplicates bool - When true, excludes duplicate scripts. We consider a script duplicate of another if their javascript content matches and they share the same url host and zone hostname. In such case, we return the most recent script for the URL host and zone hostname combination.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Page Shield Scripts List Result> - Zone
Id string - Identifier
- Direction string
- The direction used to sort returned scripts. Available values: "asc", "desc".
- Exclude
Urls string - Excludes scripts whose URL contains one of the URL-encoded URLs separated by commas.
- Export string
- Export the list of scripts as a file. Available values: "csv".
- Hosts string
- Includes scripts that match one or more URL-encoded hostnames separated by commas.
- Max
Items int - Order
By string - Page string
- Page
Url string - Per
Page double - Prioritize
Malicious bool - Status string
- Urls string
- Exclude
Cdn boolCgi - When true, excludes scripts seen in a
/cdn-cgi
path from the returned scripts. The default value is true. - Exclude
Duplicates bool - When true, excludes duplicate scripts. We consider a script duplicate of another if their javascript content matches and they share the same url host and zone hostname. In such case, we return the most recent script for the URL host and zone hostname combination.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Page Shield Scripts List Result - Zone
Id string - Identifier
- Direction string
- The direction used to sort returned scripts. Available values: "asc", "desc".
- Exclude
Urls string - Excludes scripts whose URL contains one of the URL-encoded URLs separated by commas.
- Export string
- Export the list of scripts as a file. Available values: "csv".
- Hosts string
- Includes scripts that match one or more URL-encoded hostnames separated by commas.
- Max
Items int - Order
By string - Page string
- Page
Url string - Per
Page float64 - Prioritize
Malicious bool - Status string
- Urls string
- exclude
Cdn BooleanCgi - When true, excludes scripts seen in a
/cdn-cgi
path from the returned scripts. The default value is true. - exclude
Duplicates Boolean - When true, excludes duplicate scripts. We consider a script duplicate of another if their javascript content matches and they share the same url host and zone hostname. In such case, we return the most recent script for the URL host and zone hostname combination.
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Page Shield Scripts List Result> - zone
Id String - Identifier
- direction String
- The direction used to sort returned scripts. Available values: "asc", "desc".
- exclude
Urls String - Excludes scripts whose URL contains one of the URL-encoded URLs separated by commas.
- export String
- Export the list of scripts as a file. Available values: "csv".
- hosts String
- Includes scripts that match one or more URL-encoded hostnames separated by commas.
- max
Items Integer - order
By String - page String
- page
Url String - per
Page Double - prioritize
Malicious Boolean - status String
- urls String
- exclude
Cdn booleanCgi - When true, excludes scripts seen in a
/cdn-cgi
path from the returned scripts. The default value is true. - exclude
Duplicates boolean - When true, excludes duplicate scripts. We consider a script duplicate of another if their javascript content matches and they share the same url host and zone hostname. In such case, we return the most recent script for the URL host and zone hostname combination.
- id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Page Shield Scripts List Result[] - zone
Id string - Identifier
- direction string
- The direction used to sort returned scripts. Available values: "asc", "desc".
- exclude
Urls string - Excludes scripts whose URL contains one of the URL-encoded URLs separated by commas.
- export string
- Export the list of scripts as a file. Available values: "csv".
- hosts string
- Includes scripts that match one or more URL-encoded hostnames separated by commas.
- max
Items number - order
By string - page string
- page
Url string - per
Page number - prioritize
Malicious boolean - status string
- urls string
- exclude_
cdn_ boolcgi - When true, excludes scripts seen in a
/cdn-cgi
path from the returned scripts. The default value is true. - exclude_
duplicates bool - When true, excludes duplicate scripts. We consider a script duplicate of another if their javascript content matches and they share the same url host and zone hostname. In such case, we return the most recent script for the URL host and zone hostname combination.
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Page Shield Scripts List Result] - zone_
id str - Identifier
- direction str
- The direction used to sort returned scripts. Available values: "asc", "desc".
- exclude_
urls str - Excludes scripts whose URL contains one of the URL-encoded URLs separated by commas.
- export str
- Export the list of scripts as a file. Available values: "csv".
- hosts str
- Includes scripts 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
- exclude
Cdn BooleanCgi - When true, excludes scripts seen in a
/cdn-cgi
path from the returned scripts. The default value is true. - exclude
Duplicates Boolean - When true, excludes duplicate scripts. We consider a script duplicate of another if their javascript content matches and they share the same url host and zone hostname. In such case, we return the most recent script for the URL host and zone hostname combination.
- id String
- The provider-assigned unique ID for this managed resource.
- results List<Property Map>
- zone
Id String - Identifier
- direction String
- The direction used to sort returned scripts. Available values: "asc", "desc".
- exclude
Urls String - Excludes scripts whose URL contains one of the URL-encoded URLs separated by commas.
- export String
- Export the list of scripts as a file. Available values: "csv".
- hosts String
- Includes scripts that match one or more URL-encoded hostnames separated by commas.
- max
Items Number - order
By String - page String
- page
Url String - per
Page Number - prioritize
Malicious Boolean - status String
- urls String
Supporting Types
GetPageShieldScriptsListResult
- Added
At string - Cryptomining
Score int - The cryptomining score of the JavaScript content.
- Dataflow
Score int - The dataflow score of the JavaScript content.
- Domain
Reported boolMalicious - Fetched
At string - The timestamp of when the script was last fetched.
- First
Page stringUrl - First
Seen stringAt - Hash string
- The computed hash of the analyzed script.
- Host string
- Id string
- Identifier
- Js
Integrity intScore - The integrity score of the JavaScript content.
- Last
Seen stringAt - Magecart
Score int - The magecart score of the JavaScript content.
- Malicious
Domain List<string>Categories - Malicious
Url List<string>Categories - Malware
Score int - The malware score of the JavaScript content.
- Obfuscation
Score int - The obfuscation score of the JavaScript content.
- Page
Urls List<string> - Url string
- Url
Contains boolCdn Cgi Path - Url
Reported boolMalicious
- Added
At string - Cryptomining
Score int - The cryptomining score of the JavaScript content.
- Dataflow
Score int - The dataflow score of the JavaScript content.
- Domain
Reported boolMalicious - Fetched
At string - The timestamp of when the script was last fetched.
- First
Page stringUrl - First
Seen stringAt - Hash string
- The computed hash of the analyzed script.
- Host string
- Id string
- Identifier
- Js
Integrity intScore - The integrity score of the JavaScript content.
- Last
Seen stringAt - Magecart
Score int - The magecart score of the JavaScript content.
- Malicious
Domain []stringCategories - Malicious
Url []stringCategories - Malware
Score int - The malware score of the JavaScript content.
- Obfuscation
Score int - The obfuscation score of the JavaScript content.
- Page
Urls []string - Url string
- Url
Contains boolCdn Cgi Path - Url
Reported boolMalicious
- added
At String - cryptomining
Score Integer - The cryptomining score of the JavaScript content.
- dataflow
Score Integer - The dataflow score of the JavaScript content.
- domain
Reported BooleanMalicious - fetched
At String - The timestamp of when the script was last fetched.
- first
Page StringUrl - first
Seen StringAt - hash String
- The computed hash of the analyzed script.
- host String
- id String
- Identifier
- js
Integrity IntegerScore - The integrity score of the JavaScript content.
- last
Seen StringAt - magecart
Score Integer - The magecart score of the JavaScript content.
- malicious
Domain List<String>Categories - malicious
Url List<String>Categories - malware
Score Integer - The malware score of the JavaScript content.
- obfuscation
Score Integer - The obfuscation score of the JavaScript content.
- page
Urls List<String> - url String
- url
Contains BooleanCdn Cgi Path - url
Reported BooleanMalicious
- added
At string - cryptomining
Score number - The cryptomining score of the JavaScript content.
- dataflow
Score number - The dataflow score of the JavaScript content.
- domain
Reported booleanMalicious - fetched
At string - The timestamp of when the script was last fetched.
- first
Page stringUrl - first
Seen stringAt - hash string
- The computed hash of the analyzed script.
- host string
- id string
- Identifier
- js
Integrity numberScore - The integrity score of the JavaScript content.
- last
Seen stringAt - magecart
Score number - The magecart score of the JavaScript content.
- malicious
Domain string[]Categories - malicious
Url string[]Categories - malware
Score number - The malware score of the JavaScript content.
- obfuscation
Score number - The obfuscation score of the JavaScript content.
- page
Urls string[] - url string
- url
Contains booleanCdn Cgi Path - url
Reported booleanMalicious
- added_
at str - cryptomining_
score int - The cryptomining score of the JavaScript content.
- dataflow_
score int - The dataflow score of the JavaScript content.
- domain_
reported_ boolmalicious - fetched_
at str - The timestamp of when the script was last fetched.
- first_
page_ strurl - first_
seen_ strat - hash str
- The computed hash of the analyzed script.
- host str
- id str
- Identifier
- js_
integrity_ intscore - The integrity score of the JavaScript content.
- last_
seen_ strat - magecart_
score int - The magecart score of the JavaScript content.
- malicious_
domain_ Sequence[str]categories - malicious_
url_ Sequence[str]categories - malware_
score int - The malware score of the JavaScript content.
- obfuscation_
score int - The obfuscation score of the JavaScript content.
- page_
urls Sequence[str] - url str
- url_
contains_ boolcdn_ cgi_ path - url_
reported_ boolmalicious
- added
At String - cryptomining
Score Number - The cryptomining score of the JavaScript content.
- dataflow
Score Number - The dataflow score of the JavaScript content.
- domain
Reported BooleanMalicious - fetched
At String - The timestamp of when the script was last fetched.
- first
Page StringUrl - first
Seen StringAt - hash String
- The computed hash of the analyzed script.
- host String
- id String
- Identifier
- js
Integrity NumberScore - The integrity score of the JavaScript content.
- last
Seen StringAt - magecart
Score Number - The magecart score of the JavaScript content.
- malicious
Domain List<String>Categories - malicious
Url List<String>Categories - malware
Score Number - The malware score of the JavaScript content.
- obfuscation
Score Number - The obfuscation score of the JavaScript content.
- page
Urls List<String> - url String
- url
Contains BooleanCdn Cgi Path - url
Reported BooleanMalicious
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.