curl --request PATCH \
--url https://us.infisical.com/api/v2/secret-scanning/data-sources/gitlab/{dataSourceId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"isAutoScanEnabled": true,
"config": {
"scope": "group",
"groupId": 123,
"groupName": "<string>",
"includeProjects": [
"*"
]
}
}
'{
"dataSource": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"projectId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "gitlab",
"connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connection": {
"app": "gitlab",
"name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"config": {
"scope": "group",
"groupId": 123,
"groupName": "<string>",
"includeProjects": [
"*"
]
},
"externalId": "<string>",
"description": "<string>",
"encryptedCredentials": "<unknown>",
"isAutoScanEnabled": true,
"isDisconnected": false
}
}Update the specified GitLab Data Source.
curl --request PATCH \
--url https://us.infisical.com/api/v2/secret-scanning/data-sources/gitlab/{dataSourceId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"isAutoScanEnabled": true,
"config": {
"scope": "group",
"groupId": 123,
"groupName": "<string>",
"includeProjects": [
"*"
]
}
}
'{
"dataSource": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"projectId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "gitlab",
"connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connection": {
"app": "gitlab",
"name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"config": {
"scope": "group",
"groupId": 123,
"groupName": "<string>",
"includeProjects": [
"*"
]
},
"externalId": "<string>",
"description": "<string>",
"encryptedCredentials": "<unknown>",
"isAutoScanEnabled": true,
"isDisconnected": false
}
}The ID of the GitLab Data Source to be updated.
The updated name of the GitLab Data Source. Must be slug-friendly.
1 - 64The updated description of the GitLab Data Source.
256Whether scans should be automatically performed when a push occurs to projects associated with this Data Source.
Show child attributes
The GitLab scope scanning should occur at (project or group level).
group The ID of the group to scan projects from.
The name of the group to scan projects from.
256The projects to include when scanning. Defaults to all projects (["*"]).
1 - 100 elements1 - 256Default Response
Show child attributes
gitlab Show child attributes
The GitLab scope scanning should occur at (project or group level).
group The ID of the group to scan projects from.
The name of the group to scan projects from.
256The projects to include when scanning. Defaults to all projects (["*"]).
1 - 100 elements1 - 256Was this page helpful?