GitHub v6.3.0 published on Monday, Sep 16, 2024 by Pulumi
github.getOrganizationWebhooks
Explore with Pulumi AI
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, nil, 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();
}
}
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: github:index/getOrganizationWebhooks:getOrganizationWebhooks
arguments:
# arguments dictionary
getOrganizationWebhooks 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
webhook
block 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
webhook
block 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
webhook
block 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
webhook
block 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
webhook
block 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
webhook
block 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
github
Terraform Provider.