gitlab.ProjectIntegrationRedmine
Explore with Pulumi AI
The gitlab.ProjectIntegrationRedmine
resource manages the lifecycle of a project integration with Redmine.
Using Redmine requires that GitLab internal issue tracking is disabled for the project.
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 redmine = new gitlab.ProjectIntegrationRedmine("redmine", {
project: awesomeProject.id,
newIssueUrl: "https://redmine.example.com/issue",
projectUrl: "https://redmine.example.com/project",
issuesUrl: "https://redmine.example.com/issue/:id",
});
import pulumi
import pulumi_gitlab as gitlab
awesome_project = gitlab.Project("awesome_project",
name="awesome_project",
description="My awesome project.",
visibility_level="public")
redmine = gitlab.ProjectIntegrationRedmine("redmine",
project=awesome_project.id,
new_issue_url="https://redmine.example.com/issue",
project_url="https://redmine.example.com/project",
issues_url="https://redmine.example.com/issue/:id")
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v9/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.NewProjectIntegrationRedmine(ctx, "redmine", &gitlab.ProjectIntegrationRedmineArgs{
Project: awesomeProject.ID(),
NewIssueUrl: pulumi.String("https://redmine.example.com/issue"),
ProjectUrl: pulumi.String("https://redmine.example.com/project"),
IssuesUrl: pulumi.String("https://redmine.example.com/issue/:id"),
})
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 awesomeProject = new GitLab.Project("awesome_project", new()
{
Name = "awesome_project",
Description = "My awesome project.",
VisibilityLevel = "public",
});
var redmine = new GitLab.ProjectIntegrationRedmine("redmine", new()
{
Project = awesomeProject.Id,
NewIssueUrl = "https://redmine.example.com/issue",
ProjectUrl = "https://redmine.example.com/project",
IssuesUrl = "https://redmine.example.com/issue/:id",
});
});
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.ProjectIntegrationRedmine;
import com.pulumi.gitlab.ProjectIntegrationRedmineArgs;
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 redmine = new ProjectIntegrationRedmine("redmine", ProjectIntegrationRedmineArgs.builder()
.project(awesomeProject.id())
.newIssueUrl("https://redmine.example.com/issue")
.projectUrl("https://redmine.example.com/project")
.issuesUrl("https://redmine.example.com/issue/:id")
.build());
}
}
resources:
awesomeProject:
type: gitlab:Project
name: awesome_project
properties:
name: awesome_project
description: My awesome project.
visibilityLevel: public
redmine:
type: gitlab:ProjectIntegrationRedmine
properties:
project: ${awesomeProject.id}
newIssueUrl: https://redmine.example.com/issue
projectUrl: https://redmine.example.com/project
issuesUrl: https://redmine.example.com/issue/:id
Create ProjectIntegrationRedmine Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectIntegrationRedmine(name: string, args: ProjectIntegrationRedmineArgs, opts?: CustomResourceOptions);
@overload
def ProjectIntegrationRedmine(resource_name: str,
args: ProjectIntegrationRedmineArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectIntegrationRedmine(resource_name: str,
opts: Optional[ResourceOptions] = None,
issues_url: Optional[str] = None,
new_issue_url: Optional[str] = None,
project: Optional[str] = None,
project_url: Optional[str] = None,
use_inherited_settings: Optional[bool] = None)
func NewProjectIntegrationRedmine(ctx *Context, name string, args ProjectIntegrationRedmineArgs, opts ...ResourceOption) (*ProjectIntegrationRedmine, error)
public ProjectIntegrationRedmine(string name, ProjectIntegrationRedmineArgs args, CustomResourceOptions? opts = null)
public ProjectIntegrationRedmine(String name, ProjectIntegrationRedmineArgs args)
public ProjectIntegrationRedmine(String name, ProjectIntegrationRedmineArgs args, CustomResourceOptions options)
type: gitlab:ProjectIntegrationRedmine
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ProjectIntegrationRedmineArgs
- 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 ProjectIntegrationRedmineArgs
- 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 ProjectIntegrationRedmineArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectIntegrationRedmineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectIntegrationRedmineArgs
- 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 projectIntegrationRedmineResource = new GitLab.ProjectIntegrationRedmine("projectIntegrationRedmineResource", new()
{
IssuesUrl = "string",
NewIssueUrl = "string",
Project = "string",
ProjectUrl = "string",
UseInheritedSettings = false,
});
example, err := gitlab.NewProjectIntegrationRedmine(ctx, "projectIntegrationRedmineResource", &gitlab.ProjectIntegrationRedmineArgs{
IssuesUrl: pulumi.String("string"),
NewIssueUrl: pulumi.String("string"),
Project: pulumi.String("string"),
ProjectUrl: pulumi.String("string"),
UseInheritedSettings: pulumi.Bool(false),
})
var projectIntegrationRedmineResource = new ProjectIntegrationRedmine("projectIntegrationRedmineResource", ProjectIntegrationRedmineArgs.builder()
.issuesUrl("string")
.newIssueUrl("string")
.project("string")
.projectUrl("string")
.useInheritedSettings(false)
.build());
project_integration_redmine_resource = gitlab.ProjectIntegrationRedmine("projectIntegrationRedmineResource",
issues_url="string",
new_issue_url="string",
project="string",
project_url="string",
use_inherited_settings=False)
const projectIntegrationRedmineResource = new gitlab.ProjectIntegrationRedmine("projectIntegrationRedmineResource", {
issuesUrl: "string",
newIssueUrl: "string",
project: "string",
projectUrl: "string",
useInheritedSettings: false,
});
type: gitlab:ProjectIntegrationRedmine
properties:
issuesUrl: string
newIssueUrl: string
project: string
projectUrl: string
useInheritedSettings: false
ProjectIntegrationRedmine 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 ProjectIntegrationRedmine resource accepts the following input properties:
- Issues
Url string - The URL to the Redmine project issue to link to this GitLab project.
- New
Issue stringUrl - The URL to use to create a new issue in the Redmine project linked to this GitLab project.
- Project string
- ID of the project you want to activate integration on.
- Project
Url string - The URL to the Redmine project to link to this GitLab project.
- Use
Inherited boolSettings - Indicates whether or not to inherit default settings. Defaults to false.
- Issues
Url string - The URL to the Redmine project issue to link to this GitLab project.
- New
Issue stringUrl - The URL to use to create a new issue in the Redmine project linked to this GitLab project.
- Project string
- ID of the project you want to activate integration on.
- Project
Url string - The URL to the Redmine project to link to this GitLab project.
- Use
Inherited boolSettings - Indicates whether or not to inherit default settings. Defaults to false.
- issues
Url String - The URL to the Redmine project issue to link to this GitLab project.
- new
Issue StringUrl - The URL to use to create a new issue in the Redmine project linked to this GitLab project.
- project String
- ID of the project you want to activate integration on.
- project
Url String - The URL to the Redmine project to link to this GitLab project.
- use
Inherited BooleanSettings - Indicates whether or not to inherit default settings. Defaults to false.
- issues
Url string - The URL to the Redmine project issue to link to this GitLab project.
- new
Issue stringUrl - The URL to use to create a new issue in the Redmine project linked to this GitLab project.
- project string
- ID of the project you want to activate integration on.
- project
Url string - The URL to the Redmine project to link to this GitLab project.
- use
Inherited booleanSettings - Indicates whether or not to inherit default settings. Defaults to false.
- issues_
url str - The URL to the Redmine project issue to link to this GitLab project.
- new_
issue_ strurl - The URL to use to create a new issue in the Redmine project linked to this GitLab project.
- project str
- ID of the project you want to activate integration on.
- project_
url str - The URL to the Redmine project to link to this GitLab project.
- use_
inherited_ boolsettings - Indicates whether or not to inherit default settings. Defaults to false.
- issues
Url String - The URL to the Redmine project issue to link to this GitLab project.
- new
Issue StringUrl - The URL to use to create a new issue in the Redmine project linked to this GitLab project.
- project String
- ID of the project you want to activate integration on.
- project
Url String - The URL to the Redmine project to link to this GitLab project.
- 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 ProjectIntegrationRedmine resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ProjectIntegrationRedmine Resource
Get an existing ProjectIntegrationRedmine 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?: ProjectIntegrationRedmineState, opts?: CustomResourceOptions): ProjectIntegrationRedmine
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
issues_url: Optional[str] = None,
new_issue_url: Optional[str] = None,
project: Optional[str] = None,
project_url: Optional[str] = None,
use_inherited_settings: Optional[bool] = None) -> ProjectIntegrationRedmine
func GetProjectIntegrationRedmine(ctx *Context, name string, id IDInput, state *ProjectIntegrationRedmineState, opts ...ResourceOption) (*ProjectIntegrationRedmine, error)
public static ProjectIntegrationRedmine Get(string name, Input<string> id, ProjectIntegrationRedmineState? state, CustomResourceOptions? opts = null)
public static ProjectIntegrationRedmine get(String name, Output<String> id, ProjectIntegrationRedmineState state, CustomResourceOptions options)
resources: _: type: gitlab:ProjectIntegrationRedmine get: 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.
- Issues
Url string - The URL to the Redmine project issue to link to this GitLab project.
- New
Issue stringUrl - The URL to use to create a new issue in the Redmine project linked to this GitLab project.
- Project string
- ID of the project you want to activate integration on.
- Project
Url string - The URL to the Redmine project to link to this GitLab project.
- Use
Inherited boolSettings - Indicates whether or not to inherit default settings. Defaults to false.
- Issues
Url string - The URL to the Redmine project issue to link to this GitLab project.
- New
Issue stringUrl - The URL to use to create a new issue in the Redmine project linked to this GitLab project.
- Project string
- ID of the project you want to activate integration on.
- Project
Url string - The URL to the Redmine project to link to this GitLab project.
- Use
Inherited boolSettings - Indicates whether or not to inherit default settings. Defaults to false.
- issues
Url String - The URL to the Redmine project issue to link to this GitLab project.
- new
Issue StringUrl - The URL to use to create a new issue in the Redmine project linked to this GitLab project.
- project String
- ID of the project you want to activate integration on.
- project
Url String - The URL to the Redmine project to link to this GitLab project.
- use
Inherited BooleanSettings - Indicates whether or not to inherit default settings. Defaults to false.
- issues
Url string - The URL to the Redmine project issue to link to this GitLab project.
- new
Issue stringUrl - The URL to use to create a new issue in the Redmine project linked to this GitLab project.
- project string
- ID of the project you want to activate integration on.
- project
Url string - The URL to the Redmine project to link to this GitLab project.
- use
Inherited booleanSettings - Indicates whether or not to inherit default settings. Defaults to false.
- issues_
url str - The URL to the Redmine project issue to link to this GitLab project.
- new_
issue_ strurl - The URL to use to create a new issue in the Redmine project linked to this GitLab project.
- project str
- ID of the project you want to activate integration on.
- project_
url str - The URL to the Redmine project to link to this GitLab project.
- use_
inherited_ boolsettings - Indicates whether or not to inherit default settings. Defaults to false.
- issues
Url String - The URL to the Redmine project issue to link to this GitLab project.
- new
Issue StringUrl - The URL to use to create a new issue in the Redmine project linked to this GitLab project.
- project String
- ID of the project you want to activate integration on.
- project
Url String - The URL to the Redmine project to link to this GitLab project.
- use
Inherited BooleanSettings - Indicates whether or not to inherit default settings. Defaults to false.
Import
Starting in Terraform v1.5.0, you can use an import block to import gitlab_project_integration_redmine
. For example:
terraform
import {
to = gitlab_project_integration_redmine.example
id = “see CLI command below for ID”
}
Importing using the CLI is supported with the following syntax:
$ pulumi import gitlab:index/projectIntegrationRedmine:ProjectIntegrationRedmine You can import a gitlab_project_integration_redmine state using `<resource> <project_id>`:
$ pulumi import gitlab:index/projectIntegrationRedmine:ProjectIntegrationRedmine redmine 1
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
gitlab
Terraform Provider.