Viewing docs for nexus 2.7.1
published on Thursday, Mar 19, 2026 by datadrivers
published on Thursday, Mar 19, 2026 by datadrivers
Viewing docs for nexus 2.7.1
published on Thursday, Mar 19, 2026 by datadrivers
published on Thursday, Mar 19, 2026 by datadrivers
Use this data source to get a privilege for a content selector
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nexus from "@pulumi/nexus";
const example = nexus.getPrivilegeRepositoryContentSelector({
name: "privilege_name",
});
import pulumi
import pulumi_nexus as nexus
example = nexus.get_privilege_repository_content_selector(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.LookupPrivilegeRepositoryContentSelector(ctx, &nexus.LookupPrivilegeRepositoryContentSelectorArgs{
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.GetPrivilegeRepositoryContentSelector.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.GetPrivilegeRepositoryContentSelectorArgs;
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.getPrivilegeRepositoryContentSelector(GetPrivilegeRepositoryContentSelectorArgs.builder()
.name("privilege_name")
.build());
}
}
variables:
example:
fn::invoke:
function: nexus:getPrivilegeRepositoryContentSelector
arguments:
name: privilege_name
Using getPrivilegeRepositoryContentSelector
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 getPrivilegeRepositoryContentSelector(args: GetPrivilegeRepositoryContentSelectorArgs, opts?: InvokeOptions): Promise<GetPrivilegeRepositoryContentSelectorResult>
function getPrivilegeRepositoryContentSelectorOutput(args: GetPrivilegeRepositoryContentSelectorOutputArgs, opts?: InvokeOptions): Output<GetPrivilegeRepositoryContentSelectorResult>def get_privilege_repository_content_selector(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPrivilegeRepositoryContentSelectorResult
def get_privilege_repository_content_selector_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPrivilegeRepositoryContentSelectorResult]func LookupPrivilegeRepositoryContentSelector(ctx *Context, args *LookupPrivilegeRepositoryContentSelectorArgs, opts ...InvokeOption) (*LookupPrivilegeRepositoryContentSelectorResult, error)
func LookupPrivilegeRepositoryContentSelectorOutput(ctx *Context, args *LookupPrivilegeRepositoryContentSelectorOutputArgs, opts ...InvokeOption) LookupPrivilegeRepositoryContentSelectorResultOutput> Note: This function is named LookupPrivilegeRepositoryContentSelector in the Go SDK.
public static class GetPrivilegeRepositoryContentSelector
{
public static Task<GetPrivilegeRepositoryContentSelectorResult> InvokeAsync(GetPrivilegeRepositoryContentSelectorArgs args, InvokeOptions? opts = null)
public static Output<GetPrivilegeRepositoryContentSelectorResult> Invoke(GetPrivilegeRepositoryContentSelectorInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPrivilegeRepositoryContentSelectorResult> getPrivilegeRepositoryContentSelector(GetPrivilegeRepositoryContentSelectorArgs args, InvokeOptions options)
public static Output<GetPrivilegeRepositoryContentSelectorResult> getPrivilegeRepositoryContentSelector(GetPrivilegeRepositoryContentSelectorArgs args, InvokeOptions options)
fn::invoke:
function: nexus:index/getPrivilegeRepositoryContentSelector:getPrivilegeRepositoryContentSelector
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Name of the content selector privilege
- Name string
- Name of the content selector privilege
- name String
- Name of the content selector privilege
- name string
- Name of the content selector privilege
- name str
- Name of the content selector privilege
- name String
- Name of the content selector privilege
getPrivilegeRepositoryContentSelector 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
- Content
Selector string - The content selector
- Description string
- Description of the content selector privilege
- Format string
- The format of the referenced Repository
- Id string
- Used to identify data source at nexus
- Name string
- Name of the content selector 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
- Content
Selector string - The content selector
- Description string
- Description of the content selector privilege
- Format string
- The format of the referenced Repository
- Id string
- Used to identify data source at nexus
- Name string
- Name of the content selector 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
- content
Selector String - The content selector
- description String
- Description of the content selector privilege
- format String
- The format of the referenced Repository
- id String
- Used to identify data source at nexus
- name String
- Name of the content selector 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
- content
Selector string - The content selector
- description string
- Description of the content selector privilege
- format string
- The format of the referenced Repository
- id string
- Used to identify data source at nexus
- name string
- Name of the content selector 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
- content_
selector str - The content selector
- description str
- Description of the content selector privilege
- format str
- The format of the referenced Repository
- id str
- Used to identify data source at nexus
- name str
- Name of the content selector 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
- content
Selector String - The content selector
- description String
- Description of the content selector privilege
- format String
- The format of the referenced Repository
- id String
- Used to identify data source at nexus
- name String
- Name of the content selector 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
nexusTerraform Provider.
Viewing docs for nexus 2.7.1
published on Thursday, Mar 19, 2026 by datadrivers
published on Thursday, Mar 19, 2026 by datadrivers
