Skip to content

Files

Latest commit

50351c7 · Feb 12, 2019

History

History
151 lines (88 loc) · 3.91 KB

NodeApi.md

File metadata and controls

151 lines (88 loc) · 3.91 KB

\NodeApi

All URIs are relative to http://localhost

Method HTTP request Description
NodeAdd Post /1.2/node
NodeDelete Delete /1.2/node/{address}
NodeGet Get /1.2/node/{address}
NodeList Get /1.2/node
NodeUpdate Put /1.2/node

NodeAdd

NodeAdd(ctx, nodeAddData)

Add a node.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
nodeAddData NodeAddData

Return type

(empty response body)

Authorization

Bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/x-json-stream

[Back to top] [Back to API list] [Back to Model list] [Back to README]

NodeDelete

NodeDelete(ctx, address, noRebalance, removeIaas)

Remove node.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
address string Node address.
noRebalance bool Trigger node rebalance.
removeIaas bool Remove machine from IaaS.

Return type

(empty response body)

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

NodeGet

NodeGetResponse NodeGet(ctx, address)

Get node information.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
address string Node address.

Return type

NodeGetResponse

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

NodeList

NodeListResponse NodeList(ctx, )

List nodes.

Required Parameters

This endpoint does not need any parameter.

Return type

NodeListResponse

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

NodeUpdate

NodeUpdate(ctx, nodeUpdateData)

Update node.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
nodeUpdateData NodeUpdateData

Return type

(empty response body)

Authorization

Bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]