Giter VIP home page Giter VIP logo

qualys-cs-python-client's Introduction

qualys-cs-api

All features of the Container Security are available through REST APIs.
Access support information at www.qualys.com/support/

Permissions:
User must have the Container module enabled
User must have API ACCESS permission

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.6.1
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import qualys_cs_api 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import qualys_cs_api

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import qualys_cs_api
from qualys_cs_api.rest import ApiException
from pprint import pprint


# Defining host is optional and default to http://qualysapi.qg2.apps.qualys.com/csapi
configuration.host = "http://qualysapi.qg2.apps.qualys.com/csapi"
# Create an instance of the API class
api_instance = qualys_cs_api.ContainerApi(qualys_cs_api.ApiClient(configuration))
container_delete_request = qualys_cs_api.ContainerDeleteRequest() # ContainerDeleteRequest | Provide one or more container Ids or filters in the format shown under Example Value.

try:
    # Delete containers in your account
    api_response = api_instance.delete_containers_using_delete(container_delete_request)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContainerApi->delete_containers_using_delete: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://qualysapi.qg2.apps.qualys.com/csapi

Class Method HTTP request Description
ContainerApi delete_containers_using_delete DELETE /v1.1/containers Delete containers in your account
ContainerApi get_container_details_using_get GET /v1.1/containers/{containerId} Show details of a container
ContainerApi get_container_installed_software_details_using_get GET /v1.1/containers/{containerId}/software Show software installed on a container
ContainerApi get_container_vuln_count_using_get GET /v1.1/containers/{containerId}/vuln/count Show vulnerability count for a container
ContainerApi get_container_vuln_details_using_get GET /v1.1/containers/{containerId}/vuln Show vulnerability details for a container
ContainerApi get_containers_pivot_data_with_list_using_get GET /v1.1/containers Show a list of containers in your account
ImageApi delete_images_using_delete DELETE /v1.1/images Delete images in your account
ImageApi get_image_association_using_get GET /v1.1/images/{imageId}/association Show associations for an image
ImageApi get_image_details_using_get GET /v1.1/images/{imageId} Show details of an image
ImageApi get_image_installed_software_using_get GET /v1.1/images/{imageId}/software Show software installed on an image
ImageApi get_image_pivot_data_with_list_using_get GET /v1.1/images Show a list of images in your account
ImageApi get_image_vuln_count_using_get GET /v1.1/images/{imageId}/vuln/count Show vulnerability count for an image
ImageApi get_image_vuln_details_using_get GET /v1.1/images/{imageId}/vuln Show vulnerability details for an image
RegistryApi cancel_schedule_using_post POST /v1.1/registry/{registryId}/schedule/{scheduleId}/cancel Cancel registry schedule in your account
RegistryApi create_aws_connector_using_post POST /v1.1/registry/aws/connector Create new AWS connector
RegistryApi create_registry_using_post POST /v1.1/registry Create a new registry
RegistryApi create_schedule_using_post POST /v1.1/registry/{registryId}/schedule Create a new registry scan schedule
RegistryApi delete_registries_using_delete DELETE /v1.1/registry Delete multiple registries in your account
RegistryApi delete_registry_using_delete DELETE /v1.1/registry/{registryId} Delete registry in your account
RegistryApi delete_schedule_using_delete DELETE /v1.1/registry/{registryId}/schedule/{scheduleId} Delete registry schedule in your account
RegistryApi delete_schedules_using_delete DELETE /v1.1/registry/{registryId}/schedule/ Delete multiple registry schedules in your account
RegistryApi get_aws_base_using_get GET /v1.1/registry/aws-base Fetch AWS account ID and External ID for your account
RegistryApi get_aws_connectors_list_using_get GET /v1.1/registry/aws/connectors Show a list of AWS connectors in your account
RegistryApi get_aws_connectors_via_customer_account_id_using_get GET /v1.1/registry/aws/connectors/{accountId} Show a list of AWS connectors for an AWS account ID
RegistryApi get_registry_details_using_get GET /v1.1/registry/{registryId} Show details of a registry
RegistryApi get_registry_pivot_data_with_list_using_get GET /v1.1/registry Show a list of registries in your account
RegistryApi get_registry_repo_pivot_list_using_get GET /v1.1/registry/{registryId}/repository Show a list of repositories in a registry
RegistryApi get_schedule_pivot_list_using_get GET /v1.1/registry/{registryId}/schedule Show a list of schedules created for a registry
RegistryApi update_registry_using_put PUT /v1.1/registry/{registryId} Update existing registry in your account
RegistryApi update_schedule_using_put PUT /v1.1/registry/{registryId}/schedule/{scheduleId} Update existing registry schedule in your account
RegistryApi validate_registry_using_post POST /v1.1/registry/validate Validate information for new registry
SensorApi delete_sensors_using_delete DELETE /v1.1/sensors Delete sensors in your account
SensorApi get_sensor_details_using_get GET /v1.1/sensors/{sensorId} Show details of a sensor
SensorApi get_sensors_list_using_get GET /v1.1/sensors Show a list of sensors in your account

Documentation For Models

Documentation For Authorization

basicAuth

  • Type: HTTP basic authentication

Author

qualys-cs-python-client's People

Contributors

jlk avatar

Watchers

 avatar  avatar  avatar

Forkers

mkhanal1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.