secret-scanning
List enterprise custom patterns
Lists secret scanning custom patterns for an enterprise.
Personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
get/enterprises/{enterprise}/secret-scanning/custom-patterns
Path parameters
enterprisestring required
The slug version of the enterprise name.
Query parameters
state'published' | 'unpublished'
Filter custom patterns by state. When absent, returns patterns in all states.
push_protection'enabled' | 'disabled'
Filter custom patterns by whether push protection is enabled. When absent, returns patterns regardless of push protection status.
sort'created' | 'updated' | 'name'
The property to sort the results by.
direction'asc' | 'desc'
The direction to sort the results by.
pageinteger
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
per_pageinteger
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
Response
Response