GET /cloud/hardwarePlans/{ID}

Returns a resource representation of a hardware plan that has the specified ID.

Request

To get a resource representation of the hardware plan, send the GET HTTP request to the URL of the /cloud/hardwarePlans/{ID} resource:

HTTP Request

GET https://<Enterprise-Manager>:9398/api/cloud/hardwarePlans/{ID}

or

GET https://<Enterprise-Manager>:9398/api/cloud/hardwarePlans/{ID}?format=Entity

Request Headers

The request contains the following headers:

Header

Required

Description

X-RestSvcSessionId

True

The request requires authorization. In the header, the client must send a session ID copied from the server reply to the request creating a new logon session. For details, see Authentication and Security.

Accept

False

Identifies the format of the response. Possible values:

  • application/xml — the client can send this value in the header to accept response in the XML format.
  • application/json — the client must send this value in the header to accept the request in the JSON format.

If the request does not contain the header, the server will return the response in the XML format.

Request Body

None.

Response

The server returns the following response to the client.

Response Codes

A successfully completed operation returns response code 200 OK.

Response Headers

The response to this request contains the following headers. The response may also include additional standard HTTP headers.

Header

Description

Content-length

The length of the response body.

Content-type

The media type and syntax of the request body message. Possible values:

  • application/xml
  • application/json

Response Body

In the response body, the REST API returns an entity or an entity reference of the /cloud/hardwarePlans/{ID} resource. The resource entity contains the following parameters and links.

Parameters

Element

Type

Description

UID

UidType

UID of the hardware plan, for example: urn:veeam:CloudHardwarePlan:127e652e-e02e-4951-99e7-03280edfe536.

Name

String

Name of the hardware plan, for example: Hyper-V Silver.

Description

String

Description for the hardware plan.

ProcessorUsageLimitMhz

Int

Limit of CPU that can be used by all VM replicas of the tenant subscribed to the hardware plan.

To let the replicas use all available CPU resources, the value is set to -1.

MemoryUsageLimitMb

Int

Limit of RAM that can be used by all VM replicas of the tenant subscribed to the hardware plan.

To let the replicas use all available RAM resources, the value is set to -1.

HardwarePlanDetails

ViCloudHardwarePlan or HvCloudHardwarePlan

Parameters for the hardware plan. For details on parameters for VMware hardware plans, see VMware Hardware Plan Settings. For details on parameters for Hyper-V hardware plans, see Hyper-V Hardware Plan Settings.

To view query parameters that you can use for filtering or sorting, see GET /query?type=CloudHardwarePlan.

Links

Reference

Relationship

Description

/backupServers/{ID}

Up

URL of the /backupServers/{ID} resource — a backup server where the cloud hardware plan was created.

/cloud/hardwarePlans/{ID}

Alternate

Alternate URL of the /cloud/hardwarePlans/{ID} resource.

/cloud/hardwarePlans/{ID}/tenants

Down

URL of the /cloud/hardwarePlans/{ID}/tenants resource — a collection of tenant accounts that are subscribed to the hardware plan.

/cloud/hardwarePlans/{ID}

Edit

URL for the PUT /cloud/hardwarePlans/{ID} request.

/cloud/hardwarePlans/{ID}

Delete

URL for the DELETE /cloud/hardwarePlans/{ID} request.

Example

The example below returns an entity representation of the hardware plan that has ID 127e652e-e02e-4951-99e7-03280edfe536.

Request:

GET https://localhost:9398/api/cloud/hardwarePlans/127e652e-e02e-4951-99e7-03280edfe536?format=Entity

 

Request Header:

X-RestSvcSessionId   NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj

 

Response:

200 OK

 

Response Body:

<CloudHardwarePlan xmlns="http://www.veeam.com/ent/v1.0" Type="CloudHardwarePlan" Href="https://localhost:9398/api/cloud/hardwarePlans/127e652e-e02e-4951-99e7-03280edfe536?format=Entity" Name="Hyper-V Silver" UID="urn:veeam:CloudHardwarePlan:127e652e-e02e-4951-99e7-03280edfe536">
 <Links>
   <Link Rel="Up" Type="BackupServerReference" Href="https://localhost:9398/api/backupServers/8fff3b8e-c3f1-4ef5-aecc-561f07bf9982" Name="172.17.53.48" />
   <Link Rel="Alternate" Type="CloudHardwarePlanReference" Href="https://localhost:9398/api/cloud/hardwarePlans/127e652e-e02e-4951-99e7-03280edfe536" Name="Hyper-V Silver" />
   <Link Rel="Down" Type="CloudTenantReference" Href="https://localhost:9398/api/cloud/hardwarePlans/127e652e-e02e-4951-99e7-03280edfe536/tenants" Name="Hyper-V Silver" />
   <Link Rel="Edit" Type="CloudHardwarePlanReference" Href="https://localhost:9398/api/cloud/hardwarePlans/127e652e-e02e-4951-99e7-03280edfe536" Name="Hyper-V Silver" />
   <Link Rel="Delete" Type="CloudHardwarePlan" Href="https://localhost:9398/api/cloud/hardwarePlans/127e652e-e02e-4951-99e7-03280edfe536" Name="Hyper-V Silver" />
 </Links>
 <Description>Hardware plan for Hyper-V VMs</Description>
 <ProcessorUsageLimitMhz>10000</ProcessorUsageLimitMhz>
 <MemoryUsageLimitMb>16384</MemoryUsageLimitMb>
 <HardwarePlanDetails>
   <HvCloudHardwarePlan>
     <HypervisorHostRef>urn:HyperV:Host:849a937a-3416-4f03-8111-67b06393afcb.</HypervisorHostRef>
     <Volumes>
       <Volume Id="66d75e14-a35a-4dfe-a919-9b2a3bf87e4a">
         <FriendlyName>Cloud Replicas</FriendlyName>
         <VolumePath>D:\Replicas</VolumePath>
         <QuotaGb>300</QuotaGb>
       </Volume>
     </Volumes>
     <Network Id="127e652e-e02e-4951-99e7-03280edfe536">
       <CountWithInternet>1</CountWithInternet>
       <CountWithoutInternet>1</CountWithoutInternet>
     </Network>
   </HvCloudHardwarePlan>
 </HardwarePlanDetails>
</CloudHardwarePlan>

 

Page updated 1/25/2024

Page content applies to build 12.3.0.310