GET

  • task: GET all instances of relation/LineRelation

  • user: site administrator

  • hierarchy: 55b9dc81a6165413b9d16ab6

  • Field Display Policy: LineMenuFDPSite

  • Configuration Template: line-cft

curl -v
     -H 'Authorization: Basic YWRtaW5AbG9jdXMxLmNvbTpwYXNzd29yZA=='
     'http://localhost/api/relation/LineRelation/
      ?hierarchy=55b9dc81a6165413b9d16ab6
      &policy_name=LineMenuFDPSite
      &template_name=line-cft
      &nowait=true
      &format=json'
+ About to connect() to localhost port 80 (#0)
+ Trying 127.0.0.1... connected
> GET /api/relation/LineRelation/
      ?hierarchy=55b9dc81a6165413b9d16ab6
      &policy_name=LineMenuFDPSite
      &template_name=line-cft
      &nowait=true
      &format=json HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu)
              libcurl/7.22.0
              OpenSSL/1.0.1
              zlib/1.2.3.4
              libidn/1.23
              librtmp/2.3
> Host: localhost
> Accept: */*
> Authorization: Basic YWRtaW5AbG9jdXMxLmNvbTpwYXNzd29yZA==
>
< HTTP/1.1 202 ACCEPTED
< Server: nginx/1.1.19
< Date: Fri, 31 Jul 2015 08:51:11 GMT
< Content-Type: application/json
< Transfer-Encoding: chunked
< Connection: keep-alive
< Vary: Accept, Cookie, Accept-Language, X-CSRFToken
< Content-Language: en-us
< Allow: GET, POST, DELETE, HEAD, OPTIONS
< X-CSRFToken: GdcfnSz25RsL16Qe9lN6ESHBAw8ElDvM
< Set-Cookie: csrftoken=GdcfnSz25RsL16Qe9lN6ESHBAw8ElDvM; httponly; Path=/
< Set-Cookie: sessionid=7kj9nhbh2ra5r1awn40md0059ebm956k; httponly; Path=/
<

Snippet of one of the returned instances:

...


   },
        "pattern": "90124",
        "patternPrecedence": "Default",
        "callForwardNoAnswer": {
          "destination": null,
          "forwardToVoiceMail": false,
          "callingSearchSpaceName": null
        },
        "hrInterval": null,
        "callForwardNoCoverage": {
          "destination": null,
          "forwardToVoiceMail": false,
          "callingSearchSpaceName": null
        },
        "callForwardNotRegistered": {
          "destination": null,
          "forwardToVoiceMail": false,
          "callingSearchSpaceName": null
        },
        "usage": "Device",
        "summary_device": "10.120.2.216, 8443, prov1.cust1",
        "hrDuration": null,
        "parkMonForwardNoRetrieveVmEnabled": false,
        "alertingName": "Helpdesk",
        "description": "DN created without device from QAS.",
        "directoryURIs": null,
        "aarVoiceMailEnabled": false,
        "hierarchy_path": "sys.prov1.cust1.locus1",
        "parkMonForwardNoRetrieveIntCssName": null,
        "parkMonForwardNoRetrieveDn": null,
        "allowCtiControlFlag": true,
        "defaultActivatedDeviceName": null,
        "parkMonReversionTimer": null,
        "releaseClause": "No Error",
        "e164AltNum": {
          "numMask": null,
          "addLocalRoutePartition": false,
          "advertiseGloballyIls": false,
          "routePartition": null,
          "isUrgent": false
        },
        "callForwardAll": {

...