Fetch SaaSDR policies.
Parameter |
Required/ |
Data Type |
Description |
---|---|---|---|
size |
Optional | Integer |
Specify the number of records per page to be included in the response. If size is not specified in the request, 50 records will be fetched by default. The maximum value supported for size is 200. |
page |
Optional | Integer |
Specify the page to be returned. Default value is 0. |
API Request
curl-k -X GET -H -i "<qualys_base_url>/sdr/api/v1/policy"
Response
{
"content":[
{
"id":61,
"connectorType":"SALESFORCE",
"name":"Salesforce Best Practices",
"description":"This policy provides prescriptive guidance for configuring security options for a subset of Salesforce Services with an emphasis on foundational, testable, and architecture agnostic settings.",
"version":"v1.4.0",
"type":"System Defined",
"scope":[
"Identity management"
],
"isSystemCreated":true,
"createdDate":"2021-01-08T07:19:12Z",
"updatedDate":"2021-07-22T12:22:05Z",
"createdBy":"SYSTEM",
"updatedBy":"SYSTEM",
"controlCount":33,
"controls":[
"70133",
"70134",
"70135",
"70136",
"70137",
"70138",
"70139",
.....
"70158",
"70159"
],
"customerId":null,
"connectors":[
{
"customerId":"4eaa64f9-771c-745e-810a-37d3f4c38a49",
"connectorType":"SALESFORCE",
"id":2192,
"name":"sfdc p01",
"description":null,
"state":"SUCCESS",
"config":null,
"status":"Scan Completed",
"emailId":"abc@test.com",
"isEnabled":1,
"isPolicyEnabled":1,
"updatedBy":"abc@test.com",
"createdBy":"abc@test.com",
"accountConfig":"{\"saasSubscriptionId\":\"12345\"}",
"firstScannedDate":"2021-09-29T09:32:24Z",
"lastScannedDate":"2021-10-04T10:47:47Z",
"deleted":false
}
]
}
],
"pageable":{
"sort":{
"unsorted":true,
"sorted":false,
"empty":true
},
"pageSize":1,
"pageNumber":0,
"offset":0,
"paged":true,
"unpaged":false
},
"last":false,
"totalPages":10,
"totalElements":10,
"first":true,
"sort":{
"unsorted":true,
"sorted":false,
"empty":true
},
"numberOfElements":1,
"size":1,
"number":0,
"empty":false
}