Cisco Evolved Programmable Network Manager API
Evolved Programmable Network Manager API Documentation

POST compliance/profile

Creates profile and associates policy

Since Product Version: 3.1

Resource Information

Rate Limiting?

No

Sorting?

No

Paging?

No

Filtering?

No

Group Filtering?

No

Aggregation?

No

Response Formats

xml

json

User Group

NBI Write

HTTP Methods

POST

Resource URL

/webacs/api/v2/op/compliance/profile

Unmodified

This resource has not been modified since the previous API version.

Request Payload Parameters

Attribute Description

group Arrow image ComplianceProfileGroup

name String

policies Arrow image ComplianceProfilePolicy[]

Response Parameters

Attribute Description

isSuccess boolean

If true, the action was successfully performed. If false, it ended in some failure condition.

message String

The action status message.

Sample Payloads

Sample payloads are for information only. They are automatically generated and the values included may not be representative of actual valid data values.

Sample XML Request Payload

https://10.64.80.159/webacs/api/v2/op/compliance/profile

<?xml version="1.0" ?>
<complianceProfile>
  <group>
    <description>String value</description>
    <pariGroupId>2</pariGroupId>
    <title>String value</title>
  </group>
  <name>String value</name>
  <policies>
    <policies>
      <policyId>String value</policyId>
      <rules>
        <rules>
          <ruleId>String value</ruleId>
        </rules>
        <rules>
          <ruleId>Another string value</ruleId>
        </rules>
      </rules>
    </policies>
    <policies>
      <policyId>Another string value</policyId>
      <rules>
        <rules>
          <ruleId>String value</ruleId>
        </rules>
        <rules>
          <ruleId>Another string value</ruleId>
        </rules>
      </rules>
    </policies>
  </policies>
</complianceProfile>

Sample JSON Request Payload

https://10.64.80.159/webacs/api/v2/op/compliance/profile.json

{
  "complianceProfile" : {
    "group" : {
      "description" : "String value",
      "pariGroupId" : 2,
      "title" : "String value"
    },
    "name" : "String value",
    "policies" : {
      "policies" : [ {
        "policyId" : "String value",
        "rules" : {
          "rules" : [ {
            "ruleId" : "String value"
          }, {
            "ruleId" : "Another string value"
          } ]
        }
      }, {
        "policyId" : "Another string value",
        "rules" : {
          "rules" : [ {
            "ruleId" : "String value"
          }, {
            "ruleId" : "Another string value"
          } ]
        }
      } ]
    }
  }
}

Sample XML Response Payload

https://10.64.80.159/webacs/api/v2/op/compliance/profile

<?xml version="1.0" ?>
<mgmtResponse responseType="operation" requestUrl="../../../../../pages/common/login.jsp.html" rootUrl="https://10.64.80.159/webacs/api/v2/op">
  <complianceResult>
    <isSuccess>true</isSuccess>
    <message>String value</message>
  </complianceResult>
</mgmtResponse>

Sample JSON Response Payload

https://10.64.80.159/webacs/api/v2/op/compliance/profile.json

{
  "mgmtResponse" : {
    "@requestUrl" : "../../../../../pages/common/login.jsp.html",
    "@responseType" : "operation",
    "@rootUrl" : "https://10.64.80.159/webacs/api/v2/op",
    "complianceResult" : [ {
      "isSuccess" : true,
      "message" : "String value"
    } ]
  }
}