Expiration timestamp. Can be empty if unknown or non-expiring.
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
[[["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-17 UTC."],[[["\u003cp\u003eThis API endpoint fetches a read token for a specified repository using a POST request to the provided URL.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003erepository\u003c/code\u003e path parameter, which must be a string in the format \u003ccode\u003eprojects/*/locations/*/connections/*/repositories/*\u003c/code\u003e, and the request body must be empty.\u003c/p\u003e\n"],["\u003cp\u003eThe successful response includes a JSON object containing a \u003ccode\u003etoken\u003c/code\u003e string and an \u003ccode\u003eexpirationTime\u003c/code\u003e string.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003ecloudbuild.repositories.accessReadToken\u003c/code\u003e on the repository resource.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.connections.repositories.accessReadToken\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 repository.\n\n### HTTP request\n\n`POST https://cloudbuild.googleapis.com/v2/{repository=projects/*/locations/*/connections/*/repositories/*}:accessReadToken`\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](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `repository` resource:\n\n- `cloudbuild.repositories.accessReadToken`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]