modi-cli
Version:
Console application for provisioning, displaying or destroying virtual machines in MODI
75 lines (37 loc) • 2.94 kB
JavaScript
exports.BlueprintsVerb = 'blueprints';
exports.ProvisionVerb = 'provision';
exports.StatusVerb = 'status';
exports.DestroyVmVerb = 'destroy';
exports.DisplayVmPropertiesVerb = 'properties';
exports.DisplayHelp = 'DisplayHelp';
exports.CredentialsVerb = 'credentials';
exports.Version = 'version';
exports.schemaReplacement = '<ProvisioningRequest xmlns="http://modi.ea.com/messages/2013/06/provisioningrequest" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">';
exports.USWestCoastLocation = 'US (West Coast)';
exports.USEastCoastLocation = 'US (East Coast)';
//add other locations
//error messages
exports.AccessDeniedMessage = '401 - Unauthorized';
exports.DefaultProvErrorMessage = 'There was an error while requesting the machine.';
exports.DefaultBlueprintsErrorMessage = 'There was an error while requesting the blueprints list.';
exports.DefaultStatusErrorMessage = 'There was an error while getting the machine status.';
exports.DefaultPropsErrorMessage = 'There was an error while getting the machine properties.';
exports.DefaultDestroyVMErrorMessage = 'There was an error while sending the "destroy" command to the machine.';
exports.WrongCredentialsMessage = 'The request is denied due to the invalid credentials. Please check your windows credentials and authenticate again.';
exports.encryptionAlgorithm = 'aes-256-cbc';
//end error messages
//staging
//exports.GetMachineIPUrl = 'http://ca1-stagweb.ad.ea.com/AdministrativeServices/VSphereServices/GetMachineIP/';
//exports.postUrl = 'http://ca1-stagweb.ad.ea.com/cliservices2/provisioningservices/RequestNewMachine';
//exports.destroyUrl = 'http://ca1-stagweb.ad.ea.com/cliservices2/provisioningservices/RequestDestroyMachine/';
//exports.displayPropsUrl = 'http://ca1-stagweb.ad.ea.com/cliservices2/provisioningservices/RequestMachineProperties/';
//exports.displayStatusUrl = 'http://ca1-stagweb.ad.ea.com/cliservices2/provisioningservices/RequestMachineStatus/';
//exports.blueprintsUrl = 'http://ca1-stagweb.ad.ea.com/cliservices2/provisioningservices/requestuserblueprints';
//prod
exports.GetMachineIPUrl = 'https://ca1-modiweb01.ad.ea.com/AdministrativeServices/VSphereServices/GetMachineIP/';
exports.postUrl = 'https://ca1-modiweb01.ad.ea.com/cliservices/provisioningservices/RequestNewMachine';
exports.destroyUrl = 'https://ca1-modiweb01.ad.ea.com/cliservices/provisioningservices/RequestDestroyMachine/';
exports.displayPropsUrl = 'https://ca1-modiweb01.ad.ea.com/cliservices/provisioningservices/RequestMachineProperties/';
exports.displayStatusUrl = 'https://ca1-modiweb01.ad.ea.com/cliservices/provisioningservices/RequestMachineStatus/';
exports.blueprintsUrl = 'https://ca1-modiweb01.ad.ea.com/cliservices/provisioningservices/requestuserblueprints';
exports.testUrl = 'https://ca1-modiweb01.ad.ea.com/cliservices/provisioningservices/help?';