WebAnalyticsSite

class WebAnalyticsSite : KotlinCustomResource

Provides a Cloudflare Web Analytics Site resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = new cloudflare.WebAnalyticsSite("example", {
accountId: "f037e56e89293a057740de681ac9abbe",
zoneTag: "0da42c8d2132a9ddaf714f9e7c920711",
autoInstall: true,
});
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.WebAnalyticsSite("example",
account_id="f037e56e89293a057740de681ac9abbe",
zone_tag="0da42c8d2132a9ddaf714f9e7c920711",
auto_install=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var example = new Cloudflare.WebAnalyticsSite("example", new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
ZoneTag = "0da42c8d2132a9ddaf714f9e7c920711",
AutoInstall = true,
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewWebAnalyticsSite(ctx, "example", &cloudflare.WebAnalyticsSiteArgs{
AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
ZoneTag: pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
AutoInstall: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.WebAnalyticsSite;
import com.pulumi.cloudflare.WebAnalyticsSiteArgs;
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) {
var example = new WebAnalyticsSite("example", WebAnalyticsSiteArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.zoneTag("0da42c8d2132a9ddaf714f9e7c920711")
.autoInstall(true)
.build());
}
}
resources:
example:
type: cloudflare:WebAnalyticsSite
properties:
accountId: f037e56e89293a057740de681ac9abbe
zoneTag: 0da42c8d2132a9ddaf714f9e7c920711
autoInstall: true

Import

$ pulumi import cloudflare:index/webAnalyticsSite:WebAnalyticsSite example <account_id>/<site_tag>

Properties

Link copied to clipboard
val accountId: Output<String>

The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val autoInstall: Output<Boolean>

Whether Cloudflare will automatically inject the JavaScript snippet for orange-clouded sites. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val host: Output<String>?

The hostname to use for gray-clouded sites. Must provide only one of zone_tag. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rulesetId: Output<String>

The ID for the ruleset associated to this Web Analytics Site.

Link copied to clipboard
val siteTag: Output<String>

The Web Analytics site tag.

Link copied to clipboard
val siteToken: Output<String>

The token for the Web Analytics site.

Link copied to clipboard
val snippet: Output<String>

The encoded JS snippet to add to your site's HTML page if auto_install is false.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val zoneTag: Output<String>?

The zone identifier for orange-clouded sites. Must provide only one of host. Modifying this attribute will force creation of a new resource.