Skip to content

Commit 8f31252

Browse files
author
gitlab
committed
Merge branch 'fix/ZSTAC-71075@@2' into '5.5.12'
<fix>[vmScheduling]: change GET scheduling APIs from POST to GET method (ZSTAC-71075) See merge request zstackio/zstack!9373
2 parents d993609 + d27439a commit 8f31252

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

sdk/src/main/java/org/zstack/sdk/GetVmSchedulingRulesExecuteStateAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ protected Map<String, Parameter> getNonAPIParameterMap() {
8484

8585
protected RestInfo getRestInfo() {
8686
RestInfo info = new RestInfo();
87-
info.httpMethod = "POST";
87+
info.httpMethod = "GET";
8888
info.path = "/get/vmSchedulingRules/conflict/state";
8989
info.needSession = true;
9090
info.needPoll = false;
91-
info.parameterName = "params";
91+
info.parameterName = "";
9292
return info;
9393
}
9494

sdk/src/main/java/org/zstack/sdk/GetVmsSchedulingStateFromSchedulingRuleAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ protected Map<String, Parameter> getNonAPIParameterMap() {
8787

8888
protected RestInfo getRestInfo() {
8989
RestInfo info = new RestInfo();
90-
info.httpMethod = "POST";
90+
info.httpMethod = "GET";
9191
info.path = "/get/vms/schedulingState/from/SchedulingRule";
9292
info.needSession = true;
9393
info.needPoll = false;
94-
info.parameterName = "params";
94+
info.parameterName = "";
9595
return info;
9696
}
9797

0 commit comments

Comments
 (0)