1. Packages
  2. Sonarqube Provider
  3. API Docs
  4. getQualityprofile
sonarqube 0.16.14 published on Monday, Apr 14, 2025 by jdamata

sonarqube.getQualityprofile

Explore with Pulumi AI

sonarqube logo
sonarqube 0.16.14 published on Monday, Apr 14, 2025 by jdamata

    Use this data source to get a Sonarqube qualityprofile resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sonarqube from "@pulumi/sonarqube";
    
    const main = sonarqube.getQualityprofile({
        name: "example",
    });
    
    import pulumi
    import pulumi_sonarqube as sonarqube
    
    main = sonarqube.get_qualityprofile(name="example")
    
    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.LookupQualityprofile(ctx, &sonarqube.LookupQualityprofileArgs{
    			Name: "example",
    		}, nil)
    		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 main = Sonarqube.GetQualityprofile.Invoke(new()
        {
            Name = "example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sonarqube.SonarqubeFunctions;
    import com.pulumi.sonarqube.inputs.GetQualityprofileArgs;
    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) {
            final var main = SonarqubeFunctions.getQualityprofile(GetQualityprofileArgs.builder()
                .name("example")
                .build());
    
        }
    }
    
    variables:
      main:
        fn::invoke:
          function: sonarqube:getQualityprofile
          arguments:
            name: example
    

    Using getQualityprofile

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getQualityprofile(args: GetQualityprofileArgs, opts?: InvokeOptions): Promise<GetQualityprofileResult>
    function getQualityprofileOutput(args: GetQualityprofileOutputArgs, opts?: InvokeOptions): Output<GetQualityprofileResult>
    def get_qualityprofile(id: Optional[str] = None,
                           name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetQualityprofileResult
    def get_qualityprofile_output(id: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetQualityprofileResult]
    func LookupQualityprofile(ctx *Context, args *LookupQualityprofileArgs, opts ...InvokeOption) (*LookupQualityprofileResult, error)
    func LookupQualityprofileOutput(ctx *Context, args *LookupQualityprofileOutputArgs, opts ...InvokeOption) LookupQualityprofileResultOutput

    > Note: This function is named LookupQualityprofile in the Go SDK.

    public static class GetQualityprofile 
    {
        public static Task<GetQualityprofileResult> InvokeAsync(GetQualityprofileArgs args, InvokeOptions? opts = null)
        public static Output<GetQualityprofileResult> Invoke(GetQualityprofileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetQualityprofileResult> getQualityprofile(GetQualityprofileArgs args, InvokeOptions options)
    public static Output<GetQualityprofileResult> getQualityprofile(GetQualityprofileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: sonarqube:index/getQualityprofile:getQualityprofile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Quality Profile
    Id string
    The ID of this resource.
    Name string
    The name of the Quality Profile
    Id string
    The ID of this resource.
    name String
    The name of the Quality Profile
    id String
    The ID of this resource.
    name string
    The name of the Quality Profile
    id string
    The ID of this resource.
    name str
    The name of the Quality Profile
    id str
    The ID of this resource.
    name String
    The name of the Quality Profile
    id String
    The ID of this resource.

    getQualityprofile Result

    The following output properties are available:

    Id string
    The ID of this resource.
    IsDefault bool
    Quality Profile default
    Key string
    The key of the Quality Profile
    Language string
    Quality Profile language
    Name string
    The name of the Quality Profile
    Id string
    The ID of this resource.
    IsDefault bool
    Quality Profile default
    Key string
    The key of the Quality Profile
    Language string
    Quality Profile language
    Name string
    The name of the Quality Profile
    id String
    The ID of this resource.
    isDefault Boolean
    Quality Profile default
    key String
    The key of the Quality Profile
    language String
    Quality Profile language
    name String
    The name of the Quality Profile
    id string
    The ID of this resource.
    isDefault boolean
    Quality Profile default
    key string
    The key of the Quality Profile
    language string
    Quality Profile language
    name string
    The name of the Quality Profile
    id str
    The ID of this resource.
    is_default bool
    Quality Profile default
    key str
    The key of the Quality Profile
    language str
    Quality Profile language
    name str
    The name of the Quality Profile
    id String
    The ID of this resource.
    isDefault Boolean
    Quality Profile default
    key String
    The key of the Quality Profile
    language String
    Quality Profile language
    name String
    The name of the Quality Profile

    Package Details

    Repository
    sonarqube jdamata/terraform-provider-sonarqube
    License
    Notes
    This Pulumi package is based on the sonarqube Terraform Provider.
    sonarqube logo
    sonarqube 0.16.14 published on Monday, Apr 14, 2025 by jdamata