Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,7 @@ Liftr
Linestring
linkedservices
linkexpiryinminutes
linkworkspaces
LISTAFTERID
listbackups
listbyrg
Expand Down Expand Up @@ -2116,6 +2117,7 @@ swedensouth
switchprotection
switzerlandnorth
switzerlandwest
synapselink
Sybase
Syncer
syncfunctiontriggers
Expand Down Expand Up @@ -2458,6 +2460,7 @@ workbooktemplates
Workernode
workitemsource
workloadmonitor
workspace
workspaces
workspace's
wrapkey
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
{
"swagger": "2.0",
"info": {
"version": "2022-05-01-preview",
"title": "SqlManagementClient",
"description": "The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities."
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/linkWorkspaces": {
"get": {
"tags": [
"SynapseLinkWorkspaces"
],
"description": "Gets all synapselink workspaces for a database.",
"operationId": "SynapseLinkWorkspaces_ListByDatabase",
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"$ref": "#/parameters/DatabaseNameParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Successfully retrieved synapselink workspaces.",
"schema": {
"$ref": "#/definitions/SynapseLinkWorkspaceListResult"
}
},
"default": {
"description": "*** Error Responses: ***\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 404 SourceDatabaseNotFound - The source database does not exist."
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"List all synapselink workspaces for the given database.": {
"$ref": "./examples/SynapseLinkWorkspaceListByDatabase.json"
}
}
}
}
},
"definitions": {
"SynapseLinkWorkspace": {
"description": "Synapse link workspace resource",
"type": "object",
"allOf": [
{
"$ref": "../../../common/v1/types.json#/definitions/ProxyResource"
}
],
"properties": {
"properties": {
"$ref": "#/definitions/SynapseLinkWorkspaceProperties",
"description": "Resource properties.",
"x-ms-client-flatten": true
}
}
},
"SynapseLinkWorkspaceInfoProperties": {
"description": "Properties of a Synapse link workspaces",
"type": "object",
"properties": {
"workspaceId": {
"description": "Synapse link workspace id.",
"type": "string"
},
"linkConnectionName": {
"description": "Link connection name.",
"type": "string"
}
}
},
"SynapseLinkWorkspaceListResult": {
"description": "A list of synapselink workspaces",
"type": "object",
"properties": {
"value": {
"description": "Array of results.",
"type": "array",
"items": {
"$ref": "#/definitions/SynapseLinkWorkspace"
},
"readOnly": true
},
"nextLink": {
"description": "Link to retrieve next page of results.",
"type": "string",
"readOnly": true
}
}
},
"SynapseLinkWorkspaceProperties": {
"description": "Properties of a Synapse link workspaces",
"type": "object",
"properties": {
"workspaces": {
"description": "List of all synapselink workspaces",
"type": "array",
"items": {
"$ref": "#/definitions/SynapseLinkWorkspaceInfoProperties"
},
"x-ms-identifiers": []
}
}
}
},
"parameters": {
"DatabaseNameParameter": {
"name": "databaseName",
"in": "path",
"description": "The name of the database.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
},
"ServerNameParameter": {
"name": "serverName",
"in": "path",
"description": "The name of the server.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
}
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"description": "Azure Active Directory OAuth2 Flow",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2022-05-01-preview",
"databaseName": "dbSynapse",
"resourceGroupName": "Default-SQL-SouthEastAsia",
"serverName": "testsvr",
"subscriptionId": "00000000-1111-2222-3333-444444444444"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"workspaces": [
{
"workspaceId": "/subcriptions/00000000-1111-2222-3333-444444444444/resourcegroups/Default-SQL-SouthEastAsia/providers/Microsoft.Synapse/workspaces/workspace1",
"linkConnectionName": "buildlink-cloud1"
},
{
"workspaceId": "/subcriptions/00000000-1111-2222-3333-444444444444/resourcegroups/Default-SQL-SouthEastAsia/providers/Microsoft.Synapse/workspaces/workspace2",
"linkConnectionName": "buildlink-cloud2"
}
]
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/dbSynapse/linkWorkspaces/current",
"name": "current",
"type": "Microsoft.Sql/servers/databases/linkWorkspaces"
}
]
}
}
}
}
3 changes: 3 additions & 0 deletions specification/sql/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ input-file:
- Microsoft.Sql/preview/2022-05-01-preview/SqlVulnerabilityAssessmentScans.json
- Microsoft.Sql/preview/2022-05-01-preview/SqlVulnerabilityAssessmentsSettings.json
- Microsoft.Sql/preview/2022-05-01-preview/SubscriptionUsages.json
- Microsoft.Sql/preview/2022-05-01-preview/SynapseLinkWorkspaces.json
- Microsoft.Sql/preview/2022-05-01-preview/SyncAgents.json
- Microsoft.Sql/preview/2022-05-01-preview/SyncGroups.json
- Microsoft.Sql/preview/2022-05-01-preview/SyncMembers.json
Expand Down Expand Up @@ -561,9 +562,11 @@ input-file:
- ./Microsoft.Sql/preview/2022-02-01-preview/ManagedDatabaseAdvancedThreatProtectionSettings.json
- ./Microsoft.Sql/preview/2022-02-01-preview/ManagedInstanceAdvancedThreatProtectionSettings.json
- ./Microsoft.Sql/preview/2022-05-01-preview/ManagedDatabaseMoveOperations.json
- ./Microsoft.Sql/preview/2022-05-01-preview/SynapseLinkWorkspaces.json
- ./Microsoft.Sql/preview/2022-05-01-preview/ManagedInstanceDtcs.json



# Needed when there is more than one input file
override-info:
title: SqlManagementClient
Expand Down