Expiration timestamp. Can be empty if unknown or non-expiring.
Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
gitUsername
string
The gitUsername to specify when making a git clone with the token. For example, for GitHub GitRepositoryLinks, this would be "x-access-token"
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-09 UTC."],[[["\u003cp\u003eThis API endpoint fetches a read token for a specified git repository link.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to retrieve the token is a \u003ccode\u003ePOST\u003c/code\u003e request to the provided URL, which uses gRPC Transcoding syntax and includes a required \u003ccode\u003egitRepositoryLink\u003c/code\u003e path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, as no input is needed to fetch the read token.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will contain a JSON body with the token, its expiration time, and a \u003ccode\u003egitUsername\u003c/code\u003e for use when cloning the repository.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope, and the \u003ccode\u003edeveloperconnect.gitRepositoryLinks.fetchReadToken\u003c/code\u003e IAM permission.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.connections.gitRepositoryLinks.fetchReadToken\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 - [JSON representation](#body.FetchReadTokenResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nFetches read token of a given gitRepositoryLink.\n\n### HTTP request\n\n`POST https://developerconnect.googleapis.com/v1/{gitRepositoryLink=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchReadToken`\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\nMessage for responding to get read token.\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).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `gitRepositoryLink` resource:\n\n- `developerconnect.gitRepositoryLinks.fetchReadToken`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]