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}}}
Key | Datatype | Required | Description |
---|
Authorization | string | | |
X-ANYPNT-ENV-ID | string | | |
X-ANYPNT-ORG-ID | string | | |
Content-Type | string | | |