{"type":"api","title":"Manage LCM interfaces","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/09f28b5d-571d-34d2-bb77-b72f590e7221","info":{"description":"API for managing function packs, including LCM configurations and managed interfaces.","version":"7.1.0","title":"LCM Configuration API","contact":{"name":"API Support","url":"https://www.cisco.com/support","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"}},"swagger":"2.0","host":"localhost:30603","basePath":"/crosswork/nbi/optimization/v3/restconf","securityDefinitions":{"api_key":{"description":"Authentication: Bearer $JWT","type":"apiKey","name":"api_key","in":"header"}}},"spec":{"operationId":"setLcmManagedInterfaces","tags":["cisco-crosswork-optimization-engine-function-pack-operations"],"summary":"Manage LCM interfaces","description":"Adds, replaces, or deletes LCM-managed interfaces for a specified domain.","parameters":[{"in":"body","name":"function.pack.operations.setlcmmanagedinterfaces.Input.body-param","required":false,"description":"Request body containing the interfaces to be managed.","schema":{"type":"object","properties":{"input":{"type":"object","properties":{"domain-id":{"type":"string"},"interfaces-to-merge":{"description":"Interfaces to be merged in managed interfaces","x-choice":"interfaces-management:interfaces-to-merge","type":"object","properties":{"managed-interfaces":{"type":"array","items":{"type":"object","properties":{"utilization-threshold":{"type":"integer","format":"int32","description":"The percent utilization at which the interface is considered congested"},"node":{"type":"string","description":"The hostname of the source node for the interface"},"interface":{"type":"string","description":"The name of the interface"}},"$$ref":"#/definitions/function.pack.common.lcmmanagedinterfaces.ManagedInterfaces"}}},"$$ref":"#/definitions/function.pack.common.LcmManagedInterfaces"},"interfaces-to-delete":{"description":"Interfaces to be deleted from managed interfaces","x-choice":"interfaces-management:interfaces-to-delete","type":"object","properties":{"managed-interfaces":{"type":"array","items":{"type":"object","properties":{"utilization-threshold":{"type":"integer","format":"int32","description":"The percent utilization at which the interface is considered congested"},"node":{"type":"string","description":"The hostname of the source node for the interface"},"interface":{"type":"string","description":"The name of the interface"}},"$$ref":"#/definitions/function.pack.common.lcmmanagedinterfaces.ManagedInterfaces"},"x-choice":"delete-interfaces:delete-interfaces-list"},"delete-all":{"type":"boolean","description":"Remove all interfaces from the managed interfaces","x-choice":"delete-interfaces:delete-all-managed-interfaces"}},"$$ref":"#/definitions/function.pack.common.LcmDeleteInterfaces"},"interfaces-to-replace":{"description":"Interfaces to be replaced in managed interfaces","x-choice":"interfaces-management:interfaces-to-replace","type":"object","properties":{"managed-interfaces":{"type":"array","items":{"type":"object","properties":{"utilization-threshold":{"type":"integer","format":"int32","description":"The percent utilization at which the interface is considered congested"},"node":{"type":"string","description":"The hostname of the source node for the interface"},"interface":{"type":"string","description":"The name of the interface"}},"$$ref":"#/definitions/function.pack.common.lcmmanagedinterfaces.ManagedInterfaces"}}},"$$ref":"#/definitions/function.pack.common.LcmManagedInterfaces"}},"$$ref":"#/definitions/function.pack.operations.setlcmmanagedinterfaces.Input"}}}}],"responses":{"200":{"description":"Correct response","schema":{"type":"object","properties":{"output":{"type":"object","properties":{"status":{"description":"Status of the request","type":"string","enum":["error","accepted","rejected"],"$$ref":"#/definitions/function.pack.common.StatusEnumeration"},"rejected-interfaces":{"type":"array","items":{"type":"object","properties":{"node":{"type":"string","description":"The hostname of the source node for the interface"},"error-message":{"type":"string","description":"Text description of the error"},"interface":{"type":"string","description":"The name of the interface"}},"$$ref":"#/definitions/function.pack.common.lcminterfaceerrors.RejectedInterfaces"}}},"$$ref":"#/definitions/function.pack.operations.setlcmmanagedinterfaces.Output"}}}},"204":{"description":"No response"},"400":{"description":"Internal error"}},"__originalOperationId":"setLcmManagedInterfaces","consumes":["application/yang-data+json"],"produces":["application/yang-data+json"],"method":"post","path":"/operations/cisco-crosswork-optimization-engine-function-pack-operations:set-lcm-managed-interfaces"}}