Name of the parent project. For example: projects/{$projectNumber} or projects/{$projectId}
Authorization requires the following IAM permission on the specified resource parent:
cloudbuild.integrations.create
Query parameters
Parameters
projectId (deprecated)
string
ID of the project.
gheConfigId
string
Optional. The ID to use for the GithubEnterpriseConfig, which will become the final component of the GithubEnterpriseConfig's resource name.
gheConfigId must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
[[["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 webpage details the process of associating a GCP project with a GitHub Enterprise server using the Cloud Build API.\u003c/p\u003e\n"],["\u003cp\u003eThe primary method is a \u003ccode\u003ePOST\u003c/code\u003e HTTP request to the specified URL, which utilizes gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eparent\u003c/code\u003e path parameter to identify the GCP project, and it needs \u003ccode\u003ecloudbuild.integrations.create\u003c/code\u003e IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eYou can also provide an optional \u003ccode\u003egheConfigId\u003c/code\u003e query parameter, which must meet specific alphanumeric and length requirements, for the GitHubEnterpriseConfig.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a \u003ccode\u003eGitHubEnterpriseConfig\u003c/code\u003e instance, and a successful response will provide an \u003ccode\u003eOperation\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,["# Method: projects.githubEnterpriseConfigs.create\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- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreate an association between a GCP project and a GitHub Enterprise server.\n\n### HTTP request\n\n`POST https://cloudbuild.googleapis.com/v1/{parent=projects/*}/githubEnterpriseConfigs`\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 contains an instance of [GitHubEnterpriseConfig](/build/docs/api/reference/rest/v1/projects.githubEnterpriseConfigs#GitHubEnterpriseConfig).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Operation](/build/docs/api/reference/rest/Shared.Types/Operation).\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/)."]]