IntegrationHarborArgs

data class IntegrationHarborArgs(val password: Output<String>? = null, val project: Output<String>? = null, val projectName: Output<String>? = null, val url: Output<String>? = null, val useInheritedSettings: Output<Boolean>? = null, val username: Output<String>? = null) : ConvertibleToJava<IntegrationHarborArgs>

The gitlab.IntegrationHarbor resource allows to manage the lifecycle of a project integration with Harbor. Upstream API: GitLab REST API docs

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const awesomeProject = new gitlab.Project("awesome_project", {
name: "awesome_project",
description: "My awesome project.",
visibilityLevel: "public",
});
const harbor = new gitlab.IntegrationHarbor("harbor", {
project: awesomeProject.id,
url: "http://harbor.example.com",
projectName: "my_project_name",
});
import pulumi
import pulumi_gitlab as gitlab
awesome_project = gitlab.Project("awesome_project",
name="awesome_project",
description="My awesome project.",
visibility_level="public")
harbor = gitlab.IntegrationHarbor("harbor",
project=awesome_project.id,
url="http://harbor.example.com",
project_name="my_project_name")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var awesomeProject = new GitLab.Project("awesome_project", new()
{
Name = "awesome_project",
Description = "My awesome project.",
VisibilityLevel = "public",
});
var harbor = new GitLab.IntegrationHarbor("harbor", new()
{
Project = awesomeProject.Id,
Url = "http://harbor.example.com",
ProjectName = "my_project_name",
});
});
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
awesomeProject, err := gitlab.NewProject(ctx, "awesome_project", &gitlab.ProjectArgs{
Name: pulumi.String("awesome_project"),
Description: pulumi.String("My awesome project."),
VisibilityLevel: pulumi.String("public"),
})
if err != nil {
return err
}
_, err = gitlab.NewIntegrationHarbor(ctx, "harbor", &gitlab.IntegrationHarborArgs{
Project: awesomeProject.ID(),
Url: pulumi.String("http://harbor.example.com"),
ProjectName: pulumi.String("my_project_name"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.Project;
import com.pulumi.gitlab.ProjectArgs;
import com.pulumi.gitlab.IntegrationHarbor;
import com.pulumi.gitlab.IntegrationHarborArgs;
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) {
var awesomeProject = new Project("awesomeProject", ProjectArgs.builder()
.name("awesome_project")
.description("My awesome project.")
.visibilityLevel("public")
.build());
var harbor = new IntegrationHarbor("harbor", IntegrationHarborArgs.builder()
.project(awesomeProject.id())
.url("http://harbor.example.com")
.projectName("my_project_name")
.build());
}
}
resources:
awesomeProject:
type: gitlab:Project
name: awesome_project
properties:
name: awesome_project
description: My awesome project.
visibilityLevel: public
harbor:
type: gitlab:IntegrationHarbor
properties:
project: ${awesomeProject.id}
url: http://harbor.example.com
projectName: my_project_name

Import

Starting in Terraform v1.5.0 you can use an import block to import gitlab_integration_harbor. For example: terraform import { to = gitlab_integration_harbor.example id = "see CLI command below for ID" } Import using the CLI is supported using the following syntax:

$ pulumi import gitlab:index/integrationHarbor:IntegrationHarbor You can import a gitlab_integration_harbor state using `<resource> <project_id>`:
$ pulumi import gitlab:index/integrationHarbor:IntegrationHarbor harbor 1

Constructors

Link copied to clipboard
constructor(password: Output<String>? = null, project: Output<String>? = null, projectName: Output<String>? = null, url: Output<String>? = null, useInheritedSettings: Output<Boolean>? = null, username: Output<String>? = null)

Properties

Link copied to clipboard
val password: Output<String>? = null

Password for authentication with the Harbor server, if authentication is required by the server.

Link copied to clipboard
val project: Output<String>? = null

ID of the GitLab project you want to activate integration on.

Link copied to clipboard
val projectName: Output<String>? = null

The URL-friendly Harbor project name. This project needs to already exist in Harbor. Example: my_project_name.

Link copied to clipboard
val url: Output<String>? = null

Harbor URL. Example: http://harbor.example.com

Link copied to clipboard
val useInheritedSettings: Output<Boolean>? = null

Indicates whether or not to inherit default settings. Defaults to false.

Link copied to clipboard
val username: Output<String>? = null

Username for authentication with the Harbor server, if authentication is required by the server.

Functions

Link copied to clipboard
open override fun toJava(): IntegrationHarborArgs