Export Nodes

get

/console/admin/api/v1.1/nodes/export

Export a node. nodeType specifies a node type list to be exported. nodes specifies an object which points out which nodes to be exported.

Request

Supported Media Types
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Nodes exported successfully
Body ()
Root Schema : exportedNodes
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : nodes
Type: object
Show Source
Nested Schema : peers
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : installedChaincodes
Type: array
Show Source
Nested Schema : joinedChannels
Type: array
Show Source
Nested Schema : items
Type: object
Show Source

400 Response

Invalid arguments
Body ()
Root Schema : 400errorModels
Type: object
Show Source
Example:
{
    "respMesg":"invalid argument"
}

401 Response

Unauthorized

500 Response

Internal Server Error
Body ()
Root Schema : 500errorModels
Type: object
Show Source

Default Response

Unexpected error
Body ()
Root Schema : errorModel
Type: object
Show Source
Back to Top

Examples

The following example shows how to export a peer node by submitting a GET request on the REST resource using cURL.

curl -u <username>:<password>\
 -X GET -k -g -H "Content-Type: application/x-www-form-urlencoded" -H
      "Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxx=="
      'https://<rest_server_url:port>/console/admin/api/v1.1/nodes/export?nodeType=["peer"]&nodes={"peers":["xxxxxxxxdevp2peer0","xxxxxxxxdevp2peer1"]}'
 
Back to Top