Partager via


ConnectedVMwarevSphereExtensions.GetVMwareVmTemplates Method

Definition

Overloads

GetVMwareVmTemplates(SubscriptionResource, CancellationToken)

List of virtualMachineTemplates in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates
  • Operation Id: VirtualMachineTemplates_List
  • Default Api Version: 2023-12-01
  • Resource: VMwareVmTemplateResource
GetVMwareVmTemplates(ResourceGroupResource)

Gets a collection of VMwareVmTemplateResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVMwareVmTemplates() instead.

GetVMwareVmTemplates(SubscriptionResource, CancellationToken)

Source:
ConnectedVMwarevSphereExtensions.cs

List of virtualMachineTemplates in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates
  • Operation Id: VirtualMachineTemplates_List
  • Default Api Version: 2023-12-01
  • Resource: VMwareVmTemplateResource
public static Azure.Pageable<Azure.ResourceManager.ConnectedVMwarevSphere.VMwareVmTemplateResource> GetVMwareVmTemplates (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetVMwareVmTemplates : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ConnectedVMwarevSphere.VMwareVmTemplateResource>
<Extension()>
Public Function GetVMwareVmTemplates (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of VMwareVmTemplateResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of VMwareVmTemplateResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to

GetVMwareVmTemplates(ResourceGroupResource)

Source:
ConnectedVMwarevSphereExtensions.cs

Gets a collection of VMwareVmTemplateResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVMwareVmTemplates() instead.

public static Azure.ResourceManager.ConnectedVMwarevSphere.VMwareVmTemplateCollection GetVMwareVmTemplates (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetVMwareVmTemplates : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ConnectedVMwarevSphere.VMwareVmTemplateCollection
<Extension()>
Public Function GetVMwareVmTemplates (resourceGroupResource As ResourceGroupResource) As VMwareVmTemplateCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of VMwareVmTemplateResources and their operations over a VMwareVmTemplateResource.

Exceptions

resourceGroupResource is null.

Applies to