published on Friday, Oct 2, 2026 by jdamata
published on Friday, Oct 2, 2026 by jdamata
Provides a Sonarqube Project Links resource. This can be used to manage Sonarqube project links.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sonarqube from "@pulumi/sonarqube";
const homepage = new sonarqube.ProjectLinks("homepage", {
projectKey: "my_project",
name: "Homepage",
url: "https://example.com",
});
import pulumi
import pulumi_sonarqube as sonarqube
homepage = sonarqube.ProjectLinks("homepage",
project_key="my_project",
name="Homepage",
url="https://example.com")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/sonarqube/sonarqube"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sonarqube.NewProjectLinks(ctx, "homepage", &sonarqube.ProjectLinksArgs{
ProjectKey: pulumi.String("my_project"),
Name: pulumi.String("Homepage"),
Url: pulumi.String("https://example.com"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sonarqube = Pulumi.Sonarqube;
return await Deployment.RunAsync(() =>
{
var homepage = new Sonarqube.ProjectLinks("homepage", new()
{
ProjectKey = "my_project",
Name = "Homepage",
Url = "https://example.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sonarqube.ProjectLinks;
import com.pulumi.sonarqube.ProjectLinksArgs;
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 homepage = new ProjectLinks("homepage", ProjectLinksArgs.builder()
.projectKey("my_project")
.name("Homepage")
.url("https://example.com")
.build());
}
}
resources:
homepage:
type: sonarqube:ProjectLinks
properties:
projectKey: my_project
name: Homepage
url: https://example.com
Example coming soon!
Create ProjectLinks Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectLinks(name: string, args: ProjectLinksArgs, opts?: CustomResourceOptions);@overload
def ProjectLinks(resource_name: str,
args: ProjectLinksArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectLinks(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_key: Optional[str] = None,
url: Optional[str] = None,
name: Optional[str] = None,
project_links_id: Optional[str] = None)func NewProjectLinks(ctx *Context, name string, args ProjectLinksArgs, opts ...ResourceOption) (*ProjectLinks, error)public ProjectLinks(string name, ProjectLinksArgs args, CustomResourceOptions? opts = null)
public ProjectLinks(String name, ProjectLinksArgs args)
public ProjectLinks(String name, ProjectLinksArgs args, CustomResourceOptions options)
type: sonarqube:ProjectLinks
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "sonarqube_project_links" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ProjectLinksArgs
- 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 ProjectLinksArgs
- 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 ProjectLinksArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectLinksArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectLinksArgs
- 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 projectLinksResource = new Sonarqube.ProjectLinks("projectLinksResource", new()
{
ProjectKey = "string",
Url = "string",
Name = "string",
ProjectLinksId = "string",
});
example, err := sonarqube.NewProjectLinks(ctx, "projectLinksResource", &sonarqube.ProjectLinksArgs{
ProjectKey: pulumi.String("string"),
Url: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectLinksId: pulumi.String("string"),
})
resource "sonarqube_project_links" "projectLinksResource" {
lifecycle {
create_before_destroy = true
}
project_key = "string"
url = "string"
name = "string"
project_links_id = "string"
}
var projectLinksResource = new ProjectLinks("projectLinksResource", ProjectLinksArgs.builder()
.projectKey("string")
.url("string")
.name("string")
.projectLinksId("string")
.build());
project_links_resource = sonarqube.ProjectLinks("projectLinksResource",
project_key="string",
url="string",
name="string",
project_links_id="string")
const projectLinksResource = new sonarqube.ProjectLinks("projectLinksResource", {
projectKey: "string",
url: "string",
name: "string",
projectLinksId: "string",
});
type: sonarqube:ProjectLinks
properties:
name: string
projectKey: string
projectLinksId: string
url: string
ProjectLinks 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 ProjectLinks resource accepts the following input properties:
- Project
Key string - The key of the project to associate the link with.
- Url string
- The URL of the link.
- Name string
- The name of the link.
- Project
Links stringId - The ID of this resource.
- Project
Key string - The key of the project to associate the link with.
- Url string
- The URL of the link.
- Name string
- The name of the link.
- Project
Links stringId - The ID of this resource.
- project_
key string - The key of the project to associate the link with.
- url string
- The URL of the link.
- name string
- The name of the link.
- project_
links_ stringid - The ID of this resource.
- project
Key String - The key of the project to associate the link with.
- url String
- The URL of the link.
- name String
- The name of the link.
- project
Links StringId - The ID of this resource.
- project
Key string - The key of the project to associate the link with.
- url string
- The URL of the link.
- name string
- The name of the link.
- project
Links stringId - The ID of this resource.
- project_
key str - The key of the project to associate the link with.
- url str
- The URL of the link.
- name str
- The name of the link.
- project_
links_ strid - The ID of this resource.
- project
Key String - The key of the project to associate the link with.
- url String
- The URL of the link.
- name String
- The name of the link.
- project
Links StringId - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectLinks resource produces the following output properties:
Look up Existing ProjectLinks Resource
Get an existing ProjectLinks 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?: ProjectLinksState, opts?: CustomResourceOptions): ProjectLinks@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
project_key: Optional[str] = None,
project_links_id: Optional[str] = None,
type: Optional[str] = None,
url: Optional[str] = None) -> ProjectLinksfunc GetProjectLinks(ctx *Context, name string, id IDInput, state *ProjectLinksState, opts ...ResourceOption) (*ProjectLinks, error)public static ProjectLinks Get(string name, Input<string> id, ProjectLinksState? state, CustomResourceOptions? opts = null)public static ProjectLinks get(String name, Output<String> id, ProjectLinksState state, CustomResourceOptions options)resources: _: type: sonarqube:ProjectLinks get: id: ${id}import {
to = sonarqube_project_links.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.
- Name string
- The name of the link.
- Project
Key string - The key of the project to associate the link with.
- Project
Links stringId - The ID of this resource.
- Type string
- The type of the link, assigned by SonarQube.
- Url string
- The URL of the link.
- Name string
- The name of the link.
- Project
Key string - The key of the project to associate the link with.
- Project
Links stringId - The ID of this resource.
- Type string
- The type of the link, assigned by SonarQube.
- Url string
- The URL of the link.
- name string
- The name of the link.
- project_
key string - The key of the project to associate the link with.
- project_
links_ stringid - The ID of this resource.
- type string
- The type of the link, assigned by SonarQube.
- url string
- The URL of the link.
- name String
- The name of the link.
- project
Key String - The key of the project to associate the link with.
- project
Links StringId - The ID of this resource.
- type String
- The type of the link, assigned by SonarQube.
- url String
- The URL of the link.
- name string
- The name of the link.
- project
Key string - The key of the project to associate the link with.
- project
Links stringId - The ID of this resource.
- type string
- The type of the link, assigned by SonarQube.
- url string
- The URL of the link.
- name str
- The name of the link.
- project_
key str - The key of the project to associate the link with.
- project_
links_ strid - The ID of this resource.
- type str
- The type of the link, assigned by SonarQube.
- url str
- The URL of the link.
- name String
- The name of the link.
- project
Key String - The key of the project to associate the link with.
- project
Links StringId - The ID of this resource.
- type String
- The type of the link, assigned by SonarQube.
- url String
- The URL of the link.
Package Details
- Repository
- sonarqube jdamata/terraform-provider-sonarqube
- License
- Notes
- This Pulumi package is based on the
sonarqubeTerraform Provider.
published on Friday, Oct 2, 2026 by jdamata