PUT v1/core/Accounts/{accId}/users/{usrId}/staticaddressing/ipsec

Update the IPSEC access modes for this user This can be P2P or Packet

Request Information

Parameters

NameDescriptionAdditional information
accId
the account id

Define this parameter in the request URI.

usrId
the user id

Define this parameter in the request URI.

item
New APN static addressing settings

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "RoutedMode": {
    "Enabled": true
  },
  "P2PMode": {
    "Enabled": true
  },
  "CareOfAddress": "sample string 1"
}

text/javascript

Sample:
{"RoutedMode":{"Enabled":true},"P2PMode":{"Enabled":true},"CareOfAddress":"sample string 1"}

application/xml, text/xml

Sample:
<UserNetworkMode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <CareOfAddress>sample string 1</CareOfAddress>
  <P2PMode>
    <Enabled>true</Enabled>
  </P2PMode>
  <RoutedMode>
    <Enabled>true</Enabled>
  </RoutedMode>
</UserNetworkMode>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserNetworkMode'.

application/bson

Sample:
[RoutedModeEnabledP2PModeEnabledCareOfAddresssample string 1

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "RoutedMode": {
      "Enabled": true
    },
    "P2PMode": {
      "Enabled": true
    },
    "CareOfAddress": "sample string 1"
  },
  "ErrorCode": 2,
  "ErrorDescription": "sample string 3",
  "Meta": "sample string 4"
}

text/javascript

Sample:
{"Success":true,"Data":{"RoutedMode":{"Enabled":true},"P2PMode":{"Enabled":true},"CareOfAddress":"sample string 1"},"ErrorCode":2,"ErrorDescription":"sample string 3","Meta":"sample string 4"}

application/xml, text/xml

Sample:
<PBNBReturnOfUserNetworkModeCA1DLPoZ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <Data>
    <CareOfAddress>sample string 1</CareOfAddress>
    <P2PMode>
      <Enabled>true</Enabled>
    </P2PMode>
    <RoutedMode>
      <Enabled>true</Enabled>
    </RoutedMode>
  </Data>
  <ErrorCode>2</ErrorCode>
  <ErrorDescription>sample string 3</ErrorDescription>
  <Meta>sample string 4</Meta>
  <Success>true</Success>
</PBNBReturnOfUserNetworkModeCA1DLPoZ>

application/bson

Sample:
�SuccessData[RoutedModeEnabledP2PModeEnabledCareOfAddresssample string 1ErrorCodeErrorDescriptionsample string 3Metasample string 4