1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getNotificationPolicyWebhooksList
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.getNotificationPolicyWebhooksList

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleNotificationPolicyWebhooksList = cloudflare.getNotificationPolicyWebhooksList({
    accountId: "023e105f4ecef8ad9ca31a8372d0c353",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_notification_policy_webhooks_list = cloudflare.get_notification_policy_webhooks_list(account_id="023e105f4ecef8ad9ca31a8372d0c353")
Copy
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.LookupNotificationPolicyWebhooksList(ctx, &cloudflare.LookupNotificationPolicyWebhooksListArgs{
			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleNotificationPolicyWebhooksList = Cloudflare.GetNotificationPolicyWebhooksList.Invoke(new()
    {
        AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
    });

});
Copy
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.GetNotificationPolicyWebhooksListArgs;
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 exampleNotificationPolicyWebhooksList = CloudflareFunctions.getNotificationPolicyWebhooksList(GetNotificationPolicyWebhooksListArgs.builder()
            .accountId("023e105f4ecef8ad9ca31a8372d0c353")
            .build());

    }
}
Copy
variables:
  exampleNotificationPolicyWebhooksList:
    fn::invoke:
      function: cloudflare:getNotificationPolicyWebhooksList
      arguments:
        accountId: 023e105f4ecef8ad9ca31a8372d0c353
Copy

Using getNotificationPolicyWebhooksList

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 getNotificationPolicyWebhooksList(args: GetNotificationPolicyWebhooksListArgs, opts?: InvokeOptions): Promise<GetNotificationPolicyWebhooksListResult>
function getNotificationPolicyWebhooksListOutput(args: GetNotificationPolicyWebhooksListOutputArgs, opts?: InvokeOptions): Output<GetNotificationPolicyWebhooksListResult>
Copy
def get_notification_policy_webhooks_list(account_id: Optional[str] = None,
                                          max_items: Optional[int] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetNotificationPolicyWebhooksListResult
def get_notification_policy_webhooks_list_output(account_id: Optional[pulumi.Input[str]] = None,
                                          max_items: Optional[pulumi.Input[int]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetNotificationPolicyWebhooksListResult]
Copy
func LookupNotificationPolicyWebhooksList(ctx *Context, args *LookupNotificationPolicyWebhooksListArgs, opts ...InvokeOption) (*LookupNotificationPolicyWebhooksListResult, error)
func LookupNotificationPolicyWebhooksListOutput(ctx *Context, args *LookupNotificationPolicyWebhooksListOutputArgs, opts ...InvokeOption) LookupNotificationPolicyWebhooksListResultOutput
Copy

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

public static class GetNotificationPolicyWebhooksList 
{
    public static Task<GetNotificationPolicyWebhooksListResult> InvokeAsync(GetNotificationPolicyWebhooksListArgs args, InvokeOptions? opts = null)
    public static Output<GetNotificationPolicyWebhooksListResult> Invoke(GetNotificationPolicyWebhooksListInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNotificationPolicyWebhooksListResult> getNotificationPolicyWebhooksList(GetNotificationPolicyWebhooksListArgs args, InvokeOptions options)
public static Output<GetNotificationPolicyWebhooksListResult> getNotificationPolicyWebhooksList(GetNotificationPolicyWebhooksListArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getNotificationPolicyWebhooksList:getNotificationPolicyWebhooksList
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId This property is required. string
The account id
MaxItems int
Max items to fetch, default: 1000
AccountId This property is required. string
The account id
MaxItems int
Max items to fetch, default: 1000
accountId This property is required. String
The account id
maxItems Integer
Max items to fetch, default: 1000
accountId This property is required. string
The account id
maxItems number
Max items to fetch, default: 1000
account_id This property is required. str
The account id
max_items int
Max items to fetch, default: 1000
accountId This property is required. String
The account id
maxItems Number
Max items to fetch, default: 1000

getNotificationPolicyWebhooksList Result

The following output properties are available:

AccountId string
The account id
Id string
The provider-assigned unique ID for this managed resource.
Results List<GetNotificationPolicyWebhooksListResult>
The items returned by the data source
MaxItems int
Max items to fetch, default: 1000
AccountId string
The account id
Id string
The provider-assigned unique ID for this managed resource.
Results []GetNotificationPolicyWebhooksListResult
The items returned by the data source
MaxItems int
Max items to fetch, default: 1000
accountId String
The account id
id String
The provider-assigned unique ID for this managed resource.
results List<GetNotificationPolicyWebhooksListResult>
The items returned by the data source
maxItems Integer
Max items to fetch, default: 1000
accountId string
The account id
id string
The provider-assigned unique ID for this managed resource.
results GetNotificationPolicyWebhooksListResult[]
The items returned by the data source
maxItems number
Max items to fetch, default: 1000
account_id str
The account id
id str
The provider-assigned unique ID for this managed resource.
results Sequence[GetNotificationPolicyWebhooksListResult]
The items returned by the data source
max_items int
Max items to fetch, default: 1000
accountId String
The account id
id String
The provider-assigned unique ID for this managed resource.
results List<Property Map>
The items returned by the data source
maxItems Number
Max items to fetch, default: 1000

Supporting Types

GetNotificationPolicyWebhooksListResult

CreatedAt This property is required. string
Timestamp of when the webhook destination was created.
Id This property is required. string
The unique identifier of a webhook
LastFailure This property is required. string
Timestamp of the last time an attempt to dispatch a notification to this webhook failed.
LastSuccess This property is required. string
Timestamp of the last time Cloudflare was able to successfully dispatch a notification using this webhook.
Name This property is required. string
The name of the webhook destination. This will be included in the request body when you receive a webhook notification.
Secret This property is required. string
Optional secret that will be passed in the cf-webhook-auth header when dispatching generic webhook notifications or formatted for supported destinations. Secrets are not returned in any API response body.
Type This property is required. string
Type of webhook endpoint. Available values: "slack", "generic", "gchat".
Url This property is required. string
The POST endpoint to call when dispatching a notification.
CreatedAt This property is required. string
Timestamp of when the webhook destination was created.
Id This property is required. string
The unique identifier of a webhook
LastFailure This property is required. string
Timestamp of the last time an attempt to dispatch a notification to this webhook failed.
LastSuccess This property is required. string
Timestamp of the last time Cloudflare was able to successfully dispatch a notification using this webhook.
Name This property is required. string
The name of the webhook destination. This will be included in the request body when you receive a webhook notification.
Secret This property is required. string
Optional secret that will be passed in the cf-webhook-auth header when dispatching generic webhook notifications or formatted for supported destinations. Secrets are not returned in any API response body.
Type This property is required. string
Type of webhook endpoint. Available values: "slack", "generic", "gchat".
Url This property is required. string
The POST endpoint to call when dispatching a notification.
createdAt This property is required. String
Timestamp of when the webhook destination was created.
id This property is required. String
The unique identifier of a webhook
lastFailure This property is required. String
Timestamp of the last time an attempt to dispatch a notification to this webhook failed.
lastSuccess This property is required. String
Timestamp of the last time Cloudflare was able to successfully dispatch a notification using this webhook.
name This property is required. String
The name of the webhook destination. This will be included in the request body when you receive a webhook notification.
secret This property is required. String
Optional secret that will be passed in the cf-webhook-auth header when dispatching generic webhook notifications or formatted for supported destinations. Secrets are not returned in any API response body.
type This property is required. String
Type of webhook endpoint. Available values: "slack", "generic", "gchat".
url This property is required. String
The POST endpoint to call when dispatching a notification.
createdAt This property is required. string
Timestamp of when the webhook destination was created.
id This property is required. string
The unique identifier of a webhook
lastFailure This property is required. string
Timestamp of the last time an attempt to dispatch a notification to this webhook failed.
lastSuccess This property is required. string
Timestamp of the last time Cloudflare was able to successfully dispatch a notification using this webhook.
name This property is required. string
The name of the webhook destination. This will be included in the request body when you receive a webhook notification.
secret This property is required. string
Optional secret that will be passed in the cf-webhook-auth header when dispatching generic webhook notifications or formatted for supported destinations. Secrets are not returned in any API response body.
type This property is required. string
Type of webhook endpoint. Available values: "slack", "generic", "gchat".
url This property is required. string
The POST endpoint to call when dispatching a notification.
created_at This property is required. str
Timestamp of when the webhook destination was created.
id This property is required. str
The unique identifier of a webhook
last_failure This property is required. str
Timestamp of the last time an attempt to dispatch a notification to this webhook failed.
last_success This property is required. str
Timestamp of the last time Cloudflare was able to successfully dispatch a notification using this webhook.
name This property is required. str
The name of the webhook destination. This will be included in the request body when you receive a webhook notification.
secret This property is required. str
Optional secret that will be passed in the cf-webhook-auth header when dispatching generic webhook notifications or formatted for supported destinations. Secrets are not returned in any API response body.
type This property is required. str
Type of webhook endpoint. Available values: "slack", "generic", "gchat".
url This property is required. str
The POST endpoint to call when dispatching a notification.
createdAt This property is required. String
Timestamp of when the webhook destination was created.
id This property is required. String
The unique identifier of a webhook
lastFailure This property is required. String
Timestamp of the last time an attempt to dispatch a notification to this webhook failed.
lastSuccess This property is required. String
Timestamp of the last time Cloudflare was able to successfully dispatch a notification using this webhook.
name This property is required. String
The name of the webhook destination. This will be included in the request body when you receive a webhook notification.
secret This property is required. String
Optional secret that will be passed in the cf-webhook-auth header when dispatching generic webhook notifications or formatted for supported destinations. Secrets are not returned in any API response body.
type This property is required. String
Type of webhook endpoint. Available values: "slack", "generic", "gchat".
url This property is required. String
The POST endpoint to call when dispatching a notification.

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.