hyperledger_labs.fabric_ansible_collection.enrolled_identity_info (2.0.0) — module

Get information about an enrolled Hyperledger Fabric identity

Authors: Simon Stone (@sstone1)

preview | supported by community

Install collection

Install with ansible-galaxy collection install hyperledger_labs.fabric_ansible_collection:==2.0.0


Add to requirements.yml

  collections:
    - name: hyperledger_labs.fabric_ansible_collection
      version: 2.0.0

Description

Get information about an enrolled Hyperledger Fabric identity.

This module works with the IBM Support for Hyperledger Fabric software or the Hyperledger Fabric Open Source Stack running in a Red Hat OpenShift or Kubernetes cluster.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get enrolled identity
  hyperledger.fabric_ansible_collectionble-collection.enrolled_identity_info:
    path: Org1 Admin.json

Inputs

    
path:
    description:
    - The path to the JSON file where the enrolled identity is stored.
    required: true

Outputs

enrolled_identity:
  contains:
    ca:
      description:
      - The base64 encoded CA certificate chain of the enrolled identity.
      sample: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...
      type: str
    cert:
      description:
      - The base64 encoded certificate of the enrolled identity.
      sample: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...
      type: str
    hsm:
      description:
      - True if the private key is stored in a PKCS
      sample: false
      type: boolean
    name:
      description:
      - The name of the enrolled identity.
      sample: Org1 Admin
      type: str
    private_key:
      description:
      - The base64 encoded private key of the enrolled identity.
      sample: LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0t...
      type: str
  description:
  - The enrolled identity.
  returned: if enrolled identity exists
  type: dict
exists:
  description:
  - True if the enrolled identity exists, false otherwise.
  type: boolean