certificate_authority_info – Get information about a Hyperledger Fabric certificate authority
Synopsis
Get information about a Hyperledger Fabric certificate authority by using the IBM Blockchain Platform.
This module works with the IBM Blockchain Platform managed service running in IBM Cloud, or the IBM Blockchain Platform software running in a Red Hat OpenShift or Kubernetes cluster.
Parameters
- api_endpoint (required)
The URL for the IBM Blockchain Platform console.
Type: str- api_authtype (required)
ibmcloud
- Authenticate to the IBM Blockchain Platform console using IBM Cloud authentication. You must provide a valid API key using api_key.
basic
- Authenticate to the IBM Blockchain Platform 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 IBM Blockchain Platform console.
Type: str- api_secret
The API secret for the IBM Blockchain Platform console.
Only required when api_authtype is
basic
.Type: str- api_timeout
The timeout, in seconds, to use when interacting with the IBM Blockchain Platform console.
Type: intDefault value:60
- api_token_endpoint
The IBM Cloud IAM token endpoint to use when using IBM Cloud authentication.
Only required when api_authtype is
ibmcloud
, and you are using IBM internal staging servers for testing.Type: strDefault value:https://iam.cloud.ibm.com/identity/token
- name (required)
The name of the certificate authority.
- wait_timeout
The timeout, in seconds, to wait until the certificate authority is available.
Type: intDefault value:60
Examples
- name: Get certificate authority
ibm.blockchain_platform.certificate_authority_info:
api_endpoint: https://ibp-console.example.org:32000
api_authtype: basic
api_key: xxxxxxxx
api_secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
name: Org1 CA
Return Values
- exists
True if the certificate authority exists, false otherwise.
Returned: alwaysType: boolean- certificate_authority
The certificate authority.
Returned: if certificate authority existsType: dict
- name
The name of the certificate authority.
Type: strSample:Org1 CA
- api_url
The URL for the API of the certificate authority.
Type: strSample:https://org1ca-api.example.org:32000
- operations_url
The URL for the operations service of the certificate authority.
Type: strSample:https://org1ca-operations.example.org:32000
- ca_url
The URL for the API of the certificate authority.
Type: strSample:https://org1ca-api.example.org:32000
- ca_name
The certificate authority name to use for enrollment requests.
Type: strSample:ca
- tlsca_name
The certificate authority name to use for TLS enrollment requests.
Type: strSample:tlsca
- location
The location of the certificate authority.
Type: strSample:ibmcloud
- pem
The TLS certificate chain for the certificate authority.
The TLS certificate chain is returned as a base64 encoded PEM.
Type: strSample:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...
- tls_cert
The TLS certificate chain for the certificate authority.
The TLS certificate chain is returned as a base64 encoded PEM.
Type: strSample:LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...