bitbucket 2.47.0 published on Monday, May 5, 2025 by drfaust92
bitbucket.getHookTypes
Explore with Pulumi AI
bitbucket 2.47.0 published on Monday, May 5, 2025 by drfaust92
Provides a way to fetch data of hook types.
OAuth2 Scopes: none
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bitbucket from "@pulumi/bitbucket";
const example = bitbucket.getHookTypes({
    subjectType: "workspace",
});
import pulumi
import pulumi_bitbucket as bitbucket
example = bitbucket.get_hook_types(subject_type="workspace")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/bitbucket/v2/bitbucket"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := bitbucket.GetHookTypes(ctx, &bitbucket.GetHookTypesArgs{
			SubjectType: "workspace",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bitbucket = Pulumi.Bitbucket;
return await Deployment.RunAsync(() => 
{
    var example = Bitbucket.GetHookTypes.Invoke(new()
    {
        SubjectType = "workspace",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.bitbucket.BitbucketFunctions;
import com.pulumi.bitbucket.inputs.GetHookTypesArgs;
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 example = BitbucketFunctions.getHookTypes(GetHookTypesArgs.builder()
            .subjectType("workspace")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: bitbucket:getHookTypes
      arguments:
        subjectType: workspace
Using getHookTypes
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 getHookTypes(args: GetHookTypesArgs, opts?: InvokeOptions): Promise<GetHookTypesResult>
function getHookTypesOutput(args: GetHookTypesOutputArgs, opts?: InvokeOptions): Output<GetHookTypesResult>def get_hook_types(id: Optional[str] = None,
                   subject_type: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetHookTypesResult
def get_hook_types_output(id: Optional[pulumi.Input[str]] = None,
                   subject_type: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetHookTypesResult]func GetHookTypes(ctx *Context, args *GetHookTypesArgs, opts ...InvokeOption) (*GetHookTypesResult, error)
func GetHookTypesOutput(ctx *Context, args *GetHookTypesOutputArgs, opts ...InvokeOption) GetHookTypesResultOutput> Note: This function is named GetHookTypes in the Go SDK.
public static class GetHookTypes 
{
    public static Task<GetHookTypesResult> InvokeAsync(GetHookTypesArgs args, InvokeOptions? opts = null)
    public static Output<GetHookTypesResult> Invoke(GetHookTypesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetHookTypesResult> getHookTypes(GetHookTypesArgs args, InvokeOptions options)
public static Output<GetHookTypesResult> getHookTypes(GetHookTypesArgs args, InvokeOptions options)
fn::invoke:
  function: bitbucket:index/getHookTypes:getHookTypes
  arguments:
    # arguments dictionaryThe following arguments are supported:
- SubjectType string
- A resource or subject type. Valid values are workspace,user,repository,team.
- Id string
- SubjectType string
- A resource or subject type. Valid values are workspace,user,repository,team.
- Id string
- subjectType String
- A resource or subject type. Valid values are workspace,user,repository,team.
- id String
- subjectType string
- A resource or subject type. Valid values are workspace,user,repository,team.
- id string
- subject_type str
- A resource or subject type. Valid values are workspace,user,repository,team.
- id str
- subjectType String
- A resource or subject type. Valid values are workspace,user,repository,team.
- id String
getHookTypes Result
The following output properties are available:
- HookTypes List<GetHook Types Hook Type> 
- A Set of Hook Event Types. See Hook Types below.
- Id string
- SubjectType string
- HookTypes []GetHook Types Hook Type 
- A Set of Hook Event Types. See Hook Types below.
- Id string
- SubjectType string
- hookTypes List<GetHook Types Hook Type> 
- A Set of Hook Event Types. See Hook Types below.
- id String
- subjectType String
- hookTypes GetHook Types Hook Type[] 
- A Set of Hook Event Types. See Hook Types below.
- id string
- subjectType string
- hook_types Sequence[GetHook Types Hook Type] 
- A Set of Hook Event Types. See Hook Types below.
- id str
- subject_type str
- hookTypes List<Property Map>
- A Set of Hook Event Types. See Hook Types below.
- id String
- subjectType String
Supporting Types
GetHookTypesHookType    
- Category string
- The category this event belongs to.
- Description string
- More detailed description of the webhook event type.
- Event string
- The event identifier.
- Label string
- Summary of the webhook event type.
- Category string
- The category this event belongs to.
- Description string
- More detailed description of the webhook event type.
- Event string
- The event identifier.
- Label string
- Summary of the webhook event type.
- category String
- The category this event belongs to.
- description String
- More detailed description of the webhook event type.
- event String
- The event identifier.
- label String
- Summary of the webhook event type.
- category string
- The category this event belongs to.
- description string
- More detailed description of the webhook event type.
- event string
- The event identifier.
- label string
- Summary of the webhook event type.
- category str
- The category this event belongs to.
- description str
- More detailed description of the webhook event type.
- event str
- The event identifier.
- label str
- Summary of the webhook event type.
- category String
- The category this event belongs to.
- description String
- More detailed description of the webhook event type.
- event String
- The event identifier.
- label String
- Summary of the webhook event type.
Package Details
- Repository
- bitbucket drfaust92/terraform-provider-bitbucket
- License
- Notes
- This Pulumi package is based on the bitbucketTerraform Provider.
bitbucket 2.47.0 published on Monday, May 5, 2025 by drfaust92