CreateSecurityGroup() Parent topic

Description

Create a new policy

Interface

https://[SecureCloudService]/Broker/API.svc/v3.5/securityGroup/
Method: POST

Request

Refer to the following data type: SecurityGroup.

Response

Expected HTTP response code: 200 (OK)

Example Request URL

[POST]
https://ms.sample.securecloud.com/broker/API.svc/v3.5/securityGroup

Example Request Message

<?xml version="1.0"?>
<securityGroup name="testCreatePolicy" EnableIC="false" ICAction="false"
PostponeEnable="false" RevokeIntervalNumber="0" RevokeIntervalType="false"
isDeleteble="false" isNameEditable="false"/>

Example Response

<?xml version="1.0"?>
<securityGroup
      id="c0ba40d5-1247-4ba5-a539-138d91532369" imageCount="0" isNameEditable="true"
      lastModified="2014-04-17T03:49:30" name="testCreatePolicy" ruleCount="0"
      EnableIC="false" ICAction="Nothing" PostponeEnable="false"
      RevokeIntervalNumber="0" RevokeIntervalType="Hour"
      href="https://ms.lab.securecloud.com/broker/API.svc/v3.5/securityGroup/
            c0ba40d5-1247-4ba5-a539-138d91532369/">
      <successAction action="ManualApprove" autoDelay="-1"/>
      <failedAction action="ManualApprove" autoDelay="-1"/>
      <securityRuleList>
            <securityRule dataMissing="Failed"
            id="1338779b-2683-474b-a9a7-298176564a6f" matchType="MatchAll">
                  <securityRuleType dataType="Date" evaluator="lessThan"
                  id="1338779b-2683-474b-a9a7-298176564a6f" name="Key Request Date"/>
                  <securityRuleConditionList>
                        <securityRuleCondition evaluator="equal"
                        expectedValue="04/17/2014"/>
                  </securityRuleConditionList>
            </securityRule>
      </securityRuleList>
</securityGroup>