Method: orgunits.list
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি অ্যাকাউন্টের জন্য সমস্ত সাংগঠনিক ইউনিটের একটি তালিকা পুনরুদ্ধার করে।
HTTP অনুরোধ
GET https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/orgunits
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
customerId | string গ্রাহকের Google Workspace অ্যাকাউন্টের জন্য অনন্য আইডি। একজন অ্যাকাউন্ট প্রশাসক হিসেবে, আপনি আপনার অ্যাকাউন্টের customerId প্রতিনিধিত্ব করতে my_customer alias ব্যবহার করতে পারেন। ব্যবহারকারীর সম্পদের অংশ হিসাবে customerId ফেরত দেওয়া হয়। |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
orgUnitPath | string সাংগঠনিক ইউনিট বা এর অনন্য আইডির সম্পূর্ণ পথ। নির্দিষ্ট সাংগঠনিক ইউনিটের সন্তানদের প্রদান করে। |
type | enum ( Type ) সমস্ত উপ-সংগঠন বা শুধুমাত্র অবিলম্বে শিশুদের ফেরত কিনা। |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে নিম্নলিখিত কাঠামোর সাথে ডেটা থাকে:
JSON প্রতিনিধিত্ব |
---|
{
"kind": string,
"etag": string,
"organizationUnits": [
{
object (OrgUnit )
}
]
} |
ক্ষেত্র |
---|
kind | string API সম্পদের ধরন। সংগঠন ইউনিট সংস্থানগুলির জন্য, প্রকারটি হল admin#directory#orgUnits । |
etag | string সম্পদের ETag. |
organizationUnits[] | object ( 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
আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
টাইপ
Enums |
---|
ALL | সকল উপ-সাংগঠনিক ইউনিট। |
CHILDREN | শুধুমাত্র অবিলম্বে শিশু (ডিফল্ট)। |
ALL_INCLUDING_PARENT | সমস্ত উপ-সাংগঠনিক ইউনিট এবং নির্দিষ্ট সাংগঠনিক ইউনিট (নির্দিষ্ট না থাকলে মূল)। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Method: orgunits.list\n\nRetrieves a list of all organizational units for an account.\n\n### HTTP request\n\n`GET https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/orgunits`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `customerId` | `string` The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](https://developers.google.com/workspace/admin/directory/v1/reference/users). |\n\n### Query parameters\n\n| Parameters ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `orgUnitPath` | `string` The full path to the organizational unit or its unique ID. Returns the children of the specified organizational unit. |\n| `type` | `enum (`[Type](/workspace/admin/directory/reference/rest/v1/orgunits/list#Type)`)` Whether to return all sub-organizations or just immediate children. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"etag\": string, \"organizationUnits\": [ { object (/workspace/admin/directory/reference/rest/v1/orgunits#OrgUnit) } ] } ``` |\n\n| Fields ||\n|-----------------------|------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` The type of the API resource. For Org Unit resources, the type is `admin#directory#orgUnits`. |\n| `etag` | `string` ETag of the resource. |\n| `organizationUnits[]` | `object (`[OrgUnit](/workspace/admin/directory/reference/rest/v1/orgunits#OrgUnit)`)` A list of organizational unit objects. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://apps-apis.google.com/a/feeds/policies/`\n- `\n https://www.googleapis.com/auth/admin.directory.orgunit`\n- `\n https://www.googleapis.com/auth/admin.directory.orgunit.readonly`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent).\n\nType\n----\n\n| Enums ||\n|------------------------|---------------------------------------------------------------------------------------------|\n| `ALL` | All sub-organizational units. |\n| `CHILDREN` | Immediate children only (default). |\n| `ALL_INCLUDING_PARENT` | All sub-organizational units and the specified organizational unit (root if not specified). |"]]