Create a Configuration Element

post

/{versionId}/configuration/deviceConfigs/{deviceId}/configElements/create

Use this (POST) method to create a configuration element object with default values. All configurations that a device supports are modeled as a Type-Of configuration element which has configuration attributes. For example, if a configuration element of the type NetworkInterface is requested, a configuration object is returned with default populated attributes that can be used to configure the network-interface element instance. Similarly, when a configuration element of type RealmConfig is requested, it returns a configuration object with default populated attributes that can be used to configure the realm-config element instance and so on. This is a convenience method that allows a user to ask the server to construct any type of configuration element that is based on the current model and release that the targeted device is running. The create method returns a configuration element object but does not persist this to the SDM database. The user can modify the configuration element, and then use the add method to add this object to the targeted device configuration. Refer to the Add an Element Type and Add an Element Type (POST) methods for more information.

Request

Path Parameters
Back to Top

Response

200 Response

400 Response

The user input is invalid.

401 Response

The session ID is invalid.

404 Response

The object (resource URI, device, and so on) of your input request cannot be found.
Back to Top

Examples

Example of Accessing the API with cURL

The following example shows how to create a configuration element by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X POST \
    -b sessionid.txt \
    -d@request.json \
    --header "Accept: application/xml" \
    --header "Content-Type: application/xml" \
    "https://example.com:8443/rest/v1.3/configuration/deviceConfigs/ID9/configElements/create"

The following shows an example of the contents of the request.json file sent as the request body.

{
  "elementTypePath": "realmConfig"
}

Example of Accessing the API with Python

The following example shows how to create a configuration element by submitting a POST request on the REST resource using Python. This example assumes the cookie variable contains a valid authentication cookie. For an example of authenticating with Python, see Authenticate.

import requests
from lxml import etree
url = "https://example.com:8443/rest/v1.3/configuration/deviceConfigs/ID9/configElements/create"
headers = { "Accept":"application/xml", "Content-Type":"application/xml", "Cookie":cookie }
data = etree.tostring(etree.parse("request.json"))
resp = requests.post(url, headers=headers, data=data)

Example of the Response Body

The following example shows the contents of the response body in XML format.

Note:

Response payload example observed in SDM 8.2.5 and onwards.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configElement>
 <attributes>
  <attribute>
      <name>tcpInitialGuardTimer</name>
      <value>-1</value>
  </attribute>
  <attribute>
      <name>parent</name>
      <value></value>
  </attribute>
  <attribute>
      <name>codecPolicyInNetwork</name>
      <value>enabled</value>
  </attribute>
  <attribute>
      <name>dtlsSrtpProfile</name>
      <value></value>
  </attribute>
  <attribute>
      <name>trunkContext</name>
      <value></value>
  </attribute>
  <attribute>
      <name>qosConstraintName</name>
      <value></value>
  </attribute>
  <attribute>
      <name>stunEnable</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>deviceId</name>
      <value></value>
  </attribute>
  <attribute>
      <name>symmetricLatching</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>maxPacketLoss</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>windowSize</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>smIcsiMatchForInvite</name>
      <value></value>
  </attribute>
  <attribute>
      <name>hmrString</name>
      <value></value>
  </attribute>
  <attribute>
      <name>rtcpPolicy</name>
      <value></value>
  </attribute>
  <attribute>
      <name>subsqGuardTimer</name>
      <value>-1</value>
  </attribute>
  <attribute>
      <name>fallbackBandwidth</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>options</name>
      <value></value>
  </attribute>
  <attribute>
      <name>delayedMediaUpdate</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>id</name>
      <value></value>
  </attribute>
  <attribute>
      <name>monthlyMinutes</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>natTrustThreshold</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>icmpDetectMultip</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>dnsRealm</name>
      <value></value>
  </attribute>
  <attribute>
      <name>stiAttest</name>
      <value></value>
  </attribute>
  <attribute>
      <name>sipProfile</name>
      <value></value>
  </attribute>
  <attribute>
      <name>smIcsiMatchForMessage</name>
      <value></value>
  </attribute>
  <attribute>
      <name>inManipulationId</name>
      <value></value>
  </attribute>
  <attribute>
      <name>rtcpMux</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>userCacBandwidth</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>splOptions</name>
      <value></value>
  </attribute>
  <attribute>
      <name>intranslationId</name>
      <value></value>
  </attribute>
  <attribute>
      <name>preferredNetworkAddrType</name>
      <value>none</value>
  </attribute>
  <attribute>
      <name>tcpSubsqGuardTimer</name>
      <value>-1</value>
  </attribute>
  <attribute>
      <name>defaultLocationString</name>
      <value></value>
  </attribute>
  <attribute>
      <name>mediaPolicy</name>
      <value></value>
  </attribute>
  <attribute>
      <name>outManipulationId</name>
      <value></value>
  </attribute>
  <attribute>
      <name>mergeEarlyDialogs</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>earlyMediaAllow</name>
      <value></value>
  </attribute>
  <attribute>
      <name>maxBandwidth</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>denyTimer</name>
      <value>30</value>
  </attribute>
  <attribute>
      <name>srvccTrfo</name>
      <value></value>
  </attribute>
  <attribute>
      <name>untrustedCacFailThreshold</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>errMsgThreshold</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>subscriptionInfo</name>
      <value>END_USER_NONE</value>
  </attribute>
  <attribute>
      <name>mrInNetwork</name>
      <value>enabled</value>
  </attribute>
  <attribute>
      <name>mediaSecPolicy</name>
      <value></value>
  </attribute>
  <attribute>
      <name>initialGuardTimer</name>
      <value>-1</value>
  </attribute>
  <attribute>
      <name>featureTrfo</name>
      <value></value>
  </attribute>
  <attribute>
      <name>codecPolicy</name>
      <value></value>
  </attribute>
  <attribute>
      <name>holdReferReinvite</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>tcpFlowTimeLimit</name>
      <value>-1</value>
  </attribute>
  <attribute>
      <name>rateLimit</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>flowTimeLimit</name>
      <value>-1</value>
  </attribute>
  <attribute>
      <name>dataVersion</name>
      <value></value>
  </attribute>
  <attribute>
      <name>srtpMsmPassthrough</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>noRtcp</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>trustLevel</name>
      <value>none</value>
  </attribute>
  <attribute>
      <name>constraintName</name>
      <value></value>
  </attribute>
  <attribute>
      <name>diamE2AddrRealm</name>
      <value></value>
  </attribute>
  <attribute>
      <name>stunChangedPort</name>
      <value>3479</value>
  </attribute>
  <attribute>
      <name>stiVstarget</name>
      <value></value>
  </attribute>
  <attribute>
      <name>icmpAdvInterval</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>bwManager</name>
      <value></value>
  </attribute>
  <attribute>
      <name>mmInSystem</name>
      <value>enabled</value>
  </attribute>
  <attribute>
      <name>nodeFunctionality</name>
      <value></value>
  </attribute>
  <attribute>
      <name>referNotifyProvisional</name>
      <value>none</value>
  </attribute>
  <attribute>
      <name>mrInRealm</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>waitTimeForInvalidRegister</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>outtranslationId</name>
      <value></value>
  </attribute>
  <attribute>
      <name>maxMsgThreshold</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>hideEgressMediaUpdate</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>maxPriorityBandwidth</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>teamsFqdnInUri</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>codecPolicyInRealm</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>sessionRecordingServerTarget</name>
      <value></value>
  </attribute>
  <attribute>
      <name>maxEndPointsPerNat</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>userCacMode</name>
      <value>none</value>
  </attribute>
  <attribute>
      <name>isMSMRelease</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>callRecordingServerId</name>
      <value></value>
  </attribute>
  <attribute>
      <name>referCallTransfer</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>stiAstarget</name>
      <value></value>
  </attribute>
  <attribute>
      <name>maxMsgThresholdUntrusted</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>netMgmtCtrl</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>enforcementProfile</name>
      <value></value>
  </attribute>
  <attribute>
      <name>iceProfile</name>
      <value></value>
  </attribute>
  <attribute>
      <name>tcpMediaProfile</name>
      <value></value>
  </attribute>
  <attribute>
      <name>sipIsupProfile</name>
      <value></value>
  </attribute>
  <attribute>
      <name>cacFailThreshold</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>usersite</name>
      <value></value>
  </attribute>
  <attribute>
      <name>sessionRecordingRequired</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>restrictedLatching</name>
      <value>none</value>
  </attribute>
  <attribute>
      <name>classProfile</name>
      <value></value>
  </attribute>
  <attribute>
      <name>userCacSessions</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>dynReferTerm</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>qosEnable</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>maxLatency</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>description</name>
      <value></value>
  </attribute>
  <attribute>
      <name>restrictionMask</name>
      <value>32</value>
  </attribute>
  <attribute>
      <name>stunServerPort</name>
      <value>3478</value>
  </attribute>
  <attribute>
      <name>stiSignalingAttest</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>manipPattern</name>
      <value></value>
  </attribute>
  <attribute>
      <name>stunServerIp</name>
      <value>0.0.0.0</value>
  </attribute>
  <attribute>
      <name>sdpInactiveOnly</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>maxJitter</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>paiStrip</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>sessionMaxLifeLimit</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>acctEnable</name>
      <value>enabled</value>
  </attribute>
  <attribute>
      <name>nsepMediaPolicy</name>
      <value></value>
  </attribute>
  <attribute>
      <name>altFamilyRealm</name>
      <value></value>
  </attribute>
  <attribute>
      <name>teamsFqdn</name>
      <value></value>
  </attribute>
  <attribute>
      <name>lastModifiedDate</name>
      <value></value>
  </attribute>
  <attribute>
      <name>addrPrefix</name>
      <value></value>
  </attribute>
  <attribute>
      <name>lastModifiedBy</name>
      <value></value>
  </attribute>
  <attribute>
      <name>icmpTargetIp</name>
      <value></value>
  </attribute>
  <attribute>
      <name>nonMmBwCAC</name>
      <value>disabled</value>
  </attribute>
  <attribute>
      <name>natInvalidMsgThreshold</name>
      <value>0</value>
  </attribute>
  <attribute>
      <name>mmSameIp</name>
      <value>enabled</value>
  </attribute>
  <attribute>
      <name>stunChangedIp</name>
      <value>0.0.0.0</value>
  </attribute>
  <attribute>
      <name>stiOrigId</name>
      <value></value>
  </attribute>
  </attributes>
 <elementTypePath>realmConfig</elementTypePath>
</configElement>

Example of the Response Body

The following example shows the contents of the response body in JSON format.

Note:

Response payload example observed in SDM 8.2.5 and onwards.
{
  "attributes": [
  {
      "name": "tcpInitialGuardTimer",
      "value": "-1"
  },{
      "name": "parent",
      "value": ""
  },{
      "name": "codecPolicyInNetwork",
      "value": "enabled"
  },{
      "name": "dtlsSrtpProfile",
      "value": ""
  },{
      "name": "trunkContext",
      "value": ""
  },{
      "name": "qosConstraintName",
      "value": ""
  },{
      "name": "stunEnable",
      "value": "disabled"
  },{
      "name": "deviceId",
      "value": ""
  },{
      "name": "symmetricLatching",
      "value": "disabled"
  },{
      "name": "maxPacketLoss",
      "value": "0"
  },{
      "name": "windowSize",
      "value": "0"
  },{
      "name": "smIcsiMatchForInvite",
      "value": ""
  },{
      "name": "hmrString",
      "value": ""
  },{
      "name": "rtcpPolicy",
      "value": ""
  },{
      "name": "subsqGuardTimer",
      "value": "-1"
  },{
      "name": "fallbackBandwidth",
      "value": "0"
  },{
      "name": "options",
      "value": ""
  },{
      "name": "delayedMediaUpdate",
      "value": "disabled"
  },{
      "name": "id",
      "value": ""
  },{
      "name": "monthlyMinutes",
      "value": "0"
  },{
      "name": "natTrustThreshold",
      "value": "0"
  },{
      "name": "icmpDetectMultip",
      "value": "0"
  },{
      "name": "dnsRealm",
      "value": ""
  },{
      "name": "stiAttest",
      "value": ""
  },{
      "name": "sipProfile",
      "value": ""
  },{
      "name": "smIcsiMatchForMessage",
      "value": ""
  },{
      "name": "inManipulationId",
      "value": ""
  },{
      "name": "rtcpMux",
      "value": "disabled"
  },{
      "name": "userCacBandwidth",
      "value": "0"
  },{
      "name": "splOptions",
      "value": ""
  },{
      "name": "intranslationId",
      "value": ""
  },{
      "name": "preferredNetworkAddrType",
      "value": "none"
  },{
      "name": "tcpSubsqGuardTimer",
      "value": "-1"
  },{
      "name": "defaultLocationString",
      "value": ""
  },{
      "name": "mediaPolicy",
      "value": ""
  },{
      "name": "outManipulationId",
      "value": ""
  },{
      "name": "mergeEarlyDialogs",
      "value": "disabled"
  },{
      "name": "earlyMediaAllow",
      "value": ""
  },{
      "name": "maxBandwidth",
      "value": "0"
  },{
      "name": "denyTimer",
      "value": "30"
  },{
      "name": "srvccTrfo",
      "value": ""
  },{
      "name": "untrustedCacFailThreshold",
      "value": "0"
  },{
      "name": "errMsgThreshold",
      "value": "0"
  },{
      "name": "subscriptionInfo",
      "value": "END_USER_NONE"
  },{
      "name": "mrInNetwork",
      "value": "enabled"
  },{
      "name": "mediaSecPolicy",
      "value": ""
  },{
      "name": "initialGuardTimer",
      "value": "-1"
  },{
      "name": "featureTrfo",
      "value": ""
  },{
      "name": "codecPolicy",
      "value": ""
  },{
      "name": "holdReferReinvite",
      "value": "disabled"
  },{
      "name": "tcpFlowTimeLimit",
      "value": "-1"
  },{
      "name": "rateLimit",
      "value": "0"
  },{
      "name": "flowTimeLimit",
      "value": "-1"
  },{
      "name": "dataVersion",
      "value": ""
  },{
      "name": "srtpMsmPassthrough",
      "value": "disabled"
  },{
      "name": "noRtcp",
      "value": "disabled"
  },{
      "name": "trustLevel",
      "value": "none"
  },{
      "name": "constraintName",
      "value": ""
  },{
      "name": "diamE2AddrRealm",
      "value": ""
  },{
      "name": "stunChangedPort",
      "value": "3479"
  },{
      "name": "stiVstarget",
      "value": ""
  },{
      "name": "icmpAdvInterval",
      "value": "0"
  },{
      "name": "bwManager",
      "value": ""
  },{
      "name": "mmInSystem",
      "value": "enabled"
  },{
      "name": "nodeFunctionality",
      "value": ""
  },{
      "name": "referNotifyProvisional",
      "value": "none"
  },{
      "name": "mrInRealm",
      "value": "disabled"
  },{
      "name": "waitTimeForInvalidRegister",
      "value": "0"
  },{
      "name": "outtranslationId",
      "value": ""
  },{
      "name": "maxMsgThreshold",
      "value": "0"
  },{
      "name": "hideEgressMediaUpdate",
      "value": "disabled"
  },{
      "name": "maxPriorityBandwidth",
      "value": "0"
  },{
      "name": "teamsFqdnInUri",
      "value": "disabled"
  },{
      "name": "codecPolicyInRealm",
      "value": "disabled"
  },{
      "name": "sessionRecordingServerTarget",
      "value": ""
  },{
      "name": "maxEndPointsPerNat",
      "value": "0"
  },{
      "name": "userCacMode",
      "value": "none"
  },{
      "name": "isMSMRelease",
      "value": "disabled"
  },{
      "name": "callRecordingServerId",
      "value": ""
  },{
      "name": "referCallTransfer",
      "value": "disabled"
  },{
      "name": "stiAstarget",
      "value": ""
  },{
      "name": "maxMsgThresholdUntrusted",
      "value": "0"
  },{
      "name": "netMgmtCtrl",
      "value": "disabled"
  },{
      "name": "enforcementProfile",
      "value": ""
  },{
      "name": "iceProfile",
      "value": ""
  },{
      "name": "tcpMediaProfile",
      "value": ""
  },{
      "name": "sipIsupProfile",
      "value": ""
  },{
      "name": "cacFailThreshold",
      "value": "0"
  },{
      "name": "usersite",
      "value": ""
  },{
      "name": "sessionRecordingRequired",
      "value": "disabled"
  },{
      "name": "restrictedLatching",
      "value": "none"
  },{
      "name": "classProfile",
      "value": ""
  },{
      "name": "userCacSessions",
      "value": "0"
  },{
      "name": "dynReferTerm",
      "value": "disabled"
  },{
      "name": "qosEnable",
      "value": "disabled"
  },{
      "name": "maxLatency",
      "value": "0"
  },{
      "name": "description",
      "value": ""
  },{
      "name": "restrictionMask",
      "value": "32"
  },{
      "name": "stunServerPort",
      "value": "3478"
  },{
      "name": "stiSignalingAttest",
      "value": "disabled"
  },{
      "name": "manipPattern",
      "value": ""
  },{
      "name": "stunServerIp",
      "value": "0.0.0.0"
  },{
      "name": "sdpInactiveOnly",
      "value": "disabled"
  },{
      "name": "maxJitter",
      "value": "0"
  },{
      "name": "paiStrip",
      "value": "disabled"
  },{
      "name": "sessionMaxLifeLimit",
      "value": "0"
  },{
      "name": "acctEnable",
      "value": "enabled"
  },{
      "name": "nsepMediaPolicy",
      "value": ""
  },{
      "name": "altFamilyRealm",
      "value": ""
  },{
      "name": "teamsFqdn",
      "value": ""
  },{
      "name": "lastModifiedDate",
      "value": ""
  },{
      "name": "addrPrefix",
      "value": ""
  },{
      "name": "lastModifiedBy",
      "value": ""
  },{
      "name": "icmpTargetIp",
      "value": ""
  },{
      "name": "nonMmBwCAC",
      "value": "disabled"
  },{
      "name": "natInvalidMsgThreshold",
      "value": "0"
  },{
      "name": "mmSameIp",
      "value": "enabled"
  },{
      "name": "stunChangedIp",
      "value": "0.0.0.0"
  },{
      "name": "stiOrigId",
      "value": ""
  }],
  "elementTypePath": "realmConfig"
}
Back to Top