對話動作已於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
Method: projects.releaseChannels.list
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
HTTP 要求
GET https://actions.googleapis.com/v2/{parent=projects/*}/releaseChannels
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。資源名稱,格式為 projects/{project} 。{project} 是與專案相關聯的雲端專案 ID。
|
查詢參數
參數 |
pageSize |
integer
要傳回的發布版本數量上限。服務傳回的產品數量可能會少於這個值。如未指定,最多將傳回 50 個發布版本。
|
pageToken |
string
屬於接收自前一個 releaseChannels.list 呼叫的網頁權杖。提供此項目即可擷取後續網頁。進行分頁時,提供至 releaseChannels.list 的所有其他參數須與提供網頁權杖的呼叫相符。
|
回應主體
如果成功,回應主體會含有以下結構的資料:
JSON 表示法 |
{
"releaseChannels": [
{
object (ReleaseChannel )
}
],
"nextPageToken": string
} |
欄位 |
releaseChannels[] |
object (ReleaseChannel )
指定專案 ID 的發布版本清單。
|
nextPageToken |
string
可做為 pageToken 傳送的權杖,用於擷取後續網頁。如果省略這個欄位,就不會有後續頁面。
|
ReleaseChannel
JSON 表示法 |
{
"name": string,
"currentVersion": string,
"pendingVersion": string
} |
欄位 |
name |
string
發布版本的專屬名稱,格式如下。projects/{project}/releaseChannels/{releaseChannel} 。
|
currentVersion |
string
目前部署至這個發布版本的版本,格式如下:projects/{project}/versions/{version} 。
|
pendingVersion |
string
要部署至這個發布版本的版本,格式如下:projects/{project}/versions/{version} 。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\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}`. |"]]