Viewing docs for GitLab v10.0.0
published on Friday, Jun 26, 2026 by Pulumi
published on Friday, Jun 26, 2026 by Pulumi
Viewing docs for GitLab v10.0.0
published on Friday, Jun 26, 2026 by Pulumi
published on Friday, Jun 26, 2026 by Pulumi
The gitlab.SystemHook data source allows to retrieve details about a system hook.
This data source requires administrator privileges.
Upstream API: GitLab REST API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const example = gitlab.getSystemHook({
hookId: 1,
});
import pulumi
import pulumi_gitlab as gitlab
example = gitlab.get_system_hook(hook_id=1)
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v10/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gitlab.GetSystemHook(ctx, &gitlab.LookupSystemHookArgs{
HookId: 1,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var example = GitLab.GetSystemHook.Invoke(new()
{
HookId = 1,
});
});
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.GetSystemHookArgs;
import java.util.ArrayList;
import java.util.Arrays;
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.getSystemHook(GetSystemHookArgs.builder()
.hookId(1)
.build());
}
}
variables:
example:
fn::invoke:
function: gitlab:getSystemHook
arguments:
hookId: 1
pulumi {
required_providers {
gitlab = {
source = "pulumi/gitlab"
}
}
}
data "gitlab_getsystemhook" "example" {
hook_id = 1
}
Using getSystemHook
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 getSystemHook(args: GetSystemHookArgs, opts?: InvokeOptions): Promise<GetSystemHookResult>
function getSystemHookOutput(args: GetSystemHookOutputArgs, opts?: InvokeOptions): Output<GetSystemHookResult>def get_system_hook(hook_id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetSystemHookResult
def get_system_hook_output(hook_id: pulumi.Input[Optional[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSystemHookResult]func LookupSystemHook(ctx *Context, args *LookupSystemHookArgs, opts ...InvokeOption) (*LookupSystemHookResult, error)
func LookupSystemHookOutput(ctx *Context, args *LookupSystemHookOutputArgs, opts ...InvokeOption) LookupSystemHookResultOutput> Note: This function is named LookupSystemHook in the Go SDK.
public static class GetSystemHook
{
public static Task<GetSystemHookResult> InvokeAsync(GetSystemHookArgs args, InvokeOptions? opts = null)
public static Output<GetSystemHookResult> Invoke(GetSystemHookInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSystemHookResult> getSystemHook(GetSystemHookArgs args, InvokeOptions options)
public static Output<GetSystemHookResult> getSystemHook(GetSystemHookArgs args, InvokeOptions options)
fn::invoke:
function: gitlab:index/getSystemHook:getSystemHook
arguments:
# arguments dictionarydata "gitlab_getsystemhook" "name" {
# arguments
}The following arguments are supported:
- Hook
Id int - The id of the system hook.
- Hook
Id int - The id of the system hook.
- hook_
id number - The id of the system hook.
- hook
Id Integer - The id of the system hook.
- hook
Id number - The id of the system hook.
- hook_
id int - The id of the system hook.
- hook
Id Number - The id of the system hook.
getSystemHook Result
The following output properties are available:
- Created
At string - The date and time the hook was created in ISO8601 format.
- Description string
- The description of the hook.
- Enable
Ssl boolVerification - Do SSL verification when triggering the hook.
- Hook
Id int - The id of the system hook.
- Id string
- The ID of this data source. In the format
<hook_id>. - Merge
Requests boolEvents - Trigger hook on merge requests events.
- Name string
- The name of the hook.
- Push
Events bool - When true, the hook fires on push events.
- Repository
Update boolEvents - Trigger hook on repository update events.
- Signing
Token boolPresent - Whether a
signingTokenis configured server-side. Reflects the value returned by the GitLab API. - Tag
Push boolEvents - When true, the hook fires on new tags being pushed.
- Url string
- The hook URL.
- Created
At string - The date and time the hook was created in ISO8601 format.
- Description string
- The description of the hook.
- Enable
Ssl boolVerification - Do SSL verification when triggering the hook.
- Hook
Id int - The id of the system hook.
- Id string
- The ID of this data source. In the format
<hook_id>. - Merge
Requests boolEvents - Trigger hook on merge requests events.
- Name string
- The name of the hook.
- Push
Events bool - When true, the hook fires on push events.
- Repository
Update boolEvents - Trigger hook on repository update events.
- Signing
Token boolPresent - Whether a
signingTokenis configured server-side. Reflects the value returned by the GitLab API. - Tag
Push boolEvents - When true, the hook fires on new tags being pushed.
- Url string
- The hook URL.
- created_
at string - The date and time the hook was created in ISO8601 format.
- description string
- The description of the hook.
- enable_
ssl_ boolverification - Do SSL verification when triggering the hook.
- hook_
id number - The id of the system hook.
- id string
- The ID of this data source. In the format
<hook_id>. - merge_
requests_ boolevents - Trigger hook on merge requests events.
- name string
- The name of the hook.
- push_
events bool - When true, the hook fires on push events.
- repository_
update_ boolevents - Trigger hook on repository update events.
- signing_
token_ boolpresent - Whether a
signingTokenis configured server-side. Reflects the value returned by the GitLab API. - tag_
push_ boolevents - When true, the hook fires on new tags being pushed.
- url string
- The hook URL.
- created
At String - The date and time the hook was created in ISO8601 format.
- description String
- The description of the hook.
- enable
Ssl BooleanVerification - Do SSL verification when triggering the hook.
- hook
Id Integer - The id of the system hook.
- id String
- The ID of this data source. In the format
<hook_id>. - merge
Requests BooleanEvents - Trigger hook on merge requests events.
- name String
- The name of the hook.
- push
Events Boolean - When true, the hook fires on push events.
- repository
Update BooleanEvents - Trigger hook on repository update events.
- signing
Token BooleanPresent - Whether a
signingTokenis configured server-side. Reflects the value returned by the GitLab API. - tag
Push BooleanEvents - When true, the hook fires on new tags being pushed.
- url String
- The hook URL.
- created
At string - The date and time the hook was created in ISO8601 format.
- description string
- The description of the hook.
- enable
Ssl booleanVerification - Do SSL verification when triggering the hook.
- hook
Id number - The id of the system hook.
- id string
- The ID of this data source. In the format
<hook_id>. - merge
Requests booleanEvents - Trigger hook on merge requests events.
- name string
- The name of the hook.
- push
Events boolean - When true, the hook fires on push events.
- repository
Update booleanEvents - Trigger hook on repository update events.
- signing
Token booleanPresent - Whether a
signingTokenis configured server-side. Reflects the value returned by the GitLab API. - tag
Push booleanEvents - When true, the hook fires on new tags being pushed.
- url string
- The hook URL.
- created_
at str - The date and time the hook was created in ISO8601 format.
- description str
- The description of the hook.
- enable_
ssl_ boolverification - Do SSL verification when triggering the hook.
- hook_
id int - The id of the system hook.
- id str
- The ID of this data source. In the format
<hook_id>. - merge_
requests_ boolevents - Trigger hook on merge requests events.
- name str
- The name of the hook.
- push_
events bool - When true, the hook fires on push events.
- repository_
update_ boolevents - Trigger hook on repository update events.
- signing_
token_ boolpresent - Whether a
signingTokenis configured server-side. Reflects the value returned by the GitLab API. - tag_
push_ boolevents - When true, the hook fires on new tags being pushed.
- url str
- The hook URL.
- created
At String - The date and time the hook was created in ISO8601 format.
- description String
- The description of the hook.
- enable
Ssl BooleanVerification - Do SSL verification when triggering the hook.
- hook
Id Number - The id of the system hook.
- id String
- The ID of this data source. In the format
<hook_id>. - merge
Requests BooleanEvents - Trigger hook on merge requests events.
- name String
- The name of the hook.
- push
Events Boolean - When true, the hook fires on push events.
- repository
Update BooleanEvents - Trigger hook on repository update events.
- signing
Token BooleanPresent - Whether a
signingTokenis configured server-side. Reflects the value returned by the GitLab API. - tag
Push BooleanEvents - When true, the hook fires on new tags being pushed.
- url String
- The hook URL.
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.
Viewing docs for GitLab v10.0.0
published on Friday, Jun 26, 2026 by Pulumi
published on Friday, Jun 26, 2026 by Pulumi