POST
/
api
/
v2
/
secret-scanning
/
data-sources
/
gitlab
/
{dataSourceId}
/
resources
/
{resourceId}
/
scan
cURL
curl --request POST \
  --url https://us.infisical.com/api/v2/secret-scanning/data-sources/gitlab/{dataSourceId}/resources/{resourceId}/scan
{
  "dataSource": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "externalId": "<string>",
    "name": "<string>",
    "description": "<string>",
    "encryptedCredentials": "<any>",
    "isAutoScanEnabled": true,
    "projectId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "isDisconnected": false,
    "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": [
        "*"
      ]
    }
  }
}

Path Parameters

dataSourceId
string<uuid>
required

The ID of the GitLab Data Source to trigger a scan for.

resourceId
string<uuid>
required

The ID of the individual Data Source resource to trigger a scan for.

Response

200
application/json

Default Response

The response is of type object.