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

cloudflare.getNotificationPolicyWebhooksList

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 exampleNotificationPolicyWebhooksList = cloudflare.getNotificationPolicyWebhooksList({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_notification_policy_webhooks_list = cloudflare.get_notification_policy_webhooks_list(account_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.LookupNotificationPolicyWebhooksList(ctx, &cloudflare.LookupNotificationPolicyWebhooksListArgs{
    			AccountId: "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 exampleNotificationPolicyWebhooksList = Cloudflare.GetNotificationPolicyWebhooksList.Invoke(new()
        {
            AccountId = "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.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());
    
        }
    }
    
    variables:
      exampleNotificationPolicyWebhooksList:
        fn::invoke:
          function: cloudflare:getNotificationPolicyWebhooksList
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
    

    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>
    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]
    func LookupNotificationPolicyWebhooksList(ctx *Context, args *LookupNotificationPolicyWebhooksListArgs, opts ...InvokeOption) (*LookupNotificationPolicyWebhooksListResult, error)
    func LookupNotificationPolicyWebhooksListOutput(ctx *Context, args *LookupNotificationPolicyWebhooksListOutputArgs, opts ...InvokeOption) LookupNotificationPolicyWebhooksListResultOutput

    > 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)
    }
    public static CompletableFuture<GetNotificationPolicyWebhooksListResult> getNotificationPolicyWebhooksList(GetNotificationPolicyWebhooksListArgs args, InvokeOptions options)
    public static Output<GetNotificationPolicyWebhooksListResult> getNotificationPolicyWebhooksList(GetNotificationPolicyWebhooksListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getNotificationPolicyWebhooksList:getNotificationPolicyWebhooksList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    The account id
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    The account id
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    The account id
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    The account id
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    The account id
    max_items int
    Max items to fetch, default: 1000
    accountId 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 string
    Timestamp of when the webhook destination was created.
    Id string
    The unique identifier of a webhook
    LastFailure string
    Timestamp of the last time an attempt to dispatch a notification to this webhook failed.
    LastSuccess string
    Timestamp of the last time Cloudflare was able to successfully dispatch a notification using this webhook.
    Name string
    The name of the webhook destination. This will be included in the request body when you receive a webhook notification.
    Secret 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 string
    Type of webhook endpoint. Available values: "slack", "generic", "gchat".
    Url string
    The POST endpoint to call when dispatching a notification.
    CreatedAt string
    Timestamp of when the webhook destination was created.
    Id string
    The unique identifier of a webhook
    LastFailure string
    Timestamp of the last time an attempt to dispatch a notification to this webhook failed.
    LastSuccess string
    Timestamp of the last time Cloudflare was able to successfully dispatch a notification using this webhook.
    Name string
    The name of the webhook destination. This will be included in the request body when you receive a webhook notification.
    Secret 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 string
    Type of webhook endpoint. Available values: "slack", "generic", "gchat".
    Url string
    The POST endpoint to call when dispatching a notification.
    createdAt String
    Timestamp of when the webhook destination was created.
    id String
    The unique identifier of a webhook
    lastFailure String
    Timestamp of the last time an attempt to dispatch a notification to this webhook failed.
    lastSuccess String
    Timestamp of the last time Cloudflare was able to successfully dispatch a notification using this webhook.
    name String
    The name of the webhook destination. This will be included in the request body when you receive a webhook notification.
    secret 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 String
    Type of webhook endpoint. Available values: "slack", "generic", "gchat".
    url String
    The POST endpoint to call when dispatching a notification.
    createdAt string
    Timestamp of when the webhook destination was created.
    id string
    The unique identifier of a webhook
    lastFailure string
    Timestamp of the last time an attempt to dispatch a notification to this webhook failed.
    lastSuccess string
    Timestamp of the last time Cloudflare was able to successfully dispatch a notification using this webhook.
    name string
    The name of the webhook destination. This will be included in the request body when you receive a webhook notification.
    secret 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 string
    Type of webhook endpoint. Available values: "slack", "generic", "gchat".
    url string
    The POST endpoint to call when dispatching a notification.
    created_at str
    Timestamp of when the webhook destination was created.
    id str
    The unique identifier of a webhook
    last_failure str
    Timestamp of the last time an attempt to dispatch a notification to this webhook failed.
    last_success str
    Timestamp of the last time Cloudflare was able to successfully dispatch a notification using this webhook.
    name str
    The name of the webhook destination. This will be included in the request body when you receive a webhook notification.
    secret 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 str
    Type of webhook endpoint. Available values: "slack", "generic", "gchat".
    url str
    The POST endpoint to call when dispatching a notification.
    createdAt String
    Timestamp of when the webhook destination was created.
    id String
    The unique identifier of a webhook
    lastFailure String
    Timestamp of the last time an attempt to dispatch a notification to this webhook failed.
    lastSuccess String
    Timestamp of the last time Cloudflare was able to successfully dispatch a notification using this webhook.
    name String
    The name of the webhook destination. This will be included in the request body when you receive a webhook notification.
    secret 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 String
    Type of webhook endpoint. Available values: "slack", "generic", "gchat".
    url 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.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi