Get cloud host templates by ID
Available in versions: 2022 R1 and later
Description
Gets a cloud host template by the specified ID.
URL
/LoadTest/rest/domains/{domainName}/projects/{projectName}/cloud/templates/{templateId}
Remarks
None
HTTP Method
GET: Returns the cloud host templates in the body of the response.
Request
Headers:
Accept: application/xml
Cookies:
Version 2020 (or later) | LWSSO_COOKIE_KEY={LwssoCookie}; |
Versions earlier than 2020 | LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie}; |
Request Body:
GET: No request body.
An XML describing the cloud host template.

GET http://<LRE_Server>/LoadTest/rest/domains/MyDomain/projects/MyProject/cloud/templates/123
Response
Headers:
One of:
Content-Type: application/xml
Content-Type: application/json
Cookies:
None
HTML Return Code:
One of the HTTP Return Codes
Upon successful retrieval, returns HTTP status 200 (OK).
HTML Body:
GET: Returns the data on the entity in the response.

<CloudTemplate xmlns="http://www.hp.com/PC/REST/API">
<Id>1</Id>
<AccountId>3</AccountId>
<AccountName>azure</AccountName>
<Name>azure_elastic</Name>
<Image>/subscriptions/e9b63fd5-74d9-4094-a256-e104833f6b82/resourceGroups/DIMA_RESOURCEGROUP/providers/Microsoft.Compute/images/LR_LRE_Load_Generator_2022_Win2016</Image>
<InstanceType>Standard_D2_v2</InstanceType>
<KeyPairName />
<SecurityGroupName>AllOpen (/subscriptions/e9b63fd5-74d9-4094-a256-e104833f6b82/resourceGroups/Dima_ResourceGroup/providers/Microsoft.Network/networkSecurityGroups/AllOpen)</SecurityGroupName>
<Description />
<Installation>Windows Standalone LG</Installation>
<Platform>Windows</Platform>
<IsValid>true</IsValid>
<NetworkName>Dima_ResourceGroup-vnet</NetworkName>
<Region>South Central US</Region>
<UseElasticIp>true</UseElasticIp>
<UsePrivateIp>false</UsePrivateIp>
</CloudTemplate>
See Also