1. Packages
  2. Prismacloud Provider
  3. API Docs
  4. getNotificationTemplates
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks

prismacloud.getNotificationTemplates

Explore with Pulumi AI

prismacloud logo
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks

    Retrieve a list of notification templates.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as prismacloud from "@pulumi/prismacloud";
    
    const example = prismacloud.getNotificationTemplates({});
    
    import pulumi
    import pulumi_prismacloud as prismacloud
    
    example = prismacloud.get_notification_templates()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := prismacloud.GetNotificationTemplates(ctx, &prismacloud.GetNotificationTemplatesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Prismacloud = Pulumi.Prismacloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Prismacloud.GetNotificationTemplates.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.prismacloud.PrismacloudFunctions;
    import com.pulumi.prismacloud.inputs.GetNotificationTemplatesArgs;
    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 example = PrismacloudFunctions.getNotificationTemplates();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: prismacloud:getNotificationTemplates
          arguments: {}
    

    Using getNotificationTemplates

    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 getNotificationTemplates(args: GetNotificationTemplatesArgs, opts?: InvokeOptions): Promise<GetNotificationTemplatesResult>
    function getNotificationTemplatesOutput(args: GetNotificationTemplatesOutputArgs, opts?: InvokeOptions): Output<GetNotificationTemplatesResult>
    def get_notification_templates(id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetNotificationTemplatesResult
    def get_notification_templates_output(id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetNotificationTemplatesResult]
    func GetNotificationTemplates(ctx *Context, args *GetNotificationTemplatesArgs, opts ...InvokeOption) (*GetNotificationTemplatesResult, error)
    func GetNotificationTemplatesOutput(ctx *Context, args *GetNotificationTemplatesOutputArgs, opts ...InvokeOption) GetNotificationTemplatesResultOutput

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

    public static class GetNotificationTemplates 
    {
        public static Task<GetNotificationTemplatesResult> InvokeAsync(GetNotificationTemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetNotificationTemplatesResult> Invoke(GetNotificationTemplatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNotificationTemplatesResult> getNotificationTemplates(GetNotificationTemplatesArgs args, InvokeOptions options)
    public static Output<GetNotificationTemplatesResult> getNotificationTemplates(GetNotificationTemplatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: prismacloud:index/getNotificationTemplates:getNotificationTemplates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Notification template id.
    Id string
    Notification template id.
    id String
    Notification template id.
    id string
    Notification template id.
    id str
    Notification template id.
    id String
    Notification template id.

    getNotificationTemplates Result

    The following output properties are available:

    Id string
    Notification template id.
    Listings List<GetNotificationTemplatesListing>
    List of notification templates returned, as defined below.
    Total double
    (int) Total number of notification templates.
    Id string
    Notification template id.
    Listings []GetNotificationTemplatesListing
    List of notification templates returned, as defined below.
    Total float64
    (int) Total number of notification templates.
    id String
    Notification template id.
    listings List<GetNotificationTemplatesListing>
    List of notification templates returned, as defined below.
    total Double
    (int) Total number of notification templates.
    id string
    Notification template id.
    listings GetNotificationTemplatesListing[]
    List of notification templates returned, as defined below.
    total number
    (int) Total number of notification templates.
    id str
    Notification template id.
    listings Sequence[GetNotificationTemplatesListing]
    List of notification templates returned, as defined below.
    total float
    (int) Total number of notification templates.
    id String
    Notification template id.
    listings List<Property Map>
    List of notification templates returned, as defined below.
    total Number
    (int) Total number of notification templates.

    Supporting Types

    GetNotificationTemplatesListing

    CreatedBy string
    User who created the notification template.
    CreatedTs double
    (int) Creation Unix timestamp in milliseconds.
    CustomerId double
    (int) Prisma customer id.
    Enabled bool
    (bool) Whether the template is enabled.
    Id string
    Notification template id.
    IntegrationId string
    Integration ID.
    IntegrationName string
    Integration name.
    IntegrationType string
    Integration type.
    LastModifiedBy string
    Last modified by.
    LastModifiedTs double
    (int) Last modified timestamp.
    Module string
    Module.
    Name string
    Name to be used for the template on the Prisma Cloud platform.
    TemplateType string
    Type of notification template.
    CreatedBy string
    User who created the notification template.
    CreatedTs float64
    (int) Creation Unix timestamp in milliseconds.
    CustomerId float64
    (int) Prisma customer id.
    Enabled bool
    (bool) Whether the template is enabled.
    Id string
    Notification template id.
    IntegrationId string
    Integration ID.
    IntegrationName string
    Integration name.
    IntegrationType string
    Integration type.
    LastModifiedBy string
    Last modified by.
    LastModifiedTs float64
    (int) Last modified timestamp.
    Module string
    Module.
    Name string
    Name to be used for the template on the Prisma Cloud platform.
    TemplateType string
    Type of notification template.
    createdBy String
    User who created the notification template.
    createdTs Double
    (int) Creation Unix timestamp in milliseconds.
    customerId Double
    (int) Prisma customer id.
    enabled Boolean
    (bool) Whether the template is enabled.
    id String
    Notification template id.
    integrationId String
    Integration ID.
    integrationName String
    Integration name.
    integrationType String
    Integration type.
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Double
    (int) Last modified timestamp.
    module String
    Module.
    name String
    Name to be used for the template on the Prisma Cloud platform.
    templateType String
    Type of notification template.
    createdBy string
    User who created the notification template.
    createdTs number
    (int) Creation Unix timestamp in milliseconds.
    customerId number
    (int) Prisma customer id.
    enabled boolean
    (bool) Whether the template is enabled.
    id string
    Notification template id.
    integrationId string
    Integration ID.
    integrationName string
    Integration name.
    integrationType string
    Integration type.
    lastModifiedBy string
    Last modified by.
    lastModifiedTs number
    (int) Last modified timestamp.
    module string
    Module.
    name string
    Name to be used for the template on the Prisma Cloud platform.
    templateType string
    Type of notification template.
    created_by str
    User who created the notification template.
    created_ts float
    (int) Creation Unix timestamp in milliseconds.
    customer_id float
    (int) Prisma customer id.
    enabled bool
    (bool) Whether the template is enabled.
    id str
    Notification template id.
    integration_id str
    Integration ID.
    integration_name str
    Integration name.
    integration_type str
    Integration type.
    last_modified_by str
    Last modified by.
    last_modified_ts float
    (int) Last modified timestamp.
    module str
    Module.
    name str
    Name to be used for the template on the Prisma Cloud platform.
    template_type str
    Type of notification template.
    createdBy String
    User who created the notification template.
    createdTs Number
    (int) Creation Unix timestamp in milliseconds.
    customerId Number
    (int) Prisma customer id.
    enabled Boolean
    (bool) Whether the template is enabled.
    id String
    Notification template id.
    integrationId String
    Integration ID.
    integrationName String
    Integration name.
    integrationType String
    Integration type.
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Number
    (int) Last modified timestamp.
    module String
    Module.
    name String
    Name to be used for the template on the Prisma Cloud platform.
    templateType String
    Type of notification template.

    Package Details

    Repository
    prismacloud paloaltonetworks/terraform-provider-prismacloud
    License
    Notes
    This Pulumi package is based on the prismacloud Terraform Provider.
    prismacloud logo
    prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks