Introduction
IBM® Blockchain Platform provides a managed and full stack blockchain-as-a-service (BaaS) offering. It simplifies your journey to build a Hyperledger Fabric based blockchain network and allows you to deploy blockchain components in environments of your choice.
- For more information about the IBM Blockchain Platform, see Getting started with IBM Blockchain Platform on IBM Cloud.
- If you are using the APIs with the IBM Blockchain Platform v2.1.x or 2.5.x on the OpenShift Container Platform or Kubernetes, see Getting started with IBM Blockchain Platform 2.5.2.
These APIs are for provisioning Fabric components and administering the IBM Blockchain Platform console. They do not include Fabric operations.
- Use Fabric CA APIs to perform CA operations such as registering or enrolling users.
- Use Fabric SDKs or Peer CLI commands, v1.4 or v2.2, to perform other Fabric operations.
A GoLang SDK/module is available. This module will allow you to use native Go functions to leverage the IBP API functionality.
With the Go
tab selected GoLang code examples will appear to the right of each API in this panel.
# Install the Go SDK using the command:
go get -u github.com/IBM-Blockchain/ibp-go-sdk
GitHub
A Node SDK/module is available. This module will allow you to use native JS functions to leverage the IBP API functionality.
With the Node
tab selected node.js code examples will appear to the right of each API in this panel.
# Install the Node SDK using the command:
npm i ibp-node-sdk
GitHub
A Python SDK/module is available. This module will allow you to use native Python functions to leverage the IBP API functionality.
With the Python
tab selected python code examples will appear to the right of each API in this panel.
# Install the Python SDK using the command:
pip install --upgrade "ibp-python-sdk>=0.1.0"
GitHub
A Java SDK is available. This SDK will allow you to use native JS functions to leverage the IBP API functionality.
With the Java
tab selected java code examples will appear to the right of each API in this panel.
Please see the install instructions in the GitHub repo.
# using SDKMan to use an installed Java 8
sdk use java 8.0.275.hs-adpt
# clone the repository
git clone https://github.com/IBM-Blockchain/ibp-java-sdk
# Package and Install to the local maven repository
mvn package install
GitHub
With the Curl
tab selected curl examples will appear to the right of each API in this panel.
Updates
January 2021
- SDKs
- Added IBP SDK/modules for
Node
,Python
, &Java
. Details.
- Added IBP SDK/modules for
- v3 APIs
- New IBM Blockchain Platform console APIs using the route
/v3/
are now available. Use of the earlier/v2/
&/v1/
APIs can continue. However,/v1/
is deprecated. - Added the
/actions
API to submit an action to an orderer, ca or peer. Actions include tasks such as restarting and various certificate renewals. - The create peer and orderer apis replaced the field
config
withcrypto
.crypto
uses a different schema thanconfig
. See the desired create api for format details. - Component response have a new field called
msp
. See the get-component-data response for format details. - The import peer, orderer and CA apis now require the
msp
field. See the desired import api for format details. - CA responses moved the fields
ca_name
&tlsca_name
tomsp.ca.name
&msp.tlsca.name
respectively. See the get-component-data response for format details.
- New IBM Blockchain Platform console APIs using the route
- Create OS response change
- the create-an-ordering-service-api response has changed from an array to an object. See the documented response for details.
August 2020
- Updated configuration override options
- More config settings are editable via
config_override
.
- More config settings are editable via
- Go SDK Docs/Examples
- A GoLang SDK/module for IBP APIs is available. Details.
March 2020
- v2 APIs
- New IBM Blockchain Platform console APIs using the route
/v2/
are now available. Use of the earlier/v1/
APIs continues to be supported.
- New IBM Blockchain Platform console APIs using the route
- Configuration override
- The IBM® Blockchain Platform APIs have been updated to allow you to customize the deployment of your component. The Fabric Certificate authority (CA), peer, and ordering node configuration files can now be customized by sending a configuration override in JSON. For more information, see Configuration Override.
Authentication
If you are looking for instructions on using APIs with the IBP Software (IBM Blockchain Platform on the OpenShift Container Platform or Kubernetes) refer to these instructions for authentication instead.
If you are looking for instructions on using APIs with the IBM Support for Hyperledger Fabric refer to these instructions for authentication instead.
If you are looking for instructions on using APIs with the IBM Blockchain on IBM Cloud, they are below:
Introduction
Authentication to each API is managed by IBM Cloud's Identity Access Management (IAM). To call each API, the user needs to be assigned a role that includes the required IAM permission (action). For more information about IAM roles and what permissions they have see the IBP Role to permissions mapping table.
To summarize: IAM users have roles, roles enable a set of actions, and each api looks for a required action.
Specifically, to authenticate an API request you need to provide an access/bearer token in each request. To do that we first need to create a service credential, then exchange the API key from the service credential for an access/bearer token. Finally, construct the authorization header with the access/bearer token.
To start, gather the following:
API-Key and API-Endpoint
The (IAM) API key is used to authenticate your requests to your IBM Blockchain Platform service instance. The API-Endpoint is the url that allows you to access your service instance.
You can get the API key and API Endpoint by creating a new service credential for your service instance:
- In your IBM Cloud dashboard, open the IBM Blockchain Platform service instance that you created.
- Click Service credentials from the left navigator.
- Click the "New Credential" button on the Service credentials page to create a new credential.
- Give the credential a Name to remember its purpose. Example, Test Service Credential.
- Select a permission (
Manager
,Writer
, orReader
) from the Role drop-down. For more information about each role, see the table in Add and remove users from the console. - Ignore the optional Select Service ID drop-down.
- Ignore the optional Inline configuration Parameters text-area.
- Click the Add button.
- After the new credential is created, click View credentials under the Actions table header. The field
api_endpoint
value is your API-Endpoint and theapikey
value is your API-Key. An example service credential is shown in right pane->
.- apikey - This field is your IAM API key. The example steps on this page refer to this field as
{API-Key}
. It is a secret/password that does not expire. Keep this key in a secure location. You will use this value in the next step. - api_endpoint - This is your IBM Blockchain Platform console url. All API requests need be sent to this url. The examples in the right pane will use the symbol
{API-Endpoint}
to refer to this field. When copying an example, replace this text (including the brackets) with the url of your IBP console. Your url will look similar tohttps://abcd-ibpconsole-console.uss01.blockchain.cloud.ibm.com
.
- apikey - This field is your IAM API key. The example steps on this page refer to this field as
Access-Token
Authenticate your app or service by including your IBM Cloud IAM access token (also known as a bearer token) in the HTTP requests as a header. Note that if you are using our SDKs, this is done for you. Thus you can skip this section. If you are using curl or a similar method we need to build the authorization HTTP header next. First lets get the access token:
To generate an access token, you must send the IAM API-Key to an IAM exchange endpoint. The response will have an access/bearer token that is good for 1 hour. There is a curl example in the right pane
->
and details below:- Method:
POST
- Endpoint:
"https://iam.cloud.ibm.com/identity/token"
- Data:
"grant_type=urn:ibm:params:oauth:grant-type:apikey&apikey={API-Key}"
- Replace
{API-Key}
including the brackets with your key.
- Replace
Access/bearer tokens are valid for one hour, but you can regenerate them as needed. To maintain access to the service, refresh the access token regularly.
- Method:
API-Key and API-Endpoint.
The service credential looks similar to the following example, where the api_endpoint
value is your API Endpoint and the apikey
value is your API key.
// example service credential:
{
"api_endpoint": "https://abcd-ibpconsole-console.uss01.blockchain.cloud.ibm.com",
"apikey": "1234s4eoUn7aBRRngGkgYKPqtP3h81ByLs7xHcqJ_aReu",
"iam_apikey_description": "Auto-generated for key abcd-1234-5678-ba06-23c43053df8c",
"iam_apikey_name": "my test key",
"iam_role_crn": "crn:v1:bluemix:public:iam::::serviceRole:Manager",
"iam_serviceid_crn": "crn:v1:staging:public:iam-identity::a/1234037caee397faa45c55e087d26baa::serviceid:ServiceId-12345-9c37-4f68-8572-8d6e2aabbc7e"
}
Access-Token
Open a terminal and call this IAM API to generate an access/bearer token. First, replace the {API-Key}
with the apikey
value in your service credential.
curl -X POST "https://iam.cloud.ibm.com/identity/token" -H "Accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=urn:ibm:params:oauth:grant-type:apikey&apikey={API-Key}"
The response that is returned by this curl command contains multiple fields. Be sure to copy and use the value of the access_token
field for the Bearer token authorization header.
// example response (values are abbreviated for brevity):
{
"access_token": "eyJraWQiOiIyMDE5MDcyNCIsImFsZyI6IlJTMjU2In0.eyJpYW1faWQiTQzM...",
"refresh_token": "OKCdugM9yM4QAuDqQBXC-FnkcqXGqbQPI5y3dWMDCNbUzXYIO-gwA0LzlFe...",
"token_type": "Bearer",
"expires_in": 3600,
"expiration": 1577854800,
"scope": "ibm openid"
}
The Go SDK/module will generate and renew the IAM api_token
automatically!
The only step you need to do is pass the apikey
and the service instance url to the sdk.
// imports
import (
"github.com/IBM-Blockchain/ibp-go-sdk/blockchainv3"
)
// Create an authenticator
authenticator := &core.IamAuthenticator{
ApiKey: "{API-Key}",
}
// Create an instance of the "BlockchainV3Options" struct
options := &blockchainv3.BlockchainV3Options{
Authenticator: authenticator,
URL: "https://{API-Endpoint}",
}
The Node SDK/module will generate and renew the IAM api_token
automatically!
The only step you need to do is pass the apikey
and the service instance url to the sdk.
// imports
const ibp = require('ibp-node-sdk');
// Create an authenticator
const authenticator = new ibp.IamAuthenticator({
apikey: '{API-Key}',
});
// Create client from the "BlockchainV3" class
const client = ibp.BlockchainV3.newInstance({
authenticator: authenticator,
url: 'https://{API-Endpoint}',
});
The Python SDK/module will generate and renew the IAM api_token
automatically!
The only step you need to do is pass the apikey
and the service instance url to the sdk.
# imports
from ibp_python_sdk import BlockchainV3, IAMAuthenticator, ApiException
# Create an authenticator
authenticator = IAMAuthenticator(
apikey='{API-Key}'
)
# Create client from the "BlockchainV3" class
service = BlockchainV3(
authenticator=authenticator
)
service.set_service_url('https://{API-Endpoint}')
The Java SDK will generate and renew the IAM api_token
automatically!
The only step you need to do is pass the apikey
and the service instance url to the sdk.
// imports
import com.ibm.cloud.blockchain.v3.Blockchain;
import com.ibm.cloud.blockchain.v3.model.*;
import com.ibm.cloud.sdk.core.*;
// Create an IAM authenticator
IamAuthenticator authenticator = new IamAuthenticator("{API-Key}");
// Create client
Blockchain bc = new Blockchain("myIbp", authenticator);
bc.setServiceUrl("https://{API-Endpoint}");
Build HTTP Header
Using the response of the access token api call you can now create the http Authorization
header.
This header authorizes all IBP console APIs (given the IAM API key has the necessary role).
It should follow this format:
Authorization: Bearer {Access-Token}
- If you are using curl, the header can be set with this argument:
-H "Authorization: Bearer {Access-Token}"
- Replace the text
{Access-Token}
(including the brackets) with the value of youraccess_token
field. However, note that the JSON response contains multiple fields. Only copy the value of theaccess_token
field. - With the
Authorization
header set, the hard part is done. Next pick an api, set the route, set a body (if applicable) and fire!
Response Codes
The IBM Blockchain Platform APIs use standard HTTP status codes to indicate whether a method completed successfully.
A 200
-299
status code indicates a success.
A 400
-599
status code indicates a failure.
All APIs will respond with JSON and set the response header Content-Type
to application/json
.
HTTP Status Code | Description | Recovery |
---|---|---|
2xx |
OK | The request was successful. The response contains details. |
4xx |
Invalid Request | There is some issue with the request such as invalid permission, invalid input, or invalid route. Correct and try again. |
5xx |
Internal Error | The request could not be processed due to an internal issue or an issue with a dependency. Wait a few minutes and try again. |
Rate Limits
All endpoints are protected by a rate limiter. If a client exceeds the limit, the server will not process the request and respond with a status code of 429
. The client should back off and try the same request later.
There is a "base" limit of 25
requests per minute which applies to APIs that change state.
Requests that do not alter state, such as one's with a GET
method, have a a limit of 4 x base
or 100
requests per min.
These limits can be customized with the Change IBP console settings API.
- The remaining requests a client can make (of the same type) before hitting the limit can be seen in the response header
X-RateLimit-Remaining
- When the limit is exceeded a UNIX timestamp (UTC) of when the client can retry is returned in the response header
X-RateLimit-Reset
- API rates are applied to individual clients
Curl Examples
A curl example appears to the right of each documented api (if the Curl
tab is selected). If you are unfamiliar with cURL, it is free software that allows you to send HTTP requests by using a command line interface. It is the quickest way to interact with the IBM Blockchain Platform APIs.
After curl is installed locally (it is often already installed by many operating systems), you can copy the example curl text and paste it into command line. Remember to replace the placeholders in the curl example with specific values for your service instance.
Most of the curl examples have placeholder values. They need to be replaced to use the API. For example, the fields api_url
, grpcwp_url
, tls_cert
, admins
, root_certs
& tls_root_certs
in all curl examples are examples. They must be replaced with values for your components or identities.
In most cases the API will be rejected if the examples are left unchanged. This is especially true for certificate examples.
SDK Examples
SDK examples will appear to the right of each documented api (based on the selected language). More SDK details.
Postman
APIs are available to download a working Postman collection, which includes example API requests for all the APIs. If you are unfamiliar with Postman, it is free software that allows you to send and save HTTP requests by using a graphical user interface. It is easier to use than curl (less error prone).
See the Generate Postman collection
APIs in the Download examples
section to download a collection for your preferred auth. When Postman is installed, you can import this collection and then use Postman to interact with the APIs.
Just like the other examples, these examples will contain placeholder values. The placeholder values must be replaced to have a properly working request.
OpenAPI
There is an API to download the OpenAPI file (also known as the swagger file) that is used to build this page. If you are unfamiliar with OpenAPI, it is a file-based documentation standard that allows an application to document supported HTTP requests. Our version of the file documents the APIs offered by the IBM Blockchain Platform console. It is the same file that helped generate the API section below.
After you download the file, you can use it with various tools that support OpenAPI v3. For example, you can copy and paste the file into a swagger editor to browse the APIs we offer through an offline interface. See the Download OpenAPI file
API in the Download examples
section to get the swagger file.
SDK
We currently offer GoLang
, Node
, Python
, & Java
SDKs.
These modules will allow you to use native functions to leverage the IBP API functionality.
The SDK syntax can also be found in this documentation.
Click on the desired language (near the top right of this window) to see language specific example syntax instead of curl examples.
These examples will appear to the right of each API as you scroll through them.
For detailed SDK installation and auth setup refer to the SDK's readme:
The examples (in the right pane of this window) contain placeholder text which will need to be replaced.
The placeholders will use curly brackets around title case names, such as:
- {API-Endpoint} - Replace this text (including the brackets) with the url of your IBP console. It will be similar to https://abcd-ibpconsole-console.uss01.blockchain.cloud.ibm.com
.
- {Component-ID} - Replace this text (including the brackets) with the id of a component. Components ids are strings, similar to mypeer
.
- {API-Key} - Replace this text (including the brackets) with your IAM API Key. See that the auth instructions to obtain one.
GoLang code examples will appear to the right of each API in this panel.
# Install the Go SDK using the command:
go get -u github.com/IBM-Blockchain/ibp-go-sdk
GitHub
Node.js code examples will appear to the right of each API in this panel.
# Install the Node SDK using the command:
npm i ibp-node-sdk
GitHub
Python code examples will appear to the right of each API in this panel.
# Install the Python SDK using the command:
pip install --upgrade "ibp-python-sdk>=0.1.0"
GitHub
Java code examples will appear to the right of each API in this panel.
# using SDKMan to use an installed Java 8
sdk use java 8.0.275.hs-adpt
# clone the repository
git clone https://github.com/IBM-Blockchain/ibp-java-sdk
# Package and Install to the local maven repository
mvn package install
GitHub
Configuration Override
You have the option of customizing the configuration of a CA, peer, or ordering node by setting the configuration override field in certain APIs. Normally the components that are deployed by the IBM Blockchain console APIs are configured with default Fabric values that are provided by the fabric-ca-server-config.yaml
, orderer.yaml
, and core.yaml
files. However, you can customize your component's settings by providing the field config_override
in the body of a create or update component API. The value of the field would contain the desired configuration. You can use the override to deploy a High Availability (HA) CA or deploy components that use a Hardware Security Module (HSM). For more information about the override, High Availability CAs, or HSMs, see Advanced deployment options.
You can find the configuration fields documented in the Fabric configuration sample files:
Examples
- For an example of how to use the configuration override, see Using the APIs to create a node with a custom configuration.
Methods
Get component data
Get the IBP console's data on a component (peer, CA, orderer, or MSP). The component might be imported or created.
API Availability:
- available on all IBP distributions.
Get the IBP console's data on a component (peer, CA, orderer, or MSP). The component might be imported or created.
Get the IBP console's data on a component (peer, CA, orderer, or MSP). The component might be imported or created.
Get the IBP console's data on a component (peer, CA, orderer, or MSP). The component might be imported or created.
Get the IBP console's data on a component (peer, CA, orderer, or MSP). The component might be imported or created.
GET /ak/api/v3/components/{id}
(blockchain *BlockchainV3) GetComponent(getComponentOptions *GetComponentOptions) (result *GenericComponentResponse, response *core.DetailedResponse, err error)
(blockchain *BlockchainV3) GetComponentWithContext(ctx context.Context, getComponentOptions *GetComponentOptions) (result *GenericComponentResponse, response *core.DetailedResponse, err error)
getComponent(params)
get_component(self,
id: str,
*,
deployment_attrs: str = None,
parsed_certs: str = None,
cache: str = None,
ca_attrs: str = None,
**kwargs
) -> DetailedResponse
ServiceCall<GenericComponentResponse> getComponent(GetComponentOptions getComponentOptions)
Request
Instantiate the GetComponentOptions
struct and set the fields to provide parameter values for the GetComponent
method.
Use the GetComponentOptions.Builder
to create a GetComponentOptions
object that contains the parameter values for the getComponent
method.
Path Parameters
The
id
of the component to retrieve. Use the Get all components API to determine the component id.
Query Parameters
Set to 'included' if the response should include Kubernetes deployment attributes such as 'resources', 'storage', 'zone', 'region', 'admin_certs', etc. Default responses will not include these fields.
This parameter will not work on imported components.
It's recommended to use
cache=skip
as well if up-to-date deployment data is needed.Allowable values: [
included
,omitted
]Example:
included
Set to 'included' if the response should include parsed PEM data along with base 64 encoded PEM string. Parsed certificate data will include fields such as the serial number, issuer, expiration, subject, subject alt names, etc. Default responses will not include these fields.
Allowable values: [
included
,omitted
]Example:
included
Set to 'skip' if the response should skip local data and fetch live data wherever possible. Expect longer response times if the cache is skipped. Default responses will use the cache.
Allowable values: [
skip
,use
]Example:
skip
Set to 'included' if the response should fetch CA attributes, inspect certificates, and append extra fields to CA and MSP component responses.
- CA components will have fields appended/updated with data fetched from the
/cainfo?ca=ca
endpoint of a CA, such as:ca_name
,root_cert
,fabric_version
,issuer_public_key
andissued_known_msps
. The fieldissued_known_msps
indicates imported IBP MSPs that this CA has issued. Meaning the MSP's root cert contains a signature that is derived from this CA's root cert. Only imported MSPs are checked. Default responses will not include these fields. - MSP components will have the field
issued_by_ca_id
appended. This field indicates the id of an IBP console CA that issued this MSP. Meaning the MSP's root cert contains a signature that is derived from this CA's root cert. Only imported/created CAs are checked. Default responses will not include these fields.
Allowable values: [
included
,omitted
]Example:
included
- CA components will have fields appended/updated with data fetched from the
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The GetComponent options.
The
id
of the component to retrieve. Use the Get all components API to determine the component id.Set to 'included' if the response should include Kubernetes deployment attributes such as 'resources', 'storage', 'zone', 'region', 'admin_certs', etc. Default responses will not include these fields.
This parameter will not work on imported components.
It's recommended to use
cache=skip
as well if up-to-date deployment data is needed.Allowable values: [
included
,omitted
]Examples:ViewSet to 'included' if the response should include parsed PEM data along with base 64 encoded PEM string. Parsed certificate data will include fields such as the serial number, issuer, expiration, subject, subject alt names, etc. Default responses will not include these fields.
Allowable values: [
included
,omitted
]Examples:ViewSet to 'skip' if the response should skip local data and fetch live data wherever possible. Expect longer response times if the cache is skipped. Default responses will use the cache.
Allowable values: [
skip
,use
]Examples:ViewSet to 'included' if the response should fetch CA attributes, inspect certificates, and append extra fields to CA and MSP component responses.
- CA components will have fields appended/updated with data fetched from the
/cainfo?ca=ca
endpoint of a CA, such as:ca_name
,root_cert
,fabric_version
,issuer_public_key
andissued_known_msps
. The fieldissued_known_msps
indicates imported IBP MSPs that this CA has issued. Meaning the MSP's root cert contains a signature that is derived from this CA's root cert. Only imported MSPs are checked. Default responses will not include these fields. - MSP components will have the field
issued_by_ca_id
appended. This field indicates the id of an IBP console CA that issued this MSP. Meaning the MSP's root cert contains a signature that is derived from this CA's root cert. Only imported/created CAs are checked. Default responses will not include these fields.
Allowable values: [
included
,omitted
]Examples:View- CA components will have fields appended/updated with data fetched from the
parameters
The
id
of the component to retrieve. Use the Get all components API to determine the component id.Set to 'included' if the response should include Kubernetes deployment attributes such as 'resources', 'storage', 'zone', 'region', 'admin_certs', etc. Default responses will not include these fields.
This parameter will not work on imported components.
It's recommended to use
cache=skip
as well if up-to-date deployment data is needed.Allowable values: [
included
,omitted
]Examples:value_source_lines_htmlSet to 'included' if the response should include parsed PEM data along with base 64 encoded PEM string. Parsed certificate data will include fields such as the serial number, issuer, expiration, subject, subject alt names, etc. Default responses will not include these fields.
Allowable values: [
included
,omitted
]Examples:value_source_lines_htmlSet to 'skip' if the response should skip local data and fetch live data wherever possible. Expect longer response times if the cache is skipped. Default responses will use the cache.
Allowable values: [
skip
,use
]Examples:value_source_lines_htmlSet to 'included' if the response should fetch CA attributes, inspect certificates, and append extra fields to CA and MSP component responses.
- CA components will have fields appended/updated with data fetched from the
/cainfo?ca=ca
endpoint of a CA, such as:ca_name
,root_cert
,fabric_version
,issuer_public_key
andissued_known_msps
. The fieldissued_known_msps
indicates imported IBP MSPs that this CA has issued. Meaning the MSP's root cert contains a signature that is derived from this CA's root cert. Only imported MSPs are checked. Default responses will not include these fields. - MSP components will have the field
issued_by_ca_id
appended. This field indicates the id of an IBP console CA that issued this MSP. Meaning the MSP's root cert contains a signature that is derived from this CA's root cert. Only imported/created CAs are checked. Default responses will not include these fields.
Allowable values: [
included
,omitted
]Examples:value_source_lines_html- CA components will have fields appended/updated with data fetched from the
parameters
The
id
of the component to retrieve. Use the Get all components API to determine the component id.Set to 'included' if the response should include Kubernetes deployment attributes such as 'resources', 'storage', 'zone', 'region', 'admin_certs', etc. Default responses will not include these fields.
This parameter will not work on imported components.
It's recommended to use
cache=skip
as well if up-to-date deployment data is needed.Allowable values: [
included
,omitted
]Examples:value_source_lines_htmlSet to 'included' if the response should include parsed PEM data along with base 64 encoded PEM string. Parsed certificate data will include fields such as the serial number, issuer, expiration, subject, subject alt names, etc. Default responses will not include these fields.
Allowable values: [
included
,omitted
]Examples:value_source_lines_htmlSet to 'skip' if the response should skip local data and fetch live data wherever possible. Expect longer response times if the cache is skipped. Default responses will use the cache.
Allowable values: [
skip
,use
]Examples:value_source_lines_htmlSet to 'included' if the response should fetch CA attributes, inspect certificates, and append extra fields to CA and MSP component responses.
- CA components will have fields appended/updated with data fetched from the
/cainfo?ca=ca
endpoint of a CA, such as:ca_name
,root_cert
,fabric_version
,issuer_public_key
andissued_known_msps
. The fieldissued_known_msps
indicates imported IBP MSPs that this CA has issued. Meaning the MSP's root cert contains a signature that is derived from this CA's root cert. Only imported MSPs are checked. Default responses will not include these fields. - MSP components will have the field
issued_by_ca_id
appended. This field indicates the id of an IBP console CA that issued this MSP. Meaning the MSP's root cert contains a signature that is derived from this CA's root cert. Only imported/created CAs are checked. Default responses will not include these fields.
Allowable values: [
included
,omitted
]Examples:value_source_lines_html- CA components will have fields appended/updated with data fetched from the
The getComponent options.
The
id
of the component to retrieve. Use the Get all components API to determine the component id.Set to 'included' if the response should include Kubernetes deployment attributes such as 'resources', 'storage', 'zone', 'region', 'admin_certs', etc. Default responses will not include these fields.
This parameter will not work on imported components.
It's recommended to use
cache=skip
as well if up-to-date deployment data is needed.Allowable values: [
included
,omitted
]Examples:ViewSet to 'included' if the response should include parsed PEM data along with base 64 encoded PEM string. Parsed certificate data will include fields such as the serial number, issuer, expiration, subject, subject alt names, etc. Default responses will not include these fields.
Allowable values: [
included
,omitted
]Examples:ViewSet to 'skip' if the response should skip local data and fetch live data wherever possible. Expect longer response times if the cache is skipped. Default responses will use the cache.
Allowable values: [
skip
,use
]Examples:ViewSet to 'included' if the response should fetch CA attributes, inspect certificates, and append extra fields to CA and MSP component responses.
- CA components will have fields appended/updated with data fetched from the
/cainfo?ca=ca
endpoint of a CA, such as:ca_name
,root_cert
,fabric_version
,issuer_public_key
andissued_known_msps
. The fieldissued_known_msps
indicates imported IBP MSPs that this CA has issued. Meaning the MSP's root cert contains a signature that is derived from this CA's root cert. Only imported MSPs are checked. Default responses will not include these fields. - MSP components will have the field
issued_by_ca_id
appended. This field indicates the id of an IBP console CA that issued this MSP. Meaning the MSP's root cert contains a signature that is derived from this CA's root cert. Only imported/created CAs are checked. Default responses will not include these fields.
Allowable values: [
included
,omitted
]Examples:View- CA components will have fields appended/updated with data fetched from the
curl -X GET "https://{API-Endpoint}/ak/api/v3/components/{Component-ID}?cache=skip&deployment_attrs=included" -H "Authorization: Bearer {Access-Token}"
// Create an authenticator authenticator := &core.IamAuthenticator{ ApiKey: "{API-Key}", } // Create an instance of the "BlockchainV3Options" struct options := &blockchainv3.BlockchainV3Options{ Authenticator: authenticator, URL: "https://{API-Endpoint}", } // Create an instance of the "BlockchainV3" service client. service, err := blockchainv3.NewBlockchainV3(options) if err != nil { return } // Get data for component opts := service.NewGetComponentOptions("{Component-ID}") result, detailedResponse, err := service.GetComponent(opts) fmt.Println("result:", result) fmt.Println("response:", detailedResponse)
// Create an authenticator const authenticator = new ibp.IamAuthenticator({ apikey: '{API-Key}', }); // Create client from the "BlockchainV3" class const client = ibp.BlockchainV3.newInstance({ authenticator: authenticator, url: 'https://{API-Endpoint}', }); // Get data for component try { const response = await client.getComponent({ id: '{Component-ID}' }); console.log('response:', response.result); // handle good response here } catch (e) { console.error('error response:', e.body); // handle error here }
try { // Create an IAM authenticator. IamAuthenticator authenticator = new IamAuthenticator("{API-Key}"); Blockchain bc = new Blockchain("myIbp", authenticator); bc.setServiceUrl("https://{API-Endpoint}"); // get all the peer components GetComponentsOptions options = new GetComponentsOptions.Builder().id({id}) .build(); ServiceCall<GeResponse> call = bc.getComponents(options); Response<GetResponse> response = call.execute(); if (response.getStatusCode() != 200) { throw new RuntimeException("Error code "+response.getStatusCode()+" : "+response.getStatusMessage()); } GenericComponentResponse l = response.getResult(); System.out.println(l); } catch (ServiceResponseException e) { // essential to catch and get the debugging information RuntimeException wrappedError = new RuntimeException(e.getDebuggingInfo().toString()); wrappedError.initCause(e); throw wrappedError; }
# Create an authenticator authenticator = IAMAuthenticator( apikey='{API-Key}' ) # Create client from the "BlockchainV3" class client = BlockchainV3( authenticator=authenticator ) client.set_service_url('https://{API-Endpoint}') # Get data for component try: response = client.get_component(id='{Component-ID}') print(f'response: {response.result}') # handle good response here except ApiException as e: print(f'error response: {e.message}') # handle error here
Response
Contains the details of a component. Not all components have the same fields, see description of each field for details.
The unique identifier of this component. [Available on all component types]
Example:
myca-2
The type of this component [Available on all component types]
Possible values: [
fabric-peer
,fabric-ca
,fabric-orderer
]Example:
fabric-ca
The displayed name of this component. [Available on all component types]
Example:
Example CA
A unique id to identify this ordering service cluster. [Available on orderer components]
Example:
mzdqhdifnl
A descriptive name for the ordering service. The parent IBP console orderer tile displays this name. [Available on orderer components]
Example:
ordering service 1
The URL for the grpc web proxy for this component. [Available on peer/orderer components]
Example:
https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084
The gRPC URL for the component. Typically, client applications would send requests to this URL. [Available on ca/peer/orderer components]
Example:
grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051
Used by Fabric health checker to monitor health status of the node. For more information, see Fabric documentation. [Available on ca/peer/orderer components]
Example:
https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443
The "name" to distinguish this CA from the TLS CA. [Available on ca components]
Example:
org1CA
An array that contains one or more base 64 encoded PEM root certificates for the CA. [Available on ca/peer/orderer components]
Examples:View
ca
The "name" to distinguish this CA from the other CA. [Available on ca components]
Example:
org1tlsCA
An array that contains one or more base 64 encoded PEM root certificates for the TLS CA. [Available on ca/peer/orderer components]
Examples:View
tlsca
The TLS certificate as base 64 encoded PEM. Certificate is used to secure/validate a TLS connection with this component.
Example:
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
An identity certificate (base 64 encoded PEM) for this component that was signed by the CA (aka enrollment certificate). [Available on peer/orderer components w/query parameter 'deployment_attrs']
Example:
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
An array that contains base 64 encoded PEM identity certificates for administrators. Also known as signing certificates of an organization administrator. [Available on peer/orderer components w/query parameter 'deployment_attrs']
Possible values: 0 ≤ length ≤ 100
Examples:View
component
msp
The MSP id that is related to this component. [Available on all components]
Example:
Org1
Indicates where the component is running.
Possible values: length ≤ 1024
Example:
ibmcloud
The cached Kubernetes resource attributes for this component. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs']
resources
The versioning of the IBP console format of this JSON.
Example:
v1
The type of ledger database for a peer. [Available on peer components w/query parameter 'deployment_attrs']
Example:
couchdb
The cached Kubernetes storage attributes for this component. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs']
storage
UNIX timestamp of component creation, UTC, ms. [Available on all components]
Example:
1537262855753
User defined strings that can be used to search/filter components. When editing this field set the complete (desired) tags array. Will always conform to lowercase.
Possible values: length ≤ 32
The cached Hyperledger Fabric version for this component. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs']
Example:
1.4.6-1
The Kubernetes zone of this component's deployment. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs']
Example:
-
Contains the details of a component. Not all components have the same fields, see description of each field for details.
The unique identifier of this component. [Available on all component types].
Examples:ViewThe type of this component [Available on all component types].
Possible values: [
fabric-peer
,fabric-ca
,fabric-orderer
]Examples:ViewThe displayed name of this component. [Available on all component types].
Examples:ViewA unique id to identify this ordering service cluster. [Available on orderer components].
Examples:ViewA descriptive name for the ordering service. The parent IBP console orderer tile displays this name. [Available on orderer components].
Examples:ViewThe URL for the grpc web proxy for this component. [Available on peer/orderer components].
Examples:ViewThe gRPC URL for the component. Typically, client applications would send requests to this URL. [Available on ca/peer/orderer components].
Examples:ViewUsed by Fabric health checker to monitor health status of the node. For more information, see Fabric documentation. [Available on ca/peer/orderer components].
Examples:ViewThe "name" to distinguish this CA from the TLS CA. [Available on ca components].
Examples:ViewAn array that contains one or more base 64 encoded PEM root certificates for the CA. [Available on ca/peer/orderer components].
Examples:View
Ca
The "name" to distinguish this CA from the other CA. [Available on ca components].
Examples:ViewAn array that contains one or more base 64 encoded PEM root certificates for the TLS CA. [Available on ca/peer/orderer components].
Examples:View
Tlsca
The TLS certificate as base 64 encoded PEM. Certificate is used to secure/validate a TLS connection with this component.
Examples:ViewAn identity certificate (base 64 encoded PEM) for this component that was signed by the CA (aka enrollment certificate). [Available on peer/orderer components w/query parameter 'deployment_attrs'].
Examples:ViewAn array that contains base 64 encoded PEM identity certificates for administrators. Also known as signing certificates of an organization administrator. [Available on peer/orderer components w/query parameter 'deployment_attrs'].
Examples:View
Component
Msp
The MSP id that is related to this component. [Available on all components].
Examples:ViewIndicates where the component is running.
Possible values: length ≤ 1024
Examples:ViewIndicates if node OUs are enabled or not. [Available on peer/orderer components w/query parameter 'deployment_attrs'].
Examples:View
NodeOu
The cached Kubernetes resource attributes for this component. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
- Examples:View
- Examples:View
Requests
- Examples:View
- Examples:View
Limits
Ca
- Examples:View
- Examples:View
Requests
- Examples:View
- Examples:View
Limits
Peer
- Examples:View
- Examples:View
Requests
- Examples:View
- Examples:View
Limits
Orderer
- Examples:View
- Examples:View
Requests
- Examples:View
- Examples:View
Limits
Proxy
- Examples:View
- Examples:View
Requests
- Examples:View
- Examples:View
Limits
Statedb
Resources
The versioning of the IBP console format of this JSON.
Examples:ViewThe type of ledger database for a peer. [Available on peer components w/query parameter 'deployment_attrs'].
Examples:ViewThe cached Kubernetes storage attributes for this component. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
Ca
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
Peer
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
Orderer
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
Statedb
Storage
UNIX timestamp of component creation, UTC, ms. [Available on all components].
Examples:ViewPossible values: length ≤ 32
The cached Hyperledger Fabric version for this component. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
Examples:ViewThe Kubernetes zone of this component's deployment. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
Examples:View
Contains the details of a component. Not all components have the same fields, see description of each field for details.
The unique identifier of this component. [Available on all component types].
Examples:ViewThe type of this component [Available on all component types].
Possible values: [
fabric-peer
,fabric-ca
,fabric-orderer
]Examples:ViewThe displayed name of this component. [Available on all component types].
Examples:ViewA unique id to identify this ordering service cluster. [Available on orderer components].
Examples:ViewA descriptive name for the ordering service. The parent IBP console orderer tile displays this name. [Available on orderer components].
Examples:ViewThe URL for the grpc web proxy for this component. [Available on peer/orderer components].
Examples:ViewThe gRPC URL for the component. Typically, client applications would send requests to this URL. [Available on ca/peer/orderer components].
Examples:ViewUsed by Fabric health checker to monitor health status of the node. For more information, see Fabric documentation. [Available on ca/peer/orderer components].
Examples:ViewThe "name" to distinguish this CA from the TLS CA. [Available on ca components].
Examples:ViewAn array that contains one or more base 64 encoded PEM root certificates for the CA. [Available on ca/peer/orderer components].
Examples:View
ca
The "name" to distinguish this CA from the other CA. [Available on ca components].
Examples:ViewAn array that contains one or more base 64 encoded PEM root certificates for the TLS CA. [Available on ca/peer/orderer components].
Examples:View
tlsca
The TLS certificate as base 64 encoded PEM. Certificate is used to secure/validate a TLS connection with this component.
Examples:ViewAn identity certificate (base 64 encoded PEM) for this component that was signed by the CA (aka enrollment certificate). [Available on peer/orderer components w/query parameter 'deployment_attrs'].
Examples:ViewAn array that contains base 64 encoded PEM identity certificates for administrators. Also known as signing certificates of an organization administrator. [Available on peer/orderer components w/query parameter 'deployment_attrs'].
Examples:View
component
msp
The MSP id that is related to this component. [Available on all components].
Examples:ViewIndicates where the component is running.
Possible values: length ≤ 1024
Examples:ViewIndicates if node OUs are enabled or not. [Available on peer/orderer components w/query parameter 'deployment_attrs'].
Examples:View
node_ou
The cached Kubernetes resource attributes for this component. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
- Examples:View
- Examples:View
requests
- Examples:View
- Examples:View
limits
ca
- Examples:View
- Examples:View
requests
- Examples:View
- Examples:View
limits
peer
- Examples:View
- Examples:View
requests
- Examples:View
- Examples:View
limits
orderer
- Examples:View
- Examples:View
requests
- Examples:View
- Examples:View
limits
proxy
- Examples:View
- Examples:View
requests
- Examples:View
- Examples:View
limits
statedb
resources
The versioning of the IBP console format of this JSON.
Examples:ViewThe type of ledger database for a peer. [Available on peer components w/query parameter 'deployment_attrs'].
Examples:ViewThe cached Kubernetes storage attributes for this component. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
ca
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
peer
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
orderer
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
statedb
storage
UNIX timestamp of component creation, UTC, ms. [Available on all components].
Examples:ViewPossible values: length ≤ 32
The cached Hyperledger Fabric version for this component. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
Examples:ViewThe Kubernetes zone of this component's deployment. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
Examples:View
Contains the details of a component. Not all components have the same fields, see description of each field for details.
The unique identifier of this component. [Available on all component types].
Examples:ViewThe type of this component [Available on all component types].
Possible values: [
fabric-peer
,fabric-ca
,fabric-orderer
]Examples:ViewThe displayed name of this component. [Available on all component types].
Examples:ViewA unique id to identify this ordering service cluster. [Available on orderer components].
Examples:ViewA descriptive name for the ordering service. The parent IBP console orderer tile displays this name. [Available on orderer components].
Examples:ViewThe URL for the grpc web proxy for this component. [Available on peer/orderer components].
Examples:ViewThe gRPC URL for the component. Typically, client applications would send requests to this URL. [Available on ca/peer/orderer components].
Examples:ViewUsed by Fabric health checker to monitor health status of the node. For more information, see Fabric documentation. [Available on ca/peer/orderer components].
Examples:ViewThe "name" to distinguish this CA from the TLS CA. [Available on ca components].
Examples:ViewAn array that contains one or more base 64 encoded PEM root certificates for the CA. [Available on ca/peer/orderer components].
Examples:View
ca
The "name" to distinguish this CA from the other CA. [Available on ca components].
Examples:ViewAn array that contains one or more base 64 encoded PEM root certificates for the TLS CA. [Available on ca/peer/orderer components].
Examples:View
tlsca
The TLS certificate as base 64 encoded PEM. Certificate is used to secure/validate a TLS connection with this component.
Examples:ViewAn identity certificate (base 64 encoded PEM) for this component that was signed by the CA (aka enrollment certificate). [Available on peer/orderer components w/query parameter 'deployment_attrs'].
Examples:ViewAn array that contains base 64 encoded PEM identity certificates for administrators. Also known as signing certificates of an organization administrator. [Available on peer/orderer components w/query parameter 'deployment_attrs'].
Examples:View
component
msp
The MSP id that is related to this component. [Available on all components].
Examples:ViewIndicates where the component is running.
Possible values: length ≤ 1024
Examples:ViewIndicates if node OUs are enabled or not. [Available on peer/orderer components w/query parameter 'deployment_attrs'].
Examples:View
node_ou
The cached Kubernetes resource attributes for this component. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
- Examples:View
- Examples:View
requests
- Examples:View
- Examples:View
limits
ca
- Examples:View
- Examples:View
requests
- Examples:View
- Examples:View
limits
peer
- Examples:View
- Examples:View
requests
- Examples:View
- Examples:View
limits
orderer
- Examples:View
- Examples:View
requests
- Examples:View
- Examples:View
limits
proxy
- Examples:View
- Examples:View
requests
- Examples:View
- Examples:View
limits
statedb
resources
The versioning of the IBP console format of this JSON.
Examples:ViewThe type of ledger database for a peer. [Available on peer components w/query parameter 'deployment_attrs'].
Examples:ViewThe cached Kubernetes storage attributes for this component. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
ca
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
peer
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
orderer
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
statedb
storage
UNIX timestamp of component creation, UTC, ms. [Available on all components].
Examples:ViewPossible values: length ≤ 32
The cached Hyperledger Fabric version for this component. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
Examples:ViewThe Kubernetes zone of this component's deployment. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
Examples:View
Contains the details of a component. Not all components have the same fields, see description of each field for details.
The unique identifier of this component. [Available on all component types].
Examples:ViewThe type of this component [Available on all component types].
Possible values: [
fabric-peer
,fabric-ca
,fabric-orderer
]Examples:ViewThe displayed name of this component. [Available on all component types].
Examples:ViewA unique id to identify this ordering service cluster. [Available on orderer components].
Examples:ViewA descriptive name for the ordering service. The parent IBP console orderer tile displays this name. [Available on orderer components].
Examples:ViewThe URL for the grpc web proxy for this component. [Available on peer/orderer components].
Examples:ViewThe gRPC URL for the component. Typically, client applications would send requests to this URL. [Available on ca/peer/orderer components].
Examples:ViewUsed by Fabric health checker to monitor health status of the node. For more information, see Fabric documentation. [Available on ca/peer/orderer components].
Examples:ViewThe "name" to distinguish this CA from the TLS CA. [Available on ca components].
Examples:ViewAn array that contains one or more base 64 encoded PEM root certificates for the CA. [Available on ca/peer/orderer components].
Examples:View
ca
The "name" to distinguish this CA from the other CA. [Available on ca components].
Examples:ViewAn array that contains one or more base 64 encoded PEM root certificates for the TLS CA. [Available on ca/peer/orderer components].
Examples:View
tlsca
The TLS certificate as base 64 encoded PEM. Certificate is used to secure/validate a TLS connection with this component.
Examples:ViewAn identity certificate (base 64 encoded PEM) for this component that was signed by the CA (aka enrollment certificate). [Available on peer/orderer components w/query parameter 'deployment_attrs'].
Examples:ViewAn array that contains base 64 encoded PEM identity certificates for administrators. Also known as signing certificates of an organization administrator. [Available on peer/orderer components w/query parameter 'deployment_attrs'].
Examples:View
component
msp
The MSP id that is related to this component. [Available on all components].
Examples:ViewIndicates where the component is running.
Possible values: length ≤ 1024
Examples:ViewIndicates if node OUs are enabled or not. [Available on peer/orderer components w/query parameter 'deployment_attrs'].
Examples:View
nodeOu
The cached Kubernetes resource attributes for this component. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
- Examples:View
- Examples:View
requests
- Examples:View
- Examples:View
limits
ca
- Examples:View
- Examples:View
requests
- Examples:View
- Examples:View
limits
peer
- Examples:View
- Examples:View
requests
- Examples:View
- Examples:View
limits
orderer
- Examples:View
- Examples:View
requests
- Examples:View
- Examples:View
limits
proxy
- Examples:View
- Examples:View
requests
- Examples:View
- Examples:View
limits
statedb
resources
The versioning of the IBP console format of this JSON.
Examples:ViewThe type of ledger database for a peer. [Available on peer components w/query parameter 'deployment_attrs'].
Examples:ViewThe cached Kubernetes storage attributes for this component. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
ca
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
peer
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
orderer
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
statedb
storage
UNIX timestamp of component creation, UTC, ms. [Available on all components].
Examples:ViewPossible values: length ≤ 32
The cached Hyperledger Fabric version for this component. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
Examples:ViewThe Kubernetes zone of this component's deployment. [Available on ca/peer/orderer components w/query parameter 'deployment_attrs'].
Examples:View
Status Code
Request was successful.
Request is unauthorized (invalid credentials).
Request is forbidden (credentials lack permission).
Component in request was not found.
{ "id": "myca-2", "type": "fabric-ca", "display_name": "Example CA", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "msp": { "ca": { "name": "org1CA", "root_certs": [ "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=" ] }, "tlsca": { "name": "org1tlsCA", "root_certs": [ "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=" ] }, "component": { "tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": [ "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=" ] } }, "msp_id": "Org1", "location": "ibmcloud", "node_ou": { "enabled": true }, "resources": { "ca": { "requests": { "cpu": "100m", "memory": "64M" }, "limits": { "cpu": "8000m", "memory": "16384M" } }, "peer": { "requests": { "cpu": "100m", "memory": "64M" }, "limits": { "cpu": "8000m", "memory": "16384M" } }, "orderer": { "requests": { "cpu": "100m", "memory": "64M" }, "limits": { "cpu": "8000m", "memory": "16384M" } }, "proxy": { "requests": { "cpu": "100m", "memory": "64M" }, "limits": { "cpu": "8000m", "memory": "16384M" } }, "statedb": { "requests": { "cpu": "100m", "memory": "64M" }, "limits": { "cpu": "8000m", "memory": "16384M" } } }, "scheme_version": "v1", "state_db": "couchdb", "storage": { "ca": { "size": "4GiB", "class": "default" }, "peer": { "size": "4GiB", "class": "default" }, "orderer": { "size": "4GiB", "class": "default" }, "statedb": { "size": "4GiB", "class": "default" } }, "timestamp": 1537262855753, "tags": [ "fabric-ca" ], "version": "1.4.6-1", "zone": "-" }
{ "id": "myca-2", "type": "fabric-ca", "display_name": "Example CA", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "msp": { "ca": { "name": "org1CA", "root_certs": [ "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=" ] }, "tlsca": { "name": "org1tlsCA", "root_certs": [ "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=" ] }, "component": { "tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": [ "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=" ] } }, "msp_id": "Org1", "location": "ibmcloud", "node_ou": { "enabled": true }, "resources": { "ca": { "requests": { "cpu": "100m", "memory": "64M" }, "limits": { "cpu": "8000m", "memory": "16384M" } }, "peer": { "requests": { "cpu": "100m", "memory": "64M" }, "limits": { "cpu": "8000m", "memory": "16384M" } }, "orderer": { "requests": { "cpu": "100m", "memory": "64M" }, "limits": { "cpu": "8000m", "memory": "16384M" } }, "proxy": { "requests": { "cpu": "100m", "memory": "64M" }, "limits": { "cpu": "8000m", "memory": "16384M" } }, "statedb": { "requests": { "cpu": "100m", "memory": "64M" }, "limits": { "cpu": "8000m", "memory": "16384M" } } }, "scheme_version": "v1", "state_db": "couchdb", "storage": { "ca": { "size": "4GiB", "class": "default" }, "peer": { "size": "4GiB", "class": "default" }, "orderer": { "size": "4GiB", "class": "default" }, "statedb": { "size": "4GiB", "class": "default" } }, "timestamp": 1537262855753, "tags": [ "fabric-ca" ], "version": "1.4.6-1", "zone": "-" }
Unauthorized
Unauthorized
Remove imported component
Remove a single component from the IBP console.
- Using this api on an imported component removes it from the IBP console.
- Using this api on a created component removes it from the IBP console but it will not delete the component from the Kubernetes cluster where it resides. Thus it orphans the Kubernetes deployment (if it exists). Instead use the Delete component API to delete the Kubernetes deployment and the IBP console data at once.
API Availability:
- available on all IBP distributions.
Remove a single component from the IBP console.
- Using this api on an imported component removes it from the IBP console.
- Using this api on a created component removes it from the IBP console but it will not delete the component from the Kubernetes cluster where it resides. Thus it orphans the Kubernetes deployment (if it exists). Instead use the Delete component API to delete the Kubernetes deployment and the IBP console data at once.
Remove a single component from the IBP console.
- Using this api on an imported component removes it from the IBP console.
- Using this api on a created component removes it from the IBP console but it will not delete the component from the Kubernetes cluster where it resides. Thus it orphans the Kubernetes deployment (if it exists). Instead use the Delete component API to delete the Kubernetes deployment and the IBP console data at once.
Remove a single component from the IBP console.
- Using this api on an imported component removes it from the IBP console.
- Using this api on a created component removes it from the IBP console but it will not delete the component from the Kubernetes cluster where it resides. Thus it orphans the Kubernetes deployment (if it exists). Instead use the Delete component API to delete the Kubernetes deployment and the IBP console data at once.
Remove a single component from the IBP console.
- Using this api on an imported component removes it from the IBP console.
- Using this api on a created component removes it from the IBP console but it will not delete the component from the Kubernetes cluster where it resides. Thus it orphans the Kubernetes deployment (if it exists). Instead use the Delete component API to delete the Kubernetes deployment and the IBP console data at once.
DELETE /ak/api/v3/components/{id}
(blockchain *BlockchainV3) RemoveComponent(removeComponentOptions *RemoveComponentOptions) (result *DeleteComponentResponse, response *core.DetailedResponse, err error)
(blockchain *BlockchainV3) RemoveComponentWithContext(ctx context.Context, removeComponentOptions *RemoveComponentOptions) (result *DeleteComponentResponse, response *core.DetailedResponse, err error)
removeComponent(params)
remove_component(self,
id: str,
**kwargs
) -> DetailedResponse
ServiceCall<DeleteComponentResponse> removeComponent(RemoveComponentOptions removeComponentOptions)
Request
Instantiate the RemoveComponentOptions
struct and set the fields to provide parameter values for the RemoveComponent
method.
Use the RemoveComponentOptions.Builder
to create a RemoveComponentOptions
object that contains the parameter values for the removeComponent
method.
Path Parameters
The
id
of the imported component to remove. Use the Get all components API to determine the component id.
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The RemoveComponent options.
The
id
of the imported component to remove. Use the Get all components API to determine the component id.
parameters
The
id
of the imported component to remove. Use the Get all components API to determine the component id.
parameters
The
id
of the imported component to remove. Use the Get all components API to determine the component id.
The removeComponent options.
The
id
of the imported component to remove. Use the Get all components API to determine the component id.
curl -X DELETE "https://{API-Endpoint}/ak/api/v3/components/{Component-ID}" -H "Authorization: Bearer {Access-Token}"
// Create an authenticator authenticator := &core.IamAuthenticator{ ApiKey: "{API-Key}", } // Create an instance of the "BlockchainV3Options" struct options := &blockchainv3.BlockchainV3Options{ Authenticator: authenticator, URL: "https://{API-Endpoint}", } // Create an instance of the "BlockchainV3" service client. service, err := blockchainv3.NewBlockchainV3(options) if err != nil { return } // Remove imported component opts := service.NewRemoveComponentOptions("{Component-ID}") result, detailedResponse, err := service.RemoveComponent(opts) fmt.Println("result:", result) fmt.Println("response:", detailedResponse)
// Create an authenticator const authenticator = new ibp.IamAuthenticator({ apikey: '{API-Key}', }); // Create client from the "BlockchainV3" class const client = ibp.BlockchainV3.newInstance({ authenticator: authenticator, url: 'https://{API-Endpoint}', }); // Remove imported component try { const response = await client.removeComponent({ id: '{Component-ID}' }); console.log('response:', response.result); // handle good response here } catch (e) { console.error('error response:', e.body); // handle error here }
try { // Create an IAM authenticator. IamAuthenticator authenticator = new IamAuthenticator("{API-Key}"); Blockchain bc = new Blockchain("myIbp", authenticator); bc.setServiceUrl("https://{API-Endpoint}"); // get all the peer components DeleteComponentOptions options = new DeleteComponentOptions.Builder().id({id}) .build(); ServiceCall<DeleteComponentResponse> call = bc.removeComponents(options); Response<DeleteComponentResponse> response = call.execute(); if (response.getStatusCode() != 200) { throw new RuntimeException("Error code "+response.getStatusCode()+" : "+response.getStatusMessage()); } DeleteComponentResponse deleteResponse = response.getResult(); } catch (ServiceResponseException e) { // essential to catch and get the debugging information RuntimeException wrappedError = new RuntimeException(e.getDebuggingInfo().toString()); wrappedError.initCause(e); throw wrappedError; }
# Create an authenticator authenticator = IAMAuthenticator( apikey='{API-Key}' ) # Create client from the "BlockchainV3" class client = BlockchainV3( authenticator=authenticator ) client.set_service_url('https://{API-Endpoint}') # Remove imported component try: response = client.remove_component(id='{Component-ID}') print(f'response: {response.result}') # handle good response here except ApiException as e: print(f'error response: {e.message}') # handle error here
Response
Example:
deleted
The type of this component. Such as: "fabric-peer", "fabric-ca", "fabric-orderer", etc.
Example:
fabric-peer
The unique identifier of this component. Must start with a letter, be lowercase and only contain letters and numbers. If
id
is not provide a component id will be generated using the fielddisplay_name
as the base.Possible values: 3 ≤ length ≤ 64
Example:
component1
A descriptive name for this peer. The IBP console tile displays this name.
Possible values: length ≤ 64
Example:
My Peer
- Examples:View
The type of this component. Such as: "fabric-peer", "fabric-ca", "fabric-orderer", etc.
Examples:ViewThe unique identifier of this component. Must start with a letter, be lowercase and only contain letters and numbers. If
id
is not provide a component id will be generated using the fielddisplay_name
as the base.Possible values: 3 ≤ length ≤ 64
Examples:ViewA descriptive name for this peer. The IBP console tile displays this name.
Possible values: length ≤ 64
Examples:View
- Examples:View
The type of this component. Such as: "fabric-peer", "fabric-ca", "fabric-orderer", etc.
Examples:ViewThe unique identifier of this component. Must start with a letter, be lowercase and only contain letters and numbers. If
id
is not provide a component id will be generated using the fielddisplay_name
as the base.Possible values: 3 ≤ length ≤ 64
Examples:ViewA descriptive name for this peer. The IBP console tile displays this name.
Possible values: length ≤ 64
Examples:View
- Examples:View
The type of this component. Such as: "fabric-peer", "fabric-ca", "fabric-orderer", etc.
Examples:ViewThe unique identifier of this component. Must start with a letter, be lowercase and only contain letters and numbers. If
id
is not provide a component id will be generated using the fielddisplay_name
as the base.Possible values: 3 ≤ length ≤ 64
Examples:ViewA descriptive name for this peer. The IBP console tile displays this name.
Possible values: length ≤ 64
Examples:View
- Examples:View
The type of this component. Such as: "fabric-peer", "fabric-ca", "fabric-orderer", etc.
Examples:ViewThe unique identifier of this component. Must start with a letter, be lowercase and only contain letters and numbers. If
id
is not provide a component id will be generated using the fielddisplay_name
as the base.Possible values: 3 ≤ length ≤ 64
Examples:ViewA descriptive name for this peer. The IBP console tile displays this name.
Possible values: length ≤ 64
Examples:View
Status Code
Request was successful.
Request is unauthorized (invalid credentials).
Request is forbidden (credentials lack permission).
{ "message": "deleted", "type": "fabric-peer", "id": "component-1", "display_name": "My Peer" }
{ "message": "deleted", "type": "fabric-peer", "id": "component-1", "display_name": "My Peer" }
Unauthorized
Unauthorized
Delete component
Removes a single component from the IBP console and it deletes the Kubernetes deployment.
- Using this api on an imported component will error out since its Kubernetes deployment is unknown and cannot be removed. Instead use the Remove imported component API to remove imported components.
- Using this api on a created component removes it from the IBP console and it will delete the component from the Kubernetes cluster where it resides. The Kubernetes delete must succeed before the component will be removed from the IBP console.
API Availability:
- available on IBM Cloud and IBP Software distributions (not available on "Import Only" IBP distributions).
Removes a single component from the IBP console and it deletes the Kubernetes deployment.
- Using this api on an imported component will error out since its Kubernetes deployment is unknown and cannot be removed. Instead use the Remove imported component API to remove imported components.
- Using this api on a created component removes it from the IBP console and it will delete the component from the Kubernetes cluster where it resides. The Kubernetes delete must succeed before the component will be removed from the IBP console.
Removes a single component from the IBP console and it deletes the Kubernetes deployment.
- Using this api on an imported component will error out since its Kubernetes deployment is unknown and cannot be removed. Instead use the Remove imported component API to remove imported components.
- Using this api on a created component removes it from the IBP console and it will delete the component from the Kubernetes cluster where it resides. The Kubernetes delete must succeed before the component will be removed from the IBP console.
Removes a single component from the IBP console and it deletes the Kubernetes deployment.
- Using this api on an imported component will error out since its Kubernetes deployment is unknown and cannot be removed. Instead use the Remove imported component API to remove imported components.
- Using this api on a created component removes it from the IBP console and it will delete the component from the Kubernetes cluster where it resides. The Kubernetes delete must succeed before the component will be removed from the IBP console.
Removes a single component from the IBP console and it deletes the Kubernetes deployment.
- Using this api on an imported component will error out since its Kubernetes deployment is unknown and cannot be removed. Instead use the Remove imported component API to remove imported components.
- Using this api on a created component removes it from the IBP console and it will delete the component from the Kubernetes cluster where it resides. The Kubernetes delete must succeed before the component will be removed from the IBP console.
DELETE /ak/api/v3/kubernetes/components/{id}
(blockchain *BlockchainV3) DeleteComponent(deleteComponentOptions *DeleteComponentOptions) (result *DeleteComponentResponse, response *core.DetailedResponse, err error)
(blockchain *BlockchainV3) DeleteComponentWithContext(ctx context.Context, deleteComponentOptions *DeleteComponentOptions) (result *DeleteComponentResponse, response *core.DetailedResponse, err error)
deleteComponent(params)
delete_component(self,
id: str,
**kwargs
) -> DetailedResponse
ServiceCall<DeleteComponentResponse> deleteComponent(DeleteComponentOptions deleteComponentOptions)
Request
Instantiate the DeleteComponentOptions
struct and set the fields to provide parameter values for the DeleteComponent
method.
Use the DeleteComponentOptions.Builder
to create a DeleteComponentOptions
object that contains the parameter values for the deleteComponent
method.
Path Parameters
The
id
of the component to delete. Use the Get all components API to determine the id of the component to be deleted.
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The DeleteComponent options.
The
id
of the component to delete. Use the Get all components API to determine the id of the component to be deleted.
parameters
The
id
of the component to delete. Use the Get all components API to determine the id of the component to be deleted.
parameters
The
id
of the component to delete. Use the Get all components API to determine the id of the component to be deleted.
The deleteComponent options.
The
id
of the component to delete. Use the Get all components API to determine the id of the component to be deleted.
curl -X DELETE "https://{API-Endpoint}/ak/api/v3/kubernetes/components/{Component-ID}" -H "Authorization: Bearer {Access-Token}"
// Create an authenticator authenticator := &core.IamAuthenticator{ ApiKey: "{API-Key}", } // Create an instance of the "BlockchainV3Options" struct options := &blockchainv3.BlockchainV3Options{ Authenticator: authenticator, URL: "https://{API-Endpoint}", } // Create an instance of the "BlockchainV3" service client. service, err := blockchainv3.NewBlockchainV3(options) if err != nil { return } // Delete component opts := service.NewDeleteComponentOptions("{Component-ID}") replace, detailedResponse, err := service.DeleteComponent(opts) fmt.Println("result:", replace) fmt.Println("response:", detailedResponse)
// Create an authenticator const authenticator = new ibp.IamAuthenticator({ apikey: '{API-Key}', }); // Create client from the "BlockchainV3" class const client = ibp.BlockchainV3.newInstance({ authenticator: authenticator, url: 'https://{API-Endpoint}', }); // Delete component try { const response = await client.deleteComponent({ id: '{Component-ID}' }); console.log('response:', response.result); // handle good response here } catch (e) { console.error('error response:', e.body); // handle error here }
try { // Create an IAM authenticator. IamAuthenticator authenticator = new IamAuthenticator("{API-Key}"); Blockchain bc = new Blockchain("myIbp", authenticator); bc.setServiceUrl("https://{API-Endpoint}"); DeleteComponentOptions options = new DeleteComponentOptions.Builder().id(createdCaId).build(); ServiceCall<DeleteComponentResponse> call = bc.deleteComponent(options); Response<DeleteComponentResponse> response = call.execute(); if (response.getStatusCode() != 200) { throw new RuntimeException("Error code "+response.getStatusCode()+" : "+response.getStatusMessage()); } DeleteComponentResponse deleteResponse = response.getResult(); System.out.println(deleteResponse); } catch (ServiceResponseException e) { // essential to catch and get the debugging information RuntimeException wrappedError = new RuntimeException(e.getDebuggingInfo().toString()); wrappedError.initCause(e); throw wrappedError; }
# Create an authenticator authenticator = IAMAuthenticator( apikey='{API-Key}' ) # Create client from the "BlockchainV3" class client = BlockchainV3( authenticator=authenticator ) client.set_service_url('https://{API-Endpoint}') # Delete component try: response = client.delete_component(id='{Component-ID}') print(f'response: {response.result}') # handle good response here except ApiException as e: print(f'error response: {e.message}') # handle error here
Response
Example:
deleted
The type of this component. Such as: "fabric-peer", "fabric-ca", "fabric-orderer", etc.
Example:
fabric-peer
The unique identifier of this component. Must start with a letter, be lowercase and only contain letters and numbers. If
id
is not provide a component id will be generated using the fielddisplay_name
as the base.Possible values: 3 ≤ length ≤ 64
Example:
component1
A descriptive name for this peer. The IBP console tile displays this name.
Possible values: length ≤ 64
Example:
My Peer
- Examples:View
The type of this component. Such as: "fabric-peer", "fabric-ca", "fabric-orderer", etc.
Examples:ViewThe unique identifier of this component. Must start with a letter, be lowercase and only contain letters and numbers. If
id
is not provide a component id will be generated using the fielddisplay_name
as the base.Possible values: 3 ≤ length ≤ 64
Examples:ViewA descriptive name for this peer. The IBP console tile displays this name.
Possible values: length ≤ 64
Examples:View
- Examples:View
The type of this component. Such as: "fabric-peer", "fabric-ca", "fabric-orderer", etc.
Examples:ViewThe unique identifier of this component. Must start with a letter, be lowercase and only contain letters and numbers. If
id
is not provide a component id will be generated using the fielddisplay_name
as the base.Possible values: 3 ≤ length ≤ 64
Examples:ViewA descriptive name for this peer. The IBP console tile displays this name.
Possible values: length ≤ 64
Examples:View
- Examples:View
The type of this component. Such as: "fabric-peer", "fabric-ca", "fabric-orderer", etc.
Examples:ViewThe unique identifier of this component. Must start with a letter, be lowercase and only contain letters and numbers. If
id
is not provide a component id will be generated using the fielddisplay_name
as the base.Possible values: 3 ≤ length ≤ 64
Examples:ViewA descriptive name for this peer. The IBP console tile displays this name.
Possible values: length ≤ 64
Examples:View
- Examples:View
The type of this component. Such as: "fabric-peer", "fabric-ca", "fabric-orderer", etc.
Examples:ViewThe unique identifier of this component. Must start with a letter, be lowercase and only contain letters and numbers. If
id
is not provide a component id will be generated using the fielddisplay_name
as the base.Possible values: 3 ≤ length ≤ 64
Examples:ViewA descriptive name for this peer. The IBP console tile displays this name.
Possible values: length ≤ 64
Examples:View
Status Code
Request was successful.
Request is unauthorized (invalid credentials).
Request is forbidden (credentials lack permission).
Component in request was not found.
{ "message": "deleted", "type": "fabric-peer", "id": "component-1", "display_name": "My Peer" }
{ "message": "deleted", "type": "fabric-peer", "id": "component-1", "display_name": "My Peer" }
Unauthorized
Unauthorized
Create a CA
Create a Hyperledger Fabric Certificate Authority (CA) in your Kubernetes cluster.
API Availability:
- available on IBM Cloud and IBP Software distributions (not available on "Import Only" IBP distributions).
Create a Hyperledger Fabric Certificate Authority (CA) in your Kubernetes cluster.
Create a Hyperledger Fabric Certificate Authority (CA) in your Kubernetes cluster.
Create a Hyperledger Fabric Certificate Authority (CA) in your Kubernetes cluster.
Create a Hyperledger Fabric Certificate Authority (CA) in your Kubernetes cluster.
POST /ak/api/v3/kubernetes/components/fabric-ca
(blockchain *BlockchainV3) CreateCa(createCaOptions *CreateCaOptions) (result *CaResponse, response *core.DetailedResponse, err error)
(blockchain *BlockchainV3) CreateCaWithContext(ctx context.Context, createCaOptions *CreateCaOptions) (result *CaResponse, response *core.DetailedResponse, err error)
createCa(params)
create_ca(self,
display_name: str,
config_override: 'CreateCaBodyConfigOverride',
*,
id: str = None,
resources: 'CreateCaBodyResources' = None,
storage: 'CreateCaBodyStorage' = None,
zone: str = None,
replicas: float = None,
tags: List[str] = None,
hsm: 'Hsm' = None,
region: str = None,
version: str = None,
**kwargs
) -> DetailedResponse
ServiceCall<CaResponse> createCa(CreateCaOptions createCaOptions)
Request
Instantiate the CreateCaOptions
struct and set the fields to provide parameter values for the CreateCa
method.
Use the CreateCaOptions.Builder
to create a CreateCaOptions
object that contains the parameter values for the createCa
method.
Create a CA in your Kubernetes cluster.
A descriptive name for this CA. The IBP console tile displays this name.
Possible values: length ≤ 64
Example:
My CA
Set
config_override
to create the root/initial enroll id and enroll secret as well as enabling custom CA configurations (such as using postgres). See the Fabric CA configuration file for more information about each parameter.The field
tlsca
is optional. The IBP console will copy the value ofconfig_override.ca
intoconfig_override.tlsca
ifconfig_override.tlsca
is omitted (which is recommended).The nested field names below are not case-sensitive.
config_override
The unique identifier of this component. Must start with a letter, be lowercase and only contain letters and numbers. If
id
is not provide a component id will be generated using the fielddisplay_name
as the base.Possible values: 3 ≤ length ≤ 64
Example:
component1
CPU and memory properties. This feature is not available if using a free Kubernetes cluster.
This field requires the use of Fabric v1.4.* and higher.
resources
Disk space properties. This feature is not available if using a free Kubernetes cluster.
storage
Specify the Kubernetes zone for the deployment. The deployment will use a k8s node in this zone. Find the list of possible zones by retrieving your Kubernetes node labels:
kubectl get nodes --show-labels
. More informationExample:
-
The number of replica pods running at any given time.
Possible values: 0 ≤ value ≤ 1024
Example:
1
User defined strings that can be used to search/filter components. When editing this field set the complete (desired) tags array. Will always conform to lowercase.
Possible values: length ≤ 32
The connection details of the HSM (Hardware Security Module).
Specify the Kubernetes region for the deployment. The deployment will use a k8s node in this region. Find the list of possible regions by retrieving your Kubernetes node labels:
kubectl get nodes --show-labels
. More infoExample:
-
The Hyperledger Fabric release version to use.
Example:
1.4.6-1
WithContext method only
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request.
The CreateCa options.
A descriptive name for this CA. The IBP console tile displays this name.
Possible values: length ≤ 64
Examples:ViewSet
config_override
to create the root/initial enroll id and enroll secret as well as enabling custom CA configurations (such as using postgres). See the Fabric CA configuration file for more information about each parameter.The field
tlsca
is optional. The IBP console will copy the value ofconfig_override.ca
intoconfig_override.tlsca
ifconfig_override.tlsca
is omitted (which is recommended).The nested field names below are not case-sensitive..
- Examples:View
Cors
Enable debug to debug the CA.
Examples:ViewMax size of an acceptable CRL in bytes.
Possible values: 1024 ≤ value ≤ 1073741824
Examples:ViewThe CA's private key as base 64 encoded PEM.
The CA's certificate as base 64 encoded PEM.
- Examples:View
Clientauth
Tls
The CA's private key as base 64 encoded PEM.
The CA's certificate as base 64 encoded PEM.
The CA's certificate chain as base 64 encoded PEM.
Ca
Expiration of the CRL (Certificate Revocation List) generated by the 'gencrl' requests.
Examples:View
Crl
Default maximum number of enrollments per id. Set -1 for infinite.
Possible values: value ≥ -1
Examples:ViewThe ID for the identity, aka enroll id.
Possible values: 4 ≤ length ≤ 255
Examples:ViewThe password for the identity, aka enroll secret.
Possible values: 4 ≤ length ≤ 255
Examples:ViewThe type of identity.
Allowable values: [
client
,peer
,orderer
,user
,admin
]Possible values: length ≤ 256
Examples:ViewMaximum number of enrollments for id. Set -1 for infinite.
Possible values: value ≥ -1
Examples:ViewThe affiliation data for the identity.
Possible values: length ≤ 1024
- Examples:View
- Examples:View
- Examples:View
If
true
the CA can be an intermediate CA.Examples:View- Examples:View
- Examples:View
- Examples:View
Attrs
Identities
Registry
The type of database. Either 'sqlite3', 'postgres', 'mysql'. Defaults 'sqlite3'.
Allowable values: [
sqlite3
,postgres
,mysql
]Examples:ViewBuild this string - "host=<hostname> port=<port> user=<username> password=<password> dbname=ibmclouddb sslmode=verify-full".
Possible values: length ≤ 1024
Examples:ViewThe TLS certificate for client TLS as base 64 encoded PEM.
The TLS private key for client TLS as base 64 encoded PEM.
Client
Set to true if TLS is to be used between the CA and its database, else false.
Examples:View
Tls
Db
Set the keys to the desired affiliation parent names. The keys 'org1' and 'org2' are examples.
Affiliations
The Common Name for the CSRs.
Examples:ViewThe algorithm to use for CSRs.
Examples:ViewThe size of the key for CSRs.
Possible values: 128 ≤ value ≤ 1048576
Examples:View
Keyrequest
- Examples:View
- Examples:View
- Examples:View
- Examples:View
- Examples:View
Names
The expiration for the root CA certificate.
Examples:ViewThe pathlength field is used to limit CA certificate hierarchy. 0 means that the CA cannot issue CA certs, only entity certificates. 1 means that the CA can issue both.
Possible values: 0 ≤ value ≤ 1024
Ca
Csr
Specifies the revocation pool size.
Possible values: 0 ≤ value ≤ 100000
Examples:ViewSpecifies the expiration for the nonces.
Examples:ViewSpecifies frequency at which expired nonces are removed from data store.
Examples:View
Idemix
Configures the Blockchain Crypto Service Providers (bccsp).
The name of the crypto library implementation to use for the BlockChain Crypto Service Provider (bccsp). Defaults to
SW
.Allowable values: [
SW
,PKCS11
]Examples:ViewSoftware based blockchain crypto provider.
The hash family to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 2 ≤ length ≤ 128
Examples:ViewThe length of hash to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 32 ≤ value ≤ 1024
Examples:View
SW
Hardware-based blockchain crypto provider.
Token Label.
The user PIN.
The hash family to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 2 ≤ length ≤ 128
Examples:ViewThe length of hash to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 32 ≤ value ≤ 1024
Examples:View
PKCS11
BCCSP
The url of the parent server. Include the protocol, hostname/ip and port.
The name of the CA to enroll within the server.
Possible values: 1 ≤ length ≤ 1024
Parentserver
Hosts to set when issuing the certificate.
Examples:ViewName of the signing profile to use when issuing the certificate.
Label to use in HSM operations.
Enrollment
The TLS certificate for client TLS as base 64 encoded PEM.
The TLS private key for client TLS as base 64 encoded PEM.
Client
Tls
Intermediate
The maximum number of incorrect password attempts allowed per identity.
Possible values: 1 ≤ value ≤ 1000000
Examples:ViewSet to
true
to allow deletion of identities. Defaultsfalse
.Examples:View
Identities
Cfg
Metrics provider to use. Can be either 'statsd', 'prometheus', or 'disabled'.
Allowable values: [
statsd
,prometheus
,disabled
]Examples:ViewEither UDP or TCP.
Allowable values: [
udp
,tcp
]Examples:ViewThe address of the statsd server. Include hostname/ip and port.
Possible values: length ≤ 1024
Examples:ViewThe frequency at which locally cached counters and gauges are pushed to statsd.
Examples:ViewThe string that is prepended to all emitted statsd metrics.
Possible values: length ≤ 1024
Examples:View
Statsd
Metrics
Controls the default expiration for signed certificates.
Examples:View
Default
Controls attributes of intermediate CA certificates.
Controls the expiration for signed intermediate CA certificates.
Examples:ViewIndicates if this certificate is for a CA.
Examples:ViewA value of 0 indicates that this intermediate CA cannot issue other intermediate CA certificates.
Possible values: 0 ≤ value ≤ 1024
Examples:ViewTo enforce a
maxpathlen
of 0, this field must betrue
. Ifmaxpathlen
should be ignored or if it is greater than 0 set this tofalse
.Examples:View
Caconstraint
Ca
Controls attributes of intermediate tls CA certificates.
Controls the expiration for signed tls intermediate CA certificates.
Examples:View
Tls
Profiles
Signing
Ca
- Examples:View
Cors
Enable debug to debug the CA.
Examples:ViewMax size of an acceptable CRL in bytes.
Possible values: 1024 ≤ value ≤ 1073741824
Examples:ViewThe CA's private key as base 64 encoded PEM.
The CA's certificate as base 64 encoded PEM.
- Examples:View
Clientauth
Tls
The CA's private key as base 64 encoded PEM.
The CA's certificate as base 64 encoded PEM.
The CA's certificate chain as base 64 encoded PEM.
Ca
Expiration of the CRL (Certificate Revocation List) generated by the 'gencrl' requests.
Examples:View
Crl
Default maximum number of enrollments per id. Set -1 for infinite.
Possible values: value ≥ -1
Examples:ViewThe ID for the identity, aka enroll id.
Possible values: 4 ≤ length ≤ 255
Examples:ViewThe password for the identity, aka enroll secret.
Possible values: 4 ≤ length ≤ 255
Examples:ViewThe type of identity.
Allowable values: [
client
,peer
,orderer
,user
,admin
]Possible values: length ≤ 256
Examples:ViewMaximum number of enrollments for id. Set -1 for infinite.
Possible values: value ≥ -1
Examples:ViewThe affiliation data for the identity.
Possible values: length ≤ 1024
- Examples:View
- Examples:View
- Examples:View
If
true
the CA can be an intermediate CA.Examples:View- Examples:View
- Examples:View
- Examples:View
Attrs
Identities
Registry
The type of database. Either 'sqlite3', 'postgres', 'mysql'. Defaults 'sqlite3'.
Allowable values: [
sqlite3
,postgres
,mysql
]Examples:ViewBuild this string - "host=<hostname> port=<port> user=<username> password=<password> dbname=ibmclouddb sslmode=verify-full".
Possible values: length ≤ 1024
Examples:ViewThe TLS certificate for client TLS as base 64 encoded PEM.
The TLS private key for client TLS as base 64 encoded PEM.
Client
Set to true if TLS is to be used between the CA and its database, else false.
Examples:View
Tls
Db
Set the keys to the desired affiliation parent names. The keys 'org1' and 'org2' are examples.
Affiliations
The Common Name for the CSRs.
Examples:ViewThe algorithm to use for CSRs.
Examples:ViewThe size of the key for CSRs.
Possible values: 128 ≤ value ≤ 1048576
Examples:View
Keyrequest
- Examples:View
- Examples:View
- Examples:View
- Examples:View
- Examples:View
Names
The expiration for the root CA certificate.
Examples:ViewThe pathlength field is used to limit CA certificate hierarchy. 0 means that the CA cannot issue CA certs, only entity certificates. 1 means that the CA can issue both.
Possible values: 0 ≤ value ≤ 1024
Ca
Csr
Specifies the revocation pool size.
Possible values: 0 ≤ value ≤ 100000
Examples:ViewSpecifies the expiration for the nonces.
Examples:ViewSpecifies frequency at which expired nonces are removed from data store.
Examples:View
Idemix
Configures the Blockchain Crypto Service Providers (bccsp).
The name of the crypto library implementation to use for the BlockChain Crypto Service Provider (bccsp). Defaults to
SW
.Allowable values: [
SW
,PKCS11
]Examples:ViewSoftware based blockchain crypto provider.
The hash family to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 2 ≤ length ≤ 128
Examples:ViewThe length of hash to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 32 ≤ value ≤ 1024
Examples:View
SW
Hardware-based blockchain crypto provider.
Token Label.
The user PIN.
The hash family to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 2 ≤ length ≤ 128
Examples:ViewThe length of hash to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 32 ≤ value ≤ 1024
Examples:View
PKCS11
BCCSP
The url of the parent server. Include the protocol, hostname/ip and port.
The name of the CA to enroll within the server.
Possible values: 1 ≤ length ≤ 1024
Parentserver
Hosts to set when issuing the certificate.
Examples:ViewName of the signing profile to use when issuing the certificate.
Label to use in HSM operations.
Enrollment
The TLS certificate for client TLS as base 64 encoded PEM.
The TLS private key for client TLS as base 64 encoded PEM.
Client
Tls
Intermediate
The maximum number of incorrect password attempts allowed per identity.
Possible values: 1 ≤ value ≤ 1000000
Examples:ViewSet to
true
to allow deletion of identities. Defaultsfalse
.Examples:View
Identities
Cfg
Metrics provider to use. Can be either 'statsd', 'prometheus', or 'disabled'.
Allowable values: [
statsd
,prometheus
,disabled
]Examples:ViewEither UDP or TCP.
Allowable values: [
udp
,tcp
]Examples:ViewThe address of the statsd server. Include hostname/ip and port.
Possible values: length ≤ 1024
Examples:ViewThe frequency at which locally cached counters and gauges are pushed to statsd.
Examples:ViewThe string that is prepended to all emitted statsd metrics.
Possible values: length ≤ 1024
Examples:View
Statsd
Metrics
Controls the default expiration for signed certificates.
Examples:View
Default
Controls attributes of intermediate CA certificates.
Controls the expiration for signed intermediate CA certificates.
Examples:ViewIndicates if this certificate is for a CA.
Examples:ViewA value of 0 indicates that this intermediate CA cannot issue other intermediate CA certificates.
Possible values: 0 ≤ value ≤ 1024
Examples:ViewTo enforce a
maxpathlen
of 0, this field must betrue
. Ifmaxpathlen
should be ignored or if it is greater than 0 set this tofalse
.Examples:View
Caconstraint
Ca
Controls attributes of intermediate tls CA certificates.
Controls the expiration for signed tls intermediate CA certificates.
Examples:View
Tls
Profiles
Signing
Tlsca
ConfigOverride
The unique identifier of this component. Must start with a letter, be lowercase and only contain letters and numbers. If
id
is not provide a component id will be generated using the fielddisplay_name
as the base.Possible values: 3 ≤ length ≤ 64
Examples:ViewCPU and memory properties. This feature is not available if using a free Kubernetes cluster.
This field requires the use of Fabric v1.4.* and higher.
Desired CPU for subcomponent. Resource details.
Examples:ViewDesired memory for subcomponent. Resource details.
Examples:View
Requests
Maximum CPU for subcomponent. Must be >= "requests.cpu". Defaults to the same value in "requests.cpu". Resource details.
Examples:ViewMaximum memory for subcomponent. Must be >= "requests.memory". Defaults to the same value in "requests.memory". Resource details.
Examples:View
Limits
Ca
Resources
Disk space properties. This feature is not available if using a free Kubernetes cluster.
Maximum disk space for subcomponent. Resource details.
Examples:ViewKubernetes storage class for subcomponent's disk space.
Examples:View
Ca
Storage
Specify the Kubernetes zone for the deployment. The deployment will use a k8s node in this zone. Find the list of possible zones by retrieving your Kubernetes node labels:
kubectl get nodes --show-labels
. More information.Examples:ViewThe number of replica pods running at any given time.
Possible values: 0 ≤ value ≤ 1024
Examples:ViewPossible values: length ≤ 32
The connection details of the HSM (Hardware Security Module).
The url to the HSM. Include the protocol, hostname, and port.
Examples:View
Hsm
Specify the Kubernetes region for the deployment. The deployment will use a k8s node in this region. Find the list of possible regions by retrieving your Kubernetes node labels:
kubectl get nodes --show-labels
. More info.Examples:ViewThe Hyperledger Fabric release version to use.
Examples:View
parameters
A descriptive name for this CA. The IBP console tile displays this name.
Possible values: length ≤ 64
Examples:value_source_lines_htmlSet
config_override
to create the root/initial enroll id and enroll secret as well as enabling custom CA configurations (such as using postgres). See the Fabric CA configuration file for more information about each parameter.The field
tlsca
is optional. The IBP console will copy the value ofconfig_override.ca
intoconfig_override.tlsca
ifconfig_override.tlsca
is omitted (which is recommended).The nested field names below are not case-sensitive..
- Examples:View
cors
Enable debug to debug the CA.
Examples:ViewMax size of an acceptable CRL in bytes.
Possible values: 1024 ≤ value ≤ 1073741824
Examples:ViewThe CA's private key as base 64 encoded PEM.
The CA's certificate as base 64 encoded PEM.
- Examples:View
clientauth
tls
The CA's private key as base 64 encoded PEM.
The CA's certificate as base 64 encoded PEM.
The CA's certificate chain as base 64 encoded PEM.
ca
Expiration of the CRL (Certificate Revocation List) generated by the 'gencrl' requests.
Examples:View
crl
Default maximum number of enrollments per id. Set -1 for infinite.
Possible values: value ≥ -1
Examples:ViewThe ID for the identity, aka enroll id.
Possible values: 4 ≤ length ≤ 255
Examples:ViewThe password for the identity, aka enroll secret.
Possible values: 4 ≤ length ≤ 255
Examples:ViewThe type of identity.
Allowable values: [
client
,peer
,orderer
,user
,admin
]Possible values: length ≤ 256
Examples:ViewMaximum number of enrollments for id. Set -1 for infinite.
Possible values: value ≥ -1
Examples:ViewThe affiliation data for the identity.
Possible values: length ≤ 1024
- Examples:View
- Examples:View
- Examples:View
If
true
the CA can be an intermediate CA.Examples:View- Examples:View
- Examples:View
- Examples:View
attrs
identities
registry
The type of database. Either 'sqlite3', 'postgres', 'mysql'. Defaults 'sqlite3'.
Allowable values: [
sqlite3
,postgres
,mysql
]Examples:ViewBuild this string - "host=<hostname> port=<port> user=<username> password=<password> dbname=ibmclouddb sslmode=verify-full".
Possible values: length ≤ 1024
Examples:ViewThe TLS certificate for client TLS as base 64 encoded PEM.
The TLS private key for client TLS as base 64 encoded PEM.
client
Set to true if TLS is to be used between the CA and its database, else false.
Examples:View
tls
db
Set the keys to the desired affiliation parent names. The keys 'org1' and 'org2' are examples.
affiliations
The Common Name for the CSRs.
Examples:ViewThe algorithm to use for CSRs.
Examples:ViewThe size of the key for CSRs.
Possible values: 128 ≤ value ≤ 1048576
Examples:View
keyrequest
- Examples:View
- Examples:View
- Examples:View
- Examples:View
- Examples:View
names
The expiration for the root CA certificate.
Examples:ViewThe pathlength field is used to limit CA certificate hierarchy. 0 means that the CA cannot issue CA certs, only entity certificates. 1 means that the CA can issue both.
Possible values: 0 ≤ value ≤ 1024
ca
csr
Specifies the revocation pool size.
Possible values: 0 ≤ value ≤ 100000
Examples:ViewSpecifies the expiration for the nonces.
Examples:ViewSpecifies frequency at which expired nonces are removed from data store.
Examples:View
idemix
Configures the Blockchain Crypto Service Providers (bccsp).
The name of the crypto library implementation to use for the BlockChain Crypto Service Provider (bccsp). Defaults to
SW
.Allowable values: [
SW
,PKCS11
]Examples:ViewSoftware based blockchain crypto provider.
The hash family to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 2 ≤ length ≤ 128
Examples:ViewThe length of hash to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 32 ≤ value ≤ 1024
Examples:View
SW
Hardware-based blockchain crypto provider.
Token Label.
The user PIN.
The hash family to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 2 ≤ length ≤ 128
Examples:ViewThe length of hash to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 32 ≤ value ≤ 1024
Examples:View
PKCS11
BCCSP
The url of the parent server. Include the protocol, hostname/ip and port.
The name of the CA to enroll within the server.
Possible values: 1 ≤ length ≤ 1024
parentserver
Hosts to set when issuing the certificate.
Examples:ViewName of the signing profile to use when issuing the certificate.
Label to use in HSM operations.
enrollment
The TLS certificate for client TLS as base 64 encoded PEM.
The TLS private key for client TLS as base 64 encoded PEM.
client
tls
intermediate
The maximum number of incorrect password attempts allowed per identity.
Possible values: 1 ≤ value ≤ 1000000
Examples:ViewSet to
true
to allow deletion of identities. Defaultsfalse
.Examples:View
identities
cfg
Metrics provider to use. Can be either 'statsd', 'prometheus', or 'disabled'.
Allowable values: [
statsd
,prometheus
,disabled
]Examples:ViewEither UDP or TCP.
Allowable values: [
udp
,tcp
]Examples:ViewThe address of the statsd server. Include hostname/ip and port.
Possible values: length ≤ 1024
Examples:ViewThe frequency at which locally cached counters and gauges are pushed to statsd.
Examples:ViewThe string that is prepended to all emitted statsd metrics.
Possible values: length ≤ 1024
Examples:View
statsd
metrics
Controls the default expiration for signed certificates.
Examples:View
default
Controls attributes of intermediate CA certificates.
Controls the expiration for signed intermediate CA certificates.
Examples:ViewIndicates if this certificate is for a CA.
Examples:ViewA value of 0 indicates that this intermediate CA cannot issue other intermediate CA certificates.
Possible values: 0 ≤ value ≤ 1024
Examples:ViewTo enforce a
maxpathlen
of 0, this field must betrue
. Ifmaxpathlen
should be ignored or if it is greater than 0 set this tofalse
.Examples:View
caconstraint
ca
Controls attributes of intermediate tls CA certificates.
Controls the expiration for signed tls intermediate CA certificates.
Examples:View
tls
profiles
signing
ca
- Examples:View
cors
Enable debug to debug the CA.
Examples:ViewMax size of an acceptable CRL in bytes.
Possible values: 1024 ≤ value ≤ 1073741824
Examples:ViewThe CA's private key as base 64 encoded PEM.
The CA's certificate as base 64 encoded PEM.
- Examples:View
clientauth
tls
The CA's private key as base 64 encoded PEM.
The CA's certificate as base 64 encoded PEM.
The CA's certificate chain as base 64 encoded PEM.
ca
Expiration of the CRL (Certificate Revocation List) generated by the 'gencrl' requests.
Examples:View
crl
Default maximum number of enrollments per id. Set -1 for infinite.
Possible values: value ≥ -1
Examples:ViewThe ID for the identity, aka enroll id.
Possible values: 4 ≤ length ≤ 255
Examples:ViewThe password for the identity, aka enroll secret.
Possible values: 4 ≤ length ≤ 255
Examples:ViewThe type of identity.
Allowable values: [
client
,peer
,orderer
,user
,admin
]Possible values: length ≤ 256
Examples:ViewMaximum number of enrollments for id. Set -1 for infinite.
Possible values: value ≥ -1
Examples:ViewThe affiliation data for the identity.
Possible values: length ≤ 1024
- Examples:View
- Examples:View
- Examples:View
If
true
the CA can be an intermediate CA.Examples:View- Examples:View
- Examples:View
- Examples:View
attrs
identities
registry
The type of database. Either 'sqlite3', 'postgres', 'mysql'. Defaults 'sqlite3'.
Allowable values: [
sqlite3
,postgres
,mysql
]Examples:ViewBuild this string - "host=<hostname> port=<port> user=<username> password=<password> dbname=ibmclouddb sslmode=verify-full".
Possible values: length ≤ 1024
Examples:ViewThe TLS certificate for client TLS as base 64 encoded PEM.
The TLS private key for client TLS as base 64 encoded PEM.
client
Set to true if TLS is to be used between the CA and its database, else false.
Examples:View
tls
db
Set the keys to the desired affiliation parent names. The keys 'org1' and 'org2' are examples.
affiliations
The Common Name for the CSRs.
Examples:ViewThe algorithm to use for CSRs.
Examples:ViewThe size of the key for CSRs.
Possible values: 128 ≤ value ≤ 1048576
Examples:View
keyrequest
- Examples:View
- Examples:View
- Examples:View
- Examples:View
- Examples:View
names
The expiration for the root CA certificate.
Examples:ViewThe pathlength field is used to limit CA certificate hierarchy. 0 means that the CA cannot issue CA certs, only entity certificates. 1 means that the CA can issue both.
Possible values: 0 ≤ value ≤ 1024
ca
csr
Specifies the revocation pool size.
Possible values: 0 ≤ value ≤ 100000
Examples:ViewSpecifies the expiration for the nonces.
Examples:ViewSpecifies frequency at which expired nonces are removed from data store.
Examples:View
idemix
Configures the Blockchain Crypto Service Providers (bccsp).
The name of the crypto library implementation to use for the BlockChain Crypto Service Provider (bccsp). Defaults to
SW
.Allowable values: [
SW
,PKCS11
]Examples:ViewSoftware based blockchain crypto provider.
The hash family to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 2 ≤ length ≤ 128
Examples:ViewThe length of hash to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 32 ≤ value ≤ 1024
Examples:View
SW
Hardware-based blockchain crypto provider.
Token Label.
The user PIN.
The hash family to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 2 ≤ length ≤ 128
Examples:ViewThe length of hash to use for the BlockChain Crypto Service Provider (bccsp).
Possible values: 32 ≤ value ≤ 1024
Examples:View
PKCS11
BCCSP
The url of the parent server. Include the protocol, hostname/ip and port.
The name of the CA to enroll within the server.
Possible values: 1 ≤ length ≤ 1024
parentserver
Hosts to set when issuing the certificate.
Examples:ViewName of the signing profile to use when issuing the certificate.
Label to use in HSM operations.
enrollment
The TLS certificate for client TLS as base 64 encoded PEM.
The TLS private key for client TLS as base 64 encoded PEM.
client
tls
intermediate
The maximum number of incorrect password attempts allowed per identity.
Possible values: 1 ≤ value ≤ 1000000
Examples:ViewSet to
true
to allow deletion of identities. Defaultsfalse
.Examples:View
identities
cfg
Metrics provider to use. Can be either 'statsd', 'prometheus', or 'disabled'.
Allowable values: [
statsd
,prometheus
,disabled
]Examples:ViewEither UDP or TCP.
Allowable values: [
udp
,tcp
]Examples:ViewThe address of the statsd server. Include hostname/ip and port.
Possible values: length ≤ 1024
Examples:ViewThe frequency at which locally cached counters and gauges are pushed to statsd.
Examples:ViewThe string that is prepended to all emitted statsd metrics.
Possible values: length ≤ 1024
Examples:View
statsd
metrics
Controls the default expiration for signed certificates.
Examples:View
default
Controls attributes of intermediate CA certificates.
Controls the expiration for signed intermediate CA certificates.
Examples:ViewIndicates if this certificate is for a CA.
Examples:ViewA value of 0 indicates that this intermediate CA cannot issue other intermediate CA certificates.
Possible values: 0 ≤ value ≤ 1024
Examples:ViewTo enforce a
maxpathlen
of 0, this field must betrue
. Ifmaxpathlen
should be ignored or if it is greater than 0 set this tofalse
.Examples:View
caconstraint
ca
Controls attributes of intermediate tls CA certificates.
Controls the expiration for signed tls intermediate CA certificates.
Examples:View
tls
profiles
signing
tlsca
configOverride
The unique identifier of this component. Must start with a letter, be lowercase and only contain letters and numbers. If
id
is not provide a component id will be generated using the fielddisplay_name
as the base.Possible values: 3 ≤ length ≤ 64
Examples:value_source_lines_htmlCPU and memory properties. This feature is not available if using a free Kubernetes cluster.
resources