Retrieve Agent Patterns in a Project

get

/ic/api/integration/v1/projects/{projectId}/ai/patterns

Returns all Agent Patterns in the project.

Request

Path Parameters
Query Parameters
  • This is the name of the service instance. You can get this value from the About page where it is specified in the Service instance field.
  • Use with the offset parameter for paginating through the returned results. The limit is the maximum number of items to return at one time. For example, offset=3&limit=16 indicates to list Agent Patterns starting at the 4th item, and the list will contain 16 items.
  • Use with the limit parameter for paginating through the returned results. The offset is the starting point from which to return records. For example, offset=3&limit=16 indicates to list Agent Patterns starting at the 4th item, and the list will contain 16 items.
  • Lists Agent Patterns ordered by name, last updated time.

    Valid values:

    • name: Order Agent Patterns by name. Example: orderBy=name.
    • time: Order Agent Patterns by the last updated time. Example: orderBy=time.
  • Filters Agent Patterns by name.

    Valid parameters:

    • name: Name of the Agent Pattern. For example:
      • To retrieve all Agent Patterns that contain the specified string in the name, specify:
        q={name: /ORDER/}

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : PatternsRs
Match All
Show Source
Nested Schema : GenericRestRs
Type: object
Show Source
Nested Schema : PatternsRs-allOf[1]
Type: object
Show Source
Nested Schema : items
Type: array
List of patterns
Show Source
Nested Schema : PatternRs
Match All
Show Source
Nested Schema : IdRs
Match All
Show Source
Nested Schema : IdRs-allOf[1]
Type: object
Show Source
Nested Schema : PatternRs-allOf[2]
Type: object
Show Source
Nested Schema : PatternDependencies
Type: object
Show Source
Nested Schema : patternRoles
Type: array
Pattern Roles
Show Source
Nested Schema : integrations
Type: array
Integration id's
Show Source
Nested Schema : Integration
Type: object
Show Source
Nested Schema : PatternDependencyProject
Type: object
Show Source
Nested Schema : PatternRoles
Type: object
Show Source
Nested Schema : connectionList
Type: array
Show Source
Nested Schema : PatternRoleConnection
Type: object
Show Source

400 Response

Malformed parameters

500 Response

Server error
Back to Top

Examples

The following example shows how to retrieve all agent patterns defined in a project by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.

Example: Retrieve all agent patterns in project TEST_PROJECT

This command retrieves all agent patterns defined in the specified project.

curl -X GET -H 'Authorization: Bearer access_token' https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/projects/TEST_PROJECT/ai/patterns?integrationInstance=service-instance

Example: Retrieve agent patterns filtered by name

This command retrieves all agent patterns whose name contains ORDER.The results are sorted by name and limited to 10 records.

curl -X GET -H 'Authorization: Bearer access_token' https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/projects/TEST_PROJECT/ai/patterns?q={name:/ORDER/}&orderBy=name&offset=0&limit=10&integrationInstance=service-instance
Back to Top