AD Computers with Terraform»
Manage AD Computers in Microsoft Active Directory using the KopiCloud AD API Terraform Provider
Resources»
Register (Create) AD Computer»
Use the optional ou_path parameter to store the computer inside a specific OU, if not it will be stored in the Computers OU.
Create New Computer:
1 2 3 4 5 |
|
Return Created Computer:
1 2 3 4 |
|
Schema
Required:
ad_computer_name
(String) Computer Name
Optional:
description
(String) Computer Descriptionou_path
(String) OU Path (Distinguished Name)
Read-Only:
id
(String) The ID of this Resourceresult
(List of Objects) Single AD Computer (see below for nested schema)
Update AD Computer Description»
Update a Computer:
1 2 3 4 5 |
|
Return Updated Computer:
1 2 3 4 |
|
Schema
Required:
ad_computer_name
(String) Computer Name
Optional:
description
(String) Computer Descriptionou_path
(String) OU Path (Distinguished Name)
Read-Only:
id
(String) The ID of this Resourceresult
(List of Objects) Single AD Computer (see below for nested schema)
Data Sources»
List of All AD Computers»
List All Computers:
1 |
|
Returns All Computers:
1 2 3 4 |
|
Schema
Optional:
ou_path
(String) AD OU Path (Distinguished Name)
Read-Only:
id
(String) The ID of this Resourceresult
(List of Objects) List of AD Computers (see below for nested schema)
List of All AD Computers Inside an AD OU»
List All Computers Inside an OU:
1 2 3 |
|
Returns All Computers Inside an OU:
1 2 3 4 |
|
Schema
Optional:
ou_path
(String) AD OU Path (Distinguished Name)
Read-Only:
id
(String) The ID of this Resourceresult
(List of Objects) List of AD Computers (see below for nested schema)
Nested Schema for Result»
Read-Only:
computer_name
(String) AD Computer Namecreated
(String) Creation Datedescription
(String) Computer Descriptiondns_name
(String) DNS Nameoperating_system
(String) Operating Systempath
(String) AD OU Path (Distinguished Name)sid
(String) Computer SID
Notes»
Running this resource with terraform apply
will create or update an AD computer resource and running terraform destroy
will remove this machine from Active Directory.
Source Code»
Source code available here