Overview

The APM’s Asset microservices provide REST endpoints to create, update and query your industry-specific asset model and data. These microservices provide endpoints to ingest, track and retrieve asset data for use in the asset micro app, other microservices and micro apps that can consume this asset data.

The following APM Asset REST API microservices resource endpoints are described in this guide:

Please note throughout this documentation all parameter names and base paths(URIs) are case sensitive.
Asset Microservice Architecture
Figure 1. APM Asset Microservice Architecture
All CRUD operations are performed within the context of a tenant. Every request header must include the authorization header and the tenant UUID.

URI Scheme

Host:

Basepath:

HTTP verbs

The Asset microservice adheres to standard HTTP and REST conventions in its use of HTTP verbs.

Verb Usage

GET

Retrieves a resource.

POST

Creates a new resource.

PATCH

Updates an existing resource, including partial updates.

DELETE

Deletes an existing resource.

HTTP Status Codes

APM Asset adheres to standard HTTP and REST conventions in its use of HTTP status codes. The following HTTP status codes provide information to help troubleshoot possible errors.

When you receive an error response (status code >= 400), the body contains a JSON object that describes the problem. Review the response body for additional information on the type of error that occurred. For example, you receive an error if you do not attach a ZIP file, or if your request contains invalid query syntax or operators.
Status code Usage

200 OK

The request completed successfully.

202 Accepted

A new resource has been created successfully. Check the Location header in the response to obtain information on the resource URI.

204 No Content

An update to an existing resource has been applied successfully.

206 Partial Content

The request was completed successfully. Only partial content was retrieved as part of the response. In order to get the next set of data, inspect the value of "Link" response header. Extract only the content between angle brackets(<>) and use this url to get next set of objects. Keep inspecting this header, until you get HTTP status 200.

400 Bad Request

The request was not formatted appropriately. The response body includes additional information on the type of error that occurred.

401 Unauthorized

The request has failed authentication as the provided credentials are either invalid or were not provided. This can also happen when the token expires.

403 Forbidden

The user is not authorized to retrieve the requested resource.

404 Not Found

The requested resource was not found. It can mean that the resource you have requested for was not created on the server side.