Bộ lọc để thu hẹp kết quả thành một nhóm nhỏ ưu tiên. Ngôn ngữ lọc chấp nhận các chuỗi như "displayName=tokyo" và được ghi lại chi tiết hơn trong AIP-160.
pageSize
integer
Số kết quả tối đa cần trả về. Nếu bạn không đặt, dịch vụ sẽ chọn một giá trị mặc định.
pageToken
string
Mã thông báo trang nhận được từ trường nextPageToken trong phản hồi. Gửi mã thông báo trang đó để nhận trang tiếp theo.
extraLocationTypes[]
string
Không bắt buộc. Danh sách các loại vị trí bổ sung nên được dùng làm điều kiện để kiểm soát chế độ hiển thị của các vị trí đó.
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
Thông báo phản hồi cho Locations.ListLocations.
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:
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Khó hiểu","hardToUnderstand","thumb-down"],["Thông tin hoặc mã mẫu không chính xác","incorrectInformationOrSampleCode","thumb-down"],["Thiếu thông tin/mẫu tôi cần","missingTheInformationSamplesINeed","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-06-09 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)."]]