Given the ID for an upstream device, will return the upstream and the downstream relationships associated with that gateway. These downstream relationships are only those associated with the direct downstream level (they don’t work recursively).

Changed on

List all relationships based on device ID

get/devices/{deviceId}/relationships

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    OAuth 2
    Implicithttps://login.microsoftonline.com/common/oauth2/authorize
    Scopesuser_impersonation

Path parameters

deviceIdstring required

Unique ID of the device.

Query parameters

api-versionstring required

The version of the API being called.

maxpagesizeinteger

The maximum number of resources to return from one response.

Response

Success

nextLinkstring

URL to get the next page of device relationships.

Changes