Skip to main content

query_text

Creates, updates, deletes, gets or lists a query_text resource.

Overview

Namequery_text
TypeResource
Idazure.maria_db.query_text

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
propertiesobjectThe properties of a query text.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, serverName, queryIdRetrieve the Query-Store query texts for the queryId.
list_by_serverselectsubscriptionId, resourceGroupName, serverName, queryIdsRetrieve the Query-Store query texts for specified queryIds.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
queryIdstringThe Query-Store query identifier.
queryIdsarrayThe query identifiers
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serverNamestringThe name of the server.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Retrieve the Query-Store query texts for the queryId.

SELECT
properties
FROM azure.maria_db.query_text
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND queryId = '{{ queryId }}' -- required
;