El recurso propietario de la colección de ubicaciones, si procede.
Los parámetros de consulta
Parámetros
filter
string
Un filtro para acotar los resultados a un subconjunto preferido. El lenguaje de filtrado acepta cadenas como "displayName=tokyo" y se describe con más detalle en AIP-160.
pageSize
integer
Número máximo de resultados que se devolverán. Si no se define, el servicio selecciona un valor predeterminado.
pageToken
string
Token de página recibido del campo nextPageToken de la respuesta. Envía ese token de página para recibir la página siguiente.
extraLocationTypes[]
string
Opcional. Lista de tipos de ubicación adicionales que se deben usar como condiciones para controlar la visibilidad de las ubicaciones.
Cuerpo de la solicitud
El cuerpo de la solicitud debe estar vacío.
Cuerpo de la respuesta
Mensaje de respuesta de Locations.ListLocations.
Si la solicitud se realiza correctamente, el cuerpo de la respuesta proporciona datos con la siguiente estructura:
[[["Es fácil de entender","easyToUnderstand","thumb-up"],["Me ofreció una solución al problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Es difícil de entender","hardToUnderstand","thumb-down"],["La información o el código de muestra no son correctos","incorrectInformationOrSampleCode","thumb-down"],["Me faltan las muestras o la información que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-11 (UTC)."],[[["\u003cp\u003eThis API endpoint retrieves a list of supported locations for the service using a \u003ccode\u003eGET\u003c/code\u003e request.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL utilizes gRPC Transcoding syntax and requires a \u003ccode\u003ename\u003c/code\u003e path parameter to specify the resource owning the locations.\u003c/p\u003e\n"],["\u003cp\u003eOptional query parameters, such as \u003ccode\u003efilter\u003c/code\u003e, \u003ccode\u003epageSize\u003c/code\u003e, and \u003ccode\u003epageToken\u003c/code\u003e, are available for refining the search and managing pagination.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and the successful response contains a list of \u003ccode\u003elocations\u003c/code\u003e and an optional \u003ccode\u003enextPageToken\u003c/code\u003e for further pagination.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this request requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.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.ListLocationsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n\nLists information about the supported locations for this service.\n\n### HTTP request\n\n`GET https://cloudaicompanion.googleapis.com/v1/{name=projects/*}/locations`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nThe response message for `Locations.ListLocations`.\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]