GitHub v6.8.1 published on Saturday, Nov 1, 2025 by Pulumi
github.getOrganizationWebhooks
Start a Neo task
Explain and create a github.getOrganizationWebhooks resource
Use this data source to retrieve all webhooks of the organization.
Example Usage
To retrieve all webhooks of the organization:
import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const all = github.getOrganizationWebhooks({});
import pulumi
import pulumi_github as github
all = github.get_organization_webhooks()
package main
import (
"github.com/pulumi/pulumi-github/sdk/v6/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := github.GetOrganizationWebhooks(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Github = Pulumi.Github;
return await Deployment.RunAsync(() =>
{
var all = Github.GetOrganizationWebhooks.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.GithubFunctions;
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 all = GithubFunctions.getOrganizationWebhooks(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
}
}
variables:
all:
fn::invoke:
function: github:getOrganizationWebhooks
arguments: {}
Using getOrganizationWebhooks
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 getOrganizationWebhooks(opts?: InvokeOptions): Promise<GetOrganizationWebhooksResult>
function getOrganizationWebhooksOutput(opts?: InvokeOptions): Output<GetOrganizationWebhooksResult>def get_organization_webhooks(opts: Optional[InvokeOptions] = None) -> GetOrganizationWebhooksResult
def get_organization_webhooks_output(opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationWebhooksResult]func GetOrganizationWebhooks(ctx *Context, opts ...InvokeOption) (*GetOrganizationWebhooksResult, error)
func GetOrganizationWebhooksOutput(ctx *Context, opts ...InvokeOption) GetOrganizationWebhooksResultOutput> Note: This function is named GetOrganizationWebhooks in the Go SDK.
public static class GetOrganizationWebhooks
{
public static Task<GetOrganizationWebhooksResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetOrganizationWebhooksResult> Invoke(InvokeOptions? opts = null)
}public static CompletableFuture<GetOrganizationWebhooksResult> getOrganizationWebhooks(InvokeOptions options)
public static Output<GetOrganizationWebhooksResult> getOrganizationWebhooks(InvokeOptions options)
fn::invoke:
function: github:index/getOrganizationWebhooks:getOrganizationWebhooks
arguments:
# arguments dictionarygetOrganizationWebhooks Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Webhooks
List<Get
Organization Webhooks Webhook> - An Array of GitHub Webhooks. Each
webhookblock consists of the fields documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Webhooks
[]Get
Organization Webhooks Webhook - An Array of GitHub Webhooks. Each
webhookblock consists of the fields documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- webhooks
List<Get
Organization Webhooks Webhook> - An Array of GitHub Webhooks. Each
webhookblock consists of the fields documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- webhooks
Get
Organization Webhooks Webhook[] - An Array of GitHub Webhooks. Each
webhookblock consists of the fields documented below.
- id str
- The provider-assigned unique ID for this managed resource.
- webhooks
Sequence[Get
Organization Webhooks Webhook] - An Array of GitHub Webhooks. Each
webhookblock consists of the fields documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- webhooks List<Property Map>
- An Array of GitHub Webhooks. Each
webhookblock consists of the fields documented below.
Supporting Types
GetOrganizationWebhooksWebhook
Package Details
- Repository
- GitHub pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
githubTerraform Provider.
