|
| 1 | +interactions: |
| 2 | +- request: |
| 3 | + body: null |
| 4 | + headers: |
| 5 | + accept: |
| 6 | + - application/json |
| 7 | + method: GET |
| 8 | + uri: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config |
| 9 | + response: |
| 10 | + body: |
| 11 | + string: '{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","attributes":{},"type":"sensitive_data_scanner_configuration","relationships":{"groups":{"data":[]}}},"meta":{"version":275277,"count_limit":250,"group_count_limit":20,"is_pci_compliant":false,"has_highlight_enabled":true,"has_multi_pass_enabled":true,"has_cascading_enabled":false,"is_configuration_superseded":false,"is_float_sampling_rate_enabled":false,"min_sampling_rate":10.0}} |
| 12 | +
|
| 13 | + ' |
| 14 | + headers: |
| 15 | + content-type: |
| 16 | + - application/json |
| 17 | + status: |
| 18 | + code: 200 |
| 19 | + message: OK |
| 20 | +- request: |
| 21 | + body: '{"data":{"attributes":{"filter":{"query":"*"},"is_enabled":false,"name":"my-test-group","product_list":["logs"],"samplings":[{"product":"logs","rate":100}]},"relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}},"type":"sensitive_data_scanner_group"},"meta":{}}' |
| 22 | + headers: |
| 23 | + accept: |
| 24 | + - application/json |
| 25 | + content-type: |
| 26 | + - application/json |
| 27 | + method: POST |
| 28 | + uri: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/groups |
| 29 | + response: |
| 30 | + body: |
| 31 | + string: '{"data":{"id":"18cc2267-f3cc-4c15-917d-d3efb15deb03","attributes":{"name":"my-test-group","is_enabled":false,"filter":{"query":"*"},"product_list":["logs"],"samplings":[{"product":"logs","rate":100.0}]},"type":"sensitive_data_scanner_group","relationships":{"configuration":{"data":{"id":"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87","type":"sensitive_data_scanner_configuration"}},"rules":{"data":[]}}},"meta":{"version":275278}} |
| 32 | +
|
| 33 | + ' |
| 34 | + headers: |
| 35 | + content-type: |
| 36 | + - application/json |
| 37 | + status: |
| 38 | + code: 200 |
| 39 | + message: OK |
| 40 | +- request: |
| 41 | + body: '{"data":{"attributes":{"is_enabled":true,"name":"Test-Create_Scanning_Rule_with_should_save_match_returns_OK_response-1756240304","pattern":"pattern","priority":1,"tags":["sensitive_data:true"],"text_replacement":{"replacement_string":"REDACTED","should_save_match":true,"type":"replacement_string"}},"relationships":{"group":{"data":{"id":"18cc2267-f3cc-4c15-917d-d3efb15deb03","type":"sensitive_data_scanner_group"}}},"type":"sensitive_data_scanner_rule"},"meta":{}}' |
| 42 | + headers: |
| 43 | + accept: |
| 44 | + - application/json |
| 45 | + content-type: |
| 46 | + - application/json |
| 47 | + method: POST |
| 48 | + uri: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/rules |
| 49 | + response: |
| 50 | + body: |
| 51 | + string: '{"data":{"id":"0e517b8a-04c1-4ae0-b57b-22b8e081190c","attributes":{"name":"Test-Create_Scanning_Rule_with_should_save_match_returns_OK_response-1756240304","namespaces":[],"excluded_namespaces":[],"pattern":"pattern","text_replacement":{"replacement_string":"REDACTED","should_save_match":true,"type":"replacement_string"},"tags":["sensitive_data:true"],"labels":[],"is_enabled":true,"priority":1},"type":"sensitive_data_scanner_rule","relationships":{"group":{"data":{"id":"18cc2267-f3cc-4c15-917d-d3efb15deb03","type":"sensitive_data_scanner_group"}}}},"meta":{"version":275279}} |
| 52 | +
|
| 53 | + ' |
| 54 | + headers: |
| 55 | + content-type: |
| 56 | + - application/json |
| 57 | + status: |
| 58 | + code: 200 |
| 59 | + message: OK |
| 60 | +- request: |
| 61 | + body: '{"meta":{}}' |
| 62 | + headers: |
| 63 | + accept: |
| 64 | + - application/json |
| 65 | + content-type: |
| 66 | + - application/json |
| 67 | + method: DELETE |
| 68 | + uri: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/rules/0e517b8a-04c1-4ae0-b57b-22b8e081190c |
| 69 | + response: |
| 70 | + body: |
| 71 | + string: '{"meta":{"version":275280}} |
| 72 | +
|
| 73 | + ' |
| 74 | + headers: |
| 75 | + content-type: |
| 76 | + - application/json |
| 77 | + status: |
| 78 | + code: 200 |
| 79 | + message: OK |
| 80 | +- request: |
| 81 | + body: '{"meta":{}}' |
| 82 | + headers: |
| 83 | + accept: |
| 84 | + - application/json |
| 85 | + content-type: |
| 86 | + - application/json |
| 87 | + method: DELETE |
| 88 | + uri: https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/groups/18cc2267-f3cc-4c15-917d-d3efb15deb03 |
| 89 | + response: |
| 90 | + body: |
| 91 | + string: '{"meta":{"version":275281}} |
| 92 | +
|
| 93 | + ' |
| 94 | + headers: |
| 95 | + content-type: |
| 96 | + - application/json |
| 97 | + status: |
| 98 | + code: 200 |
| 99 | + message: OK |
| 100 | +version: 1 |
0 commit comments