5. Deployment

POST https://anypoint.mulesoft.com/hybrid/api/v2/organizations/{{orgId}}/environments/{{envId}}/deployments

Request Body

{"name"=>"{{applicationName}}", "application"=>{"ref"=>{"groupId"=>"{{orgId}}", "artifactId"=>"{{applicationName}}", "version"=>"{{applicationVersion}}", "packaging"=>"jar"}, "desiredState"=>"STARTED", "configuration"=>{"mule.agent.application.properties.service"=>{"properties"=>{"mule.env"=>"development", "name"=>"john"}, "applicationName"=>"{{applicationName}}"}}}, "target"=>{"targetId"=>"{{targetId}}", "provider"=>"MC", "deploymentSettings"=>{"runtimeVersion"=>"4.2.1:v1.2.19", "replicationFactor"=>2, "memoryReserved"=>"3000Mi", "memoryMax"=>"3000Mi", "cpuReserved"=>"500m", "cpuMax"=>"500m", "publicUrl"=>"https://{{RTFCNAME}}/{{applicationName}}", "lastMileSecurity"=>false, "clusteringEnabled"=>false}}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
X-ANYPNT-ENV-IDstring
X-ANYPNT-ORG-IDstring
Content-Typestring