# Deployment

The Deployment information is rendered in XML as a `<deployment>` element.

### Attributes

type
  The type of deployment: `INITIAL`, `UPDATE` or `UNDEPLOYMENT`.

### Child elements

<application>
  The `<application` element contains a single ConfigurationItem denoting the application being deployed, upgraded or undeployed.
<deployeds>
  Contains a list of Configuration Items, pointing to the deployeds of this deployment,
<deployables>
  Contains a list of CI references, pointing to the deployables of this deployment,
<containers>
  Contains a list of CI references, pointing to the containers involved in this deployment,

## Example

    <deployment type="INITIAL">
      <application>
        <udm.DeployedApplication id="Environments/0hostEnv0/AnimalZoo-ear">
          <version ref="Applications/AnimalZoo-ear/1.0"/>
          <environment ref="Environments/0hostEnv0"/>
          <orchestrator>default</orchestrator>
        </udm.DeployedApplication>
      </application>
      <deployeds>
        <test-v3.DummyJeeServerDeployedEar id="Infrastructure/hostServer0/AnimalZooFE">
          <deployable ref="Applications/AnimalZoo-ear/1.0/AnimalZooFE"/>
          <container ref="Infrastructure/hostServer0"/>
        </test-v3.DummyJeeServerDeployedEar>
        <test-v3.DummyJeeServerDeployedEar id="Infrastructure/hostServer0/AnimalZooBE">
          <deployable ref="Applications/AnimalZoo-ear/1.0/AnimalZooBE"/>
          <container ref="Infrastructure/hostServer0"/>
        </test-v3.DummyJeeServerDeployedEar>
      </deployeds>
    </deployment>

Another example; [Elaborate...]

    <deployment type="INITIAL">
      <application>
        <udm.DeployedApplication id="Environments/0hostEnv0/AnimalZoo-ear">
          <version ref="Applications/AnimalZoo-ear/1.0"/>
          <environment ref="Environments/0hostEnv0"/>
          <deployeds/>
          <orchestrator>default
        </udm.DeployedApplication>
      </application>
      <deployeds/>
      <deployables>
        <ci ref="Applications/AnimalZoo-ear/1.0/AnimalZooBE" type="test-v3.DummyEar"/>
        <ci ref="Applications/AnimalZoo-ear/1.0/AnimalZooFE" type="test-v3.DummyEar"/>
        <ci ref="Applications/AnimalZoo-ear/1.0/AnimalZooWeb" type="test-v3.DummyWar"/>
      </deployables>
      <containers>
        <ci ref="Infrastructure/Host-with-hostServer" type="test-v3.DummyHost"/>
        <ci ref="Infrastructure/hostServer0" type="test-v3.DummyJeeServer"/>
      </containers>
    </deployment>