SecurityCenter API: Scan Policy

/policy

Methods
GET

Gets the list of Policies.

Fields Parameter
Expand

The fields parameter should be specified along the query string, and it takes the syntax

    ?fields=<field>,...

Allowed Fields

*id
**name
**description
**status

policyTemplate
policyProfileName
creator
tags
createdTime
modifiedTime
context
generateXCCDFResults
auditFiles
preferences
targetGroup
 

Session user role "1" (Administrator)

owner
ownerGroup

Session user role not "1" (Administrator)

status
groups 

Template ID "1" (Advanced Template)

families

Legend

* = always comes back

** = comes back if fields list not specified on GET all
Request Parameters

None

Filter Parameters

usable - The response will be an object containing an array of usable Policies. By default, both usable and manageable objects are returned.
manageable - The response will be an object containing all manageable Policies. By default, both usable and manageable objects are returned. 

Example Response
Expand
{
	"type" : "regular",
	"response" : {
		"usable" : [
			{
				"id" : "1",
				"name" : "test",
				"description" : "desc",
				"status" : "0"
			},
			{
				"id" : "2",
				"name" : "test2",
				"description" : "desc",
				"status" : "0"
			},
			{
				"id" : "3",
				"name" : "test3",
				"description" : "desc",
				"status" : "0"
			},
			{
				"id" : "4",
				"name" : "test4",
				"description" : "test desc",
				"status" : "0"
			},
			{
				"id" : "1000001",
				"name" : "nesus upload - ibm credentials",
				"description" : "",
				"status" : "0"
			},
			{
				"id" : "1000002",
				"name" : "nesus upload - ibm credentials - uploaded one",
				"description" : "Nessus Policy exported from SecurityCenter",
				"status" : "0"
			},
			{
				"id" : "1000003",
				"name" : "IBM iSeries Credentials Name",
				"description" : "Imported Nessus Policy",
				"status" : "0"
			},
			{
				"id" : "1000004",
				"name" : "Nessus Upload 2",
				"description" : "Imported Nessus Policy",
				"status" : "0"
			},
			{
				"id" : "1000005",
				"name" : "Nessus Upload 3",
				"description" : "Imported Nessus Policy",
				"status" : "0"
			},
			{
				"id" : "1000016",
				"name" : "Tom Test",
				"description" : "Imported Nessus Policy",
				"status" : "0"
			},
			{
				"id" : "1000017",
				"name" : "Nessus Upload 4",
				"description" : "Imported Nessus Policy",
				"status" : "0"
			},
			{
				"id" : "1000018",
				"name" : "Tom Test 2",
				"description" : "Imported Nessus Policy",
				"status" : "0"
			},
			{
				"id" : "1000019",
				"name" : "DOCtest",
				"description" : "desc",
				"status" : "0"
			},
			{
				"id" : "1000020",
				"name" : "test5",
				"description" : "test desc",
				"status" : "0"
			}
		],
		"manageable" : [
			{
				"id" : "1000001",
				"name" : "nesus upload - ibm credentials",
				"description" : "",
				"status" : "0"
			},
			{
				"id" : "1000002",
				"name" : "nesus upload - ibm credentials - uploaded one",
				"description" : "Nessus Policy exported from SecurityCenter",
				"status" : "0"
			},
			{
				"id" : "1000003",
				"name" : "IBM iSeries Credentials Name",
				"description" : "Imported Nessus Policy",
				"status" : "0"
			},
			{
				"id" : "1000004",
				"name" : "Nessus Upload 2",
				"description" : "Imported Nessus Policy",
				"status" : "0"
			},
			{
				"id" : "1000005",
				"name" : "Nessus Upload 3",
				"description" : "Imported Nessus Policy",
				"status" : "0"
			},
			{
				"id" : "1000016",
				"name" : "Tom Test",
				"description" : "Imported Nessus Policy",
				"status" : "0"
			},
			{
				"id" : "1000017",
				"name" : "Nessus Upload 4",
				"description" : "Imported Nessus Policy",
				"status" : "0"
			},
			{
				"id" : "1000018",
				"name" : "Tom Test 2",
				"description" : "Imported Nessus Policy",
				"status" : "0"
			},
			{
				"id" : "1000019",
				"name" : "DOCtest",
				"description" : "desc",
				"status" : "0"
			},
			{
				"id" : "1000020",
				"name" : "test5",
				"description" : "test desc",
				"status" : "0"
			}
		]
	},
	"error_code" : 0,
	"error_msg" : "",
	"warnings" : [],
	"timestamp" : 1406233675
}

POST

Adds a Policy (or AppPolicy).

NOTE #1: To specify a mixed Plugin Family, the plugins field must be present; otherwise, the family type defaults to enabled.
NOTE #2: When a policy is not context "" (empty), a new name will be generated. The 'name' parameter, if passed, will be overwritten.

Request Parameters
Expand
{
	"context" : <string> "" | "scan" DEFAULT ""
	"description" : <string> DEFAULT "",
	"tags" : <string> DEFAULT "",
	"preferences" : [
		<string:name> : <string:value>...
	] DEFAULT [],
	"auditFiles" : [
		{
			"id" : <number>
		}...
	] DEFAULT [],
	"policyTemplate" : {
		"id" : <number>
	},
	"policyProfileName" : <string> OPTIONAL,
	"generateXCCDFResults" : <string> "false" | "true" DEFAULT "false"
 
	context "" (empty)
	------------------
	"name" : <string>
}

policyTemplate ID "1" (Advanced Template) 

...
	"families" : [
		{
			"id" : <number>,
			"plugins" : [
				{
					"id" : <number>
				}...
			] OPTIONAL (must be specified to effect a "mixed" Plugin Family type)
		}...
	] DEFAULT []
...

Session User is not an administrator

{
	"ownerID" : <number> DEFAULT {creatorID},  (
}
Example Response
Expand
{
	"type" : "regular",
	"response" : [
		{
			"id" : "1000019",
			"name" : "DOCtest",
			"description" : "desc",
			"policyTemplate" : {
				"id" : "1",
				"name" : "Advanced Scan",
				"description" : "Configure a scan without using any recommendations."
			},
			"policyProfileName" : "",
			"generateXCCDFResults" : "false",
			"creatorID" : "1",
			"ownerID" : "1",
			"context" : "",
			"tags" : "",
			"createdTime" : "1406224504",
			"modifiedTime" : "1406224504",
			"ownerGID" : "0",
			"targetGID" : "-1",
			"auditFiles" : [],
			"preferences" : [],
			"families" : [
				{
					"id" : "9",
					"name" : "AIX Local Security Checks",
					"count" : "11164"
				},
				{
					"id" : "54",
					"name" : "Amazon Linux Local Security Checks",
					"count" : "502"
				},
				{
					"id" : "35",
					"name" : "Backdoors",
					"count" : "102"
				},
				{
					"id" : "18",
					"name" : "CentOS Local Security Checks",
					"count" : "1890"
				},
				{
					"id" : "6",
					"name" : "CGI abuses",
					"count" : "3235"
				},
				{
					"id" : "26",
					"name" : "CGI abuses  :  XSS",
					"count" : "600"
				},
				{
					"id" : "33",
					"name" : "CISCO",
					"count" : "576"
				},
				{
					"id" : "31",
					"name" : "Databases",
					"count" : "372"
				},
				{
					"id" : "3",
					"name" : "Debian Local Security Checks",
					"count" : "3179"
				},
				{
					"id" : "25",
					"name" : "Default Unix Accounts",
					"count" : "101"
				},
				{
					"id" : "22",
					"name" : "Denial of Service",
					"count" : "107"
				},
				{
					"id" : "37",
					"name" : "DNS",
					"count" : "110"
				},
				{
					"id" : "57",
					"name" : "F5 Networks Local Security Checks",
					"count" : "154"
				},
				{
					"id" : "5",
					"name" : "Fedora Local Security Checks",
					"count" : "8067"
				},
				{
					"id" : "34",
					"name" : "Firewalls",
					"count" : "139"
				},
				{
					"id" : "13",
					"name" : "FreeBSD Local Security Checks",
					"count" : "2616"
				},
				{
					"id" : "19",
					"name" : "FTP",
					"count" : "244"
				},
				{
					"id" : "40",
					"name" : "Gain a shell remotely",
					"count" : "274"
				},
				{
					"id" : "30",
					"name" : "General",
					"count" : "198"
				},
				{
					"id" : "7",
					"name" : "Gentoo Local Security Checks",
					"count" : "2071"
				},
				{
					"id" : "2",
					"name" : "HP-UX Local Security Checks",
					"count" : "1974"
				},
				{
					"id" : "56",
					"name" : "Huawei Local Security Checks",
					"count" : "14"
				},
				{
					"id" : "50",
					"name" : "Junos Local Security Checks",
					"count" : "107"
				},
				{
					"id" : "21",
					"name" : "MacOS X Local Security Checks",
					"count" : "717"
				},
				{
					"id" : "47",
					"name" : "Mandriva Local Security Checks",
					"count" : "2970"
				},
				{
					"id" : "23",
					"name" : "Misc.",
					"count" : "972"
				},
				{
					"id" : "52",
					"name" : "Mobile Devices",
					"count" : "43"
				},
				{
					"id" : "43",
					"name" : "Netware",
					"count" : "14"
				},
				{
					"id" : "53",
					"name" : "Oracle Linux Local Security Checks",
					"count" : "1912"
				},
				{
					"id" : "55",
					"name" : "Palo Alto Local Security Checks",
					"count" : "20"
				},
				{
					"id" : "32",
					"name" : "Peer-To-Peer File Sharing",
					"count" : "72"
				},
				{
					"id" : "39",
					"name" : "Policy Compliance",
					"count" : "38"
				},
				{
					"id" : "42",
					"name" : "Port scanners",
					"count" : "8"
				},
				{
					"id" : "1",
					"name" : "Red Hat Local Security Checks",
					"count" : "3424"
				},
				{
					"id" : "28",
					"name" : "RPC",
					"count" : "36"
				},
				{
					"id" : "36",
					"name" : "SCADA",
					"count" : "198"
				},
				{
					"id" : "51",
					"name" : "Scientific Linux Local Security Checks",
					"count" : "1760"
				},
				{
					"id" : "24",
					"name" : "Service detection",
					"count" : "408"
				},
				{
					"id" : "41",
					"name" : "Settings",
					"count" : "66"
				},
				{
					"id" : "15",
					"name" : "Slackware Local Security Checks",
					"count" : "757"
				},
				{
					"id" : "12",
					"name" : "SMTP problems",
					"count" : "135"
				},
				{
					"id" : "45",
					"name" : "SNMP",
					"count" : "33"
				},
				{
					"id" : "4",
					"name" : "Solaris Local Security Checks",
					"count" : "3798"
				},
				{
					"id" : "8",
					"name" : "SuSE Local Security Checks",
					"count" : "7355"
				},
				{
					"id" : "14",
					"name" : "Ubuntu Local Security Checks",
					"count" : "2767"
				},
				{
					"id" : "48",
					"name" : "VMware ESX Local Security Checks",
					"count" : "94"
				},
				{
					"id" : "11",
					"name" : "Web Servers",
					"count" : "876"
				},
				{
					"id" : "20",
					"name" : "Windows",
					"count" : "3113"
				},
				{
					"id" : "10",
					"name" : "Windows  :  Microsoft Bulletins",
					"count" : "986"
				},
				{
					"id" : "29",
					"name" : "Windows  :  User management",
					"count" : "28"
				}
			],
			"status" : "0",
			"canUse" : "true",
			"canManage" : "true",
			"groups" : []
		}
	],
	"error_code" : 0,
	"error_msg" : "",
	"warnings" : [],
	"timestamp" : 1406224504
}

/policy/{id}

Methods
GET

Gets the Policy associated with {id}.

Fields Parameter
Expand

The fields parameter should be specified along the query string, and it takes the syntax

    ?fields=<field>,...

Allowed Fields

*id
**name
**description
**status

policyTemplateType
policyTemplate
policyProfileName
creator
tags
status
createdTime
modifiedTime
context
generateXCCDFResults
auditFiles
preferences
targetGroup 

Session user role "1" (Administrator)

owner
ownerGroup

Session user role not "1" (Administrator)

groups

Template ID "1" (Advanced Template)

families

 

Legend

* = always comes back

** = comes back if fields list not specified on GET all
Request Parameters

None

Example Response
Expand
{
	"type" : "regular",
	"response" : [
		{
			"id" : "1",
			"generateXCCDFResults" : "false",
			"context" : "",
			"policyTemplateID" : "1",
			"policyProfileName" : "",
			"name" : "test",
			"description" : "desc",
			"tags" : "",
			"createdTime" : "1406148027",
			"modifiedTime" : "1406148027",
			"status" : "0",
			"auditFiles" : [],
			"preferences" : {
				"preference1" : "value1",
				"preference2" : "value2"
			},
			"families" : [
				{
					"id" : "9",
					"name" : "AIX Local Security Checks",
					"count" : "11164"
				},
				{
					"id" : "54",
					"name" : "Amazon Linux Local Security Checks",
					"count" : "502"
				},
				{
					"id" : "35",
					"name" : "Backdoors",
					"count" : "102"
				},
				{
					"id" : "18",
					"name" : "CentOS Local Security Checks",
					"count" : "1890"
				},
				{
					"id" : "6",
					"name" : "CGI abuses",
					"count" : "3235"
				},
				{
					"id" : "26",
					"name" : "CGI abuses  :  XSS",
					"count" : "600"
				},
				{
					"id" : "33",
					"name" : "CISCO",
					"count" : "576"
				},
				{
					"id" : "31",
					"name" : "Databases",
					"count" : "372"
				},
				{
					"id" : "3",
					"name" : "Debian Local Security Checks",
					"count" : "3179"
				},
				{
					"id" : "25",
					"name" : "Default Unix Accounts",
					"count" : "101"
				},
				{
					"id" : "22",
					"name" : "Denial of Service",
					"count" : "107"
				},
				{
					"id" : "37",
					"name" : "DNS",
					"count" : "110"
				},
				{
					"id" : "57",
					"name" : "F5 Networks Local Security Checks",
					"count" : "154"
				},
				{
					"id" : "5",
					"name" : "Fedora Local Security Checks",
					"count" : "8067"
				},
				{
					"id" : "34",
					"name" : "Firewalls",
					"count" : "139"
				},
				{
					"id" : "13",
					"name" : "FreeBSD Local Security Checks",
					"count" : "2616"
				},
				{
					"id" : "19",
					"name" : "FTP",
					"count" : "244"
				},
				{
					"id" : "40",
					"name" : "Gain a shell remotely",
					"count" : "274"
				},
				{
					"id" : "30",
					"name" : "General",
					"count" : "198"
				},
				{
					"id" : "7",
					"name" : "Gentoo Local Security Checks",
					"count" : "2071"
				},
				{
					"id" : "2",
					"name" : "HP-UX Local Security Checks",
					"count" : "1974"
				},
				{
					"id" : "56",
					"name" : "Huawei Local Security Checks",
					"count" : "14"
				},
				{
					"id" : "50",
					"name" : "Junos Local Security Checks",
					"count" : "107"
				},
				{
					"id" : "21",
					"name" : "MacOS X Local Security Checks",
					"count" : "717"
				},
				{
					"id" : "47",
					"name" : "Mandriva Local Security Checks",
					"count" : "2970"
				},
				{
					"id" : "23",
					"name" : "Misc.",
					"count" : "972"
				},
				{
					"id" : "52",
					"name" : "Mobile Devices",
					"count" : "43"
				},
				{
					"id" : "43",
					"name" : "Netware",
					"count" : "14"
				},
				{
					"id" : "53",
					"name" : "Oracle Linux Local Security Checks",
					"count" : "1912"
				},
				{
					"id" : "55",
					"name" : "Palo Alto Local Security Checks",
					"count" : "20"
				},
				{
					"id" : "32",
					"name" : "Peer-To-Peer File Sharing",
					"count" : "72"
				},
				{
					"id" : "39",
					"name" : "Policy Compliance",
					"count" : "38"
				},
				{
					"id" : "42",
					"name" : "Port scanners",
					"count" : "8"
				},
				{
					"id" : "1",
					"name" : "Red Hat Local Security Checks",
					"count" : "3424"
				},
				{
					"id" : "28",
					"name" : "RPC",
					"count" : "36"
				},
				{
					"id" : "36",
					"name" : "SCADA",
					"count" : "198"
				},
				{
					"id" : "51",
					"name" : "Scientific Linux Local Security Checks",
					"count" : "1760"
				},
				{
					"id" : "24",
					"name" : "Service detection",
					"count" : "408"
				},
				{
					"id" : "41",
					"name" : "Settings",
					"count" : "66"
				},
				{
					"id" : "15",
					"name" : "Slackware Local Security Checks",
					"count" : "757"
				},
				{
					"id" : "12",
					"name" : "SMTP problems",
					"count" : "135"
				},
				{
					"id" : "45",
					"name" : "SNMP",
					"count" : "33"
				},
				{
					"id" : "4",
					"name" : "Solaris Local Security Checks",
					"count" : "3798"
				},
				{
					"id" : "8",
					"name" : "SuSE Local Security Checks",
					"count" : "7355"
				},
				{
					"id" : "14",
					"name" : "Ubuntu Local Security Checks",
					"count" : "2767"
				},
				{
					"id" : "48",
					"name" : "VMware ESX Local Security Checks",
					"count" : "94"
				},
				{
					"id" : "11",
					"name" : "Web Servers",
					"count" : "876"
				},
				{
					"id" : "20",
					"name" : "Windows",
					"count" : "3113"
				},
				{
					"id" : "10",
					"name" : "Windows  :  Microsoft Bulletins",
					"count" : "986"
				},
				{
					"id" : "29",
					"name" : "Windows  :  User management",
					"count" : "28"
				}
			],
			"creator" : {
				"id" : "1",
				"username" : "head",
				"firstname" : "test",
				"lastname" : "User"
			},
			"canUse" : "true",
			"canManage" : "false"
		}
	],
	"error_code" : 0,
	"error_msg" : "",
	"warnings" : [],
	"timestamp" : 1406223313
}

PATCH

Edits the Policy associated with {id}, changing only the passed in fields.

NOTE #1: A policy's context may not be modified. When a policy is not context "" (empty), a new name will be generated. If the 'name' parameter is passed, it will be overwritten.
NOTE #2: In addition to the root object level (as usual), preferences and auth preference levels are defaulted. To maintain passwords on policy preferences, the policy preference object must contain the 'id' associated with that preference.

Request Parameters

All fields are optional

See /policy::POST for parameters.

Expand

In addition, the following may be used to completely remove a preference:

NOTE: Not sending a preference will cause it to remain unchanged. Sending a preference as null, false, blank, or empty will just simply set the respective preference to that value. The only way to remove a preference is to include it in the removePrefs.

{
	...
	"removePrefs" : [
		<string:name>...
	] DEFAULT []
}
Example Response
See /policy/{id}::GET

DELETE

Deletes the Policy associated with {id}, depending on access and permissions.

Request Parameters
Expand

NOTE: If the parameter targetGID is specified, this will delete the specified policy share to the provided targetGID. Otherwise, it will delete the specified policy.

{
	"targetGID" : <number> DEFAULT -1 (not set)
}
Example Response
Expand
{
    "type" : "regular",
    "response" : "",
    "error_code" : 0,
    "error_msg" : "",
    "warnings" : [],
    "timestamp" : 1403100582
}

/policy/{id}/copy

POST

Copies the Policy associated with {id}, depending on access and permissions.

NOTE: The policy that is associated with {id} must contain context "" (empty).

Request Parameters
Expand
{
 	"name" : <string> DEFAULT -1 (not set)
}
Example Response
Expand
{
	"type" : "regular",
	"response" : {
		"id" : "4",
		"name" : "testCopy2",
		"description" : "test",
		"policyTemplateID" : "1",
		"policyProfileName" : "",
		"generateXCCDFResults" : "false",
		"creatorID" : "1",
		"context" : null,
		"tags" : "",
		"status" : "0",
		"createdTime" : "1410976021",
		"modifiedTime" : "1410976021",
		"auditFiles" : [],
		"preferences" : [],
		"families" : []
	},
	"error_code" : 0,
	"error_msg" : "",
	"warnings" : [],
	"timestamp" : 1410976021
}

/policy/{id}/export

Methods
POST
Request Parameters

None

Example Response

None given. The response will be an xml file containing the Scan Policy.

/policy/{id}/share

Methods
POST

Shares the Policy associated with {id}, depending on access and permissions

Request Parameters
Expand
{
	"groups" : [
		{
			"id" : <number>
		}...
	]
}
Example Response
Expand
{
	"type" : "regular",
	"response" : {
		"id" : "1000002",
		"name" : "POST TEST",
		"description" : "Test of post for use with scan post test",
		"policyTemplateID" : "1",
		"policyProfileName" : null,
		"generateXCCDFResults" : "false",
		"creatorID" : "1",
		"ownerID" : "1",
		"context" : "",
		"tags" : "",
		"createdTime" : "1406815230",
		"modifiedTime" : "1406831623",
		"ownerGID" : "0",
		"targetGID" : "-1",
		"auditFiles" : [
			{
				"id" : "5",
				"creatorID" : "1",
				"name" : "Admin - Top 25 extended File Listener",
				"description" : "",
				"version" : "1",
				"type" : "windowsfiles",
				"status" : "0",
				"filename" : "scfile_RDzAqG",
				"originalFilename" : "Top25ext-FileLister.audit",
				"createdTime" : "1407436831",
				"modifiedTime" : "1408041922",
				"creator" : {
					"id" : "1",
					"username" : "head",
					"firstname" : "Security Manager",
					"lastname" : ""
				}
			},
			{
				"id" : "6",
				"creatorID" : "1",
				"name" : "Admin - Top 25 lite",
				"description" : "",
				"version" : "1",
				"type" : "windowsfiles",
				"status" : "0",
				"filename" : "scfile_GSghXU",
				"originalFilename" : "Top25lite.audit",
				"createdTime" : "1407436886",
				"modifiedTime" : "1408041931",
				"creator" : {
					"id" : "1",
					"username" : "head",
					"firstname" : "Security Manager",
					"lastname" : ""
				}
			},
			{
				"id" : "1000030",
				"creatorID" : "1",
				"ownerID" : "1",
				"name" : "Basic Audit File",
				"description" : "",
				"version" : "1",
				"type" : "windowsfiles",
				"context" : null,
				"status" : "0",
				"filename" : "scfile_KZxUpL",
				"originalFilename" : "Top25ext-FileLister.audit",
				"createdTime" : "1407860973",
				"modifiedTime" : "1407860973",
				"creator" : {
					"id" : "1",
					"username" : "head",
					"firstname" : "Security Manager",
					"lastname" : ""
				},
				"owner" : {
					"id" : "1",
					"username" : "head",
					"firstname" : "Security Manager",
					"lastname" : ""
				}
			},
			{
				"id" : "1000047",
				"creatorID" : "1",
				"ownerID" : "1",
				"name" : "With Scap",
				"description" : "",
				"version" : "1",
				"type" : "windowsfiles",
				"context" : null,
				"status" : "0",
				"filename" : "scfile_SQWESp",
				"originalFilename" : "Top25ext-FileLister.audit",
				"createdTime" : "1408112071",
				"modifiedTime" : "1408112876",
				"creator" : {
					"id" : "1",
					"username" : "head",
					"firstname" : "Security Manager",
					"lastname" : ""
				},
				"owner" : {
					"id" : "1",
					"username" : "head",
					"firstname" : "Security Manager",
					"lastname" : ""
				}
			},
			{
				"id" : "1000048",
				"creatorID" : "1",
				"ownerID" : "1",
				"name" : "test12122",
				"description" : "",
				"version" : "1.2",
				"type" : "scapWindows",
				"context" : null,
				"status" : "0",
				"filename" : "scfile_jWKztr",
				"originalFilename" : "SCAP1.2_multiple_datastreams.zip",
				"createdTime" : "1408112282",
				"modifiedTime" : "1408740774",
				"creator" : {
				"id" : "1",
					"username" : "head",
					"firstname" : "Security Manager",
					"lastname" : ""
				},
				"owner" : {
					"id" : "1",
					"username" : "head",
					"firstname" : "Security Manager",
					"lastname" : ""
				}
			},
			{
				"id" : "1000049",
				"creatorID" : "1",
				"ownerID" : "1",
				"name" : "Test",
				"description" : "",
				"version" : "1.2",
				"type" : "scapWindows",
				"context" : null,
				"status" : "0",
				"filename" : "scfile_VuyB0i",
				"originalFilename" : "SCAP1.2_multiple_datastreams.zip",
				"createdTime" : "1408740277",
				"modifiedTime" : "1408740277",
				"creator" : {
					"id" : "1",
					"username" : "head",
					"firstname" : "Security Manager",
					"lastname" : ""
				},
				"owner" : {
					"id" : "1",
					"username" : "head",
					"firstname" : "Security Manager",
					"lastname" : ""
				}
			}
		],
		"preferences" : [],
		"families" : [],
		"status" : "0",
		"policyTemplate" : {
			"id" : "1",
			"name" : "Advanced",
			"description" : "Configure a policy without using any templates or recommendations."
		},
		"creator" : {
			"id" : "1",
			"username" : "head",
			"firstname" : "Security Manager",
			"lastname" : ""
		},
		"owner" : {
			"id" : "1",
			"username" : "head",
			"firstname" : "Security Manager",
			"lastname" : ""
		},
		"ownerGroup" : {
			"id" : "0",
			"name" : "Full Access",
			"description" : "Full Access group"
		},
		"targetGroup" : {
			"id" : -1,
			"name" : "",
			"description" : ""
		}
	},
	"error_code" : 0,
	"error_msg" : "",
	"warnings" : [],
	"timestamp" : 1409087451
}

/policy/import

Methods
POST
Request Parameters
Expand
{
	"name" : <string>,
	"filename" : <string>,
	"description" : <string> DEFAULT "",
	"tags" : <string> OPTIONAL
}
Example Response
Expand
{
    "type" : "regular",
    "response" :  "",
    "error_code" : 0,
    "error_msg" : "",
    "warnings" : [],
    "timestamp" : 1407340545
}

/policy/tag

Methods
GET

Gets the full list of unique Policy tags

Note: Organization user responses will contain both organization and admin policy tags. Admin user responses will contain only admin policy tags.

Request Parameters

none

Example Response
Expand
{
	"type" : "regular",
	"response" : [
		"Tag1",
		"Tag2",
		"Tag3"
	],
	"error_code" : 0,
	"error_msg" : "",
	"warnings" : [],
	"timestamp" : 1461093219
}