Files
plexjs/docs/sdk/models/operations/getserverresourcesresponse.md

3.1 KiB
Raw Blame History

GetServerResourcesResponse

Example Usage

import { GetServerResourcesResponse, Protocol } from "@lukehagar/plexjs/sdk/models/operations";

let value: GetServerResourcesResponse = {
  contentType: "<value>",
  statusCode: 102,
  rawResponse: new Response("{\"message\": \"hello world\"}", {
    headers: { "Content-Type": "application/json" },
  }),
  plexDevices: [
    {
      name: "<value>",
      product: "Generic Cotton Pants",
      productVersion: "<value>",
      platform: "<value>",
      platformVersion: "<value>",
      device: "Desktop",
      clientIdentifier: "<value>",
      createdAt: new Date("2019-06-24T11:38:02Z"),
      lastSeenAt: new Date("2019-06-24T11:38:02Z"),
      provides: "<value>",
      ownerId: 828940,
      sourceTitle: "<value>",
      publicAddress: "<value>",
      accessToken: "<value>",
      owned: false,
      home: false,
      synced: false,
      relay: false,
      presence: false,
      httpsRequired: false,
      publicAddressMatches: false,
      dnsRebindingProtection: false,
      natLoopbackSupported: false,
      connections: [
        {
          protocol: Protocol.Http,
          address: "72792 Medhurst Mountains",
          port: 14619,
          uri: "https://kaleidoscopic-status.net",
          local: false,
          relay: false,
          iPv6: false,
        },
      ],
    },
  ],
};

Fields

Field Type Required Description
contentType string ✔️ HTTP response content type for this operation
statusCode number ✔️ HTTP response status code for this operation
rawResponse Response ✔️ Raw HTTP response; suitable for custom response parsing
plexDevices operations.PlexDevice[] List of Plex Devices. This includes Plex hosted servers and clients