getWebAnalyticsSites

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWebAnalyticsSites = cloudflare.getWebAnalyticsSites({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
orderBy: "host",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_web_analytics_sites = cloudflare.get_web_analytics_sites(account_id="023e105f4ecef8ad9ca31a8372d0c353",
order_by="host")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleWebAnalyticsSites = Cloudflare.GetWebAnalyticsSites.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
OrderBy = "host",
});
});
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.LookupWebAnalyticsSites(ctx, &cloudflare.LookupWebAnalyticsSitesArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
OrderBy: pulumi.StringRef("host"),
}, nil)
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.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetWebAnalyticsSitesArgs;
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 exampleWebAnalyticsSites = CloudflareFunctions.getWebAnalyticsSites(GetWebAnalyticsSitesArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.orderBy("host")
.build());
}
}
variables:
exampleWebAnalyticsSites:
fn::invoke:
function: cloudflare:getWebAnalyticsSites
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
orderBy: host

Return

A collection of values returned by getWebAnalyticsSites.

Parameters

argument

A collection of arguments for invoking getWebAnalyticsSites.


suspend fun getWebAnalyticsSites(accountId: String, maxItems: Int? = null, orderBy: String? = null): GetWebAnalyticsSitesInvokeResult

Return

A collection of values returned by getWebAnalyticsSites.

Parameters

accountId

Identifier

maxItems

Max items to fetch, default: 1000

orderBy

The property used to sort the list of results. Available values: "host", "created".

See also


Return

A collection of values returned by getWebAnalyticsSites.

Parameters

argument

Builder for com.pulumi.cloudflare.kotlin.inputs.GetWebAnalyticsSitesPlainArgs.

See also