{"type":"api","title":"Create Image Policy","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/6caa8081-e6ba-312b-ae5a-89988569dbc0","info":{"title":"Crosswork Workflow Manager Solutions - Fleetupgrade","description":"Software Conformance in the Fleetupgrade application helps users identify network devices that don't meet required software image policies. Users can create image policy from the Image repository to suit device functions or locations. These policy act as benchmarks for verifying software compliance, ensuring devices run the appropriate software. Verification can be done once or regularly, and non-compliant devices can be upgraded to meet the policy standards.\nFleetupgrade SoftwareUpdate facilitates automated upgrade installations, allowing you to choose the Method of Procedure (MOP) for your installation. Additionally, you can customize execution variables such as the job name and execution schedule. CWMS Fleetupgrade offers prebuilt MOPs to efficiently carry out all upgrade tasks.","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"},"version":"7.1.0"},"x-parser-conf":{"overview":{"markdownPath":"reference/CWM-SOLUTIONS/fleetupgrade-api.overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://crosswork-ip:30603/crosswork/cwms/fleetupgrade/v1"}],"securitySchemes":{"Bearer":{"type":"apiKey","description":"Type \"Bearer\" followed by a space and JWT token.","name":"Authorization","in":"header"}}},"spec":{"tags":["Image Policy"],"summary":"Create Image Policy","description":"API to create image policy","operationId":"AddImagePolicy","requestBody":{"description":"Image Policy","content":{"application/json":{"schema":{"required":["name","productSeries","targetVersion","vendor"],"type":"object","properties":{"description":{"type":"string","description":"Description provides additional information about the image policy.","example":"This image policy is for Cisco IOS XR 7.0.1"},"images":{"type":"array","description":"Images is the list of images associated with the image policy.","example":["image1.iso","image2.tar.gz"],"items":{"type":"string"}},"key":{"type":"integer","description":"Key is the unique identifier for the image policy.","example":1},"name":{"type":"string","description":"Name is the unique name of the image policy.","example":"Cisco IOS XR 7.0.1"},"productSeries":{"type":"string","description":"ProductSeries is the product series associated with the image policy.","example":"Cisco 8000 Series Routers"},"targetVersion":{"type":"string","description":"TargetVersion is the target version for the image policy.","example":"7.8.1"},"vendor":{"type":"string","description":"Vendor is the vendor associated with the image policy.","example":"Cisco Systems"}},"description":"ImagePolicy represents the policy for managing images. This struct is used to define the details of the image policy.","$$ref":"#/components/schemas/models.ImagePolicy"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Code is the HTTP status code of the response.","example":200},"key":{"type":"integer","description":"ID is an optional key associated with the response.","example":1},"message":{"type":"string","description":"Message provides additional information about the response.","example":"Ok"},"status":{"type":"string","description":"Status indicates the status of the response.","example":"Success"}},"description":"Response200 represents a successful response with status code 200.","$$ref":"#/components/schemas/models.Response200"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Code is the HTTP status code of the response.","example":400},"key":{"type":"integer","description":"ID is an optional key associated with the response.","example":1},"message":{"type":"string","description":"Message provides additional information about the response.","example":"Bad request"},"status":{"type":"string","description":"Status indicates the status of the response.","example":"Failed"}},"description":"Response400 represents a failed response with status code 400.","$$ref":"#/components/schemas/models.Response400"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Code is the HTTP status code of the response.","example":401},"key":{"type":"integer","description":"ID is an optional key associated with the response.","example":1},"message":{"type":"string","description":"Message provides additional information about the response.","example":"Unauthorized"},"status":{"type":"string","description":"Status indicates the status of the response.","example":"Failed"}},"description":"Response401 represents a failed response with status code 401.","$$ref":"#/components/schemas/models.Response401"}}}},"406":{"description":"Not Acceptable","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Code is the HTTP status code of the response.","example":406},"key":{"type":"integer","description":"ID is an optional key associated with the response.","example":1},"message":{"type":"string","description":"Message provides additional information about the response.","example":"Not Acceptable"},"status":{"type":"string","description":"Status indicates the status of the response.","example":"Failed"}},"description":"Response406 represents a failed response with status code 406.","$$ref":"#/components/schemas/models.Response406"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Code is the HTTP status code of the response.","example":500},"key":{"type":"integer","description":"ID is an optional key associated with the response.","example":1},"message":{"type":"string","description":"Message provides additional information about the response.","example":"Internal server error"},"status":{"type":"string","description":"Status indicates the status of the response.","example":"Failed"}},"description":"Response500 represents a failed response with status code 500.","$$ref":"#/components/schemas/models.Response500"}}}}},"x-codegen-request-body-name":"request","__originalOperationId":"AddImagePolicy","method":"post","path":"/conformance/policy"}}