# Cisco Defense Orchestrator (CDO) Python SDK
The CDO Python SDK facilitates automated interaction with the Cisco Defense Orchestrator (CDO) API, enabling developers to integrate Cisco's cloud-based security policy and device management into Python applications.
For more information and detailed documentation, visit the [CDO Python SDK documentation](https://github.com/cisco-lockhart/cdo-public-api-docs/tree/main/cdo-sdk/python).
Read more about CDO [here](https://docs.defenseorchestrator.com/).
## Installation
Install the CDO Python SDK package with the following command:
```
pip install cdo-sdk-python
```
## Getting Started
After installation, import the SDK into your Python project and configure your API credentials.
## Usage Example
```python
import cdo_sdk_python, os
from cdo_sdk_python.rest import ApiException
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters
configuration = cdo_sdk_python.Configuration(
host="https://edge.staging.cdo.cisco.com/api/rest"
)
# Configure Bearer authorization (JWT)
configuration.access_token = os.environ["BEARER_TOKEN"]
with cdo_sdk_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = cdo_sdk_python.TenantManagementApi(api_client)
try:
api_response = api_instance.get_tenants()
print("The response of TenantManagementApi->get_tenants:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling TenantManagementApi->get_tenants: %s\n" % e)
```
## Developer Support
If you need technical support, choose from the options below.
### Consulting/Best Practices
Use the DevNet Community for general best practices, help, tips, or examples using Cisco APIs. Free to any DevNet member, log in and post your questions in the [Network Security forum](https://community.cisco.com/t5/network-security/bd-p/disc-network-security) using the `Cisco Defense Orchestrator (CDO)` label.
### Issues
If you identify issues with the CDO API, you can contact the [Cisco Technical Assistance Center (TAC)](https://www.cisco.com/c/en/us/support/web/tsd-cisco-worldwide-contacts.html) for support. First time? [Start here](https://www.cisco.com/c/dam/en/us/services/collateral/acquisitions/cjp-tac-support-guide.pdf).
- Internet: https://mycase.cloudapps.cisco.com/
- Worldwide Support Contacts: https://www.cisco.com/c/en/us/support/web/tsd-cisco-worldwide-contacts.html
- Webex: tac.connect@webex.bot
### Enhancement Requests
Please file enhancement requests in the [Network Security forum](https://community.cisco.com/t5/network-security/bd-p/disc-network-security) using the `Cisco Defense Orchestrator (CDO)` label.
### One-on-one Consulting
For one-on-one consulting, contact a [Cisco Developer Partner](https://www.cisco.com/c/en/us/partners/connect-with-a-partner.html) or your Cisco Sales Team for professional service options.
Raw data
{
"_id": null,
"home_page": null,
"name": "cdo-sdk-python",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "OpenAPI, OpenAPI-Generator, CDO API",
"author": "CDO TAC",
"author_email": "cdo.tac@cisco.com",
"download_url": "https://files.pythonhosted.org/packages/c0/ec/4c4bbe29c988e691b25f1cd08e5594c65a93bf313f5943740fbd3daa46e6/cdo-sdk-python-1.0.134.tar.gz",
"platform": null,
"description": "# Cisco Defense Orchestrator (CDO) Python SDK\nThe CDO Python SDK facilitates automated interaction with the Cisco Defense Orchestrator (CDO) API, enabling developers to integrate Cisco's cloud-based security policy and device management into Python applications.\n\nFor more information and detailed documentation, visit the [CDO Python SDK documentation](https://github.com/cisco-lockhart/cdo-public-api-docs/tree/main/cdo-sdk/python).\n\nRead more about CDO [here](https://docs.defenseorchestrator.com/).\n\n## Installation\nInstall the CDO Python SDK package with the following command:\n```\npip install cdo-sdk-python\n```\n\n## Getting Started\nAfter installation, import the SDK into your Python project and configure your API credentials.\n\n## Usage Example\n```python\nimport cdo_sdk_python, os\nfrom cdo_sdk_python.rest import ApiException\nfrom pprint import pprint\n\n# See configuration.py for a list of all supported configuration parameters\nconfiguration = cdo_sdk_python.Configuration(\n host=\"https://edge.staging.cdo.cisco.com/api/rest\"\n)\n\n# Configure Bearer authorization (JWT)\nconfiguration.access_token = os.environ[\"BEARER_TOKEN\"]\n\nwith cdo_sdk_python.ApiClient(configuration) as api_client:\n # Create an instance of the API class\n api_instance = cdo_sdk_python.TenantManagementApi(api_client)\n\n try:\n api_response = api_instance.get_tenants()\n print(\"The response of TenantManagementApi->get_tenants:\\n\")\n pprint(api_response)\n except ApiException as e:\n print(\"Exception when calling TenantManagementApi->get_tenants: %s\\n\" % e)\n```\n\n## Developer Support\nIf you need technical support, choose from the options below.\n\n### Consulting/Best Practices\nUse the DevNet Community for general best practices, help, tips, or examples using Cisco APIs. Free to any DevNet member, log in and post your questions in the [Network Security forum](https://community.cisco.com/t5/network-security/bd-p/disc-network-security) using the `Cisco Defense Orchestrator (CDO)` label.\n\n### Issues\nIf you identify issues with the CDO API, you can contact the [Cisco Technical Assistance Center (TAC)](https://www.cisco.com/c/en/us/support/web/tsd-cisco-worldwide-contacts.html) for support. First time? [Start here](https://www.cisco.com/c/dam/en/us/services/collateral/acquisitions/cjp-tac-support-guide.pdf).\n\n- Internet: https://mycase.cloudapps.cisco.com/\n- Worldwide Support Contacts: https://www.cisco.com/c/en/us/support/web/tsd-cisco-worldwide-contacts.html\n- Webex: tac.connect@webex.bot\n\n### Enhancement Requests\nPlease file enhancement requests in the [Network Security forum](https://community.cisco.com/t5/network-security/bd-p/disc-network-security) using the `Cisco Defense Orchestrator (CDO)` label.\n\n### One-on-one Consulting\nFor one-on-one consulting, contact a [Cisco Developer Partner](https://www.cisco.com/c/en/us/partners/connect-with-a-partner.html) or your Cisco Sales Team for professional service options.\n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "CDO API",
"version": "1.0.134",
"project_urls": null,
"split_keywords": [
"openapi",
" openapi-generator",
" cdo api"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "869d2693fe969631b1a30dcaea2ddb7540a4f86df89a0de1be790b632febad71",
"md5": "beaddb18809db0a12294383a7b05a0fb",
"sha256": "1d565f943bc369cfb969a6e87390a9f31b73759e2825e2720f0299068382b0ed"
},
"downloads": -1,
"filename": "cdo_sdk_python-1.0.134-py3-none-any.whl",
"has_sig": false,
"md5_digest": "beaddb18809db0a12294383a7b05a0fb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 197046,
"upload_time": "2024-05-03T12:42:19",
"upload_time_iso_8601": "2024-05-03T12:42:19.538827Z",
"url": "https://files.pythonhosted.org/packages/86/9d/2693fe969631b1a30dcaea2ddb7540a4f86df89a0de1be790b632febad71/cdo_sdk_python-1.0.134-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c0ec4c4bbe29c988e691b25f1cd08e5594c65a93bf313f5943740fbd3daa46e6",
"md5": "f33c227a7d7c1561b1319815a01bcd97",
"sha256": "10a351108a0c1cf6b7817956b8a5010d7774ec08d0de0b3768c6427bafe7aa68"
},
"downloads": -1,
"filename": "cdo-sdk-python-1.0.134.tar.gz",
"has_sig": false,
"md5_digest": "f33c227a7d7c1561b1319815a01bcd97",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 102582,
"upload_time": "2024-05-03T12:42:21",
"upload_time_iso_8601": "2024-05-03T12:42:21.118788Z",
"url": "https://files.pythonhosted.org/packages/c0/ec/4c4bbe29c988e691b25f1cd08e5594c65a93bf313f5943740fbd3daa46e6/cdo-sdk-python-1.0.134.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-03 12:42:21",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "cdo-sdk-python"
}