Method: projects.releaseChannels.list
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Liệt kê tất cả các kênh phát hành và phiên bản tương ứng, nếu có.
Yêu cầu HTTP
GET https://actions.googleapis.com/v2/{parent=projects/*}/releaseChannels
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
parent |
string
Bắt buộc. Tên của tài nguyên ở định dạng projects/{project} . {project} là mã dự án trên đám mây liên kết với dự án đó.
|
Tham số truy vấn
Tham số |
pageSize |
integer
Số kênh phát hành tối đa cần trả về. Dịch vụ có thể trả về ít hơn giá trị này. Nếu bạn không chỉ định, hệ thống sẽ trả về tối đa 50 kênh phát hành.
|
pageToken |
string
Mã thông báo trang, nhận được từ lệnh gọi releaseChannels.list trước đó. Cung cấp mã này để truy xuất trang tiếp theo. Khi phân trang, tất cả các tham số khác được cung cấp cho releaseChannels.list phải khớp với lệnh gọi đã cung cấp mã thông báo trang.
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Nếu thành công, phần nội dung phản hồi sẽ chứa dữ liệu có cấu trúc sau:
Phản hồi RPC cho kênh phát hành trang thông tin
Biểu diễn dưới dạng JSON |
{
"releaseChannels": [
{
object (ReleaseChannel )
}
],
"nextPageToken": string
} |
Trường |
releaseChannels[] |
object (ReleaseChannel )
Danh sách kênh phát hành cho mã dự án cụ thể.
|
nextPageToken |
string
Mã thông báo có thể được gửi dưới dạng pageToken để truy xuất trang tiếp theo. Nếu trường này bị bỏ qua thì sẽ không có trang tiếp theo.
|
ReleaseChannel
Định nghĩa tài nguyên kênh phát hành.
Biểu diễn dưới dạng JSON |
{
"name": string,
"currentVersion": string,
"pendingVersion": string
} |
Trường |
name |
string
Tên riêng biệt của kênh phát hành ở định dạng sau. projects/{project}/releaseChannels/{releaseChannel} .
|
currentVersion |
string
Phiên bản hiện được triển khai cho kênh phát hành này ở định dạng sau: projects/{project}/versions/{version} .
|
pendingVersion |
string
Phiên bản sẽ được triển khai cho kênh phát hành này ở định dạng sau: projects/{project}/versions/{version} .
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eLists all release channels and their corresponding current and pending versions for a given project.\u003c/p\u003e\n"],["\u003cp\u003eThe request is a GET request to the URL \u003ccode\u003ehttps://actions.googleapis.com/v2/{parent=projects/*}/releaseChannels\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eRequires a project ID as a path parameter and supports pagination using \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e as query parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes a list of release channels with their name, current version, and pending version, along with a token for retrieving subsequent pages if available.\u003c/p\u003e\n"]]],[],null,["# Method: projects.releaseChannels.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.ListReleaseChannelsResponse.SCHEMA_REPRESENTATION)\n- [ReleaseChannel](#ReleaseChannel)\n - [JSON representation](#ReleaseChannel.SCHEMA_REPRESENTATION)\n\nLists all release channels and corresponding versions, if any.\n\n### HTTP request\n\n`GET https://actions.googleapis.com/v2/{parent=projects/*}/releaseChannels`\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 release channels to return. The service may return fewer than this value. If unspecified, at most 50 release channels will be returned. |\n| `pageToken` | `string` A page token, received from a previous `releaseChannels.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `releaseChannels.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 release channels\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"releaseChannels\": [ { object (/assistant/actions/api/reference/rest/v2/projects.releaseChannels/list#ReleaseChannel) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `releaseChannels[]` | `object (`[ReleaseChannel](/assistant/actions/api/reference/rest/v2/projects.releaseChannels/list#ReleaseChannel)`)` List of the release channels 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. |\n\nReleaseChannel\n--------------\n\nDefinition of release channel resource.\n\n| JSON representation ||\n|--------------------------------------------------------------------------------|---|\n| ``` { \"name\": string, \"currentVersion\": string, \"pendingVersion\": string } ``` |\n\n| Fields ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The unique name of the release channel in the following format. `projects/{project}/releaseChannels/{releaseChannel}`. |\n| `currentVersion` | `string` Version currently deployed to this release channel in the following format: `projects/{project}/versions/{version}`. |\n| `pendingVersion` | `string` Version to be deployed to this release channel in the following format: `projects/{project}/versions/{version}`. |"]]