Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getWebAnalyticsSite
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWebAnalyticsSite = cloudflare.getWebAnalyticsSite({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
siteId: "023e105f4ecef8ad9ca31a8372d0c353",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_web_analytics_site = cloudflare.get_web_analytics_site(account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_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.LookupWebAnalyticsSite(ctx, &cloudflare.LookupWebAnalyticsSiteArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
SiteId: pulumi.StringRef("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 exampleWebAnalyticsSite = Cloudflare.GetWebAnalyticsSite.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
SiteId = "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.GetWebAnalyticsSiteArgs;
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 exampleWebAnalyticsSite = CloudflareFunctions.getWebAnalyticsSite(GetWebAnalyticsSiteArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.siteId("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
variables:
exampleWebAnalyticsSite:
fn::invoke:
function: cloudflare:getWebAnalyticsSite
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
siteId: 023e105f4ecef8ad9ca31a8372d0c353
Using getWebAnalyticsSite
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 getWebAnalyticsSite(args: GetWebAnalyticsSiteArgs, opts?: InvokeOptions): Promise<GetWebAnalyticsSiteResult>
function getWebAnalyticsSiteOutput(args: GetWebAnalyticsSiteOutputArgs, opts?: InvokeOptions): Output<GetWebAnalyticsSiteResult>
def get_web_analytics_site(account_id: Optional[str] = None,
filter: Optional[GetWebAnalyticsSiteFilter] = None,
site_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWebAnalyticsSiteResult
def get_web_analytics_site_output(account_id: Optional[pulumi.Input[str]] = None,
filter: Optional[pulumi.Input[GetWebAnalyticsSiteFilterArgs]] = None,
site_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWebAnalyticsSiteResult]
func LookupWebAnalyticsSite(ctx *Context, args *LookupWebAnalyticsSiteArgs, opts ...InvokeOption) (*LookupWebAnalyticsSiteResult, error)
func LookupWebAnalyticsSiteOutput(ctx *Context, args *LookupWebAnalyticsSiteOutputArgs, opts ...InvokeOption) LookupWebAnalyticsSiteResultOutput
> Note: This function is named LookupWebAnalyticsSite
in the Go SDK.
public static class GetWebAnalyticsSite
{
public static Task<GetWebAnalyticsSiteResult> InvokeAsync(GetWebAnalyticsSiteArgs args, InvokeOptions? opts = null)
public static Output<GetWebAnalyticsSiteResult> Invoke(GetWebAnalyticsSiteInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWebAnalyticsSiteResult> getWebAnalyticsSite(GetWebAnalyticsSiteArgs args, InvokeOptions options)
public static Output<GetWebAnalyticsSiteResult> getWebAnalyticsSite(GetWebAnalyticsSiteArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getWebAnalyticsSite:getWebAnalyticsSite
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - Identifier
- Filter
Get
Web Analytics Site Filter - Site
Id string - Identifier
- Account
Id string - Identifier
- Filter
Get
Web Analytics Site Filter - Site
Id string - Identifier
- account
Id String - Identifier
- filter
Get
Web Analytics Site Filter - site
Id String - Identifier
- account
Id string - Identifier
- filter
Get
Web Analytics Site Filter - site
Id string - Identifier
- account_
id str - Identifier
- filter
Get
Web Analytics Site Filter - site_
id str - Identifier
- account
Id String - Identifier
- filter Property Map
- site
Id String - Identifier
getWebAnalyticsSite Result
The following output properties are available:
- Account
Id string - Identifier
- Auto
Install bool - If enabled, the JavaScript snippet is automatically injected for orange-clouded sites.
- Created string
- Id string
- Identifier
- Rules
List<Get
Web Analytics Site Rule> - A list of rules.
- Ruleset
Get
Web Analytics Site Ruleset - Site
Tag string - The Web Analytics site identifier.
- Site
Token string - The Web Analytics site token.
- Snippet string
- Encoded JavaScript snippet.
- Filter
Get
Web Analytics Site Filter - Site
Id string - Identifier
- Account
Id string - Identifier
- Auto
Install bool - If enabled, the JavaScript snippet is automatically injected for orange-clouded sites.
- Created string
- Id string
- Identifier
- Rules
[]Get
Web Analytics Site Rule - A list of rules.
- Ruleset
Get
Web Analytics Site Ruleset - Site
Tag string - The Web Analytics site identifier.
- Site
Token string - The Web Analytics site token.
- Snippet string
- Encoded JavaScript snippet.
- Filter
Get
Web Analytics Site Filter - Site
Id string - Identifier
- account
Id String - Identifier
- auto
Install Boolean - If enabled, the JavaScript snippet is automatically injected for orange-clouded sites.
- created String
- id String
- Identifier
- rules
List<Get
Web Analytics Site Rule> - A list of rules.
- ruleset
Get
Web Analytics Site Ruleset - site
Tag String - The Web Analytics site identifier.
- site
Token String - The Web Analytics site token.
- snippet String
- Encoded JavaScript snippet.
- filter
Get
Web Analytics Site Filter - site
Id String - Identifier
- account
Id string - Identifier
- auto
Install boolean - If enabled, the JavaScript snippet is automatically injected for orange-clouded sites.
- created string
- id string
- Identifier
- rules
Get
Web Analytics Site Rule[] - A list of rules.
- ruleset
Get
Web Analytics Site Ruleset - site
Tag string - The Web Analytics site identifier.
- site
Token string - The Web Analytics site token.
- snippet string
- Encoded JavaScript snippet.
- filter
Get
Web Analytics Site Filter - site
Id string - Identifier
- account_
id str - Identifier
- auto_
install bool - If enabled, the JavaScript snippet is automatically injected for orange-clouded sites.
- created str
- id str
- Identifier
- rules
Sequence[Get
Web Analytics Site Rule] - A list of rules.
- ruleset
Get
Web Analytics Site Ruleset - site_
tag str - The Web Analytics site identifier.
- site_
token str - The Web Analytics site token.
- snippet str
- Encoded JavaScript snippet.
- filter
Get
Web Analytics Site Filter - site_
id str - Identifier
- account
Id String - Identifier
- auto
Install Boolean - If enabled, the JavaScript snippet is automatically injected for orange-clouded sites.
- created String
- id String
- Identifier
- rules List<Property Map>
- A list of rules.
- ruleset Property Map
- site
Tag String - The Web Analytics site identifier.
- site
Token String - The Web Analytics site token.
- snippet String
- Encoded JavaScript snippet.
- filter Property Map
- site
Id String - Identifier
Supporting Types
GetWebAnalyticsSiteFilter
- Order
By string - The property used to sort the list of results. Available values: "host", "created".
- Order
By string - The property used to sort the list of results. Available values: "host", "created".
- order
By String - The property used to sort the list of results. Available values: "host", "created".
- order
By string - The property used to sort the list of results. Available values: "host", "created".
- order_
by str - The property used to sort the list of results. Available values: "host", "created".
- order
By String - The property used to sort the list of results. Available values: "host", "created".
GetWebAnalyticsSiteRule
- Created string
- Host string
- The hostname the rule will be applied to.
- Id string
- The Web Analytics rule identifier.
- Inclusive bool
- Whether the rule includes or excludes traffic from being measured.
- Is
Paused bool - Whether the rule is paused or not.
- Paths List<string>
- The paths the rule will be applied to.
- Priority double
- Created string
- Host string
- The hostname the rule will be applied to.
- Id string
- The Web Analytics rule identifier.
- Inclusive bool
- Whether the rule includes or excludes traffic from being measured.
- Is
Paused bool - Whether the rule is paused or not.
- Paths []string
- The paths the rule will be applied to.
- Priority float64
- created String
- host String
- The hostname the rule will be applied to.
- id String
- The Web Analytics rule identifier.
- inclusive Boolean
- Whether the rule includes or excludes traffic from being measured.
- is
Paused Boolean - Whether the rule is paused or not.
- paths List<String>
- The paths the rule will be applied to.
- priority Double
- created string
- host string
- The hostname the rule will be applied to.
- id string
- The Web Analytics rule identifier.
- inclusive boolean
- Whether the rule includes or excludes traffic from being measured.
- is
Paused boolean - Whether the rule is paused or not.
- paths string[]
- The paths the rule will be applied to.
- priority number
- created String
- host String
- The hostname the rule will be applied to.
- id String
- The Web Analytics rule identifier.
- inclusive Boolean
- Whether the rule includes or excludes traffic from being measured.
- is
Paused Boolean - Whether the rule is paused or not.
- paths List<String>
- The paths the rule will be applied to.
- priority Number
GetWebAnalyticsSiteRuleset
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.