1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectCredentialstoreDomaincontroller
fortimanager 1.14.0 published on Tuesday, Apr 15, 2025 by fortinetdev

fortimanager.ObjectCredentialstoreDomaincontroller

Explore with Pulumi AI

Define known domain controller servers.

Example Usage

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

const trname = new fortimanager.ObjectCredentialstoreDomaincontroller("trname", {
    domainName: "tu.com",
    hostname: "sti",
    ip: "1.0.0.22",
    ip6: "::",
    passwords: ["fdsafda"],
    port: 20,
    scopetype: "inherit",
    serverName: "sewe1221",
    username: "user",
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname = fortimanager.ObjectCredentialstoreDomaincontroller("trname",
    domain_name="tu.com",
    hostname="sti",
    ip="1.0.0.22",
    ip6="::",
    passwords=["fdsafda"],
    port=20,
    scopetype="inherit",
    server_name="sewe1221",
    username="user")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fortimanager.NewObjectCredentialstoreDomaincontroller(ctx, "trname", &fortimanager.ObjectCredentialstoreDomaincontrollerArgs{
			DomainName: pulumi.String("tu.com"),
			Hostname:   pulumi.String("sti"),
			Ip:         pulumi.String("1.0.0.22"),
			Ip6:        pulumi.String("::"),
			Passwords: pulumi.StringArray{
				pulumi.String("fdsafda"),
			},
			Port:       pulumi.Float64(20),
			Scopetype:  pulumi.String("inherit"),
			ServerName: pulumi.String("sewe1221"),
			Username:   pulumi.String("user"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trname = new Fortimanager.ObjectCredentialstoreDomaincontroller("trname", new()
    {
        DomainName = "tu.com",
        Hostname = "sti",
        Ip = "1.0.0.22",
        Ip6 = "::",
        Passwords = new[]
        {
            "fdsafda",
        },
        Port = 20,
        Scopetype = "inherit",
        ServerName = "sewe1221",
        Username = "user",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectCredentialstoreDomaincontroller;
import com.pulumi.fortimanager.ObjectCredentialstoreDomaincontrollerArgs;
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 trname = new ObjectCredentialstoreDomaincontroller("trname", ObjectCredentialstoreDomaincontrollerArgs.builder()
            .domainName("tu.com")
            .hostname("sti")
            .ip("1.0.0.22")
            .ip6("::")
            .passwords("fdsafda")
            .port(20)
            .scopetype("inherit")
            .serverName("sewe1221")
            .username("user")
            .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:ObjectCredentialstoreDomaincontroller
    properties:
      domainName: tu.com
      hostname: sti
      ip: 1.0.0.22
      ip6: '::'
      passwords:
        - fdsafda
      port: 20
      scopetype: inherit
      serverName: sewe1221
      username: user
Copy

Create ObjectCredentialstoreDomaincontroller Resource

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

Constructor syntax

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

@overload
def ObjectCredentialstoreDomaincontroller(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          adom: Optional[str] = None,
                                          domain_name: Optional[str] = None,
                                          hostname: Optional[str] = None,
                                          ip: Optional[str] = None,
                                          ip6: Optional[str] = None,
                                          object_credentialstore_domaincontroller_id: Optional[str] = None,
                                          passwords: Optional[Sequence[str]] = None,
                                          port: Optional[float] = None,
                                          scopetype: Optional[str] = None,
                                          server_name: Optional[str] = None,
                                          username: Optional[str] = None)
func NewObjectCredentialstoreDomaincontroller(ctx *Context, name string, args *ObjectCredentialstoreDomaincontrollerArgs, opts ...ResourceOption) (*ObjectCredentialstoreDomaincontroller, error)
public ObjectCredentialstoreDomaincontroller(string name, ObjectCredentialstoreDomaincontrollerArgs? args = null, CustomResourceOptions? opts = null)
public ObjectCredentialstoreDomaincontroller(String name, ObjectCredentialstoreDomaincontrollerArgs args)
public ObjectCredentialstoreDomaincontroller(String name, ObjectCredentialstoreDomaincontrollerArgs args, CustomResourceOptions options)
type: fortimanager:ObjectCredentialstoreDomaincontroller
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 ObjectCredentialstoreDomaincontrollerArgs
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 ObjectCredentialstoreDomaincontrollerArgs
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 ObjectCredentialstoreDomaincontrollerArgs
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 ObjectCredentialstoreDomaincontrollerArgs
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. ObjectCredentialstoreDomaincontrollerArgs
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 objectCredentialstoreDomaincontrollerResource = new Fortimanager.ObjectCredentialstoreDomaincontroller("objectCredentialstoreDomaincontrollerResource", new()
{
    Adom = "string",
    DomainName = "string",
    Hostname = "string",
    Ip = "string",
    Ip6 = "string",
    ObjectCredentialstoreDomaincontrollerId = "string",
    Passwords = new[]
    {
        "string",
    },
    Port = 0,
    Scopetype = "string",
    ServerName = "string",
    Username = "string",
});
Copy
example, err := fortimanager.NewObjectCredentialstoreDomaincontroller(ctx, "objectCredentialstoreDomaincontrollerResource", &fortimanager.ObjectCredentialstoreDomaincontrollerArgs{
Adom: pulumi.String("string"),
DomainName: pulumi.String("string"),
Hostname: pulumi.String("string"),
Ip: pulumi.String("string"),
Ip6: pulumi.String("string"),
ObjectCredentialstoreDomaincontrollerId: pulumi.String("string"),
Passwords: pulumi.StringArray{
pulumi.String("string"),
},
Port: pulumi.Float64(0),
Scopetype: pulumi.String("string"),
ServerName: pulumi.String("string"),
Username: pulumi.String("string"),
})
Copy
var objectCredentialstoreDomaincontrollerResource = new ObjectCredentialstoreDomaincontroller("objectCredentialstoreDomaincontrollerResource", ObjectCredentialstoreDomaincontrollerArgs.builder()
    .adom("string")
    .domainName("string")
    .hostname("string")
    .ip("string")
    .ip6("string")
    .objectCredentialstoreDomaincontrollerId("string")
    .passwords("string")
    .port(0)
    .scopetype("string")
    .serverName("string")
    .username("string")
    .build());
Copy
object_credentialstore_domaincontroller_resource = fortimanager.ObjectCredentialstoreDomaincontroller("objectCredentialstoreDomaincontrollerResource",
    adom="string",
    domain_name="string",
    hostname="string",
    ip="string",
    ip6="string",
    object_credentialstore_domaincontroller_id="string",
    passwords=["string"],
    port=0,
    scopetype="string",
    server_name="string",
    username="string")
Copy
const objectCredentialstoreDomaincontrollerResource = new fortimanager.ObjectCredentialstoreDomaincontroller("objectCredentialstoreDomaincontrollerResource", {
    adom: "string",
    domainName: "string",
    hostname: "string",
    ip: "string",
    ip6: "string",
    objectCredentialstoreDomaincontrollerId: "string",
    passwords: ["string"],
    port: 0,
    scopetype: "string",
    serverName: "string",
    username: "string",
});
Copy
type: fortimanager:ObjectCredentialstoreDomaincontroller
properties:
    adom: string
    domainName: string
    hostname: string
    ip: string
    ip6: string
    objectCredentialstoreDomaincontrollerId: string
    passwords:
        - string
    port: 0
    scopetype: string
    serverName: string
    username: string
Copy

ObjectCredentialstoreDomaincontroller 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 ObjectCredentialstoreDomaincontroller resource accepts the following input properties:

Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
DomainName string
Fully qualified domain name (FQDN).
Hostname string
Hostname of the server to connect to.
Ip string
IPv4 server address.
Ip6 string
IPv6 server address.
ObjectCredentialstoreDomaincontrollerId string
an identifier for the resource with format {{server_name}}.
Passwords List<string>
Password for specified username.
Port double
Port number of service. Port number 0 indicates automatic discovery.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
ServerName string
Name of the domain controller.
Username string
User name to sign in with. Must have proper permissions for service.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
DomainName string
Fully qualified domain name (FQDN).
Hostname string
Hostname of the server to connect to.
Ip string
IPv4 server address.
Ip6 string
IPv6 server address.
ObjectCredentialstoreDomaincontrollerId string
an identifier for the resource with format {{server_name}}.
Passwords []string
Password for specified username.
Port float64
Port number of service. Port number 0 indicates automatic discovery.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
ServerName string
Name of the domain controller.
Username string
User name to sign in with. Must have proper permissions for service.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
domainName String
Fully qualified domain name (FQDN).
hostname String
Hostname of the server to connect to.
ip String
IPv4 server address.
ip6 String
IPv6 server address.
objectCredentialstoreDomaincontrollerId String
an identifier for the resource with format {{server_name}}.
passwords List<String>
Password for specified username.
port Double
Port number of service. Port number 0 indicates automatic discovery.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
serverName String
Name of the domain controller.
username String
User name to sign in with. Must have proper permissions for service.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
domainName string
Fully qualified domain name (FQDN).
hostname string
Hostname of the server to connect to.
ip string
IPv4 server address.
ip6 string
IPv6 server address.
objectCredentialstoreDomaincontrollerId string
an identifier for the resource with format {{server_name}}.
passwords string[]
Password for specified username.
port number
Port number of service. Port number 0 indicates automatic discovery.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
serverName string
Name of the domain controller.
username string
User name to sign in with. Must have proper permissions for service.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
domain_name str
Fully qualified domain name (FQDN).
hostname str
Hostname of the server to connect to.
ip str
IPv4 server address.
ip6 str
IPv6 server address.
object_credentialstore_domaincontroller_id str
an identifier for the resource with format {{server_name}}.
passwords Sequence[str]
Password for specified username.
port float
Port number of service. Port number 0 indicates automatic discovery.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
server_name str
Name of the domain controller.
username str
User name to sign in with. Must have proper permissions for service.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
domainName String
Fully qualified domain name (FQDN).
hostname String
Hostname of the server to connect to.
ip String
IPv4 server address.
ip6 String
IPv6 server address.
objectCredentialstoreDomaincontrollerId String
an identifier for the resource with format {{server_name}}.
passwords List<String>
Password for specified username.
port Number
Port number of service. Port number 0 indicates automatic discovery.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
serverName String
Name of the domain controller.
username String
User name to sign in with. Must have proper permissions for service.

Outputs

All input properties are implicitly available as output properties. Additionally, the ObjectCredentialstoreDomaincontroller 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 ObjectCredentialstoreDomaincontroller Resource

Get an existing ObjectCredentialstoreDomaincontroller 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?: ObjectCredentialstoreDomaincontrollerState, opts?: CustomResourceOptions): ObjectCredentialstoreDomaincontroller
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        domain_name: Optional[str] = None,
        hostname: Optional[str] = None,
        ip: Optional[str] = None,
        ip6: Optional[str] = None,
        object_credentialstore_domaincontroller_id: Optional[str] = None,
        passwords: Optional[Sequence[str]] = None,
        port: Optional[float] = None,
        scopetype: Optional[str] = None,
        server_name: Optional[str] = None,
        username: Optional[str] = None) -> ObjectCredentialstoreDomaincontroller
func GetObjectCredentialstoreDomaincontroller(ctx *Context, name string, id IDInput, state *ObjectCredentialstoreDomaincontrollerState, opts ...ResourceOption) (*ObjectCredentialstoreDomaincontroller, error)
public static ObjectCredentialstoreDomaincontroller Get(string name, Input<string> id, ObjectCredentialstoreDomaincontrollerState? state, CustomResourceOptions? opts = null)
public static ObjectCredentialstoreDomaincontroller get(String name, Output<String> id, ObjectCredentialstoreDomaincontrollerState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectCredentialstoreDomaincontroller    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:
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
DomainName string
Fully qualified domain name (FQDN).
Hostname string
Hostname of the server to connect to.
Ip string
IPv4 server address.
Ip6 string
IPv6 server address.
ObjectCredentialstoreDomaincontrollerId string
an identifier for the resource with format {{server_name}}.
Passwords List<string>
Password for specified username.
Port double
Port number of service. Port number 0 indicates automatic discovery.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
ServerName string
Name of the domain controller.
Username string
User name to sign in with. Must have proper permissions for service.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
DomainName string
Fully qualified domain name (FQDN).
Hostname string
Hostname of the server to connect to.
Ip string
IPv4 server address.
Ip6 string
IPv6 server address.
ObjectCredentialstoreDomaincontrollerId string
an identifier for the resource with format {{server_name}}.
Passwords []string
Password for specified username.
Port float64
Port number of service. Port number 0 indicates automatic discovery.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
ServerName string
Name of the domain controller.
Username string
User name to sign in with. Must have proper permissions for service.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
domainName String
Fully qualified domain name (FQDN).
hostname String
Hostname of the server to connect to.
ip String
IPv4 server address.
ip6 String
IPv6 server address.
objectCredentialstoreDomaincontrollerId String
an identifier for the resource with format {{server_name}}.
passwords List<String>
Password for specified username.
port Double
Port number of service. Port number 0 indicates automatic discovery.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
serverName String
Name of the domain controller.
username String
User name to sign in with. Must have proper permissions for service.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
domainName string
Fully qualified domain name (FQDN).
hostname string
Hostname of the server to connect to.
ip string
IPv4 server address.
ip6 string
IPv6 server address.
objectCredentialstoreDomaincontrollerId string
an identifier for the resource with format {{server_name}}.
passwords string[]
Password for specified username.
port number
Port number of service. Port number 0 indicates automatic discovery.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
serverName string
Name of the domain controller.
username string
User name to sign in with. Must have proper permissions for service.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
domain_name str
Fully qualified domain name (FQDN).
hostname str
Hostname of the server to connect to.
ip str
IPv4 server address.
ip6 str
IPv6 server address.
object_credentialstore_domaincontroller_id str
an identifier for the resource with format {{server_name}}.
passwords Sequence[str]
Password for specified username.
port float
Port number of service. Port number 0 indicates automatic discovery.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
server_name str
Name of the domain controller.
username str
User name to sign in with. Must have proper permissions for service.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
domainName String
Fully qualified domain name (FQDN).
hostname String
Hostname of the server to connect to.
ip String
IPv4 server address.
ip6 String
IPv6 server address.
objectCredentialstoreDomaincontrollerId String
an identifier for the resource with format {{server_name}}.
passwords List<String>
Password for specified username.
port Number
Port number of service. Port number 0 indicates automatic discovery.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
serverName String
Name of the domain controller.
username String
User name to sign in with. Must have proper permissions for service.

Import

ObjectCredentialStore DomainController can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectCredentialstoreDomaincontroller:ObjectCredentialstoreDomaincontroller labelname {{server_name}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

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