ibm 1.85.0-beta0 published on Wednesday, Oct 29, 2025 by ibm-cloud
ibm.getEnPagerdutyTemplate
Provides a read-only data source for Webhook template. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const pagerdutyTemplate = ibm.getEnPagerdutyTemplate({
    instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
    templateId: ibm_en_pagerduty_template.en_pagerduty_template.template_id,
});
import pulumi
import pulumi_ibm as ibm
pagerduty_template = ibm.get_en_pagerduty_template(instance_guid=ibm_resource_instance["en_terraform_test_resource"]["guid"],
    template_id=ibm_en_pagerduty_template["en_pagerduty_template"]["template_id"])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.LookupEnPagerdutyTemplate(ctx, &ibm.LookupEnPagerdutyTemplateArgs{
			InstanceGuid: ibm_resource_instance.En_terraform_test_resource.Guid,
			TemplateId:   ibm_en_pagerduty_template.En_pagerduty_template.Template_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() => 
{
    var pagerdutyTemplate = Ibm.GetEnPagerdutyTemplate.Invoke(new()
    {
        InstanceGuid = ibm_resource_instance.En_terraform_test_resource.Guid,
        TemplateId = ibm_en_pagerduty_template.En_pagerduty_template.Template_id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetEnPagerdutyTemplateArgs;
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 pagerdutyTemplate = IbmFunctions.getEnPagerdutyTemplate(GetEnPagerdutyTemplateArgs.builder()
            .instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
            .templateId(ibm_en_pagerduty_template.en_pagerduty_template().template_id())
            .build());
    }
}
variables:
  pagerdutyTemplate:
    fn::invoke:
      function: ibm:getEnPagerdutyTemplate
      arguments:
        instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
        templateId: ${ibm_en_pagerduty_template.en_pagerduty_template.template_id}
Using getEnPagerdutyTemplate
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 getEnPagerdutyTemplate(args: GetEnPagerdutyTemplateArgs, opts?: InvokeOptions): Promise<GetEnPagerdutyTemplateResult>
function getEnPagerdutyTemplateOutput(args: GetEnPagerdutyTemplateOutputArgs, opts?: InvokeOptions): Output<GetEnPagerdutyTemplateResult>def get_en_pagerduty_template(id: Optional[str] = None,
                              instance_guid: Optional[str] = None,
                              template_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetEnPagerdutyTemplateResult
def get_en_pagerduty_template_output(id: Optional[pulumi.Input[str]] = None,
                              instance_guid: Optional[pulumi.Input[str]] = None,
                              template_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetEnPagerdutyTemplateResult]func LookupEnPagerdutyTemplate(ctx *Context, args *LookupEnPagerdutyTemplateArgs, opts ...InvokeOption) (*LookupEnPagerdutyTemplateResult, error)
func LookupEnPagerdutyTemplateOutput(ctx *Context, args *LookupEnPagerdutyTemplateOutputArgs, opts ...InvokeOption) LookupEnPagerdutyTemplateResultOutput> Note: This function is named LookupEnPagerdutyTemplate in the Go SDK.
public static class GetEnPagerdutyTemplate 
{
    public static Task<GetEnPagerdutyTemplateResult> InvokeAsync(GetEnPagerdutyTemplateArgs args, InvokeOptions? opts = null)
    public static Output<GetEnPagerdutyTemplateResult> Invoke(GetEnPagerdutyTemplateInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEnPagerdutyTemplateResult> getEnPagerdutyTemplate(GetEnPagerdutyTemplateArgs args, InvokeOptions options)
public static Output<GetEnPagerdutyTemplateResult> getEnPagerdutyTemplate(GetEnPagerdutyTemplateArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getEnPagerdutyTemplate:getEnPagerdutyTemplate
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
 - Template
Id string - Unique identifier for Template.
 - Id string
 - The unique identifier of the 
pagerduty_template. 
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
 - Template
Id string - Unique identifier for Template.
 - Id string
 - The unique identifier of the 
pagerduty_template. 
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
 - template
Id String - Unique identifier for Template.
 - id String
 - The unique identifier of the 
pagerduty_template. 
- instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
 - template
Id string - Unique identifier for Template.
 - id string
 - The unique identifier of the 
pagerduty_template. 
- instance_
guid str - Unique identifier for IBM Cloud Event Notifications instance.
 - template_
id str - Unique identifier for Template.
 - id str
 - The unique identifier of the 
pagerduty_template. 
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
 - template
Id String - Unique identifier for Template.
 - id String
 - The unique identifier of the 
pagerduty_template. 
getEnPagerdutyTemplate Result
The following output properties are available:
- Description string
 - (String) The template description.
 - Id string
 - The unique identifier of the 
pagerduty_template. - Instance
Guid string - Name string
 - (String) The Template name.
 - Subscription
Count double - (Integer) Number of subscriptions.
 - Subscription
Names List<string> - (List) List of subscriptions.
 - Template
Id string - Type string
 - (String) Template type pagerduty.notification.
 - Updated
At string - (String) Last updated time.
 
- Description string
 - (String) The template description.
 - Id string
 - The unique identifier of the 
pagerduty_template. - Instance
Guid string - Name string
 - (String) The Template name.
 - Subscription
Count float64 - (Integer) Number of subscriptions.
 - Subscription
Names []string - (List) List of subscriptions.
 - Template
Id string - Type string
 - (String) Template type pagerduty.notification.
 - Updated
At string - (String) Last updated time.
 
- description String
 - (String) The template description.
 - id String
 - The unique identifier of the 
pagerduty_template. - instance
Guid String - name String
 - (String) The Template name.
 - subscription
Count Double - (Integer) Number of subscriptions.
 - subscription
Names List<String> - (List) List of subscriptions.
 - template
Id String - type String
 - (String) Template type pagerduty.notification.
 - updated
At String - (String) Last updated time.
 
- description string
 - (String) The template description.
 - id string
 - The unique identifier of the 
pagerduty_template. - instance
Guid string - name string
 - (String) The Template name.
 - subscription
Count number - (Integer) Number of subscriptions.
 - subscription
Names string[] - (List) List of subscriptions.
 - template
Id string - type string
 - (String) Template type pagerduty.notification.
 - updated
At string - (String) Last updated time.
 
- description str
 - (String) The template description.
 - id str
 - The unique identifier of the 
pagerduty_template. - instance_
guid str - name str
 - (String) The Template name.
 - subscription_
count float - (Integer) Number of subscriptions.
 - subscription_
names Sequence[str] - (List) List of subscriptions.
 - template_
id str - type str
 - (String) Template type pagerduty.notification.
 - updated_
at str - (String) Last updated time.
 
- description String
 - (String) The template description.
 - id String
 - The unique identifier of the 
pagerduty_template. - instance
Guid String - name String
 - (String) The Template name.
 - subscription
Count Number - (Integer) Number of subscriptions.
 - subscription
Names List<String> - (List) List of subscriptions.
 - template
Id String - type String
 - (String) Template type pagerduty.notification.
 - updated
At String - (String) Last updated time.
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider. 
