다음을 통해 공유


CostManagementExtensions.GetTenantScheduledActionAsync Method

Definition

Get the private scheduled action by name.

  • Request Path: /providers/Microsoft.CostManagement/scheduledActions/{name}
  • Operation Id: ScheduledActions_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CostManagement.TenantScheduledActionResource>> GetTenantScheduledActionAsync (this Azure.ResourceManager.Resources.TenantResource tenantResource, string name, System.Threading.CancellationToken cancellationToken = default);
static member GetTenantScheduledActionAsync : Azure.ResourceManager.Resources.TenantResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CostManagement.TenantScheduledActionResource>>
<Extension()>
Public Function GetTenantScheduledActionAsync (tenantResource As TenantResource, name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of TenantScheduledActionResource))

Parameters

tenantResource
TenantResource

The TenantResource instance the method will execute against.

name
String

Scheduled action name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

tenantResource or name is null.

name is an empty string, and was expected to be non-empty.

Applies to