@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Azure Resource Graph Query
@base https://management.azure.com
@version 2018-09-01-preview
@auth OAuth2
@endpoints 5
@toc subscriptions(5)

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries
@desc Get all graph queries defined within a specified subscription and resource group.
@required {subscriptionId: any # The Azure subscription Id., resourceGroupName: any # The name of the resource group., api-version: any # Client Api Version.}
@returns(200) A list containing 0 or more graph queries.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}
@desc Get a single graph query by its resourceName.
@required {subscriptionId: any # The Azure subscription Id., resourceGroupName: any # The name of the resource group., resourceName: any # The name of the Graph Query resource., api-version: any # Client Api Version.}
@returns(200) A graph query definition.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}
@desc Delete a graph query.
@required {subscriptionId: any # The Azure subscription Id., resourceGroupName: any # The name of the resource group., resourceName: any # The name of the Graph Query resource., api-version: any # Client Api Version.}
@returns(200) The graph query has been successfully deleted.
@returns(204) The resource doesn't exist.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}
@desc Create a new graph query.
@required {subscriptionId: any # The Azure subscription Id., resourceGroupName: any # The name of the resource group., resourceName: any # The name of the Graph Query resource., api-version: any # Client Api Version., properties: any # Properties that need to be specified to create a new graph query.}
@returns(200) The newly created graph query.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}
@desc Updates a graph query that has already been added.
@required {subscriptionId: any # The Azure subscription Id., resourceGroupName: any # The name of the resource group., resourceName: any # The name of the Graph Query resource., api-version: any # Client Api Version., body: any # Properties that need to be specified to create a new graph query.}
@returns(200) The graph query definition updated.

@end
