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

nexus.SecurityLdapOrder

Explore with Pulumi AI

Use this resource to change the LDAP order.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as nexus from "@pulumi/nexus";

const server1 = new nexus.SecurityLdap("server1", {});
const server2 = new nexus.SecurityLdap("server2", {});
const system = new nexus.SecurityLdapOrder("system", {orders: [
    server1.name,
    server2.name,
]});
Copy
import pulumi
import pulumi_nexus as nexus

server1 = nexus.SecurityLdap("server1")
server2 = nexus.SecurityLdap("server2")
system = nexus.SecurityLdapOrder("system", orders=[
    server1.name,
    server2.name,
])
Copy
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 {
		server1, err := nexus.NewSecurityLdap(ctx, "server1", nil)
		if err != nil {
			return err
		}
		server2, err := nexus.NewSecurityLdap(ctx, "server2", nil)
		if err != nil {
			return err
		}
		_, err = nexus.NewSecurityLdapOrder(ctx, "system", &nexus.SecurityLdapOrderArgs{
			Orders: pulumi.StringArray{
				server1.Name,
				server2.Name,
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nexus = Pulumi.Nexus;

return await Deployment.RunAsync(() => 
{
    var server1 = new Nexus.SecurityLdap("server1");

    var server2 = new Nexus.SecurityLdap("server2");

    var system = new Nexus.SecurityLdapOrder("system", new()
    {
        Orders = new[]
        {
            server1.Name,
            server2.Name,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nexus.SecurityLdap;
import com.pulumi.nexus.SecurityLdapOrder;
import com.pulumi.nexus.SecurityLdapOrderArgs;
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) {
        var server1 = new SecurityLdap("server1");

        var server2 = new SecurityLdap("server2");

        var system = new SecurityLdapOrder("system", SecurityLdapOrderArgs.builder()
            .orders(            
                server1.name(),
                server2.name())
            .build());

    }
}
Copy
resources:
  server1:
    type: nexus:SecurityLdap
  server2:
    type: nexus:SecurityLdap
  system:
    type: nexus:SecurityLdapOrder
    properties:
      orders:
        - ${server1.name}
        - ${server2.name}
Copy

Create SecurityLdapOrder Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SecurityLdapOrder(name: string, args: SecurityLdapOrderArgs, opts?: CustomResourceOptions);
@overload
def SecurityLdapOrder(resource_name: str,
                      args: SecurityLdapOrderArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def SecurityLdapOrder(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      orders: Optional[Sequence[str]] = None)
func NewSecurityLdapOrder(ctx *Context, name string, args SecurityLdapOrderArgs, opts ...ResourceOption) (*SecurityLdapOrder, error)
public SecurityLdapOrder(string name, SecurityLdapOrderArgs args, CustomResourceOptions? opts = null)
public SecurityLdapOrder(String name, SecurityLdapOrderArgs args)
public SecurityLdapOrder(String name, SecurityLdapOrderArgs args, CustomResourceOptions options)
type: nexus:SecurityLdapOrder
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SecurityLdapOrderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SecurityLdapOrderArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SecurityLdapOrderArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SecurityLdapOrderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SecurityLdapOrderArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var securityLdapOrderResource = new Nexus.SecurityLdapOrder("securityLdapOrderResource", new()
{
    Orders = new[]
    {
        "string",
    },
});
Copy
example, err := nexus.NewSecurityLdapOrder(ctx, "securityLdapOrderResource", &nexus.SecurityLdapOrderArgs{
Orders: pulumi.StringArray{
pulumi.String("string"),
},
})
Copy
var securityLdapOrderResource = new SecurityLdapOrder("securityLdapOrderResource", SecurityLdapOrderArgs.builder()
    .orders("string")
    .build());
Copy
security_ldap_order_resource = nexus.SecurityLdapOrder("securityLdapOrderResource", orders=["string"])
Copy
const securityLdapOrderResource = new nexus.SecurityLdapOrder("securityLdapOrderResource", {orders: ["string"]});
Copy
type: nexus:SecurityLdapOrder
properties:
    orders:
        - string
Copy

SecurityLdapOrder Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The SecurityLdapOrder resource accepts the following input properties:

Orders This property is required. List<string>
Ordered list of LDAP server
Orders This property is required. []string
Ordered list of LDAP server
orders This property is required. List<String>
Ordered list of LDAP server
orders This property is required. string[]
Ordered list of LDAP server
orders This property is required. Sequence[str]
Ordered list of LDAP server
orders This property is required. List<String>
Ordered list of LDAP server

Outputs

All input properties are implicitly available as output properties. Additionally, the SecurityLdapOrder resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing SecurityLdapOrder Resource

Get an existing SecurityLdapOrder resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SecurityLdapOrderState, opts?: CustomResourceOptions): SecurityLdapOrder
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        orders: Optional[Sequence[str]] = None) -> SecurityLdapOrder
func GetSecurityLdapOrder(ctx *Context, name string, id IDInput, state *SecurityLdapOrderState, opts ...ResourceOption) (*SecurityLdapOrder, error)
public static SecurityLdapOrder Get(string name, Input<string> id, SecurityLdapOrderState? state, CustomResourceOptions? opts = null)
public static SecurityLdapOrder get(String name, Output<String> id, SecurityLdapOrderState state, CustomResourceOptions options)
resources:  _:    type: nexus:SecurityLdapOrder    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Orders List<string>
Ordered list of LDAP server
Orders []string
Ordered list of LDAP server
orders List<String>
Ordered list of LDAP server
orders string[]
Ordered list of LDAP server
orders Sequence[str]
Ordered list of LDAP server
orders List<String>
Ordered list of LDAP server

Package Details

Repository
nexus datadrivers/terraform-provider-nexus
License
Notes
This Pulumi package is based on the nexus Terraform Provider.