mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
3.1 KiB
3.1 KiB
GetServerResourcesResponse
Example Usage
import { GetServerResourcesResponse, Protocol } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetServerResourcesResponse = {
contentType: "<value>",
statusCode: 303,
rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" },
}),
plexDevices: [
{
name: "<value>",
product: "Gorgeous Steel Chair",
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: 399166,
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: "29059 Ward Lake",
port: 52102,
uri: "https://old-validity.info",
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 |