We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a9171f commit 1e4499eCopy full SHA for 1e4499e
package.json
@@ -27,4 +27,4 @@
27
"@types/node-fetch": "^2.5.7",
28
"typescript": "^3.5.2"
29
}
30
-}
+}
src/lib/client/ClientServer.ts
@@ -76,8 +76,8 @@ class ClientServer extends ClientServerModel {
76
public powerState(): Promise<string> {
77
return new Promise(async (resolve, reject) => {
78
try {
79
- let res = await this.api.call(`/client/servers/${this.identifier}/utilization`);
80
- resolve(res.data.attributes.state);
+ let res = await this.api.call(`/client/servers/${this.identifier}/resources`);
+ resolve(res.data.attributes.current_state);
81
} catch (error) {
82
reject(error);
83
0 commit comments