/**
* Topology Northbound REST API
- *
+ *
* <br>
* <br>
* Authentication scheme : <b>HTTP Basic</b><br>
}
/**
- *
+ *
* Retrieve the Topology
- *
+ *
* @param containerName
* The container for which we want to retrieve the topology
- *
+ *
* @return A List of EdgeProps each EdgeProp represent an Edge of the grap
* with the corresponding properties attached to it.
*/
/**
* Retrieve the user configured links
- *
+ *
* @param containerName
* The container for which we want to retrieve the user links
- *
+ *
* @return A List of user configured links
*/
@Path("/{containerName}/userLink")
/**
* Add an User Link
- *
+ *
* @param containerName
* Name of the Container. The base Container is "default".
* @param TopologyUserLinkConfig
Status status = topologyManager.addUserLink(userLinkConfig.getValue());
if (status.isSuccess()) {
+ NorthboundUtils.auditlog("User Link", username, "added", userLinkConfig.getValue().getName(), containerName);
return Response.status(Response.Status.CREATED).build();
}
throw new InternalServerErrorException(status.getDescription());
/**
* Delete an User Link
- *
+ *
* @param containerName
* Name of the Container. The base Container is "default".
* @param name
Status ret = topologyManager.deleteUserLink(name);
if (ret.isSuccess()) {
+ NorthboundUtils.auditlog("User Link", username, "removed", name, containerName);
return Response.ok().build();
}
throw new ResourceNotFoundException(ret.getDescription());