- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Create an association between a GCP project and a GitHub Enterprise server.
HTTP request
POST https://cloudbuild.googleapis.com/v1/{parent=projects/*}/githubEnterpriseConfigs
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Name of the parent project. For example: projects/{$projectNumber} or projects/{$projectId} Authorization requires the following IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
projectId |
ID of the project. |
gheConfigId |
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 |
Request body
The request body contains an instance of GitHubEnterpriseConfig
.
Response body
If successful, the response body contains a newly created instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.