published on Friday, Jun 26, 2026 by Pulumi
published on Friday, Jun 26, 2026 by Pulumi
The gitlab.GroupIntegrationHarbor resource manages the lifecycle of a group integration with Harbor.
Upstream API: GitLab REST API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const example = new gitlab.GroupIntegrationHarbor("example", {
group: "my-group",
url: "http://harbor.example.com",
projectName: "my_project_name",
username: "my_username",
password: "my_password",
});
import pulumi
import pulumi_gitlab as gitlab
example = gitlab.GroupIntegrationHarbor("example",
group="my-group",
url="http://harbor.example.com",
project_name="my_project_name",
username="my_username",
password="my_password")
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.NewGroupIntegrationHarbor(ctx, "example", &gitlab.GroupIntegrationHarborArgs{
Group: pulumi.String("my-group"),
Url: pulumi.String("http://harbor.example.com"),
ProjectName: pulumi.String("my_project_name"),
Username: pulumi.String("my_username"),
Password: pulumi.String("my_password"),
})
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 = new GitLab.GroupIntegrationHarbor("example", new()
{
Group = "my-group",
Url = "http://harbor.example.com",
ProjectName = "my_project_name",
Username = "my_username",
Password = "my_password",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.GroupIntegrationHarbor;
import com.pulumi.gitlab.GroupIntegrationHarborArgs;
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) {
var example = new GroupIntegrationHarbor("example", GroupIntegrationHarborArgs.builder()
.group("my-group")
.url("http://harbor.example.com")
.projectName("my_project_name")
.username("my_username")
.password("my_password")
.build());
}
}
resources:
example:
type: gitlab:GroupIntegrationHarbor
properties:
group: my-group
url: http://harbor.example.com
projectName: my_project_name
username: my_username
password: my_password
pulumi {
required_providers {
gitlab = {
source = "pulumi/gitlab"
}
}
}
resource "gitlab_groupintegrationharbor" "example" {
group = "my-group"
url = "http://harbor.example.com"
project_name = "my_project_name"
username = "my_username"
password = "my_password"
}
Create GroupIntegrationHarbor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GroupIntegrationHarbor(name: string, args: GroupIntegrationHarborArgs, opts?: CustomResourceOptions);@overload
def GroupIntegrationHarbor(resource_name: str,
args: GroupIntegrationHarborArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GroupIntegrationHarbor(resource_name: str,
opts: Optional[ResourceOptions] = None,
group: Optional[str] = None,
password: Optional[str] = None,
project_name: Optional[str] = None,
url: Optional[str] = None,
username: Optional[str] = None,
use_inherited_settings: Optional[bool] = None)func NewGroupIntegrationHarbor(ctx *Context, name string, args GroupIntegrationHarborArgs, opts ...ResourceOption) (*GroupIntegrationHarbor, error)public GroupIntegrationHarbor(string name, GroupIntegrationHarborArgs args, CustomResourceOptions? opts = null)
public GroupIntegrationHarbor(String name, GroupIntegrationHarborArgs args)
public GroupIntegrationHarbor(String name, GroupIntegrationHarborArgs args, CustomResourceOptions options)
type: gitlab:GroupIntegrationHarbor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gitlab_groupintegrationharbor" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args GroupIntegrationHarborArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GroupIntegrationHarborArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GroupIntegrationHarborArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupIntegrationHarborArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GroupIntegrationHarborArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var groupIntegrationHarborResource = new GitLab.GroupIntegrationHarbor("groupIntegrationHarborResource", new()
{
Group = "string",
Password = "string",
ProjectName = "string",
Url = "string",
Username = "string",
UseInheritedSettings = false,
});
example, err := gitlab.NewGroupIntegrationHarbor(ctx, "groupIntegrationHarborResource", &gitlab.GroupIntegrationHarborArgs{
Group: pulumi.String("string"),
Password: pulumi.String("string"),
ProjectName: pulumi.String("string"),
Url: pulumi.String("string"),
Username: pulumi.String("string"),
UseInheritedSettings: pulumi.Bool(false),
})
resource "gitlab_groupintegrationharbor" "groupIntegrationHarborResource" {
group = "string"
password = "string"
project_name = "string"
url = "string"
username = "string"
use_inherited_settings = false
}
var groupIntegrationHarborResource = new GroupIntegrationHarbor("groupIntegrationHarborResource", GroupIntegrationHarborArgs.builder()
.group("string")
.password("string")
.projectName("string")
.url("string")
.username("string")
.useInheritedSettings(false)
.build());
group_integration_harbor_resource = gitlab.GroupIntegrationHarbor("groupIntegrationHarborResource",
group="string",
password="string",
project_name="string",
url="string",
username="string",
use_inherited_settings=False)
const groupIntegrationHarborResource = new gitlab.GroupIntegrationHarbor("groupIntegrationHarborResource", {
group: "string",
password: "string",
projectName: "string",
url: "string",
username: "string",
useInheritedSettings: false,
});
type: gitlab:GroupIntegrationHarbor
properties:
group: string
password: string
projectName: string
url: string
useInheritedSettings: false
username: string
GroupIntegrationHarbor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The GroupIntegrationHarbor resource accepts the following input properties:
- Group string
- The ID or full path of the group to integrate with Harbor.
- Password string
- Password for authentication with the Harbor server, if authentication is required by the server.
- Project
Name string - The URL-friendly Harbor project name. This project needs to already exist in Harbor. Example:
myProjectName. - Url string
- Harbor URL. Example:
http://harbor.example.com - Username string
- Username for authentication with the Harbor server, if authentication is required by the server.
- Use
Inherited boolSettings - Indicates whether or not to inherit default settings. Defaults to false.
- Group string
- The ID or full path of the group to integrate with Harbor.
- Password string
- Password for authentication with the Harbor server, if authentication is required by the server.
- Project
Name string - The URL-friendly Harbor project name. This project needs to already exist in Harbor. Example:
myProjectName. - Url string
- Harbor URL. Example:
http://harbor.example.com - Username string
- Username for authentication with the Harbor server, if authentication is required by the server.
- Use
Inherited boolSettings - Indicates whether or not to inherit default settings. Defaults to false.
- group string
- The ID or full path of the group to integrate with Harbor.
- password string
- Password for authentication with the Harbor server, if authentication is required by the server.
- project_
name string - The URL-friendly Harbor project name. This project needs to already exist in Harbor. Example:
myProjectName. - url string
- Harbor URL. Example:
http://harbor.example.com - username string
- Username for authentication with the Harbor server, if authentication is required by the server.
- use_
inherited_ boolsettings - Indicates whether or not to inherit default settings. Defaults to false.
- group String
- The ID or full path of the group to integrate with Harbor.
- password String
- Password for authentication with the Harbor server, if authentication is required by the server.
- project
Name String - The URL-friendly Harbor project name. This project needs to already exist in Harbor. Example:
myProjectName. - url String
- Harbor URL. Example:
http://harbor.example.com - username String
- Username for authentication with the Harbor server, if authentication is required by the server.
- use
Inherited BooleanSettings - Indicates whether or not to inherit default settings. Defaults to false.
- group string
- The ID or full path of the group to integrate with Harbor.
- password string
- Password for authentication with the Harbor server, if authentication is required by the server.
- project
Name string - The URL-friendly Harbor project name. This project needs to already exist in Harbor. Example:
myProjectName. - url string
- Harbor URL. Example:
http://harbor.example.com - username string
- Username for authentication with the Harbor server, if authentication is required by the server.
- use
Inherited booleanSettings - Indicates whether or not to inherit default settings. Defaults to false.
- group str
- The ID or full path of the group to integrate with Harbor.
- password str
- Password for authentication with the Harbor server, if authentication is required by the server.
- project_
name str - The URL-friendly Harbor project name. This project needs to already exist in Harbor. Example:
myProjectName. - url str
- Harbor URL. Example:
http://harbor.example.com - username str
- Username for authentication with the Harbor server, if authentication is required by the server.
- use_
inherited_ boolsettings - Indicates whether or not to inherit default settings. Defaults to false.
- group String
- The ID or full path of the group to integrate with Harbor.
- password String
- Password for authentication with the Harbor server, if authentication is required by the server.
- project
Name String - The URL-friendly Harbor project name. This project needs to already exist in Harbor. Example:
myProjectName. - url String
- Harbor URL. Example:
http://harbor.example.com - username String
- Username for authentication with the Harbor server, if authentication is required by the server.
- use
Inherited BooleanSettings - Indicates whether or not to inherit default settings. Defaults to false.
Outputs
All input properties are implicitly available as output properties. Additionally, the GroupIntegrationHarbor resource produces the following output properties:
Look up Existing GroupIntegrationHarbor Resource
Get an existing GroupIntegrationHarbor resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: GroupIntegrationHarborState, opts?: CustomResourceOptions): GroupIntegrationHarbor@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
group: Optional[str] = None,
password: Optional[str] = None,
project_name: Optional[str] = None,
url: Optional[str] = None,
use_inherited_settings: Optional[bool] = None,
username: Optional[str] = None) -> GroupIntegrationHarborfunc GetGroupIntegrationHarbor(ctx *Context, name string, id IDInput, state *GroupIntegrationHarborState, opts ...ResourceOption) (*GroupIntegrationHarbor, error)public static GroupIntegrationHarbor Get(string name, Input<string> id, GroupIntegrationHarborState? state, CustomResourceOptions? opts = null)public static GroupIntegrationHarbor get(String name, Output<String> id, GroupIntegrationHarborState state, CustomResourceOptions options)resources: _: type: gitlab:GroupIntegrationHarbor get: id: ${id}import {
to = gitlab_groupintegrationharbor.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Active bool
- Whether the integration is active.
- Group string
- The ID or full path of the group to integrate with Harbor.
- Password string
- Password for authentication with the Harbor server, if authentication is required by the server.
- Project
Name string - The URL-friendly Harbor project name. This project needs to already exist in Harbor. Example:
myProjectName. - Url string
- Harbor URL. Example:
http://harbor.example.com - Use
Inherited boolSettings - Indicates whether or not to inherit default settings. Defaults to false.
- Username string
- Username for authentication with the Harbor server, if authentication is required by the server.
- Active bool
- Whether the integration is active.
- Group string
- The ID or full path of the group to integrate with Harbor.
- Password string
- Password for authentication with the Harbor server, if authentication is required by the server.
- Project
Name string - The URL-friendly Harbor project name. This project needs to already exist in Harbor. Example:
myProjectName. - Url string
- Harbor URL. Example:
http://harbor.example.com - Use
Inherited boolSettings - Indicates whether or not to inherit default settings. Defaults to false.
- Username string
- Username for authentication with the Harbor server, if authentication is required by the server.
- active bool
- Whether the integration is active.
- group string
- The ID or full path of the group to integrate with Harbor.
- password string
- Password for authentication with the Harbor server, if authentication is required by the server.
- project_
name string - The URL-friendly Harbor project name. This project needs to already exist in Harbor. Example:
myProjectName. - url string
- Harbor URL. Example:
http://harbor.example.com - use_
inherited_ boolsettings - Indicates whether or not to inherit default settings. Defaults to false.
- username string
- Username for authentication with the Harbor server, if authentication is required by the server.
- active Boolean
- Whether the integration is active.
- group String
- The ID or full path of the group to integrate with Harbor.
- password String
- Password for authentication with the Harbor server, if authentication is required by the server.
- project
Name String - The URL-friendly Harbor project name. This project needs to already exist in Harbor. Example:
myProjectName. - url String
- Harbor URL. Example:
http://harbor.example.com - use
Inherited BooleanSettings - Indicates whether or not to inherit default settings. Defaults to false.
- username String
- Username for authentication with the Harbor server, if authentication is required by the server.
- active boolean
- Whether the integration is active.
- group string
- The ID or full path of the group to integrate with Harbor.
- password string
- Password for authentication with the Harbor server, if authentication is required by the server.
- project
Name string - The URL-friendly Harbor project name. This project needs to already exist in Harbor. Example:
myProjectName. - url string
- Harbor URL. Example:
http://harbor.example.com - use
Inherited booleanSettings - Indicates whether or not to inherit default settings. Defaults to false.
- username string
- Username for authentication with the Harbor server, if authentication is required by the server.
- active bool
- Whether the integration is active.
- group str
- The ID or full path of the group to integrate with Harbor.
- password str
- Password for authentication with the Harbor server, if authentication is required by the server.
- project_
name str - The URL-friendly Harbor project name. This project needs to already exist in Harbor. Example:
myProjectName. - url str
- Harbor URL. Example:
http://harbor.example.com - use_
inherited_ boolsettings - Indicates whether or not to inherit default settings. Defaults to false.
- username str
- Username for authentication with the Harbor server, if authentication is required by the server.
- active Boolean
- Whether the integration is active.
- group String
- The ID or full path of the group to integrate with Harbor.
- password String
- Password for authentication with the Harbor server, if authentication is required by the server.
- project
Name String - The URL-friendly Harbor project name. This project needs to already exist in Harbor. Example:
myProjectName. - url String
- Harbor URL. Example:
http://harbor.example.com - use
Inherited BooleanSettings - Indicates whether or not to inherit default settings. Defaults to false.
- username String
- Username for authentication with the Harbor server, if authentication is required by the server.
Import
Starting in Terraform v1.5.0, you can use an import block to import gitlab.GroupIntegrationHarbor. For example:
Importing using the CLI is supported with the following syntax:
GitLab group Harbor integrations can be imported using the group ID or full path, e.g.
$ pulumi import gitlab:index/groupIntegrationHarbor:GroupIntegrationHarbor example 123
or by full path
$ pulumi import gitlab:index/groupIntegrationHarbor:GroupIntegrationHarbor example "my-group"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.
published on Friday, Jun 26, 2026 by Pulumi