published on Wednesday, May 6, 2026 by kong
published on Wednesday, May 6, 2026 by kong
PortalAuditLogWebhook Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";
const myPortalauditlogwebhook = new konnect.PortalAuditLogWebhook("my_portalauditlogwebhook", {
auditLogDestinationId: "138339f6-7017-4c9e-ae91-4f542808e3e8",
enabled: true,
portalId: "f32d905a-ed33-46a3-a093-d8f536af9a8a",
});
import pulumi
import pulumi_konnect as konnect
my_portalauditlogwebhook = konnect.PortalAuditLogWebhook("my_portalauditlogwebhook",
audit_log_destination_id="138339f6-7017-4c9e-ae91-4f542808e3e8",
enabled=True,
portal_id="f32d905a-ed33-46a3-a093-d8f536af9a8a")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/konnect/v3/konnect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := konnect.NewPortalAuditLogWebhook(ctx, "my_portalauditlogwebhook", &konnect.PortalAuditLogWebhookArgs{
AuditLogDestinationId: pulumi.String("138339f6-7017-4c9e-ae91-4f542808e3e8"),
Enabled: pulumi.Bool(true),
PortalId: pulumi.String("f32d905a-ed33-46a3-a093-d8f536af9a8a"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Konnect = Pulumi.Konnect;
return await Deployment.RunAsync(() =>
{
var myPortalauditlogwebhook = new Konnect.PortalAuditLogWebhook("my_portalauditlogwebhook", new()
{
AuditLogDestinationId = "138339f6-7017-4c9e-ae91-4f542808e3e8",
Enabled = true,
PortalId = "f32d905a-ed33-46a3-a093-d8f536af9a8a",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.PortalAuditLogWebhook;
import com.pulumi.konnect.PortalAuditLogWebhookArgs;
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) {
var myPortalauditlogwebhook = new PortalAuditLogWebhook("myPortalauditlogwebhook", PortalAuditLogWebhookArgs.builder()
.auditLogDestinationId("138339f6-7017-4c9e-ae91-4f542808e3e8")
.enabled(true)
.portalId("f32d905a-ed33-46a3-a093-d8f536af9a8a")
.build());
}
}
resources:
myPortalauditlogwebhook:
type: konnect:PortalAuditLogWebhook
name: my_portalauditlogwebhook
properties:
auditLogDestinationId: 138339f6-7017-4c9e-ae91-4f542808e3e8
enabled: true
portalId: f32d905a-ed33-46a3-a093-d8f536af9a8a
Create PortalAuditLogWebhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PortalAuditLogWebhook(name: string, args: PortalAuditLogWebhookArgs, opts?: CustomResourceOptions);@overload
def PortalAuditLogWebhook(resource_name: str,
args: PortalAuditLogWebhookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PortalAuditLogWebhook(resource_name: str,
opts: Optional[ResourceOptions] = None,
portal_id: Optional[str] = None,
audit_log_destination_id: Optional[str] = None,
enabled: Optional[bool] = None)func NewPortalAuditLogWebhook(ctx *Context, name string, args PortalAuditLogWebhookArgs, opts ...ResourceOption) (*PortalAuditLogWebhook, error)public PortalAuditLogWebhook(string name, PortalAuditLogWebhookArgs args, CustomResourceOptions? opts = null)
public PortalAuditLogWebhook(String name, PortalAuditLogWebhookArgs args)
public PortalAuditLogWebhook(String name, PortalAuditLogWebhookArgs args, CustomResourceOptions options)
type: konnect:PortalAuditLogWebhook
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PortalAuditLogWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PortalAuditLogWebhookArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PortalAuditLogWebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PortalAuditLogWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PortalAuditLogWebhookArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var portalAuditLogWebhookResource = new Konnect.PortalAuditLogWebhook("portalAuditLogWebhookResource", new()
{
PortalId = "string",
AuditLogDestinationId = "string",
Enabled = false,
});
example, err := konnect.NewPortalAuditLogWebhook(ctx, "portalAuditLogWebhookResource", &konnect.PortalAuditLogWebhookArgs{
PortalId: pulumi.String("string"),
AuditLogDestinationId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
})
var portalAuditLogWebhookResource = new PortalAuditLogWebhook("portalAuditLogWebhookResource", PortalAuditLogWebhookArgs.builder()
.portalId("string")
.auditLogDestinationId("string")
.enabled(false)
.build());
portal_audit_log_webhook_resource = konnect.PortalAuditLogWebhook("portalAuditLogWebhookResource",
portal_id="string",
audit_log_destination_id="string",
enabled=False)
const portalAuditLogWebhookResource = new konnect.PortalAuditLogWebhook("portalAuditLogWebhookResource", {
portalId: "string",
auditLogDestinationId: "string",
enabled: false,
});
type: konnect:PortalAuditLogWebhook
properties:
auditLogDestinationId: string
enabled: false
portalId: string
PortalAuditLogWebhook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PortalAuditLogWebhook resource accepts the following input properties:
- Portal
Id string - The Portal identifier
- Audit
Log stringDestination Id - ID of the audit log destination.
- Enabled bool
- Indicates if the data should be sent to the configured destination. Default: false
- Portal
Id string - The Portal identifier
- Audit
Log stringDestination Id - ID of the audit log destination.
- Enabled bool
- Indicates if the data should be sent to the configured destination. Default: false
- portal
Id String - The Portal identifier
- audit
Log StringDestination Id - ID of the audit log destination.
- enabled Boolean
- Indicates if the data should be sent to the configured destination. Default: false
- portal
Id string - The Portal identifier
- audit
Log stringDestination Id - ID of the audit log destination.
- enabled boolean
- Indicates if the data should be sent to the configured destination. Default: false
- portal_
id str - The Portal identifier
- audit_
log_ strdestination_ id - ID of the audit log destination.
- enabled bool
- Indicates if the data should be sent to the configured destination. Default: false
- portal
Id String - The Portal identifier
- audit
Log StringDestination Id - ID of the audit log destination.
- enabled Boolean
- Indicates if the data should be sent to the configured destination. Default: false
Outputs
All input properties are implicitly available as output properties. Additionally, the PortalAuditLogWebhook resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing PortalAuditLogWebhook Resource
Get an existing PortalAuditLogWebhook resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PortalAuditLogWebhookState, opts?: CustomResourceOptions): PortalAuditLogWebhook@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
audit_log_destination_id: Optional[str] = None,
enabled: Optional[bool] = None,
portal_id: Optional[str] = None) -> PortalAuditLogWebhookfunc GetPortalAuditLogWebhook(ctx *Context, name string, id IDInput, state *PortalAuditLogWebhookState, opts ...ResourceOption) (*PortalAuditLogWebhook, error)public static PortalAuditLogWebhook Get(string name, Input<string> id, PortalAuditLogWebhookState? state, CustomResourceOptions? opts = null)public static PortalAuditLogWebhook get(String name, Output<String> id, PortalAuditLogWebhookState state, CustomResourceOptions options)resources: _: type: konnect:PortalAuditLogWebhook get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Audit
Log stringDestination Id - ID of the audit log destination.
- Enabled bool
- Indicates if the data should be sent to the configured destination. Default: false
- Portal
Id string - The Portal identifier
- Audit
Log stringDestination Id - ID of the audit log destination.
- Enabled bool
- Indicates if the data should be sent to the configured destination. Default: false
- Portal
Id string - The Portal identifier
- audit
Log StringDestination Id - ID of the audit log destination.
- enabled Boolean
- Indicates if the data should be sent to the configured destination. Default: false
- portal
Id String - The Portal identifier
- audit
Log stringDestination Id - ID of the audit log destination.
- enabled boolean
- Indicates if the data should be sent to the configured destination. Default: false
- portal
Id string - The Portal identifier
- audit_
log_ strdestination_ id - ID of the audit log destination.
- enabled bool
- Indicates if the data should be sent to the configured destination. Default: false
- portal_
id str - The Portal identifier
- audit
Log StringDestination Id - ID of the audit log destination.
- enabled Boolean
- Indicates if the data should be sent to the configured destination. Default: false
- portal
Id String - The Portal identifier
Import
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = konnect_portal_audit_log_webhook.my_konnect_portal_audit_log_webhook
id = “f32d905a-ed33-46a3-a093-d8f536af9a8a”
}
The pulumi import command can be used, for example:
$ pulumi import konnect:index/portalAuditLogWebhook:PortalAuditLogWebhook my_konnect_portal_audit_log_webhook "f32d905a-ed33-46a3-a093-d8f536af9a8a"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- konnect kong/terraform-provider-konnect
- License
- Notes
- This Pulumi package is based on the
konnectTerraform Provider.
published on Wednesday, May 6, 2026 by kong
