HTTP 404 error "Object not found" on object with "ports/" in URI Path

Symptom

A request was made that has URI that contains rest/v10.04/ and ports/ in the URI path, and the request returns response code 404 and the response body contains the following text string:

Object not found

Cause

The resource does not exist in the system. The URI in the request is incorrect.

The ports collection does not exist in the REST v10.04 API schema.

Action
Do one of the following:
  • Change the URI to use the REST v1 API: rest/v1/

  • Change the request to a request that is valid for the REST v10.04 API.