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

nexus.getPrivilegeRepositoryView

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 a repository view

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nexus from "@pulumi/nexus";
    
    const example = nexus.getPrivilegeRepositoryView({
        name: "privilege_name",
    });
    
    import pulumi
    import pulumi_nexus as nexus
    
    example = nexus.get_privilege_repository_view(name="privilege_name")
    
    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.LookupPrivilegeRepositoryView(ctx, &nexus.LookupPrivilegeRepositoryViewArgs{
    			Name: "privilege_name",
    		}, 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 example = Nexus.GetPrivilegeRepositoryView.Invoke(new()
        {
            Name = "privilege_name",
        });
    
    });
    
    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.GetPrivilegeRepositoryViewArgs;
    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 example = NexusFunctions.getPrivilegeRepositoryView(GetPrivilegeRepositoryViewArgs.builder()
                .name("privilege_name")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: nexus:getPrivilegeRepositoryView
          arguments:
            name: privilege_name
    

    Using getPrivilegeRepositoryView

    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 getPrivilegeRepositoryView(args: GetPrivilegeRepositoryViewArgs, opts?: InvokeOptions): Promise<GetPrivilegeRepositoryViewResult>
    function getPrivilegeRepositoryViewOutput(args: GetPrivilegeRepositoryViewOutputArgs, opts?: InvokeOptions): Output<GetPrivilegeRepositoryViewResult>
    def get_privilege_repository_view(name: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetPrivilegeRepositoryViewResult
    def get_privilege_repository_view_output(name: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetPrivilegeRepositoryViewResult]
    func LookupPrivilegeRepositoryView(ctx *Context, args *LookupPrivilegeRepositoryViewArgs, opts ...InvokeOption) (*LookupPrivilegeRepositoryViewResult, error)
    func LookupPrivilegeRepositoryViewOutput(ctx *Context, args *LookupPrivilegeRepositoryViewOutputArgs, opts ...InvokeOption) LookupPrivilegeRepositoryViewResultOutput

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

    public static class GetPrivilegeRepositoryView 
    {
        public static Task<GetPrivilegeRepositoryViewResult> InvokeAsync(GetPrivilegeRepositoryViewArgs args, InvokeOptions? opts = null)
        public static Output<GetPrivilegeRepositoryViewResult> Invoke(GetPrivilegeRepositoryViewInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPrivilegeRepositoryViewResult> getPrivilegeRepositoryView(GetPrivilegeRepositoryViewArgs args, InvokeOptions options)
    public static Output<GetPrivilegeRepositoryViewResult> getPrivilegeRepositoryView(GetPrivilegeRepositoryViewArgs args, InvokeOptions options)
    
    fn::invoke:
      function: nexus:index/getPrivilegeRepositoryView:getPrivilegeRepositoryView
      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

    getPrivilegeRepositoryView Result

    The following output properties are available:

    Actions List<string>
    A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
    Description string
    Description of the application privilege
    Format string
    The format of the referenced Repository
    Id string
    Used to identify data source at nexus
    Name string
    Name of the application privilege
    Readonly bool
    Whether it is readonly or not
    Repository string
    Name of the repository the privilege applies to
    Actions []string
    A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
    Description string
    Description of the application privilege
    Format string
    The format of the referenced Repository
    Id string
    Used to identify data source at nexus
    Name string
    Name of the application privilege
    Readonly bool
    Whether it is readonly or not
    Repository string
    Name of the repository the privilege applies to
    actions List<String>
    A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
    description String
    Description of the application privilege
    format String
    The format of the referenced Repository
    id String
    Used to identify data source at nexus
    name String
    Name of the application privilege
    readonly Boolean
    Whether it is readonly or not
    repository String
    Name of the repository the privilege applies to
    actions string[]
    A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
    description string
    Description of the application privilege
    format string
    The format of the referenced Repository
    id string
    Used to identify data source at nexus
    name string
    Name of the application privilege
    readonly boolean
    Whether it is readonly or not
    repository string
    Name of the repository the privilege applies to
    actions Sequence[str]
    A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
    description str
    Description of the application privilege
    format str
    The format of the referenced Repository
    id str
    Used to identify data source at nexus
    name str
    Name of the application privilege
    readonly bool
    Whether it is readonly or not
    repository str
    Name of the repository the privilege applies to
    actions List<String>
    A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
    description String
    Description of the application privilege
    format String
    The format of the referenced Repository
    id String
    Used to identify data source at nexus
    name String
    Name of the application privilege
    readonly Boolean
    Whether it is readonly or not
    repository String
    Name of the repository the privilege applies to

    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