Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns detailed information about a node.
Applies to Hyperledger Fabric and Ethereum.
Synopsis
- data GetNode = GetNode' {}
- newGetNode :: Text -> Text -> GetNode
- getNode_memberId :: Lens' GetNode (Maybe Text)
- getNode_networkId :: Lens' GetNode Text
- getNode_nodeId :: Lens' GetNode Text
- data GetNodeResponse = GetNodeResponse' {
- node :: Maybe Node
- httpStatus :: Int
- newGetNodeResponse :: Int -> GetNodeResponse
- getNodeResponse_node :: Lens' GetNodeResponse (Maybe Node)
- getNodeResponse_httpStatus :: Lens' GetNodeResponse Int
Creating a Request
See: newGetNode
smart constructor.
Instances
Create a value of GetNode
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:memberId:GetNode'
, getNode_memberId
- The unique identifier of the member that owns the node.
Applies only to Hyperledger Fabric and is required for Hyperledger Fabric.
$sel:networkId:GetNode'
, getNode_networkId
- The unique identifier of the network that the node is on.
$sel:nodeId:GetNode'
, getNode_nodeId
- The unique identifier of the node.
Request Lenses
getNode_memberId :: Lens' GetNode (Maybe Text) Source #
The unique identifier of the member that owns the node.
Applies only to Hyperledger Fabric and is required for Hyperledger Fabric.
getNode_networkId :: Lens' GetNode Text Source #
The unique identifier of the network that the node is on.
Destructuring the Response
data GetNodeResponse Source #
See: newGetNodeResponse
smart constructor.
GetNodeResponse' | |
|
Instances
Create a value of GetNodeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:node:GetNodeResponse'
, getNodeResponse_node
- Properties of the node configuration.
$sel:httpStatus:GetNodeResponse'
, getNodeResponse_httpStatus
- The response's http status code.
Response Lenses
getNodeResponse_node :: Lens' GetNodeResponse (Maybe Node) Source #
Properties of the node configuration.
getNodeResponse_httpStatus :: Lens' GetNodeResponse Int Source #
The response's http status code.