Method: projects.versions.list
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงเวอร์ชันทั้งหมดและสถานะปัจจุบัน
คำขอ HTTP
GET https://actions.googleapis.com/v2/{parent=projects/*}/versions
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ ชื่อของทรัพยากรในรูปแบบ projects/{project} โดย {project} คือรหัสโปรเจ็กต์ที่อยู่ในระบบคลาวด์ที่เชื่อมโยงกับโปรเจ็กต์ดังกล่าว
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
pageSize |
integer
จำนวนเวอร์ชันสูงสุดที่จะแสดง บริการอาจแสดงผลน้อยกว่าค่านี้ หากไม่ระบุ ระบบจะแสดงผลเวอร์ชันมากที่สุด 50 เวอร์ชัน
|
pageToken |
string
โทเค็นของหน้าเว็บที่ได้รับจากการโทร versions.list ก่อนหน้า ระบุพารามิเตอร์นี้เพื่อเรียกข้อมูลหน้าถัดไป เมื่อใส่เลขหน้า พารามิเตอร์อื่นๆ ทั้งหมดที่ให้กับ versions.list ต้องตรงกับการเรียกใช้ที่ระบุโทเค็นของหน้าเว็บ
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การตอบกลับ RPC สำหรับเวอร์ชันที่แสดง
การแสดง JSON |
{
"versions": [
{
object (Version )
}
],
"nextPageToken": string
} |
ช่อง |
versions[] |
object (Version )
รายการเวอร์ชันของรหัสโปรเจ็กต์ที่ระบุ
|
nextPageToken |
string
โทเค็นซึ่งสามารถส่งเป็น pageToken เพื่อเรียกข้อมูลหน้าถัดไป หากเว้นช่องนี้ไว้ จะไม่มีหน้าลำดับต่อมา
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eLists all versions and their current states for a given project.\u003c/p\u003e\n"],["\u003cp\u003eAllows for pagination to retrieve large lists of versions.\u003c/p\u003e\n"],["\u003cp\u003eRequires an empty request body and provides a structured JSON response containing version details and a potential next-page token.\u003c/p\u003e\n"],["\u003cp\u003eUses gRPC Transcoding for URL structure and expects the project ID as a path parameter.\u003c/p\u003e\n"]]],["This document details how to list versions for a project using an HTTP GET request. The request URL uses gRPC Transcoding syntax and requires a `parent` path parameter in the format `projects/{project}`. Optional query parameters `pageSize` and `pageToken` control pagination. The request body must be empty. The response body, if successful, contains an array of `versions` and a `nextPageToken` for pagination. The `nextPageToken` if omitted indicates there are no more pages.\n"],null,["# Method: projects.versions.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.ListVersionsResponse.SCHEMA_REPRESENTATION)\n\nLists all versions and their current states.\n\n### HTTP request\n\n`GET https://actions.googleapis.com/v2/{parent=projects/*}/versions`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The name of the resource in the format `projects/{project}`. The `{project}` is the cloud project ID associated with the project. |\n\n### Query parameters\n\n| Parameters ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. |\n| `pageToken` | `string` A page token, received from a previous `versions.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `versions.list` must match the call that provided the page token. |\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:\nRPC response for listing versions\n\n| JSON representation ||\n|--------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"versions\": [ { object (/assistant/actions/api/reference/rest/v2/Version) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| `versions[]` | `object (`[Version](/assistant/actions/api/reference/rest/v2/Version)`)` List of the versions for the given project id. |\n| `nextPageToken` | `string` A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |"]]