GitLab

v4.9.0 published on Monday, Oct 24, 2022 by Pulumi

getGroupHooks

The gitlab.getGroupHooks data source allows to retrieve details about hooks in a group.

Upstream API: GitLab REST API docs

Example Usage

Coming soon!

Coming soon!

package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.GitlabFunctions;
import com.pulumi.gitlab.inputs.GetGroupArgs;
import com.pulumi.gitlab.inputs.GetGroupHooksArgs;
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 = GitlabFunctions.getGroup(GetGroupArgs.builder()
            .id("foo/bar/baz")
            .build());

        final var examples = GitlabFunctions.getGroupHooks(GetGroupHooksArgs.builder()
            .group(example.applyValue(getGroupResult -> getGroupResult.id()))
            .build());

    }
}

Coming soon!

Coming soon!

variables:
  example:
    fn::invoke:
      Function: gitlab:getGroup
      Arguments:
        id: foo/bar/baz
  examples:
    fn::invoke:
      Function: gitlab:getGroupHooks
      Arguments:
        group: ${example.id}

Using getGroupHooks

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 getGroupHooks(args: GetGroupHooksArgs, opts?: InvokeOptions): Promise<GetGroupHooksResult>
function getGroupHooksOutput(args: GetGroupHooksOutputArgs, opts?: InvokeOptions): Output<GetGroupHooksResult>
def get_group_hooks(group: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetGroupHooksResult
def get_group_hooks_output(group: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetGroupHooksResult]
func GetGroupHooks(ctx *Context, args *GetGroupHooksArgs, opts ...InvokeOption) (*GetGroupHooksResult, error)
func GetGroupHooksOutput(ctx *Context, args *GetGroupHooksOutputArgs, opts ...InvokeOption) GetGroupHooksResultOutput

> Note: This function is named GetGroupHooks in the Go SDK.

public static class GetGroupHooks 
{
    public static Task<GetGroupHooksResult> InvokeAsync(GetGroupHooksArgs args, InvokeOptions? opts = null)
    public static Output<GetGroupHooksResult> Invoke(GetGroupHooksInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGroupHooksResult> getGroupHooks(GetGroupHooksArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: gitlab:index/getGroupHooks:getGroupHooks
  arguments:
    # arguments dictionary

The following arguments are supported:

Group string

The ID or full path of the group.

Group string

The ID or full path of the group.

group String

The ID or full path of the group.

group string

The ID or full path of the group.

group str

The ID or full path of the group.

group String

The ID or full path of the group.

getGroupHooks Result

The following output properties are available:

Group string

The ID or full path of the group.

Hooks List<Pulumi.GitLab.Outputs.GetGroupHooksHook>

The list of hooks.

Id string

The provider-assigned unique ID for this managed resource.

Group string

The ID or full path of the group.

Hooks []GetGroupHooksHook

The list of hooks.

Id string

The provider-assigned unique ID for this managed resource.

group String

The ID or full path of the group.

hooks List<GetGroupHooksHook>

The list of hooks.

id String

The provider-assigned unique ID for this managed resource.

group string

The ID or full path of the group.

hooks GetGroupHooksHook[]

The list of hooks.

id string

The provider-assigned unique ID for this managed resource.

group str

The ID or full path of the group.

hooks Sequence[GetGroupHooksHook]

The list of hooks.

id str

The provider-assigned unique ID for this managed resource.

group String

The ID or full path of the group.

hooks List<Property Map>

The list of hooks.

id String

The provider-assigned unique ID for this managed resource.

Supporting Types

GetGroupHooksHook

confidentialIssuesEvents Boolean
confidentialNoteEvents Boolean
deploymentEvents Boolean
enableSslVerification Boolean
group String

The ID or full path of the group.

groupId Integer
hookId Integer
issuesEvents Boolean
jobEvents Boolean
mergeRequestsEvents Boolean
noteEvents Boolean
pipelineEvents Boolean
pushEvents Boolean
pushEventsBranchFilter String
releasesEvents Boolean
subgroupEvents Boolean
tagPushEvents Boolean
token String
url String
wikiPageEvents Boolean
confidentialIssuesEvents boolean
confidentialNoteEvents boolean
deploymentEvents boolean
enableSslVerification boolean
group string

The ID or full path of the group.

groupId number
hookId number
issuesEvents boolean
jobEvents boolean
mergeRequestsEvents boolean
noteEvents boolean
pipelineEvents boolean
pushEvents boolean
pushEventsBranchFilter string
releasesEvents boolean
subgroupEvents boolean
tagPushEvents boolean
token string
url string
wikiPageEvents boolean
confidentialIssuesEvents Boolean
confidentialNoteEvents Boolean
deploymentEvents Boolean
enableSslVerification Boolean
group String

The ID or full path of the group.

groupId Number
hookId Number
issuesEvents Boolean
jobEvents Boolean
mergeRequestsEvents Boolean
noteEvents Boolean
pipelineEvents Boolean
pushEvents Boolean
pushEventsBranchFilter String
releasesEvents Boolean
subgroupEvents Boolean
tagPushEvents Boolean
token String
url String
wikiPageEvents Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-gitlab
License
Apache-2.0
Notes

This Pulumi package is based on the gitlab Terraform Provider.