Method: enterprises.policies.list
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงรายการนโยบายสําหรับองค์กรหนึ่งๆ
คำขอ HTTP
GET https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/policies
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ชื่อองค์กรในรูปแบบ enterprises/{enterpriseId}
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
pageSize |
integer
ขนาดหน้าเว็บที่ขอ ขนาดหน้าเว็บจริงอาจได้รับการกำหนดค่าต่ำสุดหรือสูงสุด
|
pageToken |
string
โทเค็นที่ระบุหน้าผลการค้นหาที่เซิร์ฟเวอร์แสดง
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
การตอบสนองต่อคำขอแสดงรายการนโยบายสำหรับองค์กรหนึ่งๆ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"policies": [
{
object (Policy )
}
],
"nextPageToken": string
} |
ช่อง |
policies[] |
object (Policy )
รายการนโยบาย
|
nextPageToken |
string
หากมีผลการค้นหาเพิ่มเติม โทเค็นเพื่อดึงข้อมูลหน้าถัดไปของผลการค้นหา
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidmanagement
ดูข้อมูลเพิ่มเติมได้ที่ OAuth 2.0 Overview
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eLists policies associated with a specific enterprise.\u003c/p\u003e\n"],["\u003cp\u003eUses a GET request to retrieve policy information.\u003c/p\u003e\n"],["\u003cp\u003eIncludes pagination to handle large result sets.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidmanagement\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eResponse provides a list of policies and a token for retrieving further pages if available.\u003c/p\u003e\n"]]],["This document details how to list policies for an enterprise using a `GET` request to `https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/policies`. The `parent` path parameter specifies the enterprise. Optional query parameters `pageSize` and `pageToken` control pagination. The request body must be empty. The successful response includes a list of `policies` and a `nextPageToken` for retrieving further results, represented in JSON format. This action requires the `https://www.googleapis.com/auth/androidmanagement` authorization scope.\n"],null,["# Method: enterprises.policies.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListPoliciesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists policies for a given enterprise.\n\n### HTTP request\n\n`GET https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/policies`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------|\n| `parent` | `string` The name of the enterprise in the form `enterprises/{enterpriseId}`. |\n\n### Query parameters\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` The requested page size. The actual page size may be fixed to a min or max value. |\n| `pageToken` | `string` A token identifying a page of results returned by the server. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse to a request to list policies for a given enterprise.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"policies\": [ { object (/android/management/reference/rest/v1/enterprises.policies#Policy) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------|\n| `policies[]` | `object (`[Policy](/android/management/reference/rest/v1/enterprises.policies#Policy)`)` The list of policies. |\n| `nextPageToken` | `string` If there are more results, a token to retrieve next page of results. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidmanagement`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]