Sdílet prostřednictvím


ResourcesExtensions.GetTemplateSpecs Method

Definition

Overloads

GetTemplateSpecs(ResourceGroupResource)

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

GetTemplateSpecs(SubscriptionResource, Nullable<TemplateSpecExpandKind>, CancellationToken)

Lists all the Template Specs within the specified subscriptions.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs
  • Operation Id: TemplateSpecs_ListBySubscription
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource

GetTemplateSpecs(ResourceGroupResource)

Source:
ResourcesExtensions.cs
Source:
ResourcesExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of TemplateSpecResources and their operations over a TemplateSpecResource.

Exceptions

resourceGroupResource is null.

Applies to

GetTemplateSpecs(SubscriptionResource, Nullable<TemplateSpecExpandKind>, CancellationToken)

Source:
ResourcesExtensions.cs
Source:
ResourcesExtensions.cs

Lists all the Template Specs within the specified subscriptions.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs
  • Operation Id: TemplateSpecs_ListBySubscription
  • Default Api Version: 2021-05-01
  • Resource: TemplateSpecResource
public static Azure.Pageable<Azure.ResourceManager.Resources.TemplateSpecResource> GetTemplateSpecs (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Resources.Models.TemplateSpecExpandKind? expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetTemplateSpecs : Azure.ResourceManager.Resources.SubscriptionResource * Nullable<Azure.ResourceManager.Resources.Models.TemplateSpecExpandKind> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Resources.TemplateSpecResource>
<Extension()>
Public Function GetTemplateSpecs (subscriptionResource As SubscriptionResource, Optional expand As Nullable(Of TemplateSpecExpandKind) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of TemplateSpecResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

expand
Nullable<TemplateSpecExpandKind>

Allows for expansion of additional Template Spec details in the response. Optional.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to