Method: projects.versions.list
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zawiera listę wszystkich wersji z ich bieżącymi stanami.
Żądanie HTTP
GET https://actions.googleapis.com/v2/{parent=projects/*}/versions
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Wymagane. Nazwa zasobu w formacie projects/{project} . {project} to identyfikator projektu w chmurze powiązany z projektem.
|
Parametry zapytania
Parametry |
pageSize |
integer
Maksymalna liczba wersji do zwrócenia. Usługa może zwrócić mniej niż ta wartość. Jeśli nie określono inaczej, zwróconych zostanie maksymalnie 50 wersji.
|
pageToken |
string
Token strony otrzymany z poprzedniego wywołania funkcji versions.list . Podaj go, aby pobrać kolejną stronę. Podczas dzielenia na strony wszystkie pozostałe parametry podane w narzędziu versions.list muszą być zgodne z wywołaniem, które dostarczyło token strony.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść żądania zawiera dane o następującej strukturze:
Odpowiedź RPC dotycząca listy wersji
Zapis JSON |
{
"versions": [
{
object (Version )
}
],
"nextPageToken": string
} |
Pola |
versions[] |
object (Version )
Lista wersji dla danego identyfikatora projektu.
|
nextPageToken |
string
Token, który może zostać wysłany jako pageToken w celu pobrania następnej strony. Jeśli pominiesz to pole, nie będzie kolejnych stron.
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]