You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -215,3 +215,45 @@ Retrieve the Socket Organization Settings
215
215
from socketdev import SocketDev
216
216
socket = SocketDev("REPLACE_ME")
217
217
print(socket.settings.get())
218
+
219
+
sbom.view(report_id)
220
+
""""""""""""""""""""""
221
+
Retrieve the information for a SBOM Report
222
+
223
+
**Usage:**
224
+
225
+
.. code-block::
226
+
227
+
from socketdev import SocketDev
228
+
socket = SocketDev("REPLACE_ME")
229
+
print(socket.sbom.view("report_id"))
230
+
231
+
**PARAMETERS:**
232
+
233
+
- **report_id (str)** - The report ID of the report to view
234
+
235
+
purl.post(license, components)
236
+
""""""""""""""""""""""
237
+
Retrieve the package information for a purl post
238
+
239
+
**Usage:**
240
+
241
+
.. code-block::
242
+
243
+
from socketdev import SocketDev
244
+
socket = SocketDev("REPLACE_ME")
245
+
license = "true"
246
+
components = [
247
+
{
248
+
"purl": "pkg:pypi/pyonepassword@5.0.0"
249
+
},
250
+
{
251
+
"purl": "pkg:pypi/socketsecurity"
252
+
}
253
+
]
254
+
print(socket.purl.post(license, components))
255
+
256
+
**PARAMETERS:**
257
+
258
+
- **license (str)** - The license parameter if enabled will show alerts and license information. If disabled will only show the basic package metadata and scores. Default is true
259
+
- **components (array{dict})** - The components list of packages urls
0 commit comments