PUT v1/core/Accounts/{accId}/staticaddressing
Set the current mode of the network for the account This can be P2P or Packet
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
accId | the account id |
Define this parameter in the request URI. |
item | the IP Address of the new DNS server of |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "RoutedMode": { "Enabled": true, "AddressMode": "AutoAssigned" }, "P2PMode": { "Enabled": true }, "CareOfAddressPool": { "Address": "sample string 1", "Mask": "sample string 2" } }
text/javascript
Sample:
{"RoutedMode":{"Enabled":true,"AddressMode":0},"P2PMode":{"Enabled":true},"CareOfAddressPool":{"Address":"sample string 1","Mask":"sample string 2"}}
application/xml, text/xml
Sample:
<AccountNetworkMode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models"> <CareOfAddressPool> <Address>sample string 1</Address> <Mask>sample string 2</Mask> </CareOfAddressPool> <P2PMode> <Enabled>true</Enabled> </P2PMode> <RoutedMode> <AddressMode>AutoAssigned</AddressMode> <Enabled>true</Enabled> </RoutedMode> </AccountNetworkMode>
application/x-www-form-urlencoded
Sample:
application/bson
Sample:
� RoutedMode Enabled AddressMode P2PMode Enabled CareOfAddressPool <