Manages optical network resources including creating, updating, deleting, and querying resource points. Invoke when user needs to manage network resources or perform CRUD operations on resource points.
name resource-manager description Manages optical network resources including creating, updating, deleting, and querying resource points. Invoke when user needs to manage network resources or perform CRUD operations on resource points. Resource Manager Overview This skill helps manage optical network resources through the existing MapService API. It provides functionality for creating, updating, deleting, and querying resource points in the optical network. Features Create Resource : Add new resource points to the network Update Resource : Modify existing resource information Delete Resource : Remove resource points from the network Query Resources : Search for resources based on location or other criteria Usage Examples Create a New Resource Scenario : User wants to add a new optical equipment location
POST /api/map/resources Content-Type: application/json
{ "name" : "Optical Node A" , "type" : "NODE" , "location" : { "latitude" : 39.9042, "longitude" : 116.4074 }, "properties" : { "capacity" : "10G" , "status" : "ACTIVE" } } Update an Existing Resource Scenario : User needs to update resource status
PUT /api/map/resources/{ id } Content-Type: application/json
{ "name" : "Optical Node A" , "type" : "NODE" , "location" : { "latitude" : 39.9042, "longitude" : 116.4074 }, "properties" : { "capacity" : "10G" , "status" : "MAINTENANCE" } } Delete a Resource Scenario : User wants to remove an obsolete resource
DELETE /api/map/resources/{ id } Query Resources Scenario : User needs to find resources in a specific area
POST /api/map/resources/query Content-Type: application/json
{ "bbox" : { "minLat" : 39.9, "minLng" : 116.4, "maxLat" : 39.95, "maxLng" : 116.45 }, "filters" : { "type" : "NODE" , "status" : "ACTIVE" } } API Endpoints POST /api/map/resources