The Api for vulfocus
Project description
vulfocus-py
Vulfocus API
Vulfocus API
is the RESUFul API
interface provided by Vulfocus
for development, allowing Developers integrate Vulfocus
in their own projects.
Vulfocus SDK
The Python
version of SDK
written based on the Vulfocus API
makes it easy for Python
developers to quickly integrate Vulfocus
into their projects.
Install
pip install VulfocusSdk
USE
field | description |
---|---|
username |
User login Vulfocus userbox username |
licence | Please go to the personal center to view API licence |
Pull Images
from vulfocus_client_api.vulfocusClient import VulfocusClient
clinet = VulfocusClient(username="xxxx",licence="xxxxxx")
images = clinet.get_images()
print(images)
Response
[<vulfocus_client_api.imageEntity.ImageEntity object at 0x000002978B35DC48>, <vulfocus_client_api.imageEntity.ImageEntity object at 0x000002978B35DD08>, <vulfocus_client_api.imageEntity.ImageEntity object at 0x000002978B35DAC8>]
Start
from vulfocus_client_api.vulfocusClient import VulfocusClient
clinet = VulfocusClient(username="xxxxx",licence="xxxxxxx")
images = clinet.get_images()
print(clinet.start_container(images[0].get_image_name()))
Response
HostEntity(host=118.193.36.37:57581,port={'10000': '57581'})
Stop
from vulfocus_client_api.vulfocusClient import VulfocusClient
clinet = VulfocusClient(username="xxx",licence="xxxxx")
images = clinet.get_images()
print(clinet.stop_container(images[0].get_image_name()))
Response
停止成功
Delete
from vulfocus_client_api.vulfocusClient import VulfocusClient
clinet = VulfocusClient(username="xxx",licence="xxxxx")
images = clinet.get_images()
print(clinet.delete_container(images[0].get_image_name()))
Response
删除成功
Update Log
2021-11-28
Release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for VulfocusSdk-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47d54e6f9dbf825d8734c30dc7475286cd7ef07f8e32563231f6778a816db4e9 |
|
MD5 | dcd90a5ae64dfe957eac0698dd8e6a95 |
|
BLAKE2b-256 | 135f92ffe6cf72b264f5782aa9aa4e8b030eb219d017f38e6c578d2c74fb3763 |