Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
titleQuery service instances by connectivity
collapsetrue
URL: https://<AAI host>:<AAI port>/aai/v14/network/connectivities/connectivity/{connectivityId}
Method: Get
Response  Body:
{
...
"access-ltp-id":"ltp id",
...
"relationship-list":{
    "relationship" : [
       {
           "related-to" : "service-instance",
           "related-link" : "url of service-instance",
           "relationship-data": [
              "relationship-key" : "service-instance.service-instance-id",
              "relationship-value": "some id"
            ]
       },
       {
           "related-to" : "",vpn-binding
           "related-link" : "url of vpn-binding",
           "relationship-data": [
              "relationship-key" : "vpn-binding.vpn-binding-id",
              "relationship-value": "some id"
            ]
       }
      ]
   }
}
Code Block
languagetext
titleCreate termination point
collapsetrue
For updating TP status.


URL: https://<AAI host>:<AAI port>/aai/v14/network/pnfs/pnf/{pnfName}/p-interfaces/p-interface/{tp-id}
Method: PUT
Request Body:
{
    "interface-name":"{tp-id}",
    "network-ref" : "some network",
    "transparent" : "some value",
    "speed-value" : "eth bandwidth",
    "operational-status" : "some status",
    "relationship-list" : { 
      "relationship" : [
          {
                "related-to" : "vpn-binding",
                "related-link" : "url of vpn-binding",
                "relationship-data" : [
                    "relationship-key" : "vpn-binding.vpn-id",
                    "relationship-value" : "some-id"
                    ]
          }
        ]
      }
}


For query by TP & Status:


URL: https://<AAI host>:<AAI port>/aai/v14/network/pnfs/pnf/{pnfName}/p-interfaces/p-interface/{tp-id}
Method: GET


Request Body :
{
}


Response body:
{
    "interface-name":"{tp-id}",
    "network-ref" : "some network",
    "transparent" : "some value",
    "speed-value" : "eth bandwidth",
    "operational-status" : "some status",
    "relationship-list" : { 
      "relationship" : [
          {
                "related-to" : "vpn-binding",
                "related-link" : "url of vpn-binding",
                "relationship-data" : [
                    "relationship-key" : "vpn-binding.vpn-id",
                    "relationship-value" : "some-id"
                    ]
          }
        ]
      }
}
Code Block
languagetext
firstlineQuery service instances for CCVPN
titleQuery
collapsetrue
URL: https://<AAI host>:<AAI port>/aai/v14/business/customers/customer/{global-custoner-id}/service-subscriptions/service-subscription/{service-type}/service-instances?service-instance-id={serviceId}
Method: GET
Request Body:
{
}
Response Body:
{


}
Code Block
languagetext
titleQuery for Logical-links
collapsetrue


URL: https://<AAI host>:<AAI port>/aai/v14/network/logical-links?link-name={linkName}&operational-status={status}
Method: GET
{
}


Response Body:
{
"results": [
    "logic-links" : {
      "link-name" : "{linkName}",
      "operational-status": "{status}",
      "model-invariant-id": "some invariant",
      "model-version-id"  : "some version",
      "link-id":"some id",
      "relationship-list"  : [
            {
            "relationship" : [
                {
                     "related-to": "p-interface",
                     "related-link": "url of p-interface 1",
                     "relationship-data":[
                          "relationship-key" : "p-interface.interface-name",
                          "relationship-value" : "some name 1"
                      ]
                }
            ]
       }
   ]
}

Code Block
languagetext
titleQuery for p-interfaces
collapsetrue
URL: https://<AAI host>:<AAI port>/aai/v14/network/pnfs/pnf/{pnfName}/p-interfaces?interface-name={ifName}&operational-status={status}
Method: GET
Resquest Body:
{
}


Response Body:
{    
	"results" : [
		{
        "p-interface" : {
             "interface-name":{ifName}",                  
			 "network-ref": "some ref",
             "transparent": "some blue",
             "operational-status":"some speed",
             "speed-value" : "some speed",
             "relationship-list":
                "relationship" : [
                    {
                      "related-to" : "logic-link",
                      "related-link" :'url of logical-link",
                      "relationship-data":[
                          "relationship-key" : "logical-link.link.name",
                          "relationship-value"; "some name"
                      ]
                    },
                    {
                      "related-to" : "pnf",
                      "related-link" :'url of pnf",
                      "relationship-data":[
                          "relationship-key" : "pnf.pnf.name",
                          "relationship-value"; "some name"
                      ]
                    }
              ]
           } 
    ]
}