Queries the source code repository and image build settings of a repository.

Request information

Request line

GET /repos/[RepoNamespace]/[RepoName]/sourceRepo HTTP/1.1

Request line parameters

Parameter Type Required Description
RepoNamespace String Yes The name of the namespace.
RepoName String Yes The name of the repository.

Operation-specific request headers

None.

Request body

None.

Response information

Response line

HTTP/1.1 200 OK

Operation-specific response headers

None.

Response body

{
   "data": {
      "buildConfig": {
         "isOversea": Boolean,
         "isDisableCache": Boolean,
         "isAutoBuild": Boolean
      },
      "source": {
         "sourceRepoDomain": String,
         "sourceRepoNamespace": String,
         "sourceOriginType": String,
         "sourceRepoName": String
      }
   },
   "requestId": String
}

Response body parameters

Parameter Type Description
isOversea Long Indicates whether to enable image build in machines that are outside the China regions.
isDisableCache String Indicates whether to disable cache for image build.
isAutoBuild Boolean Indicates whether to enable automatic image build.
sourceRepoDomain String The domain name of the source code repository.
sourceRepoNamespace String The namespace to which the source code repository belongs.
sourceOriginType String The type of source code repository.
sourceRepoName String The name of the source code repository.
requestId String The ID of the request.

Examples

Sample requests

GET /repos/[RepoNamespace]/[RepoName]/sourceRepo HTTP/1.1
<Common request headers>

Sample responses

HTTP/1.1 200 OK
<Common response headers>

{
   "data": {
      "buildConfig": {
         "isOversea": true,
         "isDisableCache": false,
         "isAutoBuild": true
      },
      "source": {
         "sourceRepoDomain": "https://github.com",
         "sourceRepoNamespace": "testNamespace",
         "sourceOriginType": "GITHUB",
         "sourceRepoName": "testRepo"
      }
   },
   "requestId": "F5FD4955-E584-4D82-BEB4-0672951355C6"
}