ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getEnWebhookTemplate
Explore with Pulumi AI
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 webhookTemplate = ibm.getEnWebhookTemplate({
instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
templateId: ibm_en_webhook_template.en_webhook_template.template_id,
});
import pulumi
import pulumi_ibm as ibm
webhook_template = ibm.get_en_webhook_template(instance_guid=ibm_resource_instance["en_terraform_test_resource"]["guid"],
template_id=ibm_en_webhook_template["en_webhook_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.LookupEnWebhookTemplate(ctx, &ibm.LookupEnWebhookTemplateArgs{
InstanceGuid: ibm_resource_instance.En_terraform_test_resource.Guid,
TemplateId: ibm_en_webhook_template.En_webhook_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 webhookTemplate = Ibm.GetEnWebhookTemplate.Invoke(new()
{
InstanceGuid = ibm_resource_instance.En_terraform_test_resource.Guid,
TemplateId = ibm_en_webhook_template.En_webhook_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.GetEnWebhookTemplateArgs;
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 webhookTemplate = IbmFunctions.getEnWebhookTemplate(GetEnWebhookTemplateArgs.builder()
.instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
.templateId(ibm_en_webhook_template.en_webhook_template().template_id())
.build());
}
}
variables:
webhookTemplate:
fn::invoke:
function: ibm:getEnWebhookTemplate
arguments:
instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
templateId: ${ibm_en_webhook_template.en_webhook_template.template_id}
Using getEnWebhookTemplate
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 getEnWebhookTemplate(args: GetEnWebhookTemplateArgs, opts?: InvokeOptions): Promise<GetEnWebhookTemplateResult>
function getEnWebhookTemplateOutput(args: GetEnWebhookTemplateOutputArgs, opts?: InvokeOptions): Output<GetEnWebhookTemplateResult>
def get_en_webhook_template(id: Optional[str] = None,
instance_guid: Optional[str] = None,
template_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEnWebhookTemplateResult
def get_en_webhook_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[GetEnWebhookTemplateResult]
func LookupEnWebhookTemplate(ctx *Context, args *LookupEnWebhookTemplateArgs, opts ...InvokeOption) (*LookupEnWebhookTemplateResult, error)
func LookupEnWebhookTemplateOutput(ctx *Context, args *LookupEnWebhookTemplateOutputArgs, opts ...InvokeOption) LookupEnWebhookTemplateResultOutput
> Note: This function is named LookupEnWebhookTemplate
in the Go SDK.
public static class GetEnWebhookTemplate
{
public static Task<GetEnWebhookTemplateResult> InvokeAsync(GetEnWebhookTemplateArgs args, InvokeOptions? opts = null)
public static Output<GetEnWebhookTemplateResult> Invoke(GetEnWebhookTemplateInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEnWebhookTemplateResult> getEnWebhookTemplate(GetEnWebhookTemplateArgs args, InvokeOptions options)
public static Output<GetEnWebhookTemplateResult> getEnWebhookTemplate(GetEnWebhookTemplateArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getEnWebhookTemplate:getEnWebhookTemplate
arguments:
# arguments dictionary
The 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
webhook_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
webhook_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
webhook_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
webhook_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
webhook_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
webhook_template
.
getEnWebhookTemplate Result
The following output properties are available:
- Description string
- (String) The template description.
- Id string
- The unique identifier of the
webhook_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 webhook.notification.
- Updated
At string - (String) Last updated time.
- Description string
- (String) The template description.
- Id string
- The unique identifier of the
webhook_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 webhook.notification.
- Updated
At string - (String) Last updated time.
- description String
- (String) The template description.
- id String
- The unique identifier of the
webhook_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 webhook.notification.
- updated
At String - (String) Last updated time.
- description string
- (String) The template description.
- id string
- The unique identifier of the
webhook_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 webhook.notification.
- updated
At string - (String) Last updated time.
- description str
- (String) The template description.
- id str
- The unique identifier of the
webhook_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 webhook.notification.
- updated_
at str - (String) Last updated time.
- description String
- (String) The template description.
- id String
- The unique identifier of the
webhook_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 webhook.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
ibm
Terraform Provider.