Administration APIs

Explore the administration APIs available for managing resources in federated API management.

On the Download Resources page, click the Download icon next to the OpenAPI specification REST APIs and postman collections to download the OpenAPI specifications and its corresponding postman collection respectively.

Note: Make sure you use Bearer Token authentication to access the REST APIs. For details, see Managing federated API management resources using administration APIs.

Runtime Management

Federated API management exposes REST APIs to help you create, read, update, and delete multiple runtimes like API Gateway running in different landscapes.

The following table displays the REST APIs and resources to manage runtimes.

Resource Description
Method - POST

Endpoint - /api/assetcatalog/v1/runtimes (or) /api/assetcatalog/v2/runtimes

Creates a runtime.

The resource is only accessible to the API platform provider user role.

Method - GET

Endpoint - /api/assetcatalog/v1/runtimes (or) /api/assetcatalog/v2/runtimes

Retrieves all the runtimes.

All user roles have access to the resource.

Method - GET

Endpoint - /api/assetcatalog/v1/runtimes/{id} (or) /api/assetcatalog/v2/runtimes/{id}

Retrieves a runtime with the specified ID.

All user roles have access to the resource.

Method - PUT

Endpoint - /api/assetcatalog/v1/runtimes/{id} (or) /api/assetcatalog/v2/runtimes/{id}

Updates a runtime with the specified ID.

This resource is only accessible to the API platform provider user role.

Method - DELETE

Endpoint - /api/assetcatalog/v1/runtimes/{id}

Deletes a runtime with the specified ID.

The resource is only accessible to the API platform provider user role.

Method - GET

Endpoint - /api/assetcatalog/v1/geographic-location/countries

Retrieves the list of countries supported by federated API management.

The resource is only accessible to the API platform provider user role.

Method - GET

Endpoint - /api/assetcatalog/v1/geographic-location/states

Retrieves all possible states for the specified country in the path parameters.

The resource is only accessible to the API platform provider user role.

Method - GET

Endpoint - /api/assetcatalog/v1/geographic-location/cities

Retrieves all possible states for the specified country and state in the path parameters.

The resource is only accessible to the API platform provider user role.

Method - GET

Endpoint - /api/assetcatalog/v1/geographic-location/location_details

Retrieves all possible location details such as city, state, and country for the specified city in the path parameters.

The resource is only accessible to the API platform provider user role.

The following runtime management endpoints are deprecated:
  • POST/api/assetcatalog/v1/runtimes
  • GET/api/assetcatalog/v1/runtimes
  • GET/api/assetcatalog/v1/runtimes/{id}
  • PUT/api/assetcatalog/v1/runtimes/{id}x`

Runtime Type Management

Federated API management exposes REST APIs to help you create, read, update, and delete multiple runtime types like WEBMETHODS_DEVELOPER_PORTAL, WEBMETHODS_API_GATEWAY.

The following table displays the REST APIs and resources to manage runtime types.
Resource Description
Method - POST

Endpoint - /api/assetcatalog/v1/runtimes/types

Creates new runtime type in federated API management.
Method - GET

Endpoint - /api/assetcatalog/v1/runtimes/types

Retrieves the list of available runtimes types in federated API management.
Method - GET

Endpoint - /api/assetcatalog/v1/runtimes/types/{id}

Retrieves the details of the specified runtime type in federated API management.
Method - PUT

Endpoint - /api/assetcatalog/v1/runtimes/types/{id}

Updates the specified runtime type in federated API management.
Method - DELETE

Endpoint - /api/assetcatalog/v1/runtimes/types/{id}

Deletes the specified runtime type in federated API management.

Data Plane Management

Data planes in federated API management are a collection of runtimes like API Gateway running in different landscapes.

Federated API management exposes REST APIs to help you create, read, update, and delete data planes.

The following table displays the REST APIs and resources to manage data planes.

Resource Description
Method - POST

Endpoint - /api/assetcatalog/v1/dataplanes

Creates a data plane.

The resource is only accessible to the API platform provider user role.

Method - GET

Endpoint - /api/assetcatalog/v1/dataplanes

Retrieves all the data planes.

All user roles have access to the resource.

Method - GET

Endpoint - /api/assetcatalog/v1/dataplanes/{id}

Retrieves a data plane with the specified ID.

All user roles have access to the resource.

Method - GET

Endpoint -/api/assetcatalog/v1/dataplanes/{id}/runtimes

Retrieves a list of runtimes that is associated with the data plane with the specified ID.

All user roles have access to the resource.

Method - PUT

Endpoint - /api/assetcatalog/v1/dataplanes/{id}

Updates a data plane with the specified ID.

The resource is only accessible to the API platform provider user role.

Method - DELETE

Endpoint - /api/assetcatalog/v1/dataplanes/{id}

Deletes a data plane with the specified ID.

The resource is only accessible to the API platform provider user role.

API Management

Federated API management exposes REST APIs to help you create, read, update, and delete APIs within runtimes.

The following table displays the REST APIs and resources to manage APIs.

Resource Description
Method - POST

Endpoint - /api/assetcatalog/v1/runtimes/{runtimeId}/apis

Creates an API in the specified runtime.

The resource is only accessible to the API product manager user role.

Method - GET

Endpoint - /api/assetcatalog/v1/apis

Retrieves all the APIs in federated API management.

All user roles have access to the resource.

Method - GET

Endpoint - /api/assetcatalog/v1/runtimes/{runtimeId}/apis

Retrieves all the APIs in the specified runtime.

All user roles have access to the resource.

Method - GET

Endpoint -/api/assetcatalog/v1/runtimes/{runtimeId}/apis/{apiId}

Retrieves a specific API in the specified runtime.

All user roles have access to the resource.

Method - PUT

Endpoint -/api/assetcatalog/v1/runtimes/{runtimeId}/apis/{apiId}

Updates a specific API in the specified runtime.

The resource is only accessible to the API product manager user role.

Method - DELETE

Endpoint -/api/assetcatalog/v1/runtimes/{runtimeId}/apis/{apiId}

Deletes a specific API in the specified runtime.

The resource is only accessible to the API product manager user role.

Runtime Metrics

exposes REST APIs to help you create runtime’s heartbeat and metrics in Federated API management.

The following table displays the REST APIs and resources to create runtime’s heartbeat and metrics in Federated API management.

Resource Description
Method - POST

Endpoint - /api/engine/v2/runtimes/heartbeat

Creates the runtime’s hearbeat in Federated API management.

The resource is accessible to the API platform provider and API product manager user roles.

Method - POST

Endpoint - /api/engine/v2/runtimes/{runtimeId}/metrics

Creates the runtime’s metrics in Federated API management.

The resource is accessible to the API platform provider and API product manager user roles.

Method - POST

Endpoint - /api/engine/v3/runtimes/{runtimeId}/metrics

Creates the AI powered gateway runtime’s metrics in Federated API management.

The resource is accessible to the API platform provider and API product manager user roles.

Federated API management Search

With Search API, you can run a search or count query in Federated API management and return the search results that match the search query or the count of objects matching the search query.

Federated API management provides the following REST API resources,

  • POST/assetcatalog/v1/search. Runs a search query in Federated API management and returns the search results that match the input query. You can perform searches on different objects, such as API, DATAPLANE, RUNTIME, and AUDITEVENT, but only one object can be searched at a time.

    Specify the following in your REST request to perform a search operation,

    REST request payload section Description
    type Objects for which you want to perform the search operation. You can specify one of the following listed objects:
    • API
    • DATAPLANE
    • RUNTIME
    • AUDITEVENT
    query Consists of a list of conditions that are connected by a logical connector. You can only use the same logical connector between conditions; it must be either AND or OR, not both.
    conditions Consists of a list of criteria that are connected by a logical connector. You can only use the same logical connector between criterias; it must be either AND or OR, not both.
    criterias Indicates the actual condition that applies to the field, providing the field's name, value, and any operators that are applied to it. For example, contains.
    from Indicates the starting point from which records must be fetched. For instance, from = 5 indicates that the sixth object is the starting point. In Opensearch, record indexing starts at 0, meaning that the first object has an index of 0.

    By default, the from parameter is set to 0.

    If the value of the from parameter exceeds the total number of records available in Opensearch, the search does not return any results.

    size Indicates the number of records that must be fetched. For example, for a size of 10, 10 records are returned beginning with the from value.

    The default is 10000.

    responseFields Specifies the fields that must be returned in the response. You can specify only the needed fields instead of viewing all the fields in your response. For example, if you want to view only the name and type fields for objects of type API, you can specify name and apiType in your REST request.

    To fetch all fields, you can use *.

    sortFields Contains the field names and sort order based on which the search results must be sorted. For example, {"name":"DESC","created":"DESC"}. In this example, the results are sorted by name in descending order, and then by created date in descending order. If you don't specify any sort fields, the system sorts the results by using the lastModified date in descending order.
  • POST/assetcatalog/v1/count. Retrieves the total number of records that match the input type and the input query. If you do not specify the query, the system returns the total number of records present for the input type.

    To retrieve the count of records, you can specify the needed type, query, conditions, and criteria similar to the /search query. The count query does not take the from, size, response, and sort fields into consideration.

Audit Logs

Federated API management exposes the following REST API to retrieve the record of events performed on the assets (APIs, runtimes, and data planes) during a specific time period.

Resource Description
Method - POST

Endpoint - /api/assetcatalog/v1/metrics/audit

Retrieves the list of events (created, updated, deleted) performed on the APIs, runtimes, and data planes for the specified time period.

All user roles have access to the resource.

Specify the following in the request body to retrieve audit logs:
Request body Description
From, To Specify the time period for which you want to retrieve the audit logs in epoch format.

Example, 1673352361557

Type Specify one or more of the following asset types for which you want to retrieve the audit logs:
  • API
  • DATAPLANE
  • RUNTIME
A sample request body is as follows,

{
  "from": "1673352361557",
  "to": "1673355631997",
  "types": [
    "DATAPLANE",
    "RUNTIME",
    "API"
  ]
}

Bulk API Management

Federated API management offers REST APIs that allows to create, update, and delete (CUD) multiple APIs in a single request. The bulk API management capability is essential, as performing CUD operations for multiple APIs individually can result in high network latency, negatively impacting the performance. By using bulk APIs, you can efficiently manage a single operation such as create, update, or delete for multiple APIs in one request, improving performance and reducing latency.

These bulk APIs operate asynchronously. When you send a request to create multiple APIs, the bulk API immediately responds with a Job ID and a URL, where you can check the status of your request. This asynchronous processing means that the bulk API handles the request in the background, which enables you to check the status of your request immediately.

Job status lifecycle

The job that is created by the bulk API goes through the following stages, which you can track by using a GET call to retrieve the job status.
Job status Description
PENDING The job is not yet picked up for processing.
PROCESSING The job is being processed.
COMPLETED The job is processed successfully.
Note: Federated API management supports approximately up to 2000 APIs in a single bulk API request. This is on average, assuming each API has a name of length, 32 characters, description with 100 characters, five tags with 10 characters each, and five attributes with 20 characters each.

Managing Bulk APIs

The following table describes the REST APIs and resources available for managing Bulk APIs.

Resource Description
Method - POST

Endpoint - /async/api/assetcatalog/v1/runtimes/{runtimeId}/apis/bulk/create

Creates a set of APIs within the specified runtime in Federated API management. Specify the list of APIs in an array.

The resource is only accessible to the API product manager user role.

Method - POST

Endpoint - /async/api/assetcatalog/v1/runtimes/{runtimeId}/apis/bulk/update

Updates a set of APIs within the specified runtime in Federated API management. Specify the list of APIs in an array.

The resource is only accessible to the API product manager user role.

Method - POST

Endpoint - /async/api/assetcatalog/v1/runtimes/{runtimeId}/apis/bulk/delete

Deletes a set of APIs within the specified runtime in Federated API management. Specify the list of APIs in an array.

The resource is only accessible to the API product manager user role.

Method - GET

Endpoint -/api/assetcatalog/v1/jobs

Retrieves all jobs.
Supported parameters:
  • runtimeId

    /api/assetcatalog/v1/jobs?runtimeId

    Retrieves all jobs from the specified runtime.

  • originalPayload

    /api/assetcatalog/v1/jobs?originalPayload

    By default, originalPayload is set to false. If set to true, the payload of the job is displayed. Else, a null payload is displayed.

All user roles have access to the resource.
Method - GET

Endpoint -/api/assetcatalog/v1/jobs/{jobId}

Retrieves job of the specified jobId.

Supported parameter:

originalPayload

/api/assetcatalog/v1/jobs/{jobId}?originalPayload

By default, originalPayload is set to false. If set to true, the payload of the job is displayed. Else, a null payload is displayed.

All user roles have access to the resource.