Power.Dev Optimization Services

<back to all web services

CommonOptimizerProjectInfoRequest

The following routes are available for this service:
POST/optimizer/project-info
"use strict";
export class CommonOptimizerPortalRequestBase {
    /** @param {{projectId?:string,isBatchSimulation?:boolean,force?:boolean,disableEBSSpot?:boolean,isServerless?:boolean,apiActionId?:string,nodeId?:number,parallelProject?:number,parallelYears?:number,ensureExlusive?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    projectId;
    /** @type {boolean} */
    isBatchSimulation;
    /** @type {boolean} */
    force;
    /** @type {boolean} */
    disableEBSSpot;
    /** @type {boolean} */
    isServerless;
    /** @type {string} */
    apiActionId;
    /** @type {number} */
    nodeId;
    /** @type {number} */
    parallelProject;
    /** @type {number} */
    parallelYears;
    /** @type {number} */
    ensureExlusive;
}
export class CommonOptimizerProjectInfoRequest extends CommonOptimizerPortalRequestBase {
    /** @param {{projectId?:string,isBatchSimulation?:boolean,force?:boolean,disableEBSSpot?:boolean,isServerless?:boolean,apiActionId?:string,nodeId?:number,parallelProject?:number,parallelYears?:number,ensureExlusive?:number}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
}

JavaScript CommonOptimizerProjectInfoRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /optimizer/project-info HTTP/1.1 
Host: dev-optimization.power.dev 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CommonOptimizerProjectInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/powerDev.Optimization.ServiceModel">
  <ApiActionId xmlns="http://schemas.datacontract.org/2004/07/powerDev.Common.Models">00000000-0000-0000-0000-000000000000</ApiActionId>
  <DisableEBSSpot xmlns="http://schemas.datacontract.org/2004/07/powerDev.Common.Models">false</DisableEBSSpot>
  <EnsureExlusive xmlns="http://schemas.datacontract.org/2004/07/powerDev.Common.Models">0</EnsureExlusive>
  <Force xmlns="http://schemas.datacontract.org/2004/07/powerDev.Common.Models">false</Force>
  <IsBatchSimulation xmlns="http://schemas.datacontract.org/2004/07/powerDev.Common.Models">false</IsBatchSimulation>
  <IsServerless xmlns="http://schemas.datacontract.org/2004/07/powerDev.Common.Models">false</IsServerless>
  <NodeId xmlns="http://schemas.datacontract.org/2004/07/powerDev.Common.Models">0</NodeId>
  <ParallelProject xmlns="http://schemas.datacontract.org/2004/07/powerDev.Common.Models">0</ParallelProject>
  <ParallelYears xmlns="http://schemas.datacontract.org/2004/07/powerDev.Common.Models">0</ParallelYears>
  <ProjectId xmlns="http://schemas.datacontract.org/2004/07/powerDev.Common.Models">00000000-0000-0000-0000-000000000000</ProjectId>
</CommonOptimizerProjectInfoRequest>