All Products
Search
Document Center

Blockchain as a Service:DescribeFabricPeerLogs

Last Updated:Aug 15, 2024

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.

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
&Lines=50
&<Common request parameters>

Successful response examples

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeFabricPeerLogsResponse>
    <RequestId>78A09CAF-4944-4CAE-B25D-F5B6BA27D9F5</RequestId>
    <Result>xxxx</Result>
    <Success>true</Success>
    <ErrorCode>200</ErrorCode>
</DescribeFabricPeerLogsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "78A09CAF-4944-4CAE-B25D-F5B6BA27D9F5",
  "Result" : "xxxx",
  "Success" : true,
  "ErrorCode" : 200
}

Error codes

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