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 endpoint creates an association between a GCP project and a GitHub Enterprise server using a \u003ccode\u003ePOST\u003c/code\u003e request to a specific URL.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the parent project in the path and allows for an optional ID for the GitHub Enterprise Config.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include an instance of \u003ccode\u003eGitHubEnterpriseConfig\u003c/code\u003e, defining the details of the connection.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful creation, the response body contains an instance of \u003ccode\u003eOperation\u003c/code\u003e indicating the outcome.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires the \u003ccode\u003ecloudbuild.integrations.create\u003c/code\u003e IAM permission on the parent resource, and the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.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/*/locations/*}/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/)."]]