Interface ScheduledActionsClient
public interface ScheduledActionsClient
An instance of this class provides access to all the operations defined in ScheduledActionsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncheckNameAvailability(CheckNameAvailabilityRequest checkNameAvailabilityRequest) Checks availability and correctness of the name for a scheduled action.checkNameAvailabilityByScope(String scope, CheckNameAvailabilityRequest checkNameAvailabilityRequest) Checks availability and correctness of the name for a scheduled action within the given scope.com.azure.core.http.rest.Response<CheckNameAvailabilityResponseInner>checkNameAvailabilityByScopeWithResponse(String scope, CheckNameAvailabilityRequest checkNameAvailabilityRequest, com.azure.core.util.Context context) Checks availability and correctness of the name for a scheduled action within the given scope.com.azure.core.http.rest.Response<CheckNameAvailabilityResponseInner>checkNameAvailabilityWithResponse(CheckNameAvailabilityRequest checkNameAvailabilityRequest, com.azure.core.util.Context context) Checks availability and correctness of the name for a scheduled action.createOrUpdate(String name, ScheduledActionInner scheduledAction) Create or update a private scheduled action.createOrUpdateByScope(String scope, String name, ScheduledActionInner scheduledAction) Create or update a shared scheduled action within the given scope.com.azure.core.http.rest.Response<ScheduledActionInner>createOrUpdateByScopeWithResponse(String scope, String name, ScheduledActionInner scheduledAction, String ifMatch, com.azure.core.util.Context context) Create or update a shared scheduled action within the given scope.com.azure.core.http.rest.Response<ScheduledActionInner>createOrUpdateWithResponse(String name, ScheduledActionInner scheduledAction, String ifMatch, com.azure.core.util.Context context) Create or update a private scheduled action.voidDelete a private scheduled action.voiddeleteByScope(String scope, String name) Delete a scheduled action within the given scope.com.azure.core.http.rest.Response<Void>deleteByScopeWithResponse(String scope, String name, com.azure.core.util.Context context) Delete a scheduled action within the given scope.com.azure.core.http.rest.Response<Void>deleteWithResponse(String name, com.azure.core.util.Context context) Delete a private scheduled action.Get the private scheduled action by name.getByScope(String scope, String name) Get the shared scheduled action from the given scope by name.com.azure.core.http.rest.Response<ScheduledActionInner>getByScopeWithResponse(String scope, String name, com.azure.core.util.Context context) Get the shared scheduled action from the given scope by name.com.azure.core.http.rest.Response<ScheduledActionInner>getWithResponse(String name, com.azure.core.util.Context context) Get the private scheduled action by name.com.azure.core.http.rest.PagedIterable<ScheduledActionInner>list()List all private scheduled actions.com.azure.core.http.rest.PagedIterable<ScheduledActionInner>List all private scheduled actions.com.azure.core.http.rest.PagedIterable<ScheduledActionInner>listByScope(String scope) List all shared scheduled actions within the given scope.com.azure.core.http.rest.PagedIterable<ScheduledActionInner>listByScope(String scope, String filter, com.azure.core.util.Context context) List all shared scheduled actions within the given scope.voidProcesses a private scheduled action.voidrunByScope(String scope, String name) Runs a shared scheduled action within the given scope.com.azure.core.http.rest.Response<Void>runByScopeWithResponse(String scope, String name, com.azure.core.util.Context context) Runs a shared scheduled action within the given scope.com.azure.core.http.rest.Response<Void>runWithResponse(String name, com.azure.core.util.Context context) Processes a private scheduled action.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ScheduledActionInner> list()List all private scheduled actions.- Returns:
- scheduled actions list result as paginated response with
PagedIterable. - Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<ScheduledActionInner> list(String filter, com.azure.core.util.Context context) List all private scheduled actions.- Parameters:
filter- May be used to filter scheduled actions by properties/viewId. Supported operator is 'eq'.context- The context to associate with this operation.- Returns:
- scheduled actions list result as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByScope
List all shared scheduled actions within the given scope.- Parameters:
scope- The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope.- Returns:
- scheduled actions list result as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByScope
com.azure.core.http.rest.PagedIterable<ScheduledActionInner> listByScope(String scope, String filter, com.azure.core.util.Context context) List all shared scheduled actions within the given scope.- Parameters:
scope- The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope.filter- May be used to filter scheduled actions by properties/viewId. Supported operator is 'eq'.context- The context to associate with this operation.- Returns:
- scheduled actions list result as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<ScheduledActionInner> createOrUpdateWithResponse(String name, ScheduledActionInner scheduledAction, String ifMatch, com.azure.core.util.Context context) Create or update a private scheduled action.- Parameters:
name- Scheduled action name.scheduledAction- Scheduled action to be created or updated.ifMatch- ETag of the Entity. Not required when creating an entity. Optional when updating an entity and can be specified to achieve optimistic concurrency.context- The context to associate with this operation.- Returns:
- scheduled action definition along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
Create or update a private scheduled action.- Parameters:
name- Scheduled action name.scheduledAction- Scheduled action to be created or updated.- Returns:
- scheduled action definition.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<ScheduledActionInner> getWithResponse(String name, com.azure.core.util.Context context) Get the private scheduled action by name.- Parameters:
name- Scheduled action name.context- The context to associate with this operation.- Returns:
- the private scheduled action by name along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
Get the private scheduled action by name.- Parameters:
name- Scheduled action name.- Returns:
- the private scheduled action by name.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String name, com.azure.core.util.Context context) Delete a private scheduled action.- Parameters:
name- Scheduled action name.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete a private scheduled action.- Parameters:
name- Scheduled action name.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateByScopeWithResponse
com.azure.core.http.rest.Response<ScheduledActionInner> createOrUpdateByScopeWithResponse(String scope, String name, ScheduledActionInner scheduledAction, String ifMatch, com.azure.core.util.Context context) Create or update a shared scheduled action within the given scope.- Parameters:
scope- The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope.name- Scheduled action name.scheduledAction- Scheduled action to be created or updated.ifMatch- ETag of the Entity. Not required when creating an entity. Optional when updating an entity and can be specified to achieve optimistic concurrency.context- The context to associate with this operation.- Returns:
- scheduled action definition along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateByScope
ScheduledActionInner createOrUpdateByScope(String scope, String name, ScheduledActionInner scheduledAction) Create or update a shared scheduled action within the given scope.- Parameters:
scope- The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope.name- Scheduled action name.scheduledAction- Scheduled action to be created or updated.- Returns:
- scheduled action definition.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByScopeWithResponse
com.azure.core.http.rest.Response<ScheduledActionInner> getByScopeWithResponse(String scope, String name, com.azure.core.util.Context context) Get the shared scheduled action from the given scope by name.- Parameters:
scope- The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope.name- Scheduled action name.context- The context to associate with this operation.- Returns:
- the shared scheduled action from the given scope by name along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByScope
Get the shared scheduled action from the given scope by name.- Parameters:
scope- The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope.name- Scheduled action name.- Returns:
- the shared scheduled action from the given scope by name.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByScopeWithResponse
com.azure.core.http.rest.Response<Void> deleteByScopeWithResponse(String scope, String name, com.azure.core.util.Context context) Delete a scheduled action within the given scope.- Parameters:
scope- The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope.name- Scheduled action name.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByScope
Delete a scheduled action within the given scope.- Parameters:
scope- The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope.name- Scheduled action name.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
runWithResponse
com.azure.core.http.rest.Response<Void> runWithResponse(String name, com.azure.core.util.Context context) Processes a private scheduled action.- Parameters:
name- Scheduled action name.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
run
Processes a private scheduled action.- Parameters:
name- Scheduled action name.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
runByScopeWithResponse
com.azure.core.http.rest.Response<Void> runByScopeWithResponse(String scope, String name, com.azure.core.util.Context context) Runs a shared scheduled action within the given scope.- Parameters:
scope- The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope.name- Scheduled action name.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
runByScope
Runs a shared scheduled action within the given scope.- Parameters:
scope- The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope.name- Scheduled action name.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
checkNameAvailabilityWithResponse
com.azure.core.http.rest.Response<CheckNameAvailabilityResponseInner> checkNameAvailabilityWithResponse(CheckNameAvailabilityRequest checkNameAvailabilityRequest, com.azure.core.util.Context context) Checks availability and correctness of the name for a scheduled action.- Parameters:
checkNameAvailabilityRequest- Scheduled action to be created or updated.context- The context to associate with this operation.- Returns:
- the check availability result along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
checkNameAvailability
CheckNameAvailabilityResponseInner checkNameAvailability(CheckNameAvailabilityRequest checkNameAvailabilityRequest) Checks availability and correctness of the name for a scheduled action.- Parameters:
checkNameAvailabilityRequest- Scheduled action to be created or updated.- Returns:
- the check availability result.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
checkNameAvailabilityByScopeWithResponse
com.azure.core.http.rest.Response<CheckNameAvailabilityResponseInner> checkNameAvailabilityByScopeWithResponse(String scope, CheckNameAvailabilityRequest checkNameAvailabilityRequest, com.azure.core.util.Context context) Checks availability and correctness of the name for a scheduled action within the given scope.- Parameters:
scope- The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope.checkNameAvailabilityRequest- Scheduled action to be created or updated.context- The context to associate with this operation.- Returns:
- the check availability result along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
checkNameAvailabilityByScope
CheckNameAvailabilityResponseInner checkNameAvailabilityByScope(String scope, CheckNameAvailabilityRequest checkNameAvailabilityRequest) Checks availability and correctness of the name for a scheduled action within the given scope.- Parameters:
scope- The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope.checkNameAvailabilityRequest- Scheduled action to be created or updated.- Returns:
- the check availability result.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-