{"pageModel":{"attributes":{"id":"","name":"105466.dita","viewName":"DitaDetail"},"elements":{"ditaContent":{"name":"DITAContent","value":"<article id=\"add-application\" class=\"topic concept\">\r\n<h1 class=\"title topictitle1\">Manage AI Applications</h1>\r\n<div class=\"body conbody\">\r\n<section id=\"aidef-rt-add-app\" class=\"section\">\r\n<h2 class=\"title sectiontitle\">\r\n<strong class=\"ph b\">Add Application</strong>\r\n</h2>\r\n<p class=\"p\">To get started with protecting or validating an AI application with AI Defense, you'll need to use the <strong class=\"ph b\">Add Application</strong> command to save a connection to the AI application or model endpoint. You can select:</p>\r\n<ul class=\"ul\">\r\n<li class=\"li\">\r\n<p class=\"p\">\r\n<strong class=\"ph b\">Gateway</strong>: An AI Defense Gateway acts as an intermediary to manage, monitor, and protect AI interactions. The gateway acts as a filter and security checkpoint for all AI traffic, ensuring safe and compliant operations.</p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">\r\n<strong class=\"ph b\">API</strong>: An API connection allows your AI application to call the  <a data-scope=\"external\" target=\"_blank\" href=\"https://developer.cisco.com/docs/ai-defense/\" title=\"\">AI Defense Inspection API</a> to enforce AI Defense runtime policies and rules.</p>\r\n</li>\r\n</ul>\r\n<table class=\"olh_note\" border=\"0\" role=\"note\">\r\n<tbody>\r\n<tr>\r\n<td width=\"5%\" class=\"olh_note\" role=\"heading\" border=\"0\" valign=\"top\">\r\n<img src=\"https://www.cisco.com/c/dam/en/us/td/i/esp/icons/icon-notes.svg\">\r\n<br> </td>\r\n<td border=\"0\" class=\"olh_note\">\r\n<div class=\"note__content\">\r\n<p class=\"p\">When creating an application, you will need to select a <strong class=\"ph b\">Connection type</strong>, which refers to the enforcement mechanism for your guardrail policies. For more information, see the <strong class=\"ph b\">Connection Guide</strong> below.</p>\r\n</div>\r\n</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<p class=\"p\">To add an application to AI Defense:</p>\r\n<ol class=\"ol\">\r\n<li class=\"li\">\r\n<p class=\"p\">Click <strong class=\"ph b\">Applications</strong> on the left navigation pane. Click <strong class=\"ph b\">Add application</strong> button on the right top corner of the page.</p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">On the <strong class=\"ph b\">Add Application </strong>dialog box, enter the <strong class=\"ph b\">Name</strong> for the application, <strong class=\"ph b\">Connection type (API or Gateway)</strong> and <strong class=\"ph b\">Description</strong> you would like to map.</p>\r\n<table class=\"olh_note\" border=\"0\" role=\"note\">\r\n<tbody>\r\n<tr>\r\n<td width=\"5%\" class=\"olh_note\" role=\"heading\" border=\"0\" valign=\"top\">\r\n<img src=\"https://www.cisco.com/c/dam/en/us/td/i/esp/icons/icon-notes.svg\">\r\n<br> </td>\r\n<td border=\"0\" class=\"olh_note\">\r\n<div class=\"note__content\">\r\n<p class=\"p\">The Description is optional, you can add details if required.</p>\r\n</div>\r\n</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">Click <strong class=\"ph b\">Continue</strong> and proceed to the appropriate section below: Add API Connection or Add Gateway Connection.</p>\r\n</li>\r\n</ol>\r\n</section>\r\n<section id=\"aidef-rt-conn-api\" class=\"section\">\r\n<h2 class=\"title sectiontitle\">Add API Connection</h2>\r\n<div id=\"aidef-rt-app-api\" class=\"sectiondiv\">\r\n<p class=\"p\">The steps below must be done in an API-style application. If you don't have an application, create one as explained in Add Application, above.</p>\r\n<ol class=\"ol\">\r\n<li class=\"li\">\r\n<p class=\"p\">The application is created and now you can add a connection. Click <span class=\"ph uicontrol\">Add Connection</span> on the right top corner of the Applications page.</p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">In the Add connection pane, enter connection name, click <span class=\"ph uicontrol\">Add connection</span>.</p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">Generate an AI Defense Inspection API key by clicking <span class=\"ph uicontrol\">Add API Key.</span>\r\n</p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">In the Add API Key pane, enter the <strong class=\"ph b\">API key name</strong> , select expiration date and click <span class=\"ph uicontrol\">Generate API key</span>.</p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">Once the key is generated, make a note of the API key, and click <span class=\"ph uicontrol\">Add API Key</span>.</p>\r\n</li>\r\n</ol>\r\n<p class=\"p\">The application is added with a connection and API key. Use the API key to connect to the AI Defense Inspection API as explained in the  <a data-scope=\"external\" target=\"_blank\" href=\"https://developer.cisco.com/docs/ai-defense/\" title=\"\">Inspection API documentation</a>.</p>\r\n<table class=\"olh_note\" border=\"0\" role=\"note\">\r\n<tbody>\r\n<tr>\r\n<td width=\"5%\" class=\"olh_note\" role=\"heading\" border=\"0\" valign=\"top\">\r\n<img src=\"https://www.cisco.com/c/dam/en/us/td/i/esp/icons/icon-warning.svg\">\r\n<br> </td>\r\n<td border=\"0\" class=\"olh_note\">\r\n<div class=\"note__content\">\r\n<p class=\"p\">\r\n<span class=\"ph uicontrol\">Warning!</span> Your Inspection API key is valid only for the AI Defense Inspection API and cannot be used with the AI Defense Management API. To generate a Management API key, see \"Generate an API Key for the Management API\" in the  <a data-scope=\"local\" target=\"\" href=\"docs/ai-def/user/122511.dita\" title=\"Create API keys to connect to the AI Defense Management API\">API Keys and URLs</a> section.</p>\r\n</div>\r\n</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n</div>\r\n</section>\r\n<section id=\"aidef-rt-conn-gw\" class=\"section\">\r\n<h2 class=\"title sectiontitle\">Add Gateway Connection</h2>\r\n<div id=\"aidef-rt-app-gw\" class=\"sectiondiv\">\r\n<p class=\"p\">The steps below must be done in a gateway-style application. If you don't have an application, create one now as explained above in Add Application.</p>\r\n<ol class=\"ol\">\r\n<li class=\"li\">\r\n<p class=\"p\">Add a connection to your application: Click <span class=\"ph uicontrol\">Add Connection</span> on the right top corner of the Applications page. </p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">Enter a <span class=\"ph uicontrol\">Connection</span> name.</p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">Specify the model endpoint this connection will represent. In the <span class=\"ph uicontrol\">Endpoint</span> dropdown, choose an endpoint name. If no appropriate endpoint is available in the list, see Add Endpoint, below.</p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">Click <span class=\"ph uicontrol\">Add connection</span>.</p>\r\n</li>\r\n</ol>\r\n<p class=\"p\">The application is added with a connection and its API endpoint.</p>\r\n<table class=\"olh_note\" border=\"0\" role=\"note\">\r\n<tbody>\r\n<tr>\r\n<td width=\"5%\" class=\"olh_note\" role=\"heading\" border=\"0\" valign=\"top\">\r\n<img src=\"https://www.cisco.com/c/dam/en/us/td/i/esp/icons/icon-notes.svg\">\r\n<br> </td>\r\n<td border=\"0\" class=\"olh_note\">\r\n<div class=\"note__content\">\r\n<p class=\"p\">To use the gateway, you must allowlist the public egress IP address for the AI Defense gateway service, as shown in the \"IP addresses to allowlist\" section in the  <a data-scope=\"local\" target=\"\" href=\"docs/ai-def/user/105487.dita\" title=\"\">Set up Runtime for Gateway Interception</a> section.</p>\r\n</div>\r\n</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<table class=\"olh_note\" border=\"0\" role=\"note\">\r\n<tbody>\r\n<tr>\r\n<td width=\"5%\" class=\"olh_note\" role=\"heading\" border=\"0\" valign=\"top\">\r\n<img src=\"https://www.cisco.com/c/dam/en/us/td/i/esp/icons/icon-notes.svg\">\r\n<br> </td>\r\n<td border=\"0\" class=\"olh_note\">\r\n<div class=\"note__content\">\r\n<p class=\"p\">The connection guide provides a cURL command to update the proxy URL, ensuring that all AI interactions are effectively monitored.</p>\r\n</div>\r\n</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n</div>\r\n</section>\r\n<section id=\"aidef-rt-add-endpoint\" class=\"section\">\r\n<h2 class=\"title sectiontitle\">\r\n<strong class=\"ph b\">Add Endpoint</strong>\r\n</h2>\r\n<p class=\"p\">An endpoint represents the model endpoint of the LLM you're protecting with an AI Defense gateway. Defining it here allows AI Defense runtime protection to monitor traffic to and from the model.</p>\r\n<p class=\"p\">To add a new endpoint:</p>\r\n<ol class=\"ol\">\r\n<li class=\"li\">\r\n<p class=\"p\">In the <span class=\"ph uicontrol\">Applications</span> section of AI Defense, add or edit the gateway-style application that represents your AI model.</p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">In the application inspection window for your application, in the <span class=\"ph uicontrol\">Gateway connections</span> list, click <span class=\"ph uicontrol\">Add connection</span>.</p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">Give your connection a <span class=\"ph uicontrol\">Connection name</span>.</p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">Click <span class=\"ph uicontrol\">Add or manage endpoint</span>.</p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">In the <span class=\"ph uicontrol\">Add or manage endpoints</span> dialog box, click <span class=\"ph uicontrol\">Add endpoint</span>.</p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">In the <span class=\"ph uicontrol\">Add endpoint</span> dialog box:</p>\r\n<ol class=\"ol type-a\">\r\n<li class=\"li\">\r\n<p class=\"p\">Select <span class=\"ph uicontrol\">Model provider</span> from the dropdown list.</p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">Type the <span class=\"ph uicontrol\">Endpoint</span> domain name, such as <code class=\"ph codeph\">https://api.openapi.com</code>.</p>\r\n</li>\r\n</ol>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">Click <span class=\"ph uicontrol\">Save</span> and click <span class=\"ph uicontrol\">Done</span>.</p>\r\n</li>\r\n</ol>\r\n<p class=\"p\">The endpoint is added, and you can choose it from the <strong class=\"ph b\">Endpoint</strong> dropdown in the <strong class=\"ph b\">Add Connection</strong> pane. Choose it and click <span class=\"ph uicontrol\">Add connection</span>.</p>\r\n</section>\r\n<section class=\"section\">\r\n<h2 class=\"title sectiontitle\">\r\n<strong class=\"ph b\">Connection Guide</strong>\r\n</h2>\r\n<p class=\"p\">You can access the <strong class=\"ph b\">Connection Guide</strong> by clicking on the three dots in the same row as the <strong class=\"ph b\">Name</strong> of the application. </p>\r\n<p class=\"p\">AI Defense provides two primary methods for integrating applications: <strong class=\"ph b\">API Method</strong> and <strong class=\"ph b\">Gateway Method</strong>. These methods enable developers to seamlessly secure and monitor AI interactions based on organizational requirements.</p>\r\n<p class=\"p\">The connection guide provides step-by-step instructions to implement both methods:</p>\r\n<ul class=\"ul\">\r\n<li class=\"li\">\r\n<p class=\"p\">\r\n<strong class=\"ph b\">API Method</strong>: The connection guide provides only the name of the application and connection. The API key is not visible because it is shown only once, when the key is created. Connect to the AI Defense Inspection API as explained in the  <a data-scope=\"external\" target=\"_blank\" href=\"https://developer.cisco.com/docs/ai-defense/\" title=\"\">Inspection API documentation</a>.</p>\r\n</li>\r\n<li class=\"li\">\r\n<p class=\"p\">\r\n<strong class=\"ph b\">Gateway Method</strong>: The guide outlines network or proxy configurations required to route traffic through the AI Gateway, ensuring seamless and secure application integration. The connection guide provides you with all the details of the connection and endpoint. You can edit the cURL code to add to your proxy server.</p>\r\n</li>\r\n</ul>\r\n</section>\r\n</div>\r\n</article>\r\n","ditaVal":"","format":"html"},"bookTitle":{"value":""},"shortDescription":{"value":""}}},"parameters":{"appId":"SccAiDefense","topicAlias":"AddApplication"}}