gitlab.ProjectIntegrationYoutrack
Explore with Pulumi AI
The gitlab.ProjectIntegrationYoutrack
resource manages the lifecycle of a project integration with YouTrack.
Upstream API: GitLab REST API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const myProject = new gitlab.Project("my_project", {
name: "my_project",
description: "My project.",
visibilityLevel: "public",
});
const _default = new gitlab.ProjectIntegrationYoutrack("default", {
project: myProject.id,
issuesUrl: "https://my.youtrack.com/issue/:id",
projectUrl: "https://my.youtrack.com",
});
import pulumi
import pulumi_gitlab as gitlab
my_project = gitlab.Project("my_project",
name="my_project",
description="My project.",
visibility_level="public")
default = gitlab.ProjectIntegrationYoutrack("default",
project=my_project.id,
issues_url="https://my.youtrack.com/issue/:id",
project_url="https://my.youtrack.com")
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 {
myProject, err := gitlab.NewProject(ctx, "my_project", &gitlab.ProjectArgs{
Name: pulumi.String("my_project"),
Description: pulumi.String("My project."),
VisibilityLevel: pulumi.String("public"),
})
if err != nil {
return err
}
_, err = gitlab.NewProjectIntegrationYoutrack(ctx, "default", &gitlab.ProjectIntegrationYoutrackArgs{
Project: myProject.ID(),
IssuesUrl: pulumi.String("https://my.youtrack.com/issue/:id"),
ProjectUrl: pulumi.String("https://my.youtrack.com"),
})
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 myProject = new GitLab.Project("my_project", new()
{
Name = "my_project",
Description = "My project.",
VisibilityLevel = "public",
});
var @default = new GitLab.ProjectIntegrationYoutrack("default", new()
{
Project = myProject.Id,
IssuesUrl = "https://my.youtrack.com/issue/:id",
ProjectUrl = "https://my.youtrack.com",
});
});
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.ProjectIntegrationYoutrack;
import com.pulumi.gitlab.ProjectIntegrationYoutrackArgs;
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 myProject = new Project("myProject", ProjectArgs.builder()
.name("my_project")
.description("My project.")
.visibilityLevel("public")
.build());
var default_ = new ProjectIntegrationYoutrack("default", ProjectIntegrationYoutrackArgs.builder()
.project(myProject.id())
.issuesUrl("https://my.youtrack.com/issue/:id")
.projectUrl("https://my.youtrack.com")
.build());
}
}
resources:
myProject:
type: gitlab:Project
name: my_project
properties:
name: my_project
description: My project.
visibilityLevel: public
default:
type: gitlab:ProjectIntegrationYoutrack
properties:
project: ${myProject.id}
issuesUrl: https://my.youtrack.com/issue/:id
projectUrl: https://my.youtrack.com
Create ProjectIntegrationYoutrack Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectIntegrationYoutrack(name: string, args: ProjectIntegrationYoutrackArgs, opts?: CustomResourceOptions);
@overload
def ProjectIntegrationYoutrack(resource_name: str,
args: ProjectIntegrationYoutrackArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectIntegrationYoutrack(resource_name: str,
opts: Optional[ResourceOptions] = None,
issues_url: Optional[str] = None,
project: Optional[str] = None,
project_url: Optional[str] = None)
func NewProjectIntegrationYoutrack(ctx *Context, name string, args ProjectIntegrationYoutrackArgs, opts ...ResourceOption) (*ProjectIntegrationYoutrack, error)
public ProjectIntegrationYoutrack(string name, ProjectIntegrationYoutrackArgs args, CustomResourceOptions? opts = null)
public ProjectIntegrationYoutrack(String name, ProjectIntegrationYoutrackArgs args)
public ProjectIntegrationYoutrack(String name, ProjectIntegrationYoutrackArgs args, CustomResourceOptions options)
type: gitlab:ProjectIntegrationYoutrack
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 ProjectIntegrationYoutrackArgs
- 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 ProjectIntegrationYoutrackArgs
- 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 ProjectIntegrationYoutrackArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectIntegrationYoutrackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectIntegrationYoutrackArgs
- 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 projectIntegrationYoutrackResource = new GitLab.ProjectIntegrationYoutrack("projectIntegrationYoutrackResource", new()
{
IssuesUrl = "string",
Project = "string",
ProjectUrl = "string",
});
example, err := gitlab.NewProjectIntegrationYoutrack(ctx, "projectIntegrationYoutrackResource", &gitlab.ProjectIntegrationYoutrackArgs{
IssuesUrl: pulumi.String("string"),
Project: pulumi.String("string"),
ProjectUrl: pulumi.String("string"),
})
var projectIntegrationYoutrackResource = new ProjectIntegrationYoutrack("projectIntegrationYoutrackResource", ProjectIntegrationYoutrackArgs.builder()
.issuesUrl("string")
.project("string")
.projectUrl("string")
.build());
project_integration_youtrack_resource = gitlab.ProjectIntegrationYoutrack("projectIntegrationYoutrackResource",
issues_url="string",
project="string",
project_url="string")
const projectIntegrationYoutrackResource = new gitlab.ProjectIntegrationYoutrack("projectIntegrationYoutrackResource", {
issuesUrl: "string",
project: "string",
projectUrl: "string",
});
type: gitlab:ProjectIntegrationYoutrack
properties:
issuesUrl: string
project: string
projectUrl: string
ProjectIntegrationYoutrack 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 ProjectIntegrationYoutrack resource accepts the following input properties:
- Issues
Url string - URL to view an issue in the external issue tracker. Must contain :id.
- Project string
- ID or namespace of the project you want to activate integration on.
- Project
Url string - URL of the project in the external issue tracker.
- Issues
Url string - URL to view an issue in the external issue tracker. Must contain :id.
- Project string
- ID or namespace of the project you want to activate integration on.
- Project
Url string - URL of the project in the external issue tracker.
- issues
Url String - URL to view an issue in the external issue tracker. Must contain :id.
- project String
- ID or namespace of the project you want to activate integration on.
- project
Url String - URL of the project in the external issue tracker.
- issues
Url string - URL to view an issue in the external issue tracker. Must contain :id.
- project string
- ID or namespace of the project you want to activate integration on.
- project
Url string - URL of the project in the external issue tracker.
- issues_
url str - URL to view an issue in the external issue tracker. Must contain :id.
- project str
- ID or namespace of the project you want to activate integration on.
- project_
url str - URL of the project in the external issue tracker.
- issues
Url String - URL to view an issue in the external issue tracker. Must contain :id.
- project String
- ID or namespace of the project you want to activate integration on.
- project
Url String - URL of the project in the external issue tracker.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectIntegrationYoutrack 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 ProjectIntegrationYoutrack Resource
Get an existing ProjectIntegrationYoutrack 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?: ProjectIntegrationYoutrackState, opts?: CustomResourceOptions): ProjectIntegrationYoutrack
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
issues_url: Optional[str] = None,
project: Optional[str] = None,
project_url: Optional[str] = None) -> ProjectIntegrationYoutrack
func GetProjectIntegrationYoutrack(ctx *Context, name string, id IDInput, state *ProjectIntegrationYoutrackState, opts ...ResourceOption) (*ProjectIntegrationYoutrack, error)
public static ProjectIntegrationYoutrack Get(string name, Input<string> id, ProjectIntegrationYoutrackState? state, CustomResourceOptions? opts = null)
public static ProjectIntegrationYoutrack get(String name, Output<String> id, ProjectIntegrationYoutrackState state, CustomResourceOptions options)
resources: _: type: gitlab:ProjectIntegrationYoutrack 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 - URL to view an issue in the external issue tracker. Must contain :id.
- Project string
- ID or namespace of the project you want to activate integration on.
- Project
Url string - URL of the project in the external issue tracker.
- Issues
Url string - URL to view an issue in the external issue tracker. Must contain :id.
- Project string
- ID or namespace of the project you want to activate integration on.
- Project
Url string - URL of the project in the external issue tracker.
- issues
Url String - URL to view an issue in the external issue tracker. Must contain :id.
- project String
- ID or namespace of the project you want to activate integration on.
- project
Url String - URL of the project in the external issue tracker.
- issues
Url string - URL to view an issue in the external issue tracker. Must contain :id.
- project string
- ID or namespace of the project you want to activate integration on.
- project
Url string - URL of the project in the external issue tracker.
- issues_
url str - URL to view an issue in the external issue tracker. Must contain :id.
- project str
- ID or namespace of the project you want to activate integration on.
- project_
url str - URL of the project in the external issue tracker.
- issues
Url String - URL to view an issue in the external issue tracker. Must contain :id.
- project String
- ID or namespace of the project you want to activate integration on.
- project
Url String - URL of the project in the external issue tracker.
Import
Starting in Terraform v1.5.0, you can use an import block to import gitlab_project_integration_youtrack
. For example:
terraform
import {
to = gitlab_project_integration_youtrack.example
id = “see CLI command below for ID”
}
Importing using the CLI is supported with the following syntax:
You can import a gitlab_project_integration_youtrack state using the project ID, for example:
$ pulumi import gitlab:index/projectIntegrationYoutrack:ProjectIntegrationYoutrack default 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.