Register Intelligent AI Connectors

Use this REST API endpoint to register, update, or delete Intelligent AI Connector (IAC) instances.

URL Syntax

/management/weblogic/latest/edit/customResources/IntelligentAIConnector/customResource/AIConnectorConfigurations

HTTP Methods

  • GET
  • POST
  • DELETE

Parameters

Table 17-30 URL Parameters

Names Description
links Set to none if you want to remove the links from the response. Set to an enumerated list of the links to return. For example:
.../?links=none

Examples

Example 17-80 Get all IAC Configurations

curl -u 'weblogic:<password>' \
    "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/IntelligentAIConnector/customResource/AIConnectorConfigurations"

Example response:

{
  "links": [
    {
      "rel": "parent",
      "href": "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/IntelligentAIConnector/customResource"
    },
    {
      "rel": "self",
      "href": "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/IntelligentAIConnector/customResource/AIConnectorConfigurations"
    },
    {
      "rel": "canonical",
      "href": "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/IntelligentAIConnector/customResource/AIConnectorConfigurations"
    }
  ],
  "items": [
    {
      "links": [
        {
          "rel": "self",
          "href": "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/IntelligentAIConnector/customResource/AIConnectorConfigurations/AIC1"
        },
        {
          "rel": "canonical",
          "href": "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/IntelligentAIConnector/customResource/AIConnectorConfigurations/AIC1"
        }
      ],
      "identity": [
        "customResources",
        "IntelligentAIConnector",
        "customResource",
        "AIConnectorConfigurations",
        "AIC1"
      ],
      "managementIP": "10.0.0.29",
      "managementPort": 8443,
      "sslEnabled": true,
      "serverName": "AIC1",
      "secondaryPort": 8080
    }
  ]
}

Example 17-81 Get a specific IAC

curl -X GET -u 'weblogic:<password>' \
  "http://10.0.0.1:7001/management/weblogic/latest/serverConfig/customResources/IntelligentAIConnector/customResource/AIConnectorConfigurations/AIC1?links=none"

Example response body:

{
  "identity": [
    "customResources",
    "IntelligentAIConnector",
    "customResource",
    "AIConnectorConfigurations",
    "AIC1"
  ],
  "managementIP": "10.0.0.2",
  "managementPort": 8443,
  "sslEnabled": true,
  "serverName": "AIC1",
  "secondaryPort": 8080
}

Example 17-82 Add an IAC

curl -X POST -u 'weblogic:<password>' \
  -H "X-Requested-By: MyClient" \
  -H "Content-Type: application/json" \
  -d @request.json \
  "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/IntelligentAIConnector/customResource/AIConnectorConfigurations/"

Example request body:

{
  "managementIP": "10.0.0.3",
  "managementPort": 8443,
  "sslEnabled": true,
  "serverName": "AIC2",
  "secondaryPort": 8080
}

The Converged Application Server responds with a 201 Created.

Example 17-83 Delete an IAC

curl -X DELETE -u 'weblogic:<password>' \
  -H "X-Requested-By: MyClient" \
  "http://10.0.0.1:7001/management/weblogic/latest/edit/customResources/IntelligentAIConnector/customResource/AIConnectorConfigurations/AIC2"

The Converged Application Server responds with a 200 OK.