Add Endpoint

Add an endpoint to an existing L3VPN service. The UUID returned by this request can be used in subsequent operations on this endpoint.

POST https://<NSP Server>:8543/sdn/api/v3/services/l3-vpns/3688-0d3f02f7-f617-4a57-8fda-20876a674160/endpoint

Request:

{
  "data": {
    "id": "3285-863f1c77-9634-4dfc-aefd-5f46d2d6bafb",
    "appId": "203",
    "adminState": "UP",
    "innerTag": "-1",
    "name": "Added Endpoint",
    "outerTag": "71",
    "isHub": "false",
    "primaryAddress": {
      "ipv4Prefix": {
        "string": "10.2.1.1/24"
      }
    }
  }
}

Response:

{
  "status": 0,
  "startRow": 0,
  "endRow": 1,
  "totalRows": 1,
  "data": {
    "id": "3688-0d3f02f7-f617-4a57-8fda-20876a674160",
    "appId": "101",
    "operationalState": "UP",
    "adminState": "UP",
    "neDeploymentState": "DEPLOYED",
    "externalIds": [
      {
        "context": "SAM",
        "location": [
          "135.121.158.6"
        ],
        "id": "svc-mgr:service-3"
      }
    ],
    "name": "L3 VPN Service",
    "serviceType": "L3_VPN",
    "connectionState": "DISCONNECTED",
    "tenants": [
      {
        "id": "0",
        "tenantName": "admin",
        "contactName": null,
        "phoneNumber": null,
        "address": null
      }
    ],
    "topology": "FULL_MESH_TOPOLOGY",
    "objective": "HOPS",
    "bidirectional": "ANY_REVERSE_ROUTE",
    "bw": null,
    "reverseBW": null,
    "maxLatency": 0,
    "maxCost": 0,
    "maxHops": 0,
    "lifeCycle": {
      "phase": "Planning",
      "state": "Planned",
      "reason": "Service modify requested"
    },
    "templateId": null,
    "tunnelSelectionId": null,
    "pathProfileId": null,
    "groupId": null,
    "endpoints": [
      {
        "id": "3699-bc60c9fb-a04d-489c-8f2a-42d037bc8d4a",
        "appId": "201",
        "operationalState": "DOWN",
        "adminState": "DOWN",
        "neDeploymentState": "DEPLOYED",
        "externalIds": [
          {
            "context": "SAM",
            "location": [
              "135.121.158.6"
            ],
            "id": "svc-mgr:service-3:22.22.22.22:ip-interface-2"
          }
        ],
        "neId": "1622-0926d123-7489-4162-88bc-c4ada81c22d6",
        "neName": "B-22.22.22.22",
        "portId": "2581-7207a0a5-5757-468c-aada-93ece3b6026a",
        "serviceId": "3688-0d3f02f7-f617-4a57-8fda-20876a674160",
        "name": "Port1_Name",
        "innerTag": -1,
        "outerTag": 71,
        "siteServiceQosProfile": {
          "qosProfile": 0,
          "ingressOverrideQueues": null,
          "egressOverrideQueues": null,
          "ingressParam": null,
          "egressParam": null
        },
        "isHub": false,
        "ipAddress": {
          "ipv4Prefix": {
            "string": "10.1.1.1/24"
          },
          "ipv6Prefix": null
        },
        "secondaryAddresses": [
          {
            "ipv4Prefix": {
              "string": "3.2.1.1/24"
            },
            "ipv6Prefix": null
          }
        ],
        "routeTargets": [
          {
            "rt": "target:300:2293259924",
            "targetType": "import_export"
          },
          {
            "rt": "N/A",
            "targetType": "exp"
          },
          {
            "rt": "N/A",
            "targetType": "imp"
          }
        ],
        "rd": "300:2283641155",
        "peSideAS": 6000,
        "routingStatic": {
          "routes": [
            {
              "routeType": "next_hop",
              "destination": {
                "ipv4Prefix": {
                  "string": "10.1.1.0/24"
                },
                "ipv6Prefix": null
              },
              "targetIpAddress": {
                "ipv6Address": null,
                "ipv4Address": {
                  "string": "10.1.1.11"
                }
              },
              "preference": 5
            }
          ]
        },
        "routingBgp": {
          "routes": [
            {
              "peerIpAddress": {
                "ipv6Address": null,
                "ipv4Address": {
                  "string": "10.1.1.15"
                }
              },
              "peerAS": 6000
            }
          ]
        },
        "@class": "com.alu.wsc.api.generated.v3.L3ServiceEndpoint"
      },
      {
        "id": "3704-fbaf49ba-3b77-4543-9956-2b54e997e022",
        "appId": "221",
        "operationalState": "UP",
        "adminState": "UP",
        "neDeploymentState": "DEPLOYED",
        "externalIds": [
          {
            "context": "SAM",
            "location": [
              "135.121.158.6"
            ],
            "id": "svc-mgr:service-3:11.11.11.11:ip-interface-2"
          }
        ],
        "neId": "1393-a86aaf47-e3bd-4236-88b2-07bae09a7702",
        "neName": "A-11.11.11.11",
        "portId": "1746-bbaad24f-cd39-4b3a-97aa-83a180dc058a",
        "serviceId": "3688-0d3f02f7-f617-4a57-8fda-20876a674160",
        "name": "Port1_Name",
        "innerTag": -1,
        "outerTag": 72,
        "siteServiceQosProfile": {
          "qosProfile": 0,
          "ingressOverrideQueues": null,
          "egressOverrideQueues": null,
          "ingressParam": null,
          "egressParam": null
        },
        "isHub": false,
        "ipAddress": {
          "ipv4Prefix": {
            "string": "200.1.1.10/24"
          },
          "ipv6Prefix": null
        },
        "secondaryAddresses": [
          {
            "ipv4Prefix": {
              "string": "21.1.1.1/24"
            },
            "ipv6Prefix": null
          }
        ],
        "routeTargets": [
          {
            "rt": "target:300:2293259924",
            "targetType": "import_export"
          },
          {
            "rt": "N/A",
            "targetType": "exp"
          },
          {
            "rt": "N/A",
            "targetType": "imp"
          }
        ],
        "rd": "300:2283641155",
        "peSideAS": 300,
        "routingStatic": {
          "routes": [
            {
              "routeType": "next_hop",
              "destination": {
                "ipv4Prefix": {
                  "string": "201.1.1.0/24"
                },
                "ipv6Prefix": null
              },
              "targetIpAddress": {
                "ipv6Address": null,
                "ipv4Address": {
                  "string": "200.1.1.11"
                }
              },
              "preference": 5
            }
          ]
        },
        "routingBgp": {
          "routes": [
            {
              "peerIpAddress": {
                "ipv6Address": null,
                "ipv4Address": {
                  "string": "200.1.1.15"
                }
              },
              "peerAS": 7000
            }
          ]
        },
        "@class": "com.alu.wsc.api.generated.v3.L3ServiceEndpoint"
      },
      {
        "id": "3709-5056afa0-139b-47f0-880a-0efa82b36479",
        "appId": "202",
        "operationalState": "UP",
        "adminState": "UP",
        "neDeploymentState": "DEPLOYED",
        "externalIds": [
          {
            "context": "SAM",
            "location": [
              "135.121.158.6"
            ],
            "id": "svc-mgr:service-3:33.33.33.33:ip-interface-2"
          }
        ],
        "neId": "1625-d7d14794-b10d-4338-af88-ea876c02b2b5",
        "neName": "C-33.33.33.33",
        "portId": "3280-1c71d594-0639-476e-ac26-f6ce29900acf",
        "serviceId": "3688-0d3f02f7-f617-4a57-8fda-20876a674160",
        "name": "Port1_Name",
        "innerTag": -1,
        "outerTag": 71,
        "siteServiceQosProfile": {
          "qosProfile": 0,
          "ingressOverrideQueues": null,
          "egressOverrideQueues": null,
          "ingressParam": null,
          "egressParam": null
        },
        "isHub": false,
        "ipAddress": {
          "ipv4Prefix": {
            "string": "15.1.1.11/24"
          },
          "ipv6Prefix": null
        },
        "secondaryAddresses": [
          {
            "ipv4Prefix": {
              "string": "30.1.1.12/24"
            },
            "ipv6Prefix": null
          }
        ],
        "routeTargets": [
          {
            "rt": "target:300:2293259924",
            "targetType": "import_export"
          },
          {
            "rt": "N/A",
            "targetType": "exp"
          },
          {
            "rt": "N/A",
            "targetType": "imp"
          }
        ],
        "rd": "300:2283641155",
        "peSideAS": 0,
        "routingStatic": {
          "routes": [
            {
              "routeType": "next_hop",
              "destination": {
                "ipv4Prefix": {
                  "string": "15.1.1.0/24"
                },
                "ipv6Prefix": null
              },
              "targetIpAddress": {
                "ipv6Address": null,
                "ipv4Address": {
                  "string": "15.1.1.1"
                }
              },
              "preference": 5
            }
          ]
        },
        "routingBgp": {
          "routes": [
            {
              "peerIpAddress": {
                "ipv6Address": null,
                "ipv4Address": {
                  "string": "15.1.1.15"
                }
              },
              "peerAS": 6000
            }
          ]
        },
        "@class": "com.alu.wsc.api.generated.v3.L3ServiceEndpoint"
      }
    ],
    "mtu": 1500,
    "vcType": null,
    "autoBindType": "rsvp_te",
    "encryption": false,
    "loopbackEndpoints": null,
    "@class": "com.alu.wsc.api.generated.v3.L3Service"
  }
}