@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Azure Action Groups API
@base https://management.azure.com
@version 2019-06-01
@auth OAuth2
@endpoints 7
@toc subscriptions(7)

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}
@desc Create a new action group or update an existing one.
@required {actionGroupName: any # The name of the action group., actionGroup: any # The action group to create or use for the update.}
@returns(200) An existing action group was successfully updated.
@returns(201) A new action group was successfully created.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}
@desc Get an action group.
@required {actionGroupName: any # The name of the action group.}
@returns(200) The request succeeded.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}
@desc Delete an action group.
@required {actionGroupName: any # The name of the action group.}
@returns(200) The action group was successfully deleted.
@returns(204) The action group does not exist. It may have already been deleted.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}
@desc Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.
@required {actionGroupName: any # The name of the action group., actionGroupPatch: any # Parameters supplied to the operation.}
@returns(200) An existing action group was successfully updated.

@endpoint GET /subscriptions/{subscriptionId}/providers/microsoft.insights/actionGroups
@desc Get a list of all action groups in a subscription.
@returns(200) The request succeeded.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups
@desc Get a list of all action groups in a resource group.
@returns(200) The request succeeded.

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}/subscribe
@desc Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.
@required {actionGroupName: any # The name of the action group., enableRequest: any # The receiver to re-enable.}
@returns(200) The receiver was successfully enabled.
@errors {409: The receiver is already enabled in the action group.}

@end
