1. Packages
  2. Nexus Provider
  3. API Docs
  4. getSecuritySslTruststore
nexus 2.6.0 published on Thursday, May 8, 2025 by datadrivers

nexus.getSecuritySslTruststore

Start a Neo task
Explain and create a nexus.getSecuritySslTruststore resource
nexus logo
nexus 2.6.0 published on Thursday, May 8, 2025 by datadrivers

    Use this data source to retrieve ALL certificates in the Nexus truststore.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nexus from "@pulumi/nexus";
    
    const nexusTruststore = nexus.getSecuritySslTruststore({});
    export const truststore = nexusTruststore;
    
    import pulumi
    import pulumi_nexus as nexus
    
    nexus_truststore = nexus.get_security_ssl_truststore()
    pulumi.export("truststore", nexus_truststore)
    
    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 {
    		nexusTruststore, err := nexus.LookupSecuritySslTruststore(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("truststore", nexusTruststore)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nexus = Pulumi.Nexus;
    
    return await Deployment.RunAsync(() => 
    {
        var nexusTruststore = Nexus.GetSecuritySslTruststore.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["truststore"] = nexusTruststore,
        };
    });
    
    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 nexusTruststore = NexusFunctions.getSecuritySslTruststore();
    
            ctx.export("truststore", nexusTruststore.applyValue(getSecuritySslTruststoreResult -> getSecuritySslTruststoreResult));
        }
    }
    
    variables:
      nexusTruststore:
        fn::invoke:
          function: nexus:getSecuritySslTruststore
          arguments: {}
    outputs:
      # Output Nexus truststore certificates
      truststore: ${nexusTruststore}
    

    Using getSecuritySslTruststore

    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 getSecuritySslTruststore(opts?: InvokeOptions): Promise<GetSecuritySslTruststoreResult>
    function getSecuritySslTruststoreOutput(opts?: InvokeOptions): Output<GetSecuritySslTruststoreResult>
    def get_security_ssl_truststore(opts: Optional[InvokeOptions] = None) -> GetSecuritySslTruststoreResult
    def get_security_ssl_truststore_output(opts: Optional[InvokeOptions] = None) -> Output[GetSecuritySslTruststoreResult]
    func LookupSecuritySslTruststore(ctx *Context, opts ...InvokeOption) (*LookupSecuritySslTruststoreResult, error)
    func LookupSecuritySslTruststoreOutput(ctx *Context, opts ...InvokeOption) LookupSecuritySslTruststoreResultOutput

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

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

    getSecuritySslTruststore Result

    The following output properties are available:

    Certificates List<GetSecuritySslTruststoreCertificate>
    Id string
    Used to identify data source at nexus
    Certificates []GetSecuritySslTruststoreCertificate
    Id string
    Used to identify data source at nexus
    certificates List<GetSecuritySslTruststoreCertificate>
    id String
    Used to identify data source at nexus
    certificates GetSecuritySslTruststoreCertificate[]
    id string
    Used to identify data source at nexus
    certificates Sequence[GetSecuritySslTruststoreCertificate]
    id str
    Used to identify data source at nexus
    certificates List<Property Map>
    id String
    Used to identify data source at nexus

    Supporting Types

    GetSecuritySslTruststoreCertificate

    Package Details

    Repository
    nexus datadrivers/terraform-provider-nexus
    License
    Notes
    This Pulumi package is based on the nexus Terraform Provider.
    nexus logo
    nexus 2.6.0 published on Thursday, May 8, 2025 by datadrivers
      Meet Neo: Your AI Platform Teammate