Data Warehouse User Activities - Get

Gets the user activities of a data warehouse which includes running and suspended queries

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataWarehouseUserActivities/current?api-version=2021-11-01

URI Parameters

Name In Required Type Description
databaseName
path True

string

The name of the database.

dataWarehouseUserActivityName
path True

DataWarehouseUserActivityName

The activity name of the data warehouse.

resourceGroupName
path True

string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName
path True

string

The name of the server.

subscriptionId
path True

string

The subscription ID that identifies an Azure subscription.

api-version
query True

string

The API version to use for the request.

Responses

Name Type Description
200 OK

DataWarehouseUserActivities

Successfully get the data warehouse user activities.

Other Status Codes

*** Error Responses: ***

  • 400 UpdateNotAllowedOnPausedDatabase - User attempted to perform an update on a paused database.

  • 400 FeatureDisabledOnSelectedEdition - User attempted to use a feature which is disabled on current database edition.

  • 404 SubscriptionDoesNotHaveServer - The requested server was not found

  • 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.

  • 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.

  • 404 ResourceNotFound - The specified resource was not found.

Examples

Get the list of the user activities of a data warehouse

Sample request

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/dataWarehouseUserActivities/current?api-version=2021-11-01

Sample response

{
  "properties": {
    "activeQueriesCount": 0
  },
  "id": "subscriptions/326affc3-21f4-4471-a545-e37430b70113/resourceGroups/Default-SQL-Onebox/providers/Microsoft.Sql/servers/testsvr/databases/dwdb01/dataWarehouseUserActivities/current",
  "name": "current",
  "type": "Microsoft.Sql/servers/databases/dataWarehouseUserActivities"
}

Definitions

Name Description
DataWarehouseUserActivities

User activities of a data warehouse

DataWarehouseUserActivityName

The activity name of the data warehouse.

DataWarehouseUserActivities

User activities of a data warehouse

Name Type Description
id

string

Resource ID.

name

string

Resource name.

properties.activeQueriesCount

integer

Count of running and suspended queries.

type

string

Resource type.

DataWarehouseUserActivityName

The activity name of the data warehouse.

Name Type Description
current

string