You can call this operation to query the peer node log.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeFabricPeerLogs

The operation that you want to perform. Set the value to DescribeFabricPeerLogs.

OrganizationId String Yes peers-test11-tzwny25vqicq

The ID of the organization.

PeerName String Yes peer1

The name of the peer node.

Lines String No 50

The number of displayed lines.

RegionId String No cn-hangzhou

The ID of the region.

Response parameters

Parameter Type Example Description
ErrorCode Integer 200

The status code.

RequestId String 78A09CAF-4944-4CAE-B25D-F5B6BA27D9F5

The ID of the API request.

Result String xxxx

The record of the log.

Success Boolean true

The returned status.

Examples

Sample requests


http(s)://[Endpoint]/? Action=DescribeFabricPeerLogs
&OrganizationId=peers-test11-tzwny25vqicq
&PeerName=peer1
&<Common request parameters>

Successful response examples

XML format

<DescribeFabricPeerLogsResponse>
      <RequestId>F5F24C9E-3563-4E80-989A-7A84530A9B44</RequestId>
      <ErrorCode>200</ErrorCode>
      <Success>true</Success>
      <Result>xxx</Result>
</DescribeFabricPeerLogsResponse>

JSON format

{
	"Result":"xxx",
	"RequestId":"F5F24C9E-3563-4E80-989A-7A84530A9B44",
	"Success":true,
	"ErrorCode":200
}

Error codes

For more information about error codes, visit API Error Center.