擷取機構單位。
HTTP 要求
GET https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/orgunits/{orgUnitPath=**}
這個網址使用 gRPC 轉碼語法。
路徑參數
| 參數 | |
|---|---|
| customerId | 
 客戶 Google Workspace 帳戶的專屬 ID。身為帳戶管理員,您也可以使用  | 
| orgUnitPath | 
 機構單位的完整路徑 (不含開頭的  | 
要求主體
要求主體必須為空白。
回應主體
如果成功,回應主體會包含 OrgUnit 的執行例項。
授權範圍
需要下列其中一種 OAuth 範圍:
- https://apps-apis.google.com/a/feeds/policies/
- https://www.googleapis.com/auth/admin.directory.orgunit
- https://www.googleapis.com/auth/admin.directory.orgunit.readonly
詳情請參閱授權指南。