Package com.pulumi.gcp.activedirectory
-
Class Summary Class Description Domain Creates a Microsoft AD domain To get more information about Domain, see: * [API documentation](https://cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.domains) * How-to Guides * [Managed Microsoft Active Directory Quickstart](https://cloud.google.com/managed-microsoft-ad/docs/quickstarts) ## Example Usage ### Active Directory Domain Basic ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.activedirectory.Domain; import com.pulumi.gcp.activedirectory.DomainArgs; 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 ad_domain = new Domain("ad-domain", DomainArgs.builder() .domainName("tfgen.org.com") .locations("us-central1") .reservedIpRange("192.168.255.0/24") .build()); } } ``` ## Import Domain can be imported using any of these accepted formats ```sh $ pulumi import gcp:activedirectory/domain:Domain default {{name}} ```DomainArgs DomainArgs.Builder DomainTrust ## Example Usage ### Active Directory Domain Trust Basic ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.activedirectory.DomainTrust; import com.pulumi.gcp.activedirectory.DomainTrustArgs; 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 ad_domain_trust = new DomainTrust("ad-domain-trust", DomainTrustArgs.builder() .domain("test-managed-ad.com") .targetDnsIpAddresses("10.1.0.100") .targetDomainName("example-gcp.com") .trustDirection("OUTBOUND") .trustHandshakeSecret("Testing1!") .trustType("FOREST") .build()); } } ``` ## Import DomainTrust can be imported using any of these accepted formats ```sh $ pulumi import gcp:activedirectory/domainTrust:DomainTrust default projects/{{project}}/locations/global/domains/{{domain}}/{{target_domain_name}} ``` ```sh $ pulumi import gcp:activedirectory/domainTrust:DomainTrust default {{project}}/{{domain}}/{{target_domain_name}} ``` ```sh $ pulumi import gcp:activedirectory/domainTrust:DomainTrust default {{domain}}/{{target_domain_name}} ```DomainTrustArgs DomainTrustArgs.Builder Peering ## Example Usage ## Import This resource does not support import.PeeringArgs PeeringArgs.Builder