API Specification v4.0 - sonata-nfv/tng-sla-mgmt GitHub Wiki

SLA Templates

Action HTTP Method Endpoint
Create a new SLA Template POST curl -X POST -H "Content-type:application/x-www-form-urlencoded" -d "nsd_uuid=<>&guaranteeId=<>&expireDate=<>&templateName=<>" http://localhost:8080/tng-sla-mgmt/api/slas/v1/templates
Get existing SLA Template GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/templates/
Get specific SLA Template based on uuid GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/templates/{sla_uuid}
Delete a SLA Template DELETE curl -X DELETE http://localhost:8080/tng-sla-mgmt/api/slas/v1/templates/{sla_uuid}

SLA Agreements

Action HTTP Method Endpoint
Get existing Agreements GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/agreements/
Get specific Agreement details based on uuid GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/agreements/{sla_uuid}/{ns_uuid}
Get Agreements per (instatiated) NS GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/agreements/service/{ns_uuid}
Get Agreement guarantee terms GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/agreements/guarantee-terms/{sla_uuid}

SLA Agreements

Action HTTP Method Endpoint
Get existing Agreements GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/agreements/
Get specific Agreement details based on uuid GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/agreements/{sla_uuid}
Get Agreements per (instatiated) NS GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/agreements/service/{ns_uuid}
Get Agreement guarantee terms GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/agreements/guarantee-terms/{sla_uuid}

SLA Violations

Action HTTP Method Endpoint
Get all violations GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/violations/
Get a specific violation GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/violations/{ns_uuid}/{sla_uuid}

SLA Management

Action HTTP Method Endpoint
Access a predefined list of Service Guarantees (SLOs) GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/mgmt/guaranteesList
Access a list with all the ns template correlations GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/mgmt/services/templates/
Access a list with NS that have associated templates GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/mgmt/services/templates/true
Access a list with NS that do not have associated templates yet GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/mgmt/services/templates/false
Access a list with NS that have associated agreements GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/mgmt/services/agreements/true
Access a list with NS that do not have associated agreements yet GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/mgmt/services/agreements/false
Check each micro-service’s availability/health GET curl -H "Content-type:application/json" http://localhost:8080/tng-sla-mgmt/api/slas/v1/ping

Expected returned data for all the mentioned endpoint is:

  • HTTP code 200 (Ok)
  • HTTP code 201 (Created)
  • HTTP code 400 (Bad Request)
  • HTTP code 404 (Not Found)