Skip to main content

Robot Framework library for sending certificate-signed requests to Cisco ACI

Project description

robotframework-aci-cert-signed-requests

Robot Framework library for sending certificate-signed REST API requests to Cisco ACI.

This library enables signature-based authentication (certificate + private key) for interacting with Cisco ACI APIs, useful when local users and passwords are not used or disabled.


🏦 Installation

pip install robotframework-aci-cert-signed-requests

This library depends on:

  • robotframework
  • requests
  • cryptography

These will be installed automatically if not already present.


📚 Usage

Library Import

Library    robotframework_aci_cert_signed_requests.AciSignatureAuthentication

Variables

*** Variables ***
${APIC_URL}     https://10.0.0.1
${CERT_DN}      uni/userext/user-fu/usercert-fu
${KEY_PATH}     path/to/private.key

Test Case Example

*** Test Cases ***
Example With Signature
    ${resp}=    Get With SignatureBasedAuth    ${APIC_URL}    ${CERT_DN}    ${KEY_PATH}    /api/mo/uni.json
    Log    ${resp.status_code}

🔐 Keyword Reference

Get With SignatureBasedAuth

Arguments:

  • ${apic_url} – Full APIC URL (e.g. https://10.0.0.1)
  • ${cert_dn} – APIC certificate DN (e.g. uni/userext/user-xyz/usercert-xyz)
  • ${key_path} – Path to the private .key file
  • ${api_endpoint} – API endpoint (e.g. /api/mo/uni.json)
  • params=... – Optional query parameters

Returns: A standard requests.Response object


🧪 Example Use Case

This library is useful when:

  • Using local-user certificate authentication to ACI
  • Automating snapshot creation or cleanup via API
  • Verifying API reachability during CI/CD pipelines

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

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file robotframework_aci_cert_signed_requests-0.1.2.tar.gz.

File metadata

File hashes

Hashes for robotframework_aci_cert_signed_requests-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a9df40cf48f53da7818191fd56053720ff8a3564add70bd2f383e776d2efb19c
MD5 72eee6b43ec9519e9a9f8d640aa9ae72
BLAKE2b-256 ef7493844e69e18b41c4c9142dde0447776b7eb48874fc85b09d4e0a407cb379

See more details on using hashes here.

File details

Details for the file robotframework_aci_cert_signed_requests-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_aci_cert_signed_requests-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eb83b9791582cf21d59d004b179201c41651f4484b4230e7182c6508e3ff1220
MD5 29655641f927b54169c7f96c72eafdd3
BLAKE2b-256 3ef9f758949e9a22bbd66d98f2badd46afdab596dfa67064e3e0d9d6c3181bf4

See more details on using hashes here.

Supported by

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