@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Azure Log Analytics
@base https://management.azure.com
@version 2019-08-01-preview
@auth OAuth2
@common_fields {api-version: any # The client API version., subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}
@endpoints 6
@toc subscriptions(6)

@endpoint GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters
@desc Gets Log Analytics clusters in a resource group.
@required {resourceGroupName: any # The name of the resource group to get. The name is case insensitive.}
@returns(200) OK response definition.

@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/clusters
@desc Gets the Log Analytics clusters in a subscription.
@returns(200) OK response definition.

@endpoint PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}
@desc Create or update a Log Analytics cluster.
@required {resourceGroupName: any # The resource group name of the Log Analytics cluster., clusterName: any # The name of the Log Analytics cluster., parameters: any # The parameters required to create or update a Log Analytics cluster.}
@returns(202) Accepted response definition.

@endpoint DELETE /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}
@desc Deletes a cluster instance.
@required {resourceGroupName: any # The resource group name of the Log Analytics cluster., clusterName: any # Name of the Log Analytics Cluster.}
@returns(200) OK response definition.
@returns(204) NoContent response definition.

@endpoint GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}
@desc Gets a Log Analytics cluster instance.
@required {resourceGroupName: any # The resource group name of the Log Analytics cluster., clusterName: any # Name of the Log Analytics Cluster.}
@returns(200) OK response definition.

@endpoint PATCH /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}
@desc Updates a Log Analytics cluster.
@required {resourceGroupName: any # The resource group name of the cluster., clusterName: any # The name of the cluster., parameters: any # The parameters required to patch a Log Analytics cluster.}
@returns(200) The existing cluster was successfully updated. Check provisioningStatus to see detailed status.

@end
