You need to enable JavaScript to run this app.
Code Pipeline

Code Pipeline

Copy page
Download PDF
Service connection
GetServiceConnection
Copy page
Download PDF
GetServiceConnection
Query service connection details​
Request description​
To achieve low latency, it is recommended that you select the corresponding service address based on the region where your resources are located. For details, refer to service address.​
  • Request method: POST​
  • Request URL: https://cp.cn-beijing.volcengineapi.com?Action=GetServiceConnection&Version=2023-05-01​
Request parameters​
​
Parameter​
Type​
Required​
Sample value​
Description​
Action​
String​
Ye​
GetServiceConnection​
The API name. The name of the current API is GetServiceConnection.​
Version​
String​
Ye​
2023-05-01​
The API version. The current version of the API is 2023-05-01.​
Id​
String​
Ye​
my_svc_****​
Service connection ID.​
​
Sample requests​
​
POST https://cp.cn-beijing.volcengineapi.com?Action=GetServiceConnection&Version=2023-05-01 HTTP/1.1​
Content-Type: application/json​
{​
"Id": "my_svc_****"​
}​
​
Response parameters​
​
Parameter​
Type​
Sample value​
Description​
Id​
String​
svc-connect****​
Service connection ID.​
Name​
String​
my-gitlab​
Service connection name.​
Description​
String​
My GitLab service​
Service connection description.​
Category​
String​
CodeRepo​
Service connection category:​
  • Registry: Artifact repository category.​
  • CodeRepo: Code source category.​
Type​
String​
Gitlab​
Type of service connection: supported values are as follows.​
  • DockerRegistry​
  • ArtifactRegistry​
  • Github​
  • Gitlab​
  • Gitee​
  • BitbucketCloud​
  • Codeup​
  • PrivateGitLab​
  • BitbucketServer​
  • Gerrit​
  • Git​
  • Perforce​
  • Codebase​
  • Coding​
  • GitCode​
URL​
String​
https://gitlab.com​
Address information for the service connection.​
Credential​
Object of CredentialConf​
​
Credential information for the service connection.​
IsAllWsShared​
Boolean​
false​
Is the service connection shared across all workspaces?​
SharedWorkspaceIds​
Array of String​
["ws-123", "ws-456"]​
List of shared workspace IDs for service connection.​
Creator​
Object of IAMUser​
​
Service connection creator.​
CreateTime​
String​
2024-01-01T00:00:00+08:00​
Service connection creation time.​
UpdateTime​
String​
2024-01-01T00:00:00+08:00​
Service connection update time.​
PipelineBinding​
Boolean​
false​
Whether the service connection is bound to the pipeline.​
​
CredentialConf​
​
Parameter​
Type​
Sample value​
Description​
Token​
String​
glpat***​
Service connection credentials.​
Password​
String​
password***​
Password for the service connection credential.​
Username​
String​
test-user​
Username for the service connection credential.​
AccessKey​
String​
AKIAIOS***​
AccessKey for the service connection credential.​
SecretKey​
String​
wJalrXUtnFEMINGPxRfiCY***​
SecretKey of the service connection credential.​
​
IAMUser​
​
Parameter​
Type​
Sample value​
Description​
AccountId​
Long​
210048****​
Volcano Engine account (root user) ID.​
UserId​
Long​
28****​
IAM user (IAM user) ID.​
​
Sample responses​
​
HTTP/1.1 200 OK​
Content-Type: application/json​
{​
"ResponseMetadata": {​
"RequestId": "2025091618070703C4D63B357BB082****",​
"Action": "GetServiceConnection",​
"Version": "2023-05-01",​
"Service": "cp",​
"Region": "cn-beijing"​
},​
"Result": {​
"Id": "my_svc_****",​
"Name": "my-gitlab",​
"Description": null,​
"Category": "CodeRepo",​
"Type": "Gitlab",​
"Credential": {},​
"IsAllWsShared": true,​
"Creator": {​
"AccountId": 210048****,​
"UserId": ****​
},​
"CreateTime": "2025-09-16T17:28:57+08:00",​
"UpdateTime": "2025-09-16T17:28:57+08:00",​
"PipelineBinding": false​
}​
}​
​
Error code​
This interface currently does not have independent error codes. If an exception occurs when calling the interface, you can refer to the public error codes for troubleshooting.​
Last updated: 2025.10.13 11:30:02