Skip to main content

Collibra Assessments API

Project description

collibra-assessments_100

This API allows you to interact with the Assessments application in a programmatic way and perform actions such as retrieving data from conducted assessments or triggering new assessments.

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

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 collibra_assessments 

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 collibra_assessments

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import collibra_assessments
from collibra_assessments.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = collibra_assessments.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = collibra_assessments.AssessmentsApi(collibra_assessments.ApiClient(configuration))
body = collibra_assessments.ConductAssessmentRequest() # ConductAssessmentRequest | 

try:
    # Conduct an assessment
    api_response = api_instance.conduct_assessment(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssessmentsApi->conduct_assessment: %s\n" % e)
# Configure HTTP basic authorization: basicAuth
configuration = collibra_assessments.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = collibra_assessments.AssessmentsApi(collibra_assessments.ApiClient(configuration))
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str | The ID of the assessment.

try:
    # Retrieve an assessment by ID
    api_response = api_instance.get_assessment(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssessmentsApi->get_assessment: %s\n" % e)
# Configure HTTP basic authorization: basicAuth
configuration = collibra_assessments.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = collibra_assessments.AssessmentsApi(collibra_assessments.ApiClient(configuration))
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str | The ID of the assessment review asset.

try:
    # Retrieve an assessment by assessment review ID
    api_response = api_instance.get_assessment_by_assessment_review(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssessmentsApi->get_assessment_by_assessment_review: %s\n" % e)
# Configure HTTP basic authorization: basicAuth
configuration = collibra_assessments.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = collibra_assessments.AssessmentsApi(collibra_assessments.ApiClient(configuration))
name = 'name_example' # str | The name of the assessment.   The value is case-insensitive and it returns results that contain this value.  (optional)
status = 'status_example' # str | The status of the assessment.   Possible values are: `DRAFT`, `SUBMITTED`, `COMPLETED` or `OBSOLETE`. The value is case-insensitive. An invalid value results in an error response.  (optional)
last_modified_from = '2013-10-20T19:20:30+01:00' # datetime | The date and time that defines the start of the period when the assessment was last updated, including this timestamp. (optional)
last_modified_until = '2013-10-20T19:20:30+01:00' # datetime | The date and time that defines the end of the period when the assessment was last updated, excluding this timestamp. (optional)
template_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str | The ID of the template. (optional)
template_version = 'template_version_example' # str | The version of the template.   Use `LATEST` to retrieve assessments that are on the latest version of a particular `templateId`. For other values, it returns results that have an exact match.  (optional)
asset_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str | The ID of the asset the assessment relates to. (optional)
limit = 10 # int | The maximum number of resources to retrieve.  If not set, the default limit of `10` is be used. The maximum value for this parameter is `50`.  (optional) (default to 10)
cursor = 'cursor_example' # str | The cursor pointing to the first resource to be included in the response. This cursor cannot be created and must have been extracted from a response returned by a previous API call.  If this parameter is missing, the API returns the resources starting from the first available resource, at index `0`.  (optional)

try:
    # List assessments
    api_response = api_instance.list_assessments(name=name, status=status, last_modified_from=last_modified_from, last_modified_until=last_modified_until, template_id=template_id, template_version=template_version, asset_id=asset_id, limit=limit, cursor=cursor)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssessmentsApi->list_assessments: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to /rest/assessments/v1

Class Method HTTP request Description
AssessmentsApi conduct_assessment POST /assessments/conduct Conduct an assessment
AssessmentsApi get_assessment GET /assessments/{id} Retrieve an assessment by ID
AssessmentsApi get_assessment_by_assessment_review GET /assessments/byAssessmentReview/{id} Retrieve an assessment by assessment review ID
AssessmentsApi list_assessments GET /assessments List assessments
TemplatesApi list_templates GET /templates List templates

Documentation For Models

Documentation For Authorization

basicAuth

  • Type: HTTP basic authentication

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collibra-assessments_100-1.0.0.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

collibra_assessments_100-1.0.0-py3-none-any.whl (90.9 kB view details)

Uploaded Python 3

File details

Details for the file collibra-assessments_100-1.0.0.tar.gz.

File metadata

File hashes

Hashes for collibra-assessments_100-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fc1248d01c34d531cd0313a28c2bbef3590c7b47b32a0d4b23901caf3c268009
MD5 8095d249a15402c59a7942cab7a2d37b
BLAKE2b-256 551153513c8a317d47d17bbaa08c7d53a7b45738837519ad17663b39f6f206dd

See more details on using hashes here.

File details

Details for the file collibra_assessments_100-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for collibra_assessments_100-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01e5ebaeb8b8d9e6a504ba4014d72d8906f65ee67d7217bd4aa51d0cfe259042
MD5 c1ed8ee8a35b88a226d7c2576a5fc659
BLAKE2b-256 a2903d2d1b72b893ead06c45901ab7562bb224fb888a9d221d836f6ff952a622

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page