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

nexus.getPrivilegeRepositoryAdmin

Explore with Pulumi AI

Use this data source to get a privilege for a repository admin

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as nexus from "@pulumi/nexus";

const example = nexus.getPrivilegeRepositoryAdmin({
    name: "privilege_name",
});
Copy
import pulumi
import pulumi_nexus as nexus

example = nexus.get_privilege_repository_admin(name="privilege_name")
Copy
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.LookupPrivilegeRepositoryAdmin(ctx, &nexus.LookupPrivilegeRepositoryAdminArgs{
			Name: "privilege_name",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nexus = Pulumi.Nexus;

return await Deployment.RunAsync(() => 
{
    var example = Nexus.GetPrivilegeRepositoryAdmin.Invoke(new()
    {
        Name = "privilege_name",
    });

});
Copy
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.GetPrivilegeRepositoryAdminArgs;
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.getPrivilegeRepositoryAdmin(GetPrivilegeRepositoryAdminArgs.builder()
            .name("privilege_name")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: nexus:getPrivilegeRepositoryAdmin
      arguments:
        name: privilege_name
Copy

Using getPrivilegeRepositoryAdmin

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 getPrivilegeRepositoryAdmin(args: GetPrivilegeRepositoryAdminArgs, opts?: InvokeOptions): Promise<GetPrivilegeRepositoryAdminResult>
function getPrivilegeRepositoryAdminOutput(args: GetPrivilegeRepositoryAdminOutputArgs, opts?: InvokeOptions): Output<GetPrivilegeRepositoryAdminResult>
Copy
def get_privilege_repository_admin(name: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetPrivilegeRepositoryAdminResult
def get_privilege_repository_admin_output(name: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetPrivilegeRepositoryAdminResult]
Copy
func LookupPrivilegeRepositoryAdmin(ctx *Context, args *LookupPrivilegeRepositoryAdminArgs, opts ...InvokeOption) (*LookupPrivilegeRepositoryAdminResult, error)
func LookupPrivilegeRepositoryAdminOutput(ctx *Context, args *LookupPrivilegeRepositoryAdminOutputArgs, opts ...InvokeOption) LookupPrivilegeRepositoryAdminResultOutput
Copy

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

public static class GetPrivilegeRepositoryAdmin 
{
    public static Task<GetPrivilegeRepositoryAdminResult> InvokeAsync(GetPrivilegeRepositoryAdminArgs args, InvokeOptions? opts = null)
    public static Output<GetPrivilegeRepositoryAdminResult> Invoke(GetPrivilegeRepositoryAdminInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPrivilegeRepositoryAdminResult> getPrivilegeRepositoryAdmin(GetPrivilegeRepositoryAdminArgs args, InvokeOptions options)
public static Output<GetPrivilegeRepositoryAdminResult> getPrivilegeRepositoryAdmin(GetPrivilegeRepositoryAdminArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: nexus:index/getPrivilegeRepositoryAdmin:getPrivilegeRepositoryAdmin
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Name of the application privilege
Name This property is required. string
Name of the application privilege
name This property is required. String
Name of the application privilege
name This property is required. string
Name of the application privilege
name This property is required. str
Name of the application privilege
name This property is required. String
Name of the application privilege

getPrivilegeRepositoryAdmin 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.