SetConfig

You can use the SetConfig method to set the network and cluster information for the node. This method includes the same settings in a single API method that are available using both SetClusterConfig and SetNetworkConfig methods. Only the fields you want changed need to be included with this method.

Parameter

CAUTION:
Changing the bond-mode on a node can cause a temporary loss of network connectivity.

This method has the following input parameters:

Name Description Type Default value Required
cluster Cluster information that identifies how the storage node communicates with the storage cluster it is associated with. cluster None No
network Network connection types and current settings for each network interface of the node. network (all interfaces) None No

Return value

This method has the following return value:

Name Description Type
config The new and current configuration for the node. This object contains:
  • cluster: Cluster information that identifies how the storage node communicates with the storage cluster it is associated with.
  • network (all interfaces): Network connection types and current settings for each network interface of the node.
JSON object

Request example

Requests for this method are similar to the following example:

{
	"method": "SetConfig",
	"params": {
		"cluster": {
			"name": "MyHostname"
		},
		"network": {
			"Bond10G": {
				"bond-mode": "ALB"
			}
		}         
	}
}

Response example

The response from this method is the same as the return for the GetConfig method. All fields for the object display and updated values are seen when SetConfig is used.