v1

latestOpenAPI 3.0.32026-07-22238629559.2 KB
ScmService

Create SCMConfig

Create a new SCM config.

post/api/scm/deployments/{deploymentId}/configs

Path parameters

deploymentIdstring required

Request body

deploymentIdstring
type'SCM_TYPE_GITHUB' | 'SCM_TYPE_GITHUB_ENTERPRISE' | 'SCM_TYPE_GITLAB' | 'SCM_TYPE_GITLAB_SELFMANAGED' | 'SCM_TYPE_BITBUCKET' | 'SCM_TYPE_BITBUCKET_DATACENTER' | 'SCM_TYPE_AZURE_DEVOPS' | 'SCM_TYPE_UNKNOWN' | 'SCM_TYPE_HARNESS' enum
valuedescription
SCM_TYPE_GITHUBGitHub Cloud
SCM_TYPE_GITHUB_ENTERPRISEGitHub Enterprise
SCM_TYPE_GITLABGitLab Cloud
SCM_TYPE_GITLAB_SELFMANAGEDGitLab Self-Managed
SCM_TYPE_BITBUCKETBitbucket Cloud
SCM_TYPE_BITBUCKET_DATACENTERBitbucket Data Center
SCM_TYPE_AZURE_DEVOPSAzure DevOps
SCM_TYPE_UNKNOWN
SCM_TYPE_HARNESSHarness
namespacestring
sourceIdstring
baseUrlstring
accessTokenstring
scmConfigIdstring
subscribeboolean
autoScanboolean

Response

Created