POST v1/core/accounts/{accId}/accessgroups/{accgrpId}/apnzonerestrictions/{accgrpznrstId}/DomainFiltering/DefaultAction

Set the Default policy action at the Access Group Zone Restriction level

Request Information

Parameters

NameDescriptionAdditional information
accId
The Account ID

Define this parameter in the request URI.

accgrpId
The Access Group ID

Define this parameter in the request URI.

accgrpznrstId
The Access Group Zone Restriction ID

Define this parameter in the request URI.

action

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
"Unknown"

text/javascript

Sample:
0

application/xml, text/xml

Sample:
<ActionType xmlns="http://schemas.datacontract.org/2004/07/pbnb_models.dnf">Unknown</ActionType>

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

application/bson

Sample:

An exception has occurred while using the formatter 'BsonMediaTypeFormatter' to generate sample for media type 'application/bson'. Exception message: Error writing Integer value. BSON must start with an Object or Array. Path ''.

Response Information

Current default action for the policy

Response body formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": "Unknown",
  "ErrorCode": 2,
  "ErrorDescription": "sample string 3",
  "Meta": "sample string 4"
}

text/javascript

Sample:
{"Success":true,"Data":0,"ErrorCode":2,"ErrorDescription":"sample string 3","Meta":"sample string 4"}

application/xml, text/xml

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

application/bson

Sample:
hSuccessDataErrorCodeErrorDescriptionsample string 3Metasample string 4