Create LAG Service

Create a LAG service with the specified properties using 2 of the ports found previously

POST https://<NSP Server>:8543/sdn/api/v3/services/lags

Request:

{
  "data": {
    "tenantId": "a08576d9-1368-4d2e-a100-e91279ff57b1",
    "action": "TRAVERSE",
    "bidirectional": "SYMMETRIC_LOOSE",
    "objective": "HOPS",
    "name": "Sample LAG Service",
    "destinations": [
      "3533-a1b3bcfd-e100-46f9-8def-1fdefc7f897a"
    ],
    "sources": [
      "2951-c6a376bb-4f2b-4c3f-9baf-ca57bee75d4b"
    ]
  }
}

Response:

{
  "status": 0,
  "startRow": 0,
  "endRow": 1,
  "totalRows": 1,
  "data": {
    "id": "4058-70894f87-184c-4e39-aaf2-07d1b988c685",
    "appId": null,
    "operationalState": null,
    "adminState": "UP",
    "neDeploymentState": null,
    "externalIds": null,
    "name": "Sample LAG Service",
    "serviceType": "LAG",
    "connectionState": "DISCONNECTED",
    "tenants": [
      {
        "id": "0",
        "tenantName": "admin",
        "contactName": null,
        "phoneNumber": null,
        "address": null
      },
      {
        "id": "a08576d9-1368-4d2e-a100-e91279ff57b1",
        "tenantName": "nspTenant",
        "contactName": "NSP Tenant",
        "phoneNumber": "6135551234",
        "address": "123 Main Street"
      }
    ],
    "topology": null,
    "objective": "HOPS",
    "bidirectional": "SYMMETRIC_LOOSE",
    "bw": 0,
    "reverseBW": null,
    "maxLatency": 0,
    "maxCost": 0,
    "maxHops": 0,
    "lifeCycle": {
      "phase": "Planning",
      "state": "Planned",
      "reason": ""
    },
    "templateId": null,
    "tunnelSelectionId": null,
    "pathProfileId": null,
    "groupId": null,
    "endpoints": [
      {
        "id": "2951-c6a376bb-4f2b-4c3f-9baf-ca57bee75d4b",
        "appId": null,
        "operationalState": "DOWN",
        "adminState": "UP",
        "neDeploymentState": "DEPLOYED",
        "externalIds": [
          {
            "context": "SAM",
            "location": [
              "135.121.158.6"
            ],
            "id": "network:22.22.22.22:lag:interface-1"
          }
        ],
        "neId": "1622-0926d123-7489-4162-88bc-c4ada81c22d6",
        "neName": "B-22.22.22.22",
        "portId": null,
        "serviceId": null,
        "name": "Lag 1",
        "lagId": 1,
        "lagMembers": [],
        "@class": "com.alu.wsc.api.generated.v3.BaseServiceEndpoint"
      },
      {
        "id": "3533-a1b3bcfd-e100-46f9-8def-1fdefc7f897a",
        "appId": null,
        "operationalState": "DOWN",
        "adminState": "UP",
        "neDeploymentState": "DEPLOYED",
        "externalIds": [
          {
            "context": "SAM",
            "location": [
              "135.121.158.6"
            ],
            "id": "network:33.33.33.33:lag:interface-1"
          }
        ],
        "neId": "1625-d7d14794-b10d-4338-af88-ea876c02b2b5",
        "neName": "C-33.33.33.33",
        "portId": null,
        "serviceId": null,
        "name": "Lag 1",
        "lagId": 1,
        "lagMembers": [],
        "@class": "com.alu.wsc.api.generated.v3.BaseServiceEndpoint"
      }
    ],
    "monitorBandwidth": false,
    "@class": "com.alu.wsc.api.generated.v3.BaseService"
  }
}