POST v1/core/accounts/{accId}/wan/gre/dhcpnetwork

Create DHCP network config.

Request Information

Parameters

NameDescriptionAdditional information
accId
AccountID

Define this parameter in the request URI.

dhcp
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Description": "sample string 2",
  "SubnetAddress": "sample string 3",
  "SubnetMask": "sample string 4",
  "DHCPServer": "sample string 5",
  "DNSServer": "sample string 6"
}

text/javascript

Sample:
{"ID":1,"Description":"sample string 2","SubnetAddress":"sample string 3","SubnetMask":"sample string 4","DHCPServer":"sample string 5","DNSServer":"sample string 6"}

application/xml, text/xml

Sample:
<DHCPNetwork xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <DHCPServer>sample string 5</DHCPServer>
  <DNSServer>sample string 6</DNSServer>
  <Description>sample string 2</Description>
  <ID>1</ID>
  <SubnetAddress>sample string 3</SubnetAddress>
  <SubnetMask>sample string 4</SubnetMask>
</DHCPNetwork>

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 'DHCPNetwork'.

application/bson

Sample:
�IDDescriptionsample string 2SubnetAddresssample string 3SubnetMasksample string 4DHCPServersample string 5DNSServersample string 6

Response Information

DHCP network config

Response body formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "ID": 1,
    "Description": "sample string 2",
    "SubnetAddress": "sample string 3",
    "SubnetMask": "sample string 4",
    "DHCPServer": "sample string 5",
    "DNSServer": "sample string 6"
  },
  "ErrorCode": 2,
  "ErrorDescription": "sample string 3",
  "Meta": "sample string 4"
}

text/javascript

Sample:
{"Success":true,"Data":{"ID":1,"Description":"sample string 2","SubnetAddress":"sample string 3","SubnetMask":"sample string 4","DHCPServer":"sample string 5","DNSServer":"sample string 6"},"ErrorCode":2,"ErrorDescription":"sample string 3","Meta":"sample string 4"}

application/xml, text/xml

Sample:
<PBNBReturnOfDHCPNetworkCA1DLPoZ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <Data>
    <DHCPServer>sample string 5</DHCPServer>
    <DNSServer>sample string 6</DNSServer>
    <Description>sample string 2</Description>
    <ID>1</ID>
    <SubnetAddress>sample string 3</SubnetAddress>
    <SubnetMask>sample string 4</SubnetMask>
  </Data>
  <ErrorCode>2</ErrorCode>
  <ErrorDescription>sample string 3</ErrorDescription>
  <Meta>sample string 4</Meta>
  <Success>true</Success>
</PBNBReturnOfDHCPNetworkCA1DLPoZ>

application/bson

Sample:
SuccessData�IDDescriptionsample string 2SubnetAddresssample string 3SubnetMasksample string 4DHCPServersample string 5DNSServersample string 6ErrorCodeErrorDescriptionsample string 3Metasample string 4