---
title: "POST /v1/{+domain}:domainJoinMachine"
method: POST
path: "/v1/{+domain}:domainJoinMachine"
tags: ["projects"]
---

# POST /v1/{+domain}:domainJoinMachine

`POST /v1/{+domain}:domainJoinMachine`

DomainJoinMachine API joins a Compute Engine VM to the domain

## Path parameters

- `domain` string, required

## Request body

- DomainJoinMachineRequest — DomainJoinMachineRequest is the request message for DomainJoinMachine method
  - `vmIdToken` string — 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
  - `force` boolean — Optional. force if True, forces domain join even if the computer account already exists.
  - `ouName` string — Optional. OU name where the VM needs to be domain joined

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/managedidentities.md) · [All operations](https://skmtc.net/google/apis/managedidentities/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/managedidentities/versions/def2f0a79c2b/schema)
