Method: projects.releaseChannels.list
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
GET https://actions.googleapis.com/v2/{parent=projects/*}/releaseChannels
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
必需。资源的名称,格式为 projects/{project} 。{project} 是与项目关联的 Cloud 项目 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} 。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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}`. |"]]