POST NewPolicy
URL: /api/AppShield/NewPolicy
Description
Retrieve a blank Yurbi AppShield Policy object. This call does not create a new AppShield Policy and the only argument required is a sessionToken. This call returns a JSON structure to populate a new AppShield Policy record which then must be saved (see /api/AppSheild/SaveAppShieldPolicy).
Method
POST
Data Params
{
sessionToken : [string]
}
Example
{
sessionToken : "HJQXIYYL[AZVTTRPILOHXHLWW"
}
Success Response
Code: 200
{
"Constraints":[],
"CreatedBy":null,
"CreateDate":"2016-06-06T21:17:40.8220078-04:00",
"Description":"AppShield Policy Created 2016-06-06T21:17:40.8220078-04:00",
"ErrorCode":0,
"ErrorMessage":null,
"Groups":null,
"id":null,
"isActive":false,
"ModifyBy":null,
"ModifiedDate":"2016-06-06T21:17:40.8220078-04:00",
"Name":"New AppShield Policy",
"Users":null
}
Definition of DashobardListItem
Name | Description |
Constraints | Description of Dashboard |
CreatedBy | Creation Date |
CreateDate | Creation Date |
Description | Policy description. |
ErrorCode | Error code. |
ErrorMessage | Error message |
Groups | Groups assigned to policy. |
id | Unique id. |
isActive | Active |
ModifiedBy | Last User to modify. |
ModifiedDate | Last modify date of contact record |
Name | Name of Policy |
Users | Users assigned to policy |
Sample Call
$.ajax({
url: "/api/AppShield/NewPolicy",
dataType: "json",
data : {
sessionToken : “HJQXIYYL[AZVTTRPILOHXHLWW”},
type : "POST",
success : function(r) {
console.log(r);
}
});