Azure Migrate Sql Servers Controller API
The SqlServersController API from Azure Migrate — 2 operation(s) for sqlserverscontroller.
The SqlServersController API from Azure Migrate — 2 operation(s) for sqlserverscontroller.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/microsoft-azure-migrate:microsoft-azure-migrate-sqlserverscontroller-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Azure Migrate Discovery Service Sql Servers Controller API
version: '2023-06-06'
description: Azure OffAzure Resource Provider management API.
x-typespec-generated:
- emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
- user_impersonation
tags:
- name: SqlServersController
paths:
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/masterSites/{siteName}/sqlSites/{sqlSiteName}/sqlServers
: get:
operationId: SqlServersController_ListBySqlSite
tags:
- SqlServersController
description: Gets the sql servers.
parameters:
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/ApiVersionParameter'
- name: filter
in: query
description: filter query
required: false
schema:
type: string
- name: top
in: query
description: page size query
required: false
schema:
type: string
- name: continuationToken
in: query
description: Optional parameter for continuation token.
required: false
schema:
type: string
- name: totalRecordCount
in: query
description: Total count of machines in the given site.
required: false
schema:
type: integer
format: int32
- name: siteName
in: path
description: Site name
required: true
schema:
type: string
pattern: ^[a-zA-Z0-9-]{3,24}$
- name: sqlSiteName
in: path
description: SQL site name.
required: true
schema:
type: string
pattern: ^[a-zA-Z0-9-]{3,24}$
responses:
'200':
description: ARM operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SqlServerV2ListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
summary: Sql servers controller list by sql site
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/masterSites/{siteName}/sqlSites/{sqlSiteName}/sqlServers/{sqlServerName}
: get:
operationId: SqlServersController_Get
tags:
- SqlServersController
description: Gets the sql server.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: siteName
in: path
description: Site name
required: true
schema:
type: string
pattern: ^[a-zA-Z0-9-]{3,24}$
- name: sqlSiteName
in: path
description: SQL site name.
required: true
schema:
type: string
pattern: ^[a-zA-Z0-9-]{3,24}$
- name: sqlServerName
in: path
description: SQL server name.
required: true
schema:
type: string
pattern: ^[a-zA-Z0-9-]{3,24}$
responses:
'200':
description: ARM operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SqlServerV2'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Sql servers controller get
x-summary-source: derived
patch:
operationId: SqlServersController_Update
tags:
- SqlServersController
description: Updates the sql server tags.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: siteName
in: path
description: Site name
required: true
schema:
type: string
pattern: ^[a-zA-Z0-9-]{3,24}$
- name: sqlSiteName
in: path
description: SQL site name.
required: true
schema:
type: string
pattern: ^[a-zA-Z0-9-]{3,24}$
- name: sqlServerName
in: path
description: SQL server name.
required: true
schema:
type: string
pattern: ^[a-zA-Z0-9-]{3,24}$
responses:
'200':
description: ARM operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SqlServerV2'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SqlServerV2Update'
description: The resource properties to be updated.
required: true
summary: Sql servers controller update
x-summary-source: derived
components:
schemas:
Errors:
type: object
description: The properties of a server machine tracked resource
properties:
message:
type: string
description: Gets the error message.
readOnly: true
messageParameters:
type: object
description: Gets the message parameters.
additionalProperties:
type: string
readOnly: true
applianceName:
type: string
description: Gets the appliance name.
readOnly: true
id:
type: integer
format: int32
description: Gets the error ID.
readOnly: true
code:
type: string
description: Gets the error name.
readOnly: true
possibleCauses:
type: string
description: Gets the possible causes of error.
readOnly: true
recommendedAction:
type: string
description: Gets the recommended action to resolve error.
readOnly: true
severity:
type: string
description: Gets the error severity.
readOnly: true
summaryMessage:
type: string
description: Gets the error summary message.
readOnly: true
source:
$ref: '#/components/schemas/MicrosoftAzureFDSWebRoleHealthErrorDetailsSource'
description: Gets the error source.
readOnly: true
updatedTimeStamp:
type: string
format: date-time
description: Gets the time stamp when the error was updated.
readOnly: true
runAsAccountId:
type: string
description: Gets run as account id used while performing discovery of entity.
readOnly: true
discoveryScope:
$ref: '#/components/schemas/HealthErrorDetailsDiscoveryScope'
description: Gets discovery scope for which error is encountered.
readOnly: true
FCIInstanceState:
type: string
description: 'fci instance state '
enum:
- Unknown
- Inherited
- Initializing
- Online
- Offline
- Failed
- Pending
- OnlinePending
- OfflinePending
x-ms-enum:
name: FCIInstanceState
modelAsString: true
values:
- name: Unknown
value: Unknown
description: Unknown value.
- name: Inherited
value: Inherited
description: Inherited value.
- name: Initializing
value: Initializing
description: Initializing value.
- name: Online
value: Online
description: Online value.
- name: Offline
value: Offline
description: Offline value.
- name: Failed
value: Failed
description: Failed value.
- name: Pending
value: Pending
description: Pending value.
- name: OnlinePending
value: OnlinePending
description: OnlinePending value.
- name: OfflinePending
value: OfflinePending
description: OfflinePending value.
SqlServerV2:
type: object
description: Class representing the web model of SQL Server.
properties:
properties:
$ref: '#/components/schemas/SqlServerProperties'
description: The resource-specific properties for this resource.
x-ms-client-flatten: true
x-ms-mutability:
- read
- create
allOf:
- $ref: '#/components/schemas/ProxyResource'
ErrorResponse:
type: object
title: Error response
description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
properties:
error:
$ref: '#/components/schemas/ErrorDetail'
description: The error object.
SqlMachineOverviewFciRole:
type: string
description: 'sql fci role '
enum:
- Unknown
- NotApplicable
- ActiveNode
- PossibleOwnerNode
x-ms-enum:
name: SqlMachineOverviewFciRole
modelAsString: true
values:
- name: Unknown
value: Unknown
description: Unknown value.
- name: NotApplicable
value: NotApplicable
description: NotApplicable value.
- name: ActiveNode
value: ActiveNode
description: ActiveNode value.
- name: PossibleOwnerNode
value: PossibleOwnerNode
description: PossibleOwnerNode value.
esuYear:
type: string
description: esu year
enum:
- Unknown
- FirstYear
- SecondYear
- ThirdYear
- UpgradeYear
x-ms-enum:
name: esuYear
modelAsString: true
values:
- name: Unknown
value: Unknown
description: Unknown value.
- name: FirstYear
value: FirstYear
description: FirstYear value.
- name: SecondYear
value: SecondYear
description: SecondYear value.
- name: ThirdYear
value: ThirdYear
description: ThirdYear value.
- name: UpgradeYear
value: UpgradeYear
description: UpgradeYear value.
HealthErrorDetailsDiscoveryScope:
type: string
description: Gets discovery scope for which error is encountered.
enum:
- AppsAndRoles
- DependencyMap
- StaticData
- SQLServerConnectionInfo
- DiscoveryTargets
x-ms-enum:
name: HealthErrorDetailsDiscoveryScope
modelAsString: true
values:
- name: AppsAndRoles
value: AppsAndRoles
description: AppsAndRoles value.
- name: DependencyMap
value: DependencyMap
description: DependencyMap value.
- name: StaticData
value: StaticData
description: StaticData value.
- name: SQLServerConnectionInfo
value: SQLServerConnectionInfo
description: SQLServerConnectionInfo value.
- name: DiscoveryTargets
value: DiscoveryTargets
description: DiscoveryTargets value.
esuStatus:
type: string
description: esu Status
enum:
- Unknown
- Active
- InActive
x-ms-enum:
name: esuStatus
modelAsString: true
values:
- name: Unknown
value: Unknown
description: Unknown value.
- name: Active
value: Active
description: Active value.
- name: InActive
value: InActive
description: InActive value.
MicrosoftAzureFDSWebRoleHealthErrorDetailsSource:
type: string
description: HealthError Details Source
enum:
- RefreshFabricLayout
- RefreshFabricLayoutGuest
- RefreshFabricLayoutDependencyMap
x-ms-enum:
name: MicrosoftAzureFDSWebRoleHealthErrorDetailsSource
modelAsString: true
values:
- name: RefreshFabricLayout
value: RefreshFabricLayout
description: RefreshFabricLayout value.
- name: RefreshFabricLayoutGuest
value: RefreshFabricLayoutGuest
description: RefreshFabricLayoutGuest value.
- name: RefreshFabricLayoutDependencyMap
value: RefreshFabricLayoutDependencyMap
description: RefreshFabricLayoutDependencyMap value.
SqlServerV2Update:
type: object
description: The type used for update operations of the SqlServerV2.
properties:
properties:
$ref: '#/components/schemas/SqlServerV2UpdateProperties'
x-ms-client-flatten: true
SqlServerV2ListResult:
type: object
description: The response of a SqlServerV2 list operation.
properties:
value:
type: array
description: The SqlServerV2 items on this page
items:
$ref: '#/components/schemas/SqlServerV2'
nextLink:
type: string
format: uri
description: The link to the next page of items
required:
- value
SqlServerStatus:
type: string
description: sql server status
enum:
- Unknown
- ContinuePending
- Paused
- PausePending
- Running
- StartPending
- Stopped
- StopPending
x-ms-enum:
name: SqlServerStatus
modelAsString: true
values:
- name: Unknown
value: Unknown
description: Unknown value.
- name: ContinuePending
value: ContinuePending
description: ContinuePending value.
- name: Paused
value: Paused
description: Paused value.
- name: PausePending
value: PausePending
description: PausePending value.
- name: Running
value: Running
description: Running value.
- name: StartPending
value: StartPending
description: StartPending value.
- name: Stopped
value: Stopped
description: Stopped value.
- name: StopPending
value: StopPending
description: StopPending value.
ProductSupportStatus:
type: object
description: product support status.
properties:
currentVersion:
type: string
description: current version.
esuStatus:
$ref: '#/components/schemas/esuStatus'
description: esu status.
supportStatus:
$ref: '#/components/schemas/supportStatus'
description: support status.
supportEndDate:
type: string
format: date-time
description: support end date.
esuYear:
$ref: '#/components/schemas/esuYear'
description: esu year.
SqlServerProperties:
type: object
description: Class for SQL Server properties.
properties:
machineOverviewList:
type: array
description: Gets the Machine Overview properties of all machines on which the SQL server is deployed.
items:
$ref: '#/components/schemas/SqlMachineOverview'
readOnly: true
x-ms-identifiers: []
numberOfAgDatabases:
type: integer
format: int32
description: Gets or sets the number of databases part of availability group on this SQL instance.
sqlFciProperties:
$ref: '#/components/schemas/SqlFciProperties'
description: Gets or sets the FCI properties if the instance is an FCI instance. This would be populated if IsClustered is true.
productSupportStatus:
$ref: '#/components/schemas/ProductSupportStatus'
description: product support status.
version:
type: string
description: Gets or sets the SQL server version.
numberOfUserDatabases:
type: integer
format: int32
description: Gets or sets total number of users databases.
sumOfUserDatabasesSizeInMb:
type: number
format: float
description: Gets or sets total size of all user databases.
tempDbSizeInMb:
type: number
format: float
description: Gets or sets size of temp database.
maxServerMemoryInUseInMb:
type: number
format: float
description: Gets or sets maximum server memory in use.
visibleOnlineCoreCount:
type: integer
format: int32
description: Gets or sets the SQL server number of cores that have visible online status.
numOfLogins:
type: integer
format: int32
description: Gets or sets number of logins.
physicalCpuCount:
type: number
format: float
description: Gets or sets physical CPU count.
logicalCpuCount:
type: integer
format: int32
description: Gets or sets logical CPU count.
engineEdition:
type: string
description: Gets or sets the SQL server engine edition.
edition:
type: string
description: Gets or sets the SQL server edition.
isHighAvailabilityEnabled:
type: boolean
description: Gets or sets a value indicating whether High Availability is enabled or not.
isClustered:
type: boolean
description: Gets or sets a value indicating whether failover cluster is configured or not.
hyperthreadRatio:
type: integer
format: int32
description: Gets or sets the Hyper thread ratio.
sqlStartTime:
type: string
format: date-time
description: Gets or sets the SQL start time.
machineArmIds:
type: array
description: Gets the list of machine ARM Ids on which the SQL server is deployed.
items:
type: string
readOnly: true
runAsAccountId:
type: string
description: Gets or sets the run as account ID of the SQL server.
hydratedRunAsAccountId:
type: string
description: Gets or sets the hydrated run as account ID of the SQL server.
hostName:
type: string
description: Gets or sets hostname.
sqlServerName:
type: string
description: Gets or sets the SQL server instance name.
portNumber:
type: integer
format: int32
description: Gets or sets the Preferred Port Number.
errors:
type: array
description: Gets the errors.
items:
$ref: '#/components/schemas/Errors'
readOnly: true
tags:
type: object
description: Gets or sets tags on the resource.
additionalProperties:
$ref: '#/components/schemas/Azure.ResourceManager.Object'
isDeleted:
type: boolean
description: Gets or sets a value indicating whether the entity is deleted.
createdTimestamp:
type: string
description: Gets or sets the marking machine creation.
updatedTimestamp:
type: string
description: Gets or sets the timestamp marking last updated on the machine.
status:
$ref: '#/components/schemas/SqlServerStatus'
description: Gets or sets the powered on status.
provisioningState:
$ref: '#/components/schemas/ProvisioningState'
description: The status of the last operation.
ProvisioningState:
type: string
description: The status of the current operation.
enum:
- Created
- Updated
- Running
- Completed
- Failed
- Succeeded
- Canceled
x-ms-enum:
name: ProvisioningState
modelAsString: true
values:
- name: Created
value: Created
description: Created value.
- name: Updated
value: Updated
description: Updated value.
- name: Running
value: Running
description: Running value.
- name: Completed
value: Completed
description: Completed value.
- name: Failed
value: Failed
description: Failed value.
- name: Succeeded
value: Succeeded
description: Succeeded value.
- name: Canceled
value: Canceled
description: Canceled value.
SqlMachineOverview:
type: object
description: Gets or sets SQL machine overview data.
properties:
machineArmId:
type: string
description: Gets or sets SQL machine ARM ID.
displayName:
type: string
description: Gets or sets SQL machine display name.
fciRole:
$ref: '#/components/schemas/SqlMachineOverviewFciRole'
description: Gets or sets SQL machine FCI role.
ProxyResource:
type: object
title: Proxy Resource
description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
allOf:
- $ref: '#/components/schemas/Resource'
Azure.ResourceManager.Object:
type: object
description: object model
SqlFciProperties:
type: object
description: The class representing the properties for an FCI instance.
properties:
state:
$ref: '#/components/schemas/FCIInstanceState'
description: Gets or sets the state of the FCI instance.
networkName:
type: string
description: Gets or sets the FCI Network Name used to connect to this FCI instance.
isMultiSubnet:
type: boolean
description: 'Gets or sets a value indicating whether the FCI is hosted on possible owners
which are in multiple subnets.'
sharedDiskCount:
type: integer
format: int32
description: Gets or sets the count of Shared Disks for SQL FCI.
SqlServerV2UpdateProperties:
type: object
description: The updatable properties of the SqlServerV2.
properties:
numberOfAgDatabases:
type: integer
format: int32
description: Gets or sets the number of databases part of availability group on this SQL instance.
sqlFciProperties:
$ref: '#/components/schemas/SqlFciProperties'
description: Gets or sets the FCI properties if the instance is an FCI instance. This would be populated if IsClustered is true.
productSupportStatus:
$ref: '#/components/schemas/ProductSupportStatus'
description: product support status.
version:
type: string
description: Gets or sets the SQL server version.
numberOfUserDatabases:
type: integer
format: int32
description: Gets or sets total number of users databases.
sumOfUserDatabasesSizeInMb:
type: number
format: float
description: Gets or sets total size of all user databases.
tempDbSizeInMb:
type: number
format: float
description: Gets or sets size of temp database.
maxServerMemoryInUseInMb:
type: number
format: float
description: Gets or sets maximum server memory in use.
visibleOnlineCoreCount:
type: integer
format: int32
description: Gets or sets the SQL server number of cores that have visible online status.
numOfLogins:
type: integer
format: int32
description: Gets or sets number of logins.
physicalCpuCount:
type: number
format: float
description: Gets or sets physical CPU count.
logicalCpuCount:
type: integer
format: int32
description: Gets or sets logical CPU count.
engineEdition:
type: string
description: Gets or sets the SQL server engine edition.
edition:
type: string
description: Gets or sets the SQL server edition.
isHighAvailabilityEnabled:
type: boolean
description: Gets or sets a value indicating whether High Availability is enabled or not.
isClustered:
type: boolean
description: Gets or sets a value indicating whether failover cluster is configured or not.
hyperthreadRatio:
type: integer
format: int32
description: Gets or sets the Hyper thread ratio.
sqlStartTime:
type: string
format: date-time
description: Gets or sets the SQL start time.
runAsAccountId:
type: string
description: Gets or sets the run as account ID of the SQL server.
hydratedRunAsAccountId:
type: string
description: Gets or sets the hydrated run as account ID of the SQL server.
hostName:
type: string
description: Gets or sets hostname.
sqlServerName:
type: string
description: Gets or sets the SQL server instance name.
portNumber:
type: integer
format: int32
description: Gets or sets the Preferred Port Number.
tags:
type: object
description: Gets or sets tags on the resource.
additionalProperties:
$ref: '#/components/schemas/Azure.ResourceManager.Object'
isDeleted:
type: boolean
description: Gets or sets a value indicating whether the entity is deleted.
createdTimestamp:
type: string
description: Gets or sets the marking machine creation.
updatedTimestamp:
type: string
description: Gets or sets the timestamp marking last updated on the machine.
status:
$ref: '#/components/schemas/SqlServerStatus'
description: Gets or sets the powered on status.
provisioningState:
$ref: '#/components/schemas/ProvisioningState'
description: The status of the last operation.
supportStatus:
type: string
description: support status
enum:
- Unknown
- Mainstream
- Extended
x-ms-enum:
name: supportStatus
modelAsString: true
values:
- name: Unknown
value: Unknown
description: Unknown value.
- name: Mainstream
value: Mainstream
description: Mainstream value.
- name: Extended
value: Extended
description: Extended value.
parameters:
ResourceGroupNameParameter:
name: resourceGroupName
in: path
description: The name of the resource group. The name is case insensitive.
required: true
x-ms-parameter-location: method
schema:
type: string
maxLength: 90
minLength: 1
SubscriptionIdParameter:
name: subscriptionId
in: path
description: The ID of the target subscription.
required: true
schema:
type: string
minLength: 1
ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
schema:
type: string
minLength: 1
securitySchemes:
azure_auth:
type: oauth2
flows:
implicit:
scopes:
user_impersonation: impersonate your user account
authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
description: Azure Active Directory OAuth2 Flow.