Share this page

# Provision cloud hosts

Available in versions: 12.56-12.63 only using the URL below.

## Description

Provisions a host on the cloud.

## URL

Copy code

    /Admin/rest/v1/cloud/hosts

## Remarks

Only Amazon EC2 is supported for provisioning cloud hosts using the REST API.

This API should be authorized for the Application, Tenant, and Site Admin permission levels.

## HTTP method

POST: Creates the cloud host.

## Request

Headers:

Content-Type: application/xml

Cookies:

Version | Cookie
--- | ---
2023, 24.1, and later | ADM_LWSSO={ADM_LWSSO_COOKIE_VALUE};
2022 - 2022 R2 | ADM_LWSSO={ADM_LWSSO_COOKIE_VALUE}; ASP.NET_SessionId_Adm={ASP.NET_SessionId_Adm_COOKIE_VALUE}; LWSSO_COOKIE_KEY={LWSSO_COOKIE_KEY_COOKIE_VALUE};
2021 - 2021 R2 | ADM_LWSSO={ADM_LWSSO_COOKIE_VALUE}; ASP.NET_SessionId_Adm={ASP.NET_SessionId_Adm_COOKIE_VALUE};
2020 - 2020 SP3 | ADM_LWSSO={ADM_LWSSO_COOKIE_VALUE};
Earlier than 2020 | LWSSO_COOKIE_KEY={LWSSO_COOKIE_KEY_COOKIE_VALUE}; QCSession={QC_SESSION_COOKIE_VALUE};

Request body:

POST: An XML describing the cloud host.

This table lists the fields in the provision request (all fields are mandatory unless indicated as optional).

Element | Description
--- | ---
TemplateID | The ID of the host template. Generated automatically at the time the host template is added.
HostsAmount | The number of hosts to provision in the batch. All hosts in the batch use the same account, location, and template, and have identical configurations.
HostPurpose | The testing tools available on the host: LoadGenerator.
HostPriority | A numeric value assigned to the host. The higher the priority you give the host, the more likely the host will be allocated to a test.
SecurityGroup | A security group that allows the necessary access to your testing hosts. Security group specifies which inbound and outbound connections are permitted from the hosts, such as port 80 (HTTP) or port 3389 (RDP). Security groups are configured on your cloud provider's website, and must be created separately for each location. Only security groups configured for your selected location are displayed.
KeyPair | A key pair for which you have the private key. Key pair is used to generate the administrator password for Windows machines and to log in to Linux machines. Key pair is only relevant if you plan to remotely connect to your cloud hosts. Key pairs are managed on your cloud provider's website, and must be created separately for each location. Only key pairs configured for your selected location are displayed. Note: You must have at least one keypair to provision a host.
HostAttributes | Can contain Attribute sub elements which are used to set Host properties values. This field is optional.
HostAttributes/Attribute | Host 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.
Pools | List the IDs the appropriate host pools to which the newly provisioned cloud hosts will be added.
NotificationDate | Date to be notified if the hosts are still provisioned in the cloud provider. Hosts provisioned past this date will be listed in the cloud hosts daily digest report. This field is optional. We recommend that you enter a value for better tracking of hosts that are past there due date.
UseElasticIP | Indicates whether to use a defined a pool of predefined IP addresses with your cloud provider. Enter "1" to use elastic IPs. This field is optional.

Request example:

Copy code

    POST http://<LRE_Server>/Admin/rest/v1/cloud/hosts
    Content-Type: application/xml
    Accept: application/xml
    Cookie: ADM_LWSSO={AdmLwssoCookie};

    <ProvisionConfiguration>
    <CloudHosts>
      <CloudHost>
        <TemplateID>1505</TemplateID>
        <HostsAmount>1</HostsAmount>
        <HostPurpose>LoadGenerator</HostPurpose>
        <SecurityGroup>default</SecurityGroup>
        <KeyPair>12.55ImageTestingFrankfurt</KeyPair>
        <Pools>
        <PoolID>1000</PoolID>
        </Pools>
        <HostPriority>5</HostPriority>
      </CloudHost>
      <CloudHost>
        <TemplateID>1507</TemplateID>
        <HostsAmount>1</HostsAmount>
        <HostPurpose>LoadGenerator</HostPurpose>
        <SecurityGroup>default</SecurityGroup>
        <KeyPair>12.55ImageTestingFrankfurt</KeyPair>
        <Pools>
        <PoolID>1000</PoolID>
        </Pools>
        <HostAttributes>
        <Attribute>Host memory:High</Attribute>
           <Attribute>Host strength:High</Attribute>
        </HostAttributes>
        <HostPriority>5</HostPriority>
        <NotificationDate>2017-09-28T14:10:43Z</NotificationDate>
      </CloudHost>
    </CloudHosts>
    </ProvisionConfiguration>

## Response

Headers:

Content-Type: application/xml or application/json

Cookies:

None

HTML return code:

One of the HTTP return codes

Upon successful deletion, returns HTTP status 200 (OK).

HTML body:

The response body contains the request ID, and the Location header contains the URL for monitoring provisioning progress.

You can query the operations for this request ID to see the current provision status. For details, see Get all provision requests.

Response example:

Copy code

    Location: http://<LRE_Server>/admin/rest/v1/Cloud/Requests/1035

    <ProvisionResponse>
        <RequestID>1035</RequestID>
    </ProvisionResponse>

See also:

- Deprovision cloud hosts
- Get provision request
- Get all provision requests
- Get all cloud hosts
- Audit cloud hosts
- Get cloud account

Tips to improve your search results... OpenText™ Enterprise Performance Engineering Admin API Reference OpenText™ Enterprise Performance Engineering All View Local Help Center View Online Help Center(Undefined variable: _rscC_Basic_Variables.VersionLabel)