Full name: projects.locations.global.domains.domainJoinMachine
domains.domainJoinMachine API joins a Compute Engine VM to the domain
HTTP request
POST https://managedidentities.googleapis.com/v1beta1/{domain=projects/*/locations/global/domains/*}:domainJoinMachine
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
domain |
Required. The domain resource name using the form: projects/{projectId}/locations/global/domains/{domainName} Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "vmIdToken": string, "ouName": string } |
Fields | |
---|---|
vmIdToken |
Required. Full instance id token of compute engine VM to verify instance identity. More about this: https://cloud.google.com/compute/docs/instances/verifying-instance-identity#request_signature |
ouName |
Optional. OU name to which the VM needs to be domain joined. If the field is not provided, the VM is joined to the default OU which is created. The default OU for the domain join api is created as GCE Instances under the Cloud OU. Example - OU=GCE Instances,OU=Cloud,DC=ad,DC=test,DC=com If the field is provided, then the custom OU is searched for under GCE Instances OU. Example - if ouName=test_ou then the VM is domain joined to the following OU: OU=test_ou,OU=GCE Instances,OU=Cloud,DC=ad,DC=test,DC=com if present. If OU is not present under GCE Instances, then error is returned. |
Response body
If successful, the response body contains data with the following structure:
DomainJoinMachineResponse is the response message for domains.domainJoinMachine method
JSON representation |
---|
{ "domainJoinBlob": string } |
Fields | |
---|---|
domainJoinBlob |
The response is the offline domain join blob that is returned after running the djoin command. To correctly use the response of the API, please refer to the sample usage. |
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.