Reference for CreateApplianceRepository

Url: appliance/provisioning/createappliancerepository

HTTP Method: POST

Message direction Format Body
Request XML Example,Schema
Response XML Example,Schema

The following is an example request XML body:

<?xml version="1.0" encoding="utf-16"?>
<createApplianceRepositoryRequest xmlns="http://apprecovery.com/management/api/2010/05">
  <repositoryName>String content</repositoryName>
  <!--Valid elements of type: dvmRepositorySpecificContentParameters-->
  <repositoryParameters i:type="dvmRepositorySpecificContentParameters" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
  <repositoryType i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
  <!--Valid elements of type: virtualApplianceVirtualDiskCreationParameters-->
  <virtualDiskCreationParameters i:type="virtualApplianceVirtualDiskCreationParameters" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <diskName>String content</diskName>
    <diskSize>18446744073709551615</diskSize>
    <makePartitionActive>true</makePartitionActive>
    <partitionStyle>Unknown</partitionStyle>
    <preallocate>true</preallocate>
    <storageLocationId>1627aea5-8e0a-4371-9022-9b504344e724</storageLocationId>
  </virtualDiskCreationParameters>
</createApplianceRepositoryRequest>

The following is an example response XML body:

No Xml response output for this method.

The following is the request XML Schema:

<?xml version="1.0" encoding="utf-16"?>
<Schemas>
  <xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="anyType" nillable="true" type="xs:anyType" />
    <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
    <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
    <xs:element name="boolean" nillable="true" type="xs:boolean" />
    <xs:element name="byte" nillable="true" type="xs:byte" />
    <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
    <xs:element name="decimal" nillable="true" type="xs:decimal" />
    <xs:element name="double" nillable="true" type="xs:double" />
    <xs:element name="float" nillable="true" type="xs:float" />
    <xs:element name="int" nillable="true" type="xs:int" />
    <xs:element name="long" nillable="true" type="xs:long" />
    <xs:element name="QName" nillable="true" type="xs:QName" />
    <xs:element name="short" nillable="true" type="xs:short" />
    <xs:element name="string" nillable="true" type="xs:string" />
    <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
    <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
    <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
    <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
    <xs:element name="char" nillable="true" type="tns:char" />
    <xs:simpleType name="char">
      <xs:restriction base="xs:int" />
    </xs:simpleType>
    <xs:element name="duration" nillable="true" type="tns:duration" />
    <xs:simpleType name="duration">
      <xs:restriction base="xs:duration">
        <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
        <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
        <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
      </xs:restriction>
    </xs:simpleType>
    <xs:element name="guid" nillable="true" type="tns:guid" />
    <xs:simpleType name="guid">
      <xs:restriction base="xs:string">
        <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
      </xs:restriction>
    </xs:simpleType>
    <xs:attribute name="FactoryType" type="xs:QName" />
    <xs:attribute name="Id" type="xs:ID" />
    <xs:attribute name="Ref" type="xs:IDREF" />
  </xs:schema>
  <xs:schema xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:tns="http://apprecovery.com/management/api/2010/05" elementFormDefault="qualified" targetNamespace="http://apprecovery.com/management/api/2010/05" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import namespace="http://schemas.datacontract.org/2004/07/Replay.Common.Contracts.Repositories" />
    <xs:import namespace="http://schemas.datacontract.org/2004/07/Replay.Common.Contracts.Storage" />
    <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
    <xs:complexType name="createApplianceRepositoryRequest">
      <xs:sequence>
        <xs:element minOccurs="0" name="repositoryName" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="repositoryParameters" nillable="true" type="tns:repositoryTypeSpecificContentParameters" />
        <xs:element minOccurs="0" name="repositoryType" xmlns:q1="http://schemas.datacontract.org/2004/07/Replay.Common.Contracts.Repositories" type="q1:RepositoryType" />
        <xs:element minOccurs="0" name="virtualDiskCreationParameters" nillable="true" type="tns:VirtualDiskCreationParametersBase" />
      </xs:sequence>
    </xs:complexType>
    <xs:element name="createApplianceRepositoryRequest" nillable="true" type="tns:createApplianceRepositoryRequest" />
    <xs:complexType name="repositoryTypeSpecificContentParameters">
      <xs:sequence />
    </xs:complexType>
    <xs:element name="repositoryTypeSpecificContentParameters" nillable="true" type="tns:repositoryTypeSpecificContentParameters" />
    <xs:complexType name="dvmRepositorySpecificContentParameters">
      <xs:complexContent mixed="false">
        <xs:extension base="tns:repositoryTypeSpecificContentParameters">
          <xs:sequence />
        </xs:extension>
      </xs:complexContent>
    </xs:complexType>
    <xs:element name="dvmRepositorySpecificContentParameters" nillable="true" type="tns:dvmRepositorySpecificContentParameters" />
    <xs:complexType name="VirtualDiskCreationParametersBase">
      <xs:sequence>
        <xs:element minOccurs="0" name="diskName" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="diskSize" type="xs:unsignedLong" />
        <xs:element minOccurs="0" name="makePartitionActive" type="xs:boolean" />
        <xs:element minOccurs="0" name="partitionStyle" xmlns:q2="http://schemas.datacontract.org/2004/07/Replay.Common.Contracts.Storage" type="q2:PartitionStyle" />
      </xs:sequence>
    </xs:complexType>
    <xs:element name="VirtualDiskCreationParametersBase" nillable="true" type="tns:VirtualDiskCreationParametersBase" />
    <xs:complexType name="virtualApplianceVirtualDiskCreationParameters">
      <xs:complexContent mixed="false">
        <xs:extension base="tns:VirtualDiskCreationParametersBase">
          <xs:sequence>
            <xs:element minOccurs="0" name="preallocate" type="xs:boolean" />
            <xs:element minOccurs="0" name="storageLocationId" type="ser:guid" />
          </xs:sequence>
        </xs:extension>
      </xs:complexContent>
    </xs:complexType>
    <xs:element name="virtualApplianceVirtualDiskCreationParameters" nillable="true" type="tns:virtualApplianceVirtualDiskCreationParameters" />
  </xs:schema>
  <xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/Replay.Common.Contracts.Repositories" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Replay.Common.Contracts.Repositories" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
    <xs:simpleType name="RepositoryType">
      <xs:list>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="Unknown">
              <xs:annotation>
                <xs:appinfo>
                  <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">0</EnumerationValue>
                </xs:appinfo>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Dvm">
              <xs:annotation>
                <xs:appinfo>
                  <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</EnumerationValue>
                </xs:appinfo>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="O3E">
              <xs:annotation>
                <xs:appinfo>
                  <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2</EnumerationValue>
                </xs:appinfo>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Archive">
              <xs:annotation>
                <xs:appinfo>
                  <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">4</EnumerationValue>
                </xs:appinfo>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Cloud">
              <xs:annotation>
                <xs:appinfo>
                  <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">8</EnumerationValue>
                </xs:appinfo>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="O3EPhantom">
              <xs:annotation>
                <xs:appinfo>
                  <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">16</EnumerationValue>
                </xs:appinfo>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:list>
    </xs:simpleType>
    <xs:element name="RepositoryType" nillable="true" type="tns:RepositoryType" />
  </xs:schema>
  <xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/Replay.Common.Contracts.Storage" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Replay.Common.Contracts.Storage" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:simpleType name="PartitionStyle">
      <xs:restriction base="xs:string">
        <xs:enumeration value="Unknown" />
        <xs:enumeration value="MBR" />
        <xs:enumeration value="GPT" />
        <xs:enumeration value="LVM" />
        <xs:enumeration value="LVMDISK" />
        <xs:enumeration value="RAID" />
        <xs:enumeration value="RAIDDISK" />
        <xs:enumeration value="FSDATA" />
        <xs:enumeration value="BIOSRAID" />
        <xs:enumeration value="BIOSRAIDDISK" />
        <xs:enumeration value="PHYSICALRAID" />
        <xs:enumeration value="DMCRYPT" />
      </xs:restriction>
    </xs:simpleType>
    <xs:element name="PartitionStyle" nillable="true" type="tns:PartitionStyle" />
  </xs:schema>
</Schemas>

The following is the response XML Schema:

The response body is empty.