Viewing docs for nexus 2.7.0
published on Sunday, Feb 22, 2026 by datadrivers
published on Sunday, Feb 22, 2026 by datadrivers
Viewing docs for nexus 2.7.0
published on Sunday, Feb 22, 2026 by datadrivers
published on Sunday, Feb 22, 2026 by datadrivers
Use this data source to get a privilege for a script
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nexus from "@pulumi/nexus";
const example = nexus.getPrivilegeScript({
name: "privilege-name",
});
import pulumi
import pulumi_nexus as nexus
example = nexus.get_privilege_script(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.LookupPrivilegeScript(ctx, &nexus.LookupPrivilegeScriptArgs{
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.GetPrivilegeScript.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.GetPrivilegeScriptArgs;
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.getPrivilegeScript(GetPrivilegeScriptArgs.builder()
.name("privilege-name")
.build());
}
}
variables:
example:
fn::invoke:
function: nexus:getPrivilegeScript
arguments:
name: privilege-name
Using getPrivilegeScript
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 getPrivilegeScript(args: GetPrivilegeScriptArgs, opts?: InvokeOptions): Promise<GetPrivilegeScriptResult>
function getPrivilegeScriptOutput(args: GetPrivilegeScriptOutputArgs, opts?: InvokeOptions): Output<GetPrivilegeScriptResult>def get_privilege_script(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPrivilegeScriptResult
def get_privilege_script_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPrivilegeScriptResult]func LookupPrivilegeScript(ctx *Context, args *LookupPrivilegeScriptArgs, opts ...InvokeOption) (*LookupPrivilegeScriptResult, error)
func LookupPrivilegeScriptOutput(ctx *Context, args *LookupPrivilegeScriptOutputArgs, opts ...InvokeOption) LookupPrivilegeScriptResultOutput> Note: This function is named LookupPrivilegeScript in the Go SDK.
public static class GetPrivilegeScript
{
public static Task<GetPrivilegeScriptResult> InvokeAsync(GetPrivilegeScriptArgs args, InvokeOptions? opts = null)
public static Output<GetPrivilegeScriptResult> Invoke(GetPrivilegeScriptInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPrivilegeScriptResult> getPrivilegeScript(GetPrivilegeScriptArgs args, InvokeOptions options)
public static Output<GetPrivilegeScriptResult> getPrivilegeScript(GetPrivilegeScriptArgs args, InvokeOptions options)
fn::invoke:
function: nexus:index/getPrivilegeScript:getPrivilegeScript
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Name of the script privilege
- Name string
- Name of the script privilege
- name String
- Name of the script privilege
- name string
- Name of the script privilege
- name str
- Name of the script privilege
- name String
- Name of the script privilege
getPrivilegeScript 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 script privilege
- Id string
- Used to identify data source at nexus
- Name string
- Name of the script privilege
- Readonly bool
- Whether it is readonly or not
- Script
Name string - The script 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 script privilege
- Id string
- Used to identify data source at nexus
- Name string
- Name of the script privilege
- Readonly bool
- Whether it is readonly or not
- Script
Name string - The script 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 script privilege
- id String
- Used to identify data source at nexus
- name String
- Name of the script privilege
- readonly Boolean
- Whether it is readonly or not
- script
Name String - The script 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 script privilege
- id string
- Used to identify data source at nexus
- name string
- Name of the script privilege
- readonly boolean
- Whether it is readonly or not
- script
Name string - The script 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 script privilege
- id str
- Used to identify data source at nexus
- name str
- Name of the script privilege
- readonly bool
- Whether it is readonly or not
- script_
name str - The script 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 script privilege
- id String
- Used to identify data source at nexus
- name String
- Name of the script privilege
- readonly Boolean
- Whether it is readonly or not
- script
Name String - The script the privilege applies to
Package Details
- Repository
- nexus datadrivers/terraform-provider-nexus
- License
- Notes
- This Pulumi package is based on the
nexusTerraform Provider.
Viewing docs for nexus 2.7.0
published on Sunday, Feb 22, 2026 by datadrivers
published on Sunday, Feb 22, 2026 by datadrivers
