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

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests
@desc Get all Application Insights web tests defined within a specified resource group.
@returns(200) A list containing 0 or more web test definitions.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}
@desc Get a specific Application Insights web test definition.
@required {webTestName: any # The name of the Application Insights webtest resource.}
@returns(200) Ann Application Insights web test definition.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}
@desc Creates or updates an Application Insights web test definition.
@required {webTestName: any # The name of the Application Insights webtest resource., WebTestDefinition: any # Properties that need to be specified to create or update an Application Insights web test definition.}
@returns(200) Adding the Application Insights web test was successful. Web test properties are updated and returned.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}
@desc Creates or updates an Application Insights web test definition.
@required {webTestName: any # The name of the Application Insights webtest resource., WebTestTags: any # Updated tag information to set into the web test instance.}
@returns(200) Updating the Application Insights web test tags was successful. Web test tags are updated and returned with the rest of the WebTest object properties.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}
@desc Deletes an Application Insights web test.
@required {webTestName: any # The name of the Application Insights webtest resource.}
@returns(200) Successful request to delete a web test definition.
@returns(204) No content: the request was successful, but the response is empty (the request to delete failed because the specified web test does not exist).

@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests
@desc Get all Application Insights web test alerts definitions within a subscription.
@returns(200) A list of 0 or more Application Insights web test definitions.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{componentName}/webtests
@desc Get all Application Insights web tests defined for the specified component.
@required {componentName: any # The name of the Application Insights component resource.}
@returns(200) A list containing 0 or more web test definitions.

@end
