Share this page

# hosts XML

The fields in the response are:

Element | Description
--- | ---
Host | The top-level element.
Name | The host name.
Installation | The installation type: Unix WindowsHost WindowsStandaloneLG
HostPurposes | Can contain HostPurpose sub elements with any combination of the following: Controller LoadGenerator DataProcessor
Status | The status can be: Operational NonOperational Unavailable
Location | (Optional) A valid location name defined in LAB_PPROJECT. If not provided, the default location is used.
MIListener | Optional when the location is not defined as over a firewall (OFW). When the location is an OFW location, the value should be the name of a valid MIListener that is defined in LAB_PPROJECT.
Attributes | Can contain Attribute sub elements in order to set Host properties values.
Attribute | Attribute value should contain Host Properties values as defined in LAB_PROJECT under Project Customization > Project Lists > Host Properties. You can specify multiple Attribute elements using either the default host attributes (as in the example below) or any custom attribute defined by the user.
Priority | A numeric value between 1 and 9.
SslEnabled | One of: true false

Example
Copy code

    <Host xmlns="http://www.hp.com/PC/REST/API">
        <Name>testingHost</Name>
        <Installation>WindowsHost</Installation>
        <HostPurposes>
           <HostPurpose>Controller</HostPurpose>
           <HostPurpose>LoadGenerator</HostPurpose>
        </HostPurposes>
        <Status>Operational</Status>
        <Location>Default</Location>
        <MIListener>None</MIListener>
        <Attributes>
           <Attribute>HostMemory:High</Attribute>
           <Attribute>HostStrength:Medium</Attribute>
           <Attribute>InstalledComponents:DotNetFramework</Attribute>
           <Attribute>InstalledComponents:CitrixClient</Attribute>
           <Attribute>InstalledComponents:JavaRuntime</Attribute>
        </Attributes>
        <Priority>5</Priority>
        <SslEnabled>false</SslEnabled>
    </Host>

## See Also

Add a host
Get or delete a host by ID

Tips to improve your search results... LoadRunner Enterprise REST API Reference LRE REST API All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic(Undefined variable: _rscC_Basic_Variables.VersionLabel)