{"type":"api","title":"Create Im Policy","meta":{"id":"/apps/pubhub/media/nexus-dashboard-api-v1/86cc2501c92a7370499e3d537496e5c722396afb/ca19d971-84d3-3c2a-862a-c2fba289d1d4","info":{"contact":{"name":"API Support","url":"https://devnetapps.cisco.com/docs/nexus-dashboard/api-v1/developer-support/"},"title":"Nexus Dashboard Fabric Controller API - LAN","description":"Nexus Dashboard Fabric Controller API - LAN","version":"12.5.0"},"tags":[{"name":"End Point Information","description":"Endpoint Locator (EPL) APIs"},{"name":"Fabric Backup and Restore"},{"name":"Change Control"},{"name":"Dashboard"},{"name":"Config Deployer"},{"name":"Fabrics"},{"name":"Inventory"},{"name":"Credentials"},{"name":"Links"},{"name":"OAMs"},{"name":"Switches"},{"name":"Global Interface"},{"name":"Interface Service"},{"name":"Policies"},{"name":"Resource Manager Operations"},{"name":"Top Down LAN Network Operations"},{"name":"Top Down LAN VRF Operations"},{"name":"Service Network Operations"},{"name":"Top Down LAN Network Operations v2"},{"name":"Top Down LAN VRF Operations v2"},{"name":"vPC Pairs"},{"name":"Fabric Inventory"},{"name":"ToR Operations"},{"name":"Templates"},{"name":"Flow Policy Management","description":"IPFM Flow Policy Management"},{"name":"Discovered Hosts","description":"IPFM Discovered Hosts"},{"name":"Host Policy Management","description":"IPFM Host Policy Management"},{"name":"Multicast NAT Modes","description":"Multicast NAT Modes"},{"name":"IPFM Events","description":"IPFM Events"},{"name":"Multicast NAT Recirc Mappings","description":"Multicast NAT Recirc Mappings"},{"name":"Host Alias Management","description":"IPFM Host Aliases listing/create/update/delete"},{"name":"Flow Group Management","description":"IPFM Flow Group"},{"name":"Flow Status","description":"IPFM Flow Status/Chart listings"},{"name":"Topology Management","description":"IPFM Topology listing"},{"name":"Global Settings","description":"IPFM Global Settings"},{"name":"Static Receiver Management","description":"IPFM static receiver listing/create/delete"},{"name":"Host Group Management","description":"IPFM Host Group"},{"name":"RTP Service","description":"RTP Service"},{"name":"Flow Alias Management","description":"IPFM Flow Alias Management"},{"name":"Multicast NAT Rules","description":"Multicast NAT Rules"},{"name":"Telemetry Sync Status","description":"IPFM Telemetry Sync Status"},{"name":"Service Cluster","description":"The first step of L4-L7 services flow, i.e. service node attributes and its physical attachment to VXLAN EVPN fabric"},{"name":"Service Addon","description":"Addon service for L4-L7 services, including route, probe, ACL"},{"name":"Service Chain","description":"The third (optional) step of L4-L7 services flow, i.e. define service chain that consists of multiple service functions in specified order"},{"name":"Audit Log","description":"The audit logs of L4-L7 services"},{"name":"Service Function","description":"The second step of L4-L7 services flow, i.e. service cluster's logical attachments to VXLAN EVPN fabric"},{"name":"Service Insertion","description":"The fourth step of L4-L7 services flow, i.e. service chain for traffic redirect"}],"x-parser-conf":{"overview":{"markdownPath":"reference/overview-legacy-lan.md"},"labelConfig":{"endpoint":{"field":"operationId","format":"startCase"}}},"openapi":"3.0.1","servers":[{"url":"/appcenter/cisco/ndfc/api/v1/","description":"Test server"}]},"spec":{"tags":["Policy Management"],"summary":"Create Image Management Policy","description":"Create new Image Management Platform Policy.\n","operationId":"createImPolicy","requestBody":{"content":{"application/json":{"schema":{"required":["nxosVersion","platform","policyName","policyType"],"type":"object","properties":{"policyName":{"type":"string","description":"Name of the Policy. Ex: MyPolicy","example":"MyPolicy"},"policyType":{"type":"string","description":"Type of the Policy Source. Ex: PLATFORM","example":"PLATFORM","enum":["PLATFORM","UMBRELLA","FABRIC"]},"nxosVersion":{"type":"string","description":"64-bit System images, NXOS Version generated with combination of Image name, Release version and Image type of the Image. Ex: nxos64-cs.10.3.1.F.bin, NXOS Version: 10.3.1_nxos64-cs_64bit. \nOther System images, NXOS Version generated with combination of Image name and Release version of the Image. Ex: nxos-cs.10.3.1.F.bin, NXOS Version: 10.3.1_nxos-cs. \nFor SMU's, NXOS Version is Release version. Ex: snmp-2.0.1.0-10.3.1.src.rpm, NXOS Version: 10.3.1","example":"10.3.1_nxos64-cs_64bit"},"packageName":{"type":"string","description":"Name of the Package. Ex: snmp-2.0.1.0-9.3.2.src.rpm","example":"snmp-2.0.1.0-9.3.2.src.rpm"},"platform":{"type":"string","description":"Platform of the Device. It can be - N9K, N7K, N77, N6K, N5K. Ex: N9K","example":"N9K"},"policyDescr":{"type":"string","description":"Description of the Policy. Ex: Policy notes","example":"Policy notes"},"epldImgName":{"type":"string","description":"EPLD Image name. Ex: n9000-epld.10.3.2.F.img","example":"n9000-epld.10.3.2.F.img"},"rpmimages":{"type":"string","description":"RPM Image name. Ex: bgp-2.0.0.0-9.2.3.lib32_n9000","example":"bgp-2.0.0.0-9.2.3.lib32_n9000"},"agnostic":{"type":"boolean","description":"Agnostic (Independent of Images). Ex: false","example":false}},"description":"Edit Policy.\npolicyName : Name of the Policy.\npolicyType : Type of Policy Source. Can be either PLATFORM/UMBRELLA.\nnxosVersion : NXOS version of Image. \nplatform : Switch Platform. For example: N9K / N7K / N77 / N6K / N5K \npackageName : Name of the Packages. \npolicyDescr : Description of Policy. \nepldImgName : EPLD Image Name.\nrpmimages\t : Deactive Package names.\nagnostic : Agnostic. \n","$$ref":"#/components/schemas/CreatePolicy"}}},"required":true},"responses":{"200":{"description":"Response body give the success or failure message","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Invalid message body","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"Unauthorized access to API","content":{"application/json":{"schema":{"type":"string"}}}},"500":{"description":"Other exceptions","content":{"application/json":{"schema":{"type":"string"}}}}},"__originalOperationId":"createImPolicy","method":"post","path":"/appcenter/cisco/ndfc/api/v1/imagemanagement/rest/policymgnt/platform-policy"}}