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 to get a specified content selector.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nexus from "@pulumi/nexus";
const example = nexus.getSecurityContentSelector({
name: "example",
});
import pulumi
import pulumi_nexus as nexus
example = nexus.get_security_content_selector(name="example")
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.LookupSecurityContentSelector(ctx, &nexus.LookupSecurityContentSelectorArgs{
Name: "example",
}, 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.GetSecurityContentSelector.Invoke(new()
{
Name = "example",
});
});
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.GetSecurityContentSelectorArgs;
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.getSecurityContentSelector(GetSecurityContentSelectorArgs.builder()
.name("example")
.build());
}
}
variables:
example:
fn::invoke:
function: nexus:getSecurityContentSelector
arguments:
name: example
Using getSecurityContentSelector
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 getSecurityContentSelector(args: GetSecurityContentSelectorArgs, opts?: InvokeOptions): Promise<GetSecurityContentSelectorResult>
function getSecurityContentSelectorOutput(args: GetSecurityContentSelectorOutputArgs, opts?: InvokeOptions): Output<GetSecurityContentSelectorResult>def get_security_content_selector(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecurityContentSelectorResult
def get_security_content_selector_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecurityContentSelectorResult]func LookupSecurityContentSelector(ctx *Context, args *LookupSecurityContentSelectorArgs, opts ...InvokeOption) (*LookupSecurityContentSelectorResult, error)
func LookupSecurityContentSelectorOutput(ctx *Context, args *LookupSecurityContentSelectorOutputArgs, opts ...InvokeOption) LookupSecurityContentSelectorResultOutput> Note: This function is named LookupSecurityContentSelector in the Go SDK.
public static class GetSecurityContentSelector
{
public static Task<GetSecurityContentSelectorResult> InvokeAsync(GetSecurityContentSelectorArgs args, InvokeOptions? opts = null)
public static Output<GetSecurityContentSelectorResult> Invoke(GetSecurityContentSelectorInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecurityContentSelectorResult> getSecurityContentSelector(GetSecurityContentSelectorArgs args, InvokeOptions options)
public static Output<GetSecurityContentSelectorResult> getSecurityContentSelector(GetSecurityContentSelectorArgs args, InvokeOptions options)
fn::invoke:
function: nexus:index/getSecurityContentSelector:getSecurityContentSelector
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Content selector name
- Name string
- Content selector name
- name String
- Content selector name
- name string
- Content selector name
- name str
- Content selector name
- name String
- Content selector name
getSecurityContentSelector Result
The following output properties are available:
- Description string
- A description of the content selector
- Expression string
- The content selector expression
- Id string
- Used to identify data source at nexus
- Name string
- Content selector name
- Description string
- A description of the content selector
- Expression string
- The content selector expression
- Id string
- Used to identify data source at nexus
- Name string
- Content selector name
- description String
- A description of the content selector
- expression String
- The content selector expression
- id String
- Used to identify data source at nexus
- name String
- Content selector name
- description string
- A description of the content selector
- expression string
- The content selector expression
- id string
- Used to identify data source at nexus
- name string
- Content selector name
- description str
- A description of the content selector
- expression str
- The content selector expression
- id str
- Used to identify data source at nexus
- name str
- Content selector name
- description String
- A description of the content selector
- expression String
- The content selector expression
- id String
- Used to identify data source at nexus
- name String
- Content selector name
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
