Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/08/13 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/08/13 (UTC)."],[[["\u003cp\u003eThis page details how to retrieve information about a single CodeRepositoryIndex using a GET request.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL is structured using gRPC Transcoding syntax and requires a \u003ccode\u003ename\u003c/code\u003e path parameter specifying the resource's location.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, with no data needed to be sent.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests will return a CodeRepositoryIndex resource in the response body.\u003c/p\u003e\n"],["\u003cp\u003eAccess requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope and the \u003ccode\u003ecloudaicompanion.codeRepositoryIndexes.get\u003c/code\u003e IAM permission.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.codeRepositoryIndexes.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n\nGets details of a single CodeRepositoryIndex.\n\n### HTTP request\n\n`GET https://cloudaicompanion.googleapis.com/v1/{name=projects/*/locations/*/codeRepositoryIndexes/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [CodeRepositoryIndex](/gemini/docs/api/reference/rest/v1/projects.locations.codeRepositoryIndexes#CodeRepositoryIndex).\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).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `cloudaicompanion.codeRepositoryIndexes.get`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]