POST v1/core/Accounts/{accId}/routes/blackhole

Create a new blackhole route

Request Information

Parameters

NameDescriptionAdditional information
accId

Define this parameter in the request URI.

route

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Destination": "sample string 2",
  "Mask": "sample string 3",
  "Metric": 4,
  "Action": "Drop|Unreachable"
}

text/javascript

Sample:
{"ID":1,"Destination":"sample string 2","Mask":"sample string 3","Metric":4,"Action":0}

application/xml, text/xml

Sample:
<BlackholeRoute xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <Action>Drop|Unreachable</Action>
  <Destination>sample string 2</Destination>
  <ID>1</ID>
  <Mask>sample string 3</Mask>
  <Metric>4</Metric>
</BlackholeRoute>

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

application/bson

Sample:
`IDDestinationsample string 2Masksample string 3MetricAction

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "ID": 1,
    "Destination": "sample string 2",
    "Mask": "sample string 3",
    "Metric": 4,
    "Action": "Drop|Unreachable"
  },
  "ErrorCode": 2,
  "ErrorDescription": "sample string 3",
  "Meta": "sample string 4"
}

text/javascript

Sample:
{"Success":true,"Data":{"ID":1,"Destination":"sample string 2","Mask":"sample string 3","Metric":4,"Action":0},"ErrorCode":2,"ErrorDescription":"sample string 3","Meta":"sample string 4"}

application/xml, text/xml

Sample:
<PBNBReturnOfBlackholeRouteCA1DLPoZ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <Data>
    <Action>Drop|Unreachable</Action>
    <Destination>sample string 2</Destination>
    <ID>1</ID>
    <Mask>sample string 3</Mask>
    <Metric>4</Metric>
  </Data>
  <ErrorCode>2</ErrorCode>
  <ErrorDescription>sample string 3</ErrorDescription>
  <Meta>sample string 4</Meta>
  <Success>true</Success>
</PBNBReturnOfBlackholeRouteCA1DLPoZ>

application/bson

Sample:
�SuccessData`IDDestinationsample string 2Masksample string 3MetricActionErrorCodeErrorDescriptionsample string 3Metasample string 4