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

Symptom

A request was made to a switch runningAOS-CXversion 10.03 or later using a REST v1 URI that containsbridge/in the URI path. The request returns response code 404 and the response body contains the following text string:

Object not found

Cause

资源是不存在的in the system. The URI in the request is incorrect.

Thebridgecollection was eliminated from the REST v1 API inAOS-CXversion 10.03.

行动

  1. Remove the following from the URI and retry the request:

    bridge/

    Example of getting the list of VLANs for a switch runningAOS-CX10.02版本:

    GET "https://192.0.2.5/rest/v1/system/bridge/vlans"

    Example of getting the list of VLANs for a switch runningAOS-CXversion 10.03:

    GET "https://192.0.2.5/rest/v1/system/vlans"