Language

ManagedInstanceQueryCollection Class

Definition

A class representing a collection of ManagedInstanceQueryResource and their operations. Each ManagedInstanceQueryResource in the collection will belong to the same instance of ManagedDatabaseResource. To get a ManagedInstanceQueryCollection instance call the GetManagedInstanceQueries method from an instance of ManagedDatabaseResource.

public class ManagedInstanceQueryCollection : Azure.ResourceManager.ArmCollection
type ManagedInstanceQueryCollection = class
    inherit ArmCollection
Public Class ManagedInstanceQueryCollection
Inherits ArmCollection
Inheritance
ManagedInstanceQueryCollection

Constructors

Name Description
ManagedInstanceQueryCollection()

Initializes a new instance of ManagedInstanceQueryCollection for mocking.

Properties

Name Description
Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

Name Description
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/queries/{queryId}.
  • Operation Id. : ManagedInstanceQueries_Get.
  • Default Api Version. : 2025-08-01-preview.
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/queries/{queryId}.
  • Operation Id. : ManagedInstanceQueries_Get.
  • Default Api Version. : 2025-08-01-preview.
Get(String, CancellationToken)

Get query by query id.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/queries/{queryId}.
  • Operation Id. : ManagedInstanceQueries_Get.
  • Default Api Version. : 2025-08-01-preview.
GetAsync(String, CancellationToken)

Get query by query id.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/queries/{queryId}.
  • Operation Id. : ManagedInstanceQueries_Get.
  • Default Api Version. : 2025-08-01-preview.
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/queries/{queryId}.
  • Operation Id. : ManagedInstanceQueries_Get.
  • Default Api Version. : 2025-08-01-preview.
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/queries/{queryId}.
  • Operation Id. : ManagedInstanceQueries_Get.
  • Default Api Version. : 2025-08-01-preview.
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Applies to