Azure Migrate Sql Databases Controller API
The SqlDatabasesController API from Azure Migrate — 2 operation(s) for sqldatabasescontroller.
The SqlDatabasesController API from Azure Migrate — 2 operation(s) for sqldatabasescontroller.
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-sqldatabasescontroller-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 Databases 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: SqlDatabasesController
paths:
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/masterSites/{siteName}/sqlSites/{sqlSiteName}/sqlDatabases
: get:
operationId: SqlDatabasesController_ListBySqlSite
tags:
- SqlDatabasesController
description: Gets the sql Databases.
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/SqlDatabaseV2ListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
summary: Sql databases controller list by sql site
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/masterSites/{siteName}/sqlSites/{sqlSiteName}/sqlDatabases/{sqlDatabaseName}
: get:
operationId: SqlDatabasesController_Get
tags:
- SqlDatabasesController
description: Gets the sql Database.
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: sqlDatabaseName
in: path
description: SQL Database 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/SqlDatabaseV2'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Sql databases controller get
x-summary-source: derived
components:
schemas:
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.
SqlAvailabilityReplicaOverviewReplicaState:
type: string
description: Overview Replica State
enum:
- Unknown
- Primary
- Secondary
x-ms-enum:
name: SqlAvailabilityReplicaOverviewReplicaState
modelAsString: true
values:
- name: Unknown
value: Unknown
description: Unknown value.
- name: Primary
value: Primary
description: Primary value.
- name: Secondary
value: Secondary
description: Secondary value.
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
SqlDatabaseV2:
type: object
description: Class representing the web model of SQL Database.
properties:
properties:
$ref: '#/components/schemas/SqlDatabasePropertiesV2'
description: The resource-specific properties for this resource.
x-ms-client-flatten: true
x-ms-mutability:
- read
- create
allOf:
- $ref: '#/components/schemas/ProxyResource'
FileType:
type: string
description: file type
enum:
- Rows
- Log
- Filestream
- NotSupported
- Fulltext
x-ms-enum:
name: FileType
modelAsString: true
values:
- name: Rows
value: Rows
description: Rows value.
- name: Log
value: Log
description: Log value.
- name: Filestream
value: Filestream
description: Filestream value.
- name: NotSupported
value: NotSupported
description: NotSpecified value.
- name: Fulltext
value: Fulltext
description: Fulltext value.
FileMetaData:
type: object
description: File Metadata web model.
properties:
logicalName:
type: string
description: Gets or sets the logical name of the file.
physicalFullName:
type: string
description: Gets or sets the operating-system full path of the file.
fileType:
$ref: '#/components/schemas/FileType'
description: Gets or sets the database file type.
sizeInMb:
type: number
format: float
description: Gets or sets the size of the file in MB.
isMemoryOptimizedDataOptionEnabled:
type: boolean
description: Gets or sets a value indicating whether memory optimized data option is enabled.
SqlDatabaseV2ListResult:
type: object
description: The response of a SqlDatabaseV2 list operation.
properties:
value:
type: array
description: The SqlDatabaseV2 items on this page
items:
$ref: '#/components/schemas/SqlDatabaseV2'
nextLink:
type: string
format: uri
description: The link to the next page of items
required:
- value
SqlDatabasePropertiesV2:
type: object
description: Class for SQL Server database properties.
properties:
parentReplicaOverview:
$ref: '#/components/schemas/SqlAvailabilityReplicaOverview'
description: Gets or sets the Replica overview.
isDatabaseHighlyAvailable:
type: boolean
description: Gets or sets a value indicating whether this database is a part of an HA setup.
fileMetadataList:
type: array
description: Gets the file metadata list.
items:
$ref: '#/components/schemas/FileMetaData'
readOnly: true
x-ms-identifiers: []
hostname:
type: string
description: Gets or sets the hostname.
sqlServerName:
type: string
description: Gets or sets the SQL Server Id in which the database resides.
status:
type: string
description: Gets or sets the status.
sizeMb:
type: number
format: float
description: Gets or sets the size in Mb.
databaseName:
type: string
description: Gets or sets the SQL database name.
sqlServerArmId:
type: string
description: Gets or sets the SQL Server ARM Id in which the database resides.
compatibilityLevel:
type: string
description: Gets or sets the database compatibility level.
isDeleted:
type: boolean
description: Gets or sets a value indicating whether the entity is deleted.
errors:
type: array
description: Gets the errors.
items:
$ref: '#/components/schemas/Errors'
readOnly: true
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.
provisioningState:
$ref: '#/components/schemas/ProvisioningState'
description: The status of the last operation.
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.
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.
SqlAvailabilityReplicaOverview:
type: object
description: Web model for SQL replica overview.
properties:
replicaState:
$ref: '#/components/schemas/SqlAvailabilityReplicaOverviewReplicaState'
description: Gets or sets the state of the availability replica.
availabilityReplicaId:
type: string
description: 'Gets or sets the SQL Availability Replica Id within the Availability Group this
database is a part of.'
availabilityGroupArmId:
type: string
description: 'Gets or sets the Availability Group Id in which this database participates if
any. It would be set if the database has
{Microsoft.Azure.FDS.CosmosDB.SqlDatabaseEntity.IsDatabaseHighlyAvailable} has
a value "true".'
availabilityGroupName:
type: string
description: Gets or sets the SQL Availability group name.
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.
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'
parameters:
ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
schema:
type: string
minLength: 1
SubscriptionIdParameter:
name: subscriptionId
in: path
description: The ID of the target subscription.
required: true
schema:
type: string
minLength: 1
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
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.