{"type":"api","title":"Update DLM to NSO sync policy","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/49adc1db-9339-395c-acc6-4b4e3bae3fce","info":{"title":"Crosswork Proxy API actions to NSO API","description":"Crosswork has several Cisco Network Services Orchestrator (NSO) APIs proxied from its API. This is a list of those actions.","version":"1.0.0","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"https://www.cisco.com/public/sw-license-agreement.html"}},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/INFRA/DLM/nso_sp_api.md"}},"swagger":"2.0","basePath":"/crosswork/inventory/v1","schemes":["http","https"],"securityDefinitions":{"bearerAuth":{"type":"apiKey","description":"bearer auth","name":"Authorization","in":"header"}}},"spec":{"summary":"Update DLM to NSO sync policy","description":"Update the DLM to NSO Sync Policy","operationId":"Nso_UpdateNSOPolicy","responses":{"200":{"description":"A successful response.","schema":{"type":"object","properties":{"job_id":{"type":"string","title":"Job id"},"inst_id":{"type":"string","title":"Server instance identifier"},"state":{"title":"Current State of the Job","type":"string","enum":["JOB_INVALID","JOB_REJECTED","JOB_ACCEPTED","JOB_DB_UPDATED","JOB_NOTIFICATION_PUBLISHED","JOB_COMPLETED","JOB_FAILED","JOB_RUNNING","JOB_PARTIAL","JOB_COMPLETED_WITH_WARNING"],"default":"JOB_INVALID","$$ref":"#/definitions/robotapiRobotJobState"},"type":{"type":"string","title":"Job type. Debug purpose"},"error":{"type":"string","title":"If any error"},"completion_time":{"type":"string","format":"int64","title":"Remaining time to complete"},"creation_time":{"type":"string","format":"int64","title":"Job creation time in epoch seconds"},"created_by":{"type":"string","title":"User"},"impacted_count":{"type":"integer","format":"int64","title":"Impacted nodes/tags, provider or profiles"},"impacted":{"type":"array","items":{"type":"string"},"title":"Impacted elements list"},"errors":{"type":"array","items":{"type":"string"}}},"title":"Every Action related to Inventory will have a Job","example":{"job_id":"6315b69e-0646-4714-a855-7a4e01227bc2","state":"JOB_COMPLETED","type":"1 credential(s)/ tag(s)/ provider(s)/ device(s) added successfully","completion_time":"1733908308","creation_time":"1733908308","created_by":"admin","impacted":["test"]},"$$ref":"#/definitions/robotapiRobotNodeJob"}},"default":{"description":"An unexpected error response.","schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"type_url":{"type":"string"},"value":{"type":"string","format":"byte"}},"$$ref":"#/definitions/protobufAny"}}},"example":{"error":"string","code":0,"message":"string","details":[{"type_url":"string","value":"string"}]},"$$ref":"#/definitions/runtimeError"}}},"parameters":[{"name":"body","in":"body","description":"Request to perform a Sync Policy from DLM to NSO device","required":true,"schema":{"type":"object","properties":{"name":{"type":"string"},"providers_criteria":{"type":"string"},"provider_policy":{"type":"object","additionalProperties":{"type":"object","properties":{"match":{"type":"boolean"},"matchRule":{"type":"string"},"onboardTo":{"type":"boolean"},"onboardToRule":{"type":"string"},"onboardFrom":{"type":"boolean"},"onboardFromRule":{"type":"string"},"syncFrom":{"type":"boolean"},"syncFromRule":{"type":"string"},"checkSync":{"type":"boolean"},"checkSyncRule":{"type":"string"},"neds":{"type":"array","items":{"type":"object","properties":{"ned":{"type":"string"},"rule":{"type":"string"}},"$$ref":"#/definitions/nso_sp_apiNedRule"}}},"$$ref":"#/definitions/nso_sp_apiNsoProviderPolicy"}},"lsa":{"type":"boolean"},"policy":{"type":"object","properties":{"auto_onboard_rfs":{"type":"boolean"},"rfs_spread_method":{"type":"string","enum":["ARBITRARY_USER_CONTROL","ROUND_ROBIN","RFS_CAPACITY"],"default":"ARBITRARY_USER_CONTROL","$$ref":"#/definitions/nso_sp_apiRFSOnboardingMethod"},"rfs_spread_value":{"type":"integer","format":"int64"}},"$$ref":"#/definitions/nso_sp_apiLsaPolicy"}},"example":{"name":"string","providers_criteria":"string","provider_policy":{"additionalProp1":{"match":true,"matchRule":"string","onboardTo":true,"onboardToRule":"string","onboardFrom":true,"onboardFromRule":"string","syncFrom":true,"syncFromRule":"string","checkSync":true,"checkSyncRule":"string","neds":[{"ned":"string","rule":"string"}]},"additionalProp2":{"match":true,"matchRule":"string","onboardTo":true,"onboardToRule":"string","onboardFrom":true,"onboardFromRule":"string","syncFrom":true,"syncFromRule":"string","checkSync":true,"checkSyncRule":"string","neds":[{"ned":"string","rule":"string"}]},"additionalProp3":{"match":true,"matchRule":"string","onboardTo":true,"onboardToRule":"string","onboardFrom":true,"onboardFromRule":"string","syncFrom":true,"syncFromRule":"string","checkSync":true,"checkSyncRule":"string","neds":[{"ned":"string","rule":"string"}]}},"lsa":true,"policy":{"auto_onboard_rfs":true,"rfs_spread_method":"ARBITRARY_USER_CONTROL","rfs_spread_value":0}},"$$ref":"#/definitions/nso_sp_apiNsoPolicy"}}],"tags":["Nso"],"__originalOperationId":"Nso_UpdateNSOPolicy","consumes":["application/json"],"produces":["application/json"],"security":[{"bearerAuth":[]}],"method":"put","path":"/nso/policy"}}