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

cloudflare.getPageShieldScripts

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 examplePageShieldScripts = cloudflare.getPageShieldScripts({
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
        scriptId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_page_shield_scripts = cloudflare.get_page_shield_scripts(zone_id="023e105f4ecef8ad9ca31a8372d0c353",
        script_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.GetPageShieldScripts(ctx, &cloudflare.GetPageShieldScriptsArgs{
    			ZoneId:   "023e105f4ecef8ad9ca31a8372d0c353",
    			ScriptId: "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 examplePageShieldScripts = Cloudflare.GetPageShieldScripts.Invoke(new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
            ScriptId = "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.GetPageShieldScriptsArgs;
    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 examplePageShieldScripts = CloudflareFunctions.getPageShieldScripts(GetPageShieldScriptsArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .scriptId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      examplePageShieldScripts:
        fn::invoke:
          function: cloudflare:getPageShieldScripts
          arguments:
            zoneId: 023e105f4ecef8ad9ca31a8372d0c353
            scriptId: 023e105f4ecef8ad9ca31a8372d0c353
    

    Using getPageShieldScripts

    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 getPageShieldScripts(args: GetPageShieldScriptsArgs, opts?: InvokeOptions): Promise<GetPageShieldScriptsResult>
    function getPageShieldScriptsOutput(args: GetPageShieldScriptsOutputArgs, opts?: InvokeOptions): Output<GetPageShieldScriptsResult>
    def get_page_shield_scripts(script_id: Optional[str] = None,
                                zone_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetPageShieldScriptsResult
    def get_page_shield_scripts_output(script_id: Optional[pulumi.Input[str]] = None,
                                zone_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetPageShieldScriptsResult]
    func GetPageShieldScripts(ctx *Context, args *GetPageShieldScriptsArgs, opts ...InvokeOption) (*GetPageShieldScriptsResult, error)
    func GetPageShieldScriptsOutput(ctx *Context, args *GetPageShieldScriptsOutputArgs, opts ...InvokeOption) GetPageShieldScriptsResultOutput

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

    public static class GetPageShieldScripts 
    {
        public static Task<GetPageShieldScriptsResult> InvokeAsync(GetPageShieldScriptsArgs args, InvokeOptions? opts = null)
        public static Output<GetPageShieldScriptsResult> Invoke(GetPageShieldScriptsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPageShieldScriptsResult> getPageShieldScripts(GetPageShieldScriptsArgs args, InvokeOptions options)
    public static Output<GetPageShieldScriptsResult> getPageShieldScripts(GetPageShieldScriptsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getPageShieldScripts:getPageShieldScripts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ScriptId string
    Identifier
    ZoneId string
    Identifier
    ScriptId string
    Identifier
    ZoneId string
    Identifier
    scriptId String
    Identifier
    zoneId String
    Identifier
    scriptId string
    Identifier
    zoneId string
    Identifier
    script_id str
    Identifier
    zone_id str
    Identifier
    scriptId String
    Identifier
    zoneId String
    Identifier

    getPageShieldScripts Result

    The following output properties are available:

    AddedAt string
    CryptominingScore int
    The cryptomining score of the JavaScript content.
    DataflowScore int
    The dataflow score of the JavaScript content.
    DomainReportedMalicious bool
    FetchedAt string
    The timestamp of when the script was last fetched.
    FirstPageUrl string
    FirstSeenAt string
    Hash string
    The computed hash of the analyzed script.
    Host string
    Id string
    Identifier
    JsIntegrityScore int
    The integrity score of the JavaScript content.
    LastSeenAt string
    MagecartScore int
    The magecart score of the JavaScript content.
    MaliciousDomainCategories List<string>
    MaliciousUrlCategories List<string>
    MalwareScore int
    The malware score of the JavaScript content.
    ObfuscationScore int
    The obfuscation score of the JavaScript content.
    PageUrls List<string>
    ScriptId string
    Identifier
    Url string
    UrlContainsCdnCgiPath bool
    UrlReportedMalicious bool
    Versions List<GetPageShieldScriptsVersion>
    ZoneId string
    Identifier
    AddedAt string
    CryptominingScore int
    The cryptomining score of the JavaScript content.
    DataflowScore int
    The dataflow score of the JavaScript content.
    DomainReportedMalicious bool
    FetchedAt string
    The timestamp of when the script was last fetched.
    FirstPageUrl string
    FirstSeenAt string
    Hash string
    The computed hash of the analyzed script.
    Host string
    Id string
    Identifier
    JsIntegrityScore int
    The integrity score of the JavaScript content.
    LastSeenAt string
    MagecartScore int
    The magecart score of the JavaScript content.
    MaliciousDomainCategories []string
    MaliciousUrlCategories []string
    MalwareScore int
    The malware score of the JavaScript content.
    ObfuscationScore int
    The obfuscation score of the JavaScript content.
    PageUrls []string
    ScriptId string
    Identifier
    Url string
    UrlContainsCdnCgiPath bool
    UrlReportedMalicious bool
    Versions []GetPageShieldScriptsVersion
    ZoneId string
    Identifier
    addedAt String
    cryptominingScore Integer
    The cryptomining score of the JavaScript content.
    dataflowScore Integer
    The dataflow score of the JavaScript content.
    domainReportedMalicious Boolean
    fetchedAt String
    The timestamp of when the script was last fetched.
    firstPageUrl String
    firstSeenAt String
    hash String
    The computed hash of the analyzed script.
    host String
    id String
    Identifier
    jsIntegrityScore Integer
    The integrity score of the JavaScript content.
    lastSeenAt String
    magecartScore Integer
    The magecart score of the JavaScript content.
    maliciousDomainCategories List<String>
    maliciousUrlCategories List<String>
    malwareScore Integer
    The malware score of the JavaScript content.
    obfuscationScore Integer
    The obfuscation score of the JavaScript content.
    pageUrls List<String>
    scriptId String
    Identifier
    url String
    urlContainsCdnCgiPath Boolean
    urlReportedMalicious Boolean
    versions List<GetPageShieldScriptsVersion>
    zoneId String
    Identifier
    addedAt string
    cryptominingScore number
    The cryptomining score of the JavaScript content.
    dataflowScore number
    The dataflow score of the JavaScript content.
    domainReportedMalicious boolean
    fetchedAt string
    The timestamp of when the script was last fetched.
    firstPageUrl string
    firstSeenAt string
    hash string
    The computed hash of the analyzed script.
    host string
    id string
    Identifier
    jsIntegrityScore number
    The integrity score of the JavaScript content.
    lastSeenAt string
    magecartScore number
    The magecart score of the JavaScript content.
    maliciousDomainCategories string[]
    maliciousUrlCategories string[]
    malwareScore number
    The malware score of the JavaScript content.
    obfuscationScore number
    The obfuscation score of the JavaScript content.
    pageUrls string[]
    scriptId string
    Identifier
    url string
    urlContainsCdnCgiPath boolean
    urlReportedMalicious boolean
    versions GetPageShieldScriptsVersion[]
    zoneId string
    Identifier
    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_malicious bool
    fetched_at str
    The timestamp of when the script was last fetched.
    first_page_url str
    first_seen_at str
    hash str
    The computed hash of the analyzed script.
    host str
    id str
    Identifier
    js_integrity_score int
    The integrity score of the JavaScript content.
    last_seen_at str
    magecart_score int
    The magecart score of the JavaScript content.
    malicious_domain_categories Sequence[str]
    malicious_url_categories Sequence[str]
    malware_score int
    The malware score of the JavaScript content.
    obfuscation_score int
    The obfuscation score of the JavaScript content.
    page_urls Sequence[str]
    script_id str
    Identifier
    url str
    url_contains_cdn_cgi_path bool
    url_reported_malicious bool
    versions Sequence[GetPageShieldScriptsVersion]
    zone_id str
    Identifier
    addedAt String
    cryptominingScore Number
    The cryptomining score of the JavaScript content.
    dataflowScore Number
    The dataflow score of the JavaScript content.
    domainReportedMalicious Boolean
    fetchedAt String
    The timestamp of when the script was last fetched.
    firstPageUrl String
    firstSeenAt String
    hash String
    The computed hash of the analyzed script.
    host String
    id String
    Identifier
    jsIntegrityScore Number
    The integrity score of the JavaScript content.
    lastSeenAt String
    magecartScore Number
    The magecart score of the JavaScript content.
    maliciousDomainCategories List<String>
    maliciousUrlCategories List<String>
    malwareScore Number
    The malware score of the JavaScript content.
    obfuscationScore Number
    The obfuscation score of the JavaScript content.
    pageUrls List<String>
    scriptId String
    Identifier
    url String
    urlContainsCdnCgiPath Boolean
    urlReportedMalicious Boolean
    versions List<Property Map>
    zoneId String
    Identifier

    Supporting Types

    GetPageShieldScriptsVersion

    CryptominingScore int
    The cryptomining score of the JavaScript content.
    DataflowScore int
    The dataflow score of the JavaScript content.
    FetchedAt string
    The timestamp of when the script was last fetched.
    Hash string
    The computed hash of the analyzed script.
    JsIntegrityScore int
    The integrity score of the JavaScript content.
    MagecartScore int
    The magecart score of the JavaScript content.
    MalwareScore int
    The malware score of the JavaScript content.
    ObfuscationScore int
    The obfuscation score of the JavaScript content.
    CryptominingScore int
    The cryptomining score of the JavaScript content.
    DataflowScore int
    The dataflow score of the JavaScript content.
    FetchedAt string
    The timestamp of when the script was last fetched.
    Hash string
    The computed hash of the analyzed script.
    JsIntegrityScore int
    The integrity score of the JavaScript content.
    MagecartScore int
    The magecart score of the JavaScript content.
    MalwareScore int
    The malware score of the JavaScript content.
    ObfuscationScore int
    The obfuscation score of the JavaScript content.
    cryptominingScore Integer
    The cryptomining score of the JavaScript content.
    dataflowScore Integer
    The dataflow score of the JavaScript content.
    fetchedAt String
    The timestamp of when the script was last fetched.
    hash String
    The computed hash of the analyzed script.
    jsIntegrityScore Integer
    The integrity score of the JavaScript content.
    magecartScore Integer
    The magecart score of the JavaScript content.
    malwareScore Integer
    The malware score of the JavaScript content.
    obfuscationScore Integer
    The obfuscation score of the JavaScript content.
    cryptominingScore number
    The cryptomining score of the JavaScript content.
    dataflowScore number
    The dataflow score of the JavaScript content.
    fetchedAt string
    The timestamp of when the script was last fetched.
    hash string
    The computed hash of the analyzed script.
    jsIntegrityScore number
    The integrity score of the JavaScript content.
    magecartScore number
    The magecart score of the JavaScript content.
    malwareScore number
    The malware score of the JavaScript content.
    obfuscationScore number
    The obfuscation score of the JavaScript content.
    cryptomining_score int
    The cryptomining score of the JavaScript content.
    dataflow_score int
    The dataflow score of the JavaScript content.
    fetched_at str
    The timestamp of when the script was last fetched.
    hash str
    The computed hash of the analyzed script.
    js_integrity_score int
    The integrity score of the JavaScript content.
    magecart_score int
    The magecart score of the JavaScript content.
    malware_score int
    The malware score of the JavaScript content.
    obfuscation_score int
    The obfuscation score of the JavaScript content.
    cryptominingScore Number
    The cryptomining score of the JavaScript content.
    dataflowScore Number
    The dataflow score of the JavaScript content.
    fetchedAt String
    The timestamp of when the script was last fetched.
    hash String
    The computed hash of the analyzed script.
    jsIntegrityScore Number
    The integrity score of the JavaScript content.
    magecartScore Number
    The magecart score of the JavaScript content.
    malwareScore Number
    The malware score of the JavaScript content.
    obfuscationScore Number
    The obfuscation score of the JavaScript content.

    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