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

nexus.getSecurityAnonymous

Explore with Pulumi AI

nexus logo
nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers

    Use this to get the anonymous configuration of the nexus repository manager.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nexus from "@pulumi/nexus";
    
    const nexus = nexus.getSecurityAnonymous({});
    export const nexusAnonymousEnabled = nexus.then(nexus => nexus.enabled);
    
    import pulumi
    import pulumi_nexus as nexus
    
    nexus = nexus.get_security_anonymous()
    pulumi.export("nexusAnonymousEnabled", nexus.enabled)
    
    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 {
    		nexus, err := nexus.LookupSecurityAnonymous(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("nexusAnonymousEnabled", nexus.Enabled)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nexus = Pulumi.Nexus;
    
    return await Deployment.RunAsync(() => 
    {
        var nexus = Nexus.GetSecurityAnonymous.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["nexusAnonymousEnabled"] = nexus.Apply(getSecurityAnonymousResult => getSecurityAnonymousResult.Enabled),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nexus.NexusFunctions;
    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 nexus = NexusFunctions.getSecurityAnonymous();
    
            ctx.export("nexusAnonymousEnabled", nexus.applyValue(getSecurityAnonymousResult -> getSecurityAnonymousResult.enabled()));
        }
    }
    
    variables:
      nexus:
        fn::invoke:
          function: nexus:getSecurityAnonymous
          arguments: {}
    outputs:
      nexusAnonymousEnabled: ${nexus.enabled}
    

    Using getSecurityAnonymous

    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 getSecurityAnonymous(opts?: InvokeOptions): Promise<GetSecurityAnonymousResult>
    function getSecurityAnonymousOutput(opts?: InvokeOptions): Output<GetSecurityAnonymousResult>
    def get_security_anonymous(opts: Optional[InvokeOptions] = None) -> GetSecurityAnonymousResult
    def get_security_anonymous_output(opts: Optional[InvokeOptions] = None) -> Output[GetSecurityAnonymousResult]
    func LookupSecurityAnonymous(ctx *Context, opts ...InvokeOption) (*LookupSecurityAnonymousResult, error)
    func LookupSecurityAnonymousOutput(ctx *Context, opts ...InvokeOption) LookupSecurityAnonymousResultOutput

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

    public static class GetSecurityAnonymous 
    {
        public static Task<GetSecurityAnonymousResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetSecurityAnonymousResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecurityAnonymousResult> getSecurityAnonymous(InvokeOptions options)
    public static Output<GetSecurityAnonymousResult> getSecurityAnonymous(InvokeOptions options)
    
    fn::invoke:
      function: nexus:index/getSecurityAnonymous:getSecurityAnonymous
      arguments:
        # arguments dictionary

    getSecurityAnonymous Result

    The following output properties are available:

    Enabled bool
    Activate the anonymous access to the repository manager
    Id string
    Used to identify data source at nexus
    RealmName string
    The name of the used realm
    UserId string
    The user id used by anonymous access
    Enabled bool
    Activate the anonymous access to the repository manager
    Id string
    Used to identify data source at nexus
    RealmName string
    The name of the used realm
    UserId string
    The user id used by anonymous access
    enabled Boolean
    Activate the anonymous access to the repository manager
    id String
    Used to identify data source at nexus
    realmName String
    The name of the used realm
    userId String
    The user id used by anonymous access
    enabled boolean
    Activate the anonymous access to the repository manager
    id string
    Used to identify data source at nexus
    realmName string
    The name of the used realm
    userId string
    The user id used by anonymous access
    enabled bool
    Activate the anonymous access to the repository manager
    id str
    Used to identify data source at nexus
    realm_name str
    The name of the used realm
    user_id str
    The user id used by anonymous access
    enabled Boolean
    Activate the anonymous access to the repository manager
    id String
    Used to identify data source at nexus
    realmName String
    The name of the used realm
    userId String
    The user id used by anonymous access

    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