1. Packages
  2. Nexus Provider
  3. API Docs
  4. getPrivilegeApplication
nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers

nexus.getPrivilegeApplication

Explore with Pulumi AI

nexus logo
nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers

    Use this data source to get a privilege for an application

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nexus from "@pulumi/nexus";
    
    const priv = nexus.getPrivilegeApplication({
        name: "example_privilege",
    });
    
    import pulumi
    import pulumi_nexus as nexus
    
    priv = nexus.get_privilege_application(name="example_privilege")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/nexus/v2/nexus"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := nexus.LookupPrivilegeApplication(ctx, &nexus.LookupPrivilegeApplicationArgs{
    			Name: "example_privilege",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nexus = Pulumi.Nexus;
    
    return await Deployment.RunAsync(() => 
    {
        var priv = Nexus.GetPrivilegeApplication.Invoke(new()
        {
            Name = "example_privilege",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nexus.NexusFunctions;
    import com.pulumi.nexus.inputs.GetPrivilegeApplicationArgs;
    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 priv = NexusFunctions.getPrivilegeApplication(GetPrivilegeApplicationArgs.builder()
                .name("example_privilege")
                .build());
    
        }
    }
    
    variables:
      priv:
        fn::invoke:
          function: nexus:getPrivilegeApplication
          arguments:
            name: example_privilege
    

    Using getPrivilegeApplication

    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 getPrivilegeApplication(args: GetPrivilegeApplicationArgs, opts?: InvokeOptions): Promise<GetPrivilegeApplicationResult>
    function getPrivilegeApplicationOutput(args: GetPrivilegeApplicationOutputArgs, opts?: InvokeOptions): Output<GetPrivilegeApplicationResult>
    def get_privilege_application(name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetPrivilegeApplicationResult
    def get_privilege_application_output(name: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetPrivilegeApplicationResult]
    func LookupPrivilegeApplication(ctx *Context, args *LookupPrivilegeApplicationArgs, opts ...InvokeOption) (*LookupPrivilegeApplicationResult, error)
    func LookupPrivilegeApplicationOutput(ctx *Context, args *LookupPrivilegeApplicationOutputArgs, opts ...InvokeOption) LookupPrivilegeApplicationResultOutput

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

    public static class GetPrivilegeApplication 
    {
        public static Task<GetPrivilegeApplicationResult> InvokeAsync(GetPrivilegeApplicationArgs args, InvokeOptions? opts = null)
        public static Output<GetPrivilegeApplicationResult> Invoke(GetPrivilegeApplicationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPrivilegeApplicationResult> getPrivilegeApplication(GetPrivilegeApplicationArgs args, InvokeOptions options)
    public static Output<GetPrivilegeApplicationResult> getPrivilegeApplication(GetPrivilegeApplicationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: nexus:index/getPrivilegeApplication:getPrivilegeApplication
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the application privilege
    Name string
    Name of the application privilege
    name String
    Name of the application privilege
    name string
    Name of the application privilege
    name str
    Name of the application privilege
    name String
    Name of the application privilege

    getPrivilegeApplication Result

    The following output properties are available:

    Actions List<string>
    Description of the application privilege
    Description string
    Description of the application privilege
    Domain string
    Domain of the application privilege
    Id string
    Used to identify data source at nexus
    Name string
    Name of the application privilege
    Readonly bool
    Whether it is readonly or not
    Actions []string
    Description of the application privilege
    Description string
    Description of the application privilege
    Domain string
    Domain of the application privilege
    Id string
    Used to identify data source at nexus
    Name string
    Name of the application privilege
    Readonly bool
    Whether it is readonly or not
    actions List<String>
    Description of the application privilege
    description String
    Description of the application privilege
    domain String
    Domain of the application privilege
    id String
    Used to identify data source at nexus
    name String
    Name of the application privilege
    readonly Boolean
    Whether it is readonly or not
    actions string[]
    Description of the application privilege
    description string
    Description of the application privilege
    domain string
    Domain of the application privilege
    id string
    Used to identify data source at nexus
    name string
    Name of the application privilege
    readonly boolean
    Whether it is readonly or not
    actions Sequence[str]
    Description of the application privilege
    description str
    Description of the application privilege
    domain str
    Domain of the application privilege
    id str
    Used to identify data source at nexus
    name str
    Name of the application privilege
    readonly bool
    Whether it is readonly or not
    actions List<String>
    Description of the application privilege
    description String
    Description of the application privilege
    domain String
    Domain of the application privilege
    id String
    Used to identify data source at nexus
    name String
    Name of the application privilege
    readonly Boolean
    Whether it is readonly or not

    Package Details

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