---
updatedAt: 2026-05-27T12:51:02.000Z
agentTools:
  projectIndex: https://developer.onetrust.com/onetrust/llms.txt
---

# Create Scan Profile

Use this API to create a new scan profile.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Data Use Governance - Data Discovery",
    "version": "1.0",
    "contact": {
      "name": "OneTrust Support",
      "url": "https://my.onetrust.com/s/contactsupport"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "description": "The Data Discovery API provides comprehensive REST endpoints for managing data discovery operations including data sources, scan profiles, credentials, and scan jobs with OAuth2 security and extensive filtering capabilities."
  },
  "servers": [
    {
      "url": "https://{hostname}",
      "variables": {
        "hostname": {
          "default": "hostname",
          "description": "The OneTrust hostname such as app.onetrust.com, app-eu.onetrust.com, app-de.onetrust.com, app-uk.onetrust.com, app-apac.onetrust.com, trial.onetrust.com, or uat.onetrust.com."
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Scan Profiles",
      "description": "APIs to handle scan profile lifecycle management including creation, updates, deletion, and retrieval with support for catalog and catalog-scan types across various system platforms.",
      "externalDocs": {
        "description": "OpenAPI 3.1.0 - Download Definition",
        "url": "https://developer.onetrust.com/onetrust/openapi/data-use-governance-data-discovery.json"
      },
      "x-displayName": "Scan Profiles"
    }
  ],
  "paths": {
    "/api/discovery-scan-config/v2/scan-profiles": {
      "post": {
        "operationId": "createV2UsingPOST",
        "summary": "Create Scan Profile",
        "description": "Use this API to create a new scan profile.",
        "tags": [
          "Scan Profiles"
        ],
        "x-onetrust": {
          "spec-label": "https://developer.onetrust.com/onetrust/openapi/data-use-governance-data-discovery.json"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataUseGovernance-DataDiscovery_ScanProfileRequestV2Dto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Scan Profile created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataUseGovernance-DataDiscovery_ScanProfileV2Dto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "429": {
            "description": "Too Many Requests. \nFor more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).",
            "headers": {
              "Retry-After": {
                "schema": {
                  "description": "The number of seconds after which requests will be allowed again.",
                  "format": "int32"
                }
              },
              "ot-period": {
                "schema": {
                  "description": "The unit of time for which the rate limit applies",
                  "enum": [
                    "HOUR",
                    "MINUTE"
                  ]
                }
              },
              "ot-ratelimit-event-id": {
                "schema": {
                  "description": "The unique identifier for the rate-limiting event.",
                  "format": "uuid"
                }
              },
              "ot-request-made": {
                "schema": {
                  "description": "The number of requests made within the specified period.",
                  "format": "int32"
                }
              },
              "ot-requests-allowed": {
                "schema": {
                  "description": "The number of requests allowed within the specified period.",
                  "format": "int32"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "DataUseGovernance-DataDiscovery_OAUTH2": [
              "DATA_DISCOVERY"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "DataUseGovernance-DataDiscovery_ScanProfileV2Dto": {
        "type": "object",
        "properties": {
          "id": {
            "description": "Unique ID for Scan Profile",
            "type": "string",
            "format": "uuid",
            "example": "4f162d7c-a563-4bf1-a7c4-b7899f6dcdef"
          },
          "name": {
            "description": "Name of Scan Profile",
            "type": "string",
            "example": "My SQL Scan Profile"
          },
          "scanType": {
            "description": "Scan Type of Scan Profile",
            "type": "string",
            "example": "CATALOG",
            "enum": [
              "CATALOG",
              "CATALOG_SCAN"
            ]
          },
          "sourceType": {
            "description": "Source of this Scan Profile",
            "type": "string",
            "example": "USER_DEFINED",
            "enum": [
              "SEED",
              "USER_DEFINED"
            ]
          },
          "systemName": {
            "description": "System Name of Scan Profile",
            "type": "string",
            "example": "MySQL"
          },
          "scanProfileContext": {
            "description": "Properties of Scan Profile Specific to System",
            "type": "object",
            "example": {
              "type": "MySQL",
              "includes": [
                {
                  "database": "OT",
                  "table": "Employee",
                  "columns": "Name"
                }
              ],
              "excludes": [
                {
                  "database": "OT",
                  "table": "Credential",
                  "columns": "Id"
                }
              ],
              "samplingScan": {
                "enableSampling": false
              },
              "tableLimits": {
                "randomize": false,
                "maxCount": 10
              },
              "tableTypes": [
                "TABLE"
              ],
              "databaseLimits": {
                "randomize": false,
                "maxCount": 1
              }
            }
          },
          "systemType": {
            "description": "System Type of Scan Profile",
            "type": "string",
            "example": "RELATIONAL_DATABASE",
            "enum": [
              "RELATIONAL_DATABASE",
              "NON_RELATIONAL_DATABASE",
              "FILE",
              "API",
              "CUSTOM",
              "UNKNOWN",
              "CLOUD_PLATFORM",
              "MACHINE_LEARNING_PLATFORM"
            ]
          },
          "createdDate": {
            "description": "Creation Date of Scan Profile",
            "type": "string",
            "format": "date-time",
            "example": "2021-09-11T01:41:50.143+00:00"
          },
          "displayName": {
            "description": "Display Name for System Name of Scan Profile",
            "type": "string",
            "example": "Amazon Redshift"
          }
        },
        "required": [
          "id",
          "name",
          "scanProfileContext",
          "scanType",
          "systemName",
          "systemType"
        ]
      },
      "DataUseGovernance-DataDiscovery_ScanProfileRequestV2Dto": {
        "type": "object",
        "properties": {
          "name": {
            "description": "Name of Scan Profile",
            "type": "string",
            "example": "My SQL Scan Profile"
          },
          "scanType": {
            "description": "Scan Type of Scan Profile",
            "type": "string",
            "example": "CATALOG",
            "enum": [
              "CATALOG",
              "CATALOG_SCAN"
            ]
          },
          "systemName": {
            "description": "System Name of Scan Profile",
            "type": "string",
            "example": "MySQL"
          },
          "scanProfileContext": {
            "description": "Properties of Scan Profile Specific to System",
            "type": "object",
            "example": {
              "type": "MySQL",
              "includes": [],
              "excludes": [],
              "dsarExtract": true,
              "clearingIndex": true,
              "databaseLimits": {
                "randomize": false,
                "maxCount": null,
                "maxPercentage": null
              },
              "tableLimits": {
                "randomize": false,
                "maxCount": null,
                "maxPercentage": null
              },
              "rowLimits": {
                "randomize": false,
                "maxCount": null,
                "maxPercentage": null
              },
              "customQuery": null,
              "tableTypes": [
                "TABLE"
              ]
            }
          },
          "systemType": {
            "description": "System Type of Scan Profile",
            "type": "string",
            "example": "RELATIONAL_DATABASE",
            "enum": [
              "RELATIONAL_DATABASE",
              "NON_RELATIONAL_DATABASE",
              "FILE",
              "API",
              "CUSTOM",
              "UNKNOWN",
              "CLOUD_PLATFORM",
              "MACHINE_LEARNING_PLATFORM"
            ]
          },
          "displayName": {
            "description": "Display Name for System Name of Scan Profile",
            "type": "string",
            "example": "Amazon Redshift"
          }
        },
        "required": [
          "name",
          "scanProfileContext",
          "scanType",
          "systemName",
          "systemType"
        ]
      }
    },
    "securitySchemes": {
      "DataUseGovernance-DataDiscovery_OAUTH2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://{hostname}/api/access/v1/oauth/token",
            "scopes": {
              "DATA_DISCOVERY": "DATA_DISCOVERY scope for external systems"
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false,
    "metrics-enabled": false
  },
  "x-onetrust": {
    "spec-label": "OpenAPI 3.1.0"
  }
}
```

# Sibling pages

* [Get List of Scan Profiles](https://developer.onetrust.com/onetrust/reference/getallusingget_2.md)
* [Update Scan Profile](https://developer.onetrust.com/onetrust/reference/updatev2usingput.md)
* [Delete Scan Profile](https://developer.onetrust.com/onetrust/reference/deletescanprofileusingdelete_1.md)
* [Get Scan Profile](https://developer.onetrust.com/onetrust/reference/getscanprofileusingget_1.md)