organization_list_info – Get information about all Hyperledger Fabric organizations
Synopsis
Get information about all Hyperledger Fabric organizations.
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.
Parameters
- api_endpoint (required)
The URL for the the Fabric operations console.
Type: str- api_authtype (required)
basic- Authenticate to the the Fabric operations console using basic authentication. You must provide both a valid API key using api_key and API secret using api_secret.Type: str- api_key (required)
The API key for the the Fabric operations console.
Type: str- api_secret
The API secret for the the Fabric operations console.
Only required when api_authtype is
basic.Type: str- api_timeout
The timeout, in seconds, to use when interacting with the the Fabric operations console.
Type: intDefault value:60- wait_timeout
The timeout, in seconds, to wait until the certificate authority is available.
Type: intDefault value:60
Examples
- name: Get all organizations
hyperledger.fabric_ansible_collection.organization_list_info:
api_endpoint: https://console.example.org:32000
api_authtype: basic
api_key: xxxxxxxx
api_secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Return Values
- exists
True if the certificate authority exists, false otherwise.
Returned: alwaysType: boolean- organization
The organization.
Returned: if organization existsType: dict
- name
The name of the organization.
Type: strSample:Org1- msp_id
The MSP ID for the organization.
Type: strSample:Org1MSP- root_certs
The list of root certificates for this organization.
Root certificates must be supplied as base64 encoded PEM files.
Type: listElements: strSample:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...- intermediate_certs
The list of intermediate certificates for this organization.
Intermediate certificates must be supplied as base64 encoded PEM files.
Type: listElements: strSample:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...- admins
The list of administrator certificates for this organization.
Administrator certificates must be supplied as base64 encoded PEM files.
Type: listElements: strSample:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...- revocation_list
The list of revoked certificates for this organization.
Revoked certificates must be supplied as base64 encoded PEM files.
Type: listElements: strSample:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...- tls_root_certs
The list of TLS root certificates for this organization.
TLS root certificates must be supplied as base64 encoded PEM files.
Type: listElements: strSample:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...- tls_intermediate_certs
The list of TLS root certificates for this organization.
TLS intermediate certificates must be supplied as base64 encoded PEM files.
Type: listElements: strSample:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...- fabric_node_ous
Configuration specific to the identity classification.
Type: dict
- enable
True if identity classification is enabled for this organization, false otherwise.
Type: booleanSample:True- admin_ou_identifier
Configuration specific to the admin identity classification.
Type: dict
- certificate
The root or intermediate certificate for this identity classification.
Root or intermediate certificates must be supplied as base64 encoded PEM files.
Type: strSample:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...- organizational_unit_identifier
The organizational unit (OU) identifier for this identity classification.
Type: strSample:admin- client_ou_identifier
Configuration specific to the client identity classification.
Type: dict
- certificate
The root or intermediate certificate for this identity classification.
Root or intermediate certificates must be supplied as base64 encoded PEM files.
Type: strSample:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...- organizational_unit_identifier
The organizational unit (OU) identifier for this identity classification.
Type: strSample:client- peer_ou_identifier
Configuration specific to the peer identity classification.
Type: dict
- certificate
The root or intermediate certificate for this identity classification.
Root or intermediate certificates must be supplied as base64 encoded PEM files.
Type: strSample:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...- organizational_unit_identifier
The organizational unit (OU) identifier for this identity classification.
Type: strSample:peer- orderer_ou_identifier
Configuration specific to the orderer identity classification.
Type: dict
- certificate
The root or intermediate certificate for this identity classification.
Root or intermediate certificates must be supplied as base64 encoded PEM files.
Type: strSample:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...- organizational_unit_identifier
The organizational unit (OU) identifier for this identity classification.
Type: strSample:orderer- organizational_unit_identifiers
The list of organizational unit identifiers for this organization.
Type: listElements: dict
- certificate
The root or intermediate certificate for this organizational unit identifier.
Root or intermediate certificates must be supplied as base64 encoded PEM files.
Type: strSample:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...- organizational_unit_identifier
The organizational unit (OU) identifier.
Type: strSample:acctdept