Azure Migrate Sql Sites Controller API
The SqlSitesController API from Azure Migrate — 7 operation(s) for sqlsitescontroller.
The SqlSitesController API from Azure Migrate — 7 operation(s) for sqlsitescontroller.
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-sqlsitescontroller-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 Sites 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: SqlSitesController
paths:
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/masterSites/{siteName}/sqlSites
: get:
operationId: SqlSitesController_ListByMasterSite
tags:
- SqlSitesController
description: Method to get all sites.
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}$
responses:
'200':
description: ARM operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SqlSiteListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
summary: Sql sites controller list by master site
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/masterSites/{siteName}/sqlSites/{sqlSiteName}
: get:
operationId: SqlSitesController_Get
tags:
- SqlSitesController
description: Method to get a site.
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}$
responses:
'200':
description: ARM operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SqlSite'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Sql sites controller get
x-summary-source: derived
put:
operationId: SqlSitesController_Create
tags:
- SqlSitesController
description: Method to create a SQL site.
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}$
responses:
'200':
description: ARM update operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SqlSite'
'201':
description: ARM create operation completed successfully.
headers:
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
content:
application/json:
schema:
$ref: '#/components/schemas/SqlSite'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SqlSite'
description: Resource create parameters.
required: true
summary: Sql sites controller create
x-summary-source: derived
patch:
operationId: SqlSitesController_Update
tags:
- SqlSitesController
description: Method to update an existing site.
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}$
responses:
'200':
description: ARM operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SqlSite'
'202':
description: Resource update request accepted.
headers:
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
Location:
description: The Location header contains the URL where the status of the long running operation can be checked.
schema:
type: string
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-long-running-operation-options:
final-state-via: location
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SqlSiteUpdate'
description: The resource properties to be updated.
required: true
summary: Sql sites controller update
x-summary-source: derived
delete:
operationId: SqlSitesController_Delete
tags:
- SqlSitesController
description: Deletes the SQL site.
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}$
responses:
'200':
description: Resource deleted successfully.
'204':
description: Resource deleted successfully.
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Sql sites controller delete
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/masterSites/{siteName}/sqlSites/{sqlSiteName}/errorSummary
: post:
operationId: SqlSitesController_ErrorSummary
tags:
- SqlSitesController
description: Method to get error summary from SQL site.
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}$
responses:
'200':
description: ARM operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SiteErrorSummary'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorSummaryRequest'
description: The content of the action request
required: true
summary: Sql sites controller error summary
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/masterSites/{siteName}/sqlSites/{sqlSiteName}/exportSqlServerErrors
: post:
operationId: SqlSitesController_ExportSqlServerErrors
tags:
- SqlSitesController
description: Method to generate report containing SQL servers.
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}$
responses:
'200':
description: ARM operation completed successfully.
content:
application/json:
schema:
type: object
'202':
description: Resource operation accepted.
headers:
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
Location:
description: The Location header contains the URL where the status of the long running operation can be checked.
schema:
type: string
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-long-running-operation-options:
final-state-via: location
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
type: object
description: The content of the action request
required: true
summary: Sql sites controller export sql server errors
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/masterSites/{siteName}/sqlSites/{sqlSiteName}/exportSqlServers
: post:
operationId: SqlSitesController_ExportSqlServers
tags:
- SqlSitesController
description: Method to generate report containing SQL servers.
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}$
responses:
'200':
description: ARM operation completed successfully.
content:
application/json:
schema:
type: object
'202':
description: Resource operation accepted.
headers:
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
Location:
description: The Location header contains the URL where the status of the long running operation can be checked.
schema:
type: string
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-long-running-operation-options:
final-state-via: location
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ExportSqlServersRequest'
description: The content of the action request
required: true
summary: Sql sites controller export sql servers
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/masterSites/{siteName}/sqlSites/{sqlSiteName}/refresh
: post:
operationId: SqlSitesController_Refresh
tags:
- SqlSitesController
description: Method to refresh a site.
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}$
responses:
'200':
description: ARM operation completed successfully.
content:
application/json:
schema:
type: object
'202':
description: Resource operation accepted.
headers:
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
Location:
description: The Location header contains the URL where the status of the long running operation can be checked.
schema:
type: string
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-long-running-operation-options:
final-state-via: location
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SqlSiteRefreshBody'
description: The content of the action request
required: true
summary: Sql sites controller refresh
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/masterSites/{siteName}/sqlSites/{sqlSiteName}/summary
: post:
operationId: SqlSitesController_Summary
tags:
- SqlSitesController
description: Method to get site usage/summary.
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}$
responses:
'200':
description: ARM operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SqlSiteUsage'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Sql sites controller summary
x-summary-source: derived
components:
schemas:
SiteErrorSummary:
type: object
description: Site error summary.
properties:
applianceName:
type: string
description: Appliance Name.
discoveryScopeErrorSummaries:
$ref: '#/components/schemas/DiscoveryScopeErrorSummary'
description: Gets the error message.
nextLink:
type: string
description: The link to fetch more models.
required:
- applianceName
- discoveryScopeErrorSummaries
DiscoveryScopeErrorSummary:
type: object
description: The site error summary model.
properties:
affectedResourceType:
type: string
description: Gets or sets the affected resource type.
affectedObjectsCount:
type: integer
format: int64
description: Count of affected objects.
discoveryScope:
$ref: '#/components/schemas/DiscoveryScopes'
description: Gets or sets the count of affected objects.
required:
- affectedResourceType
- affectedObjectsCount
- discoveryScope
SqlSite:
type: object
description: SQL site web model.
properties:
properties:
$ref: '#/components/schemas/SqlSiteProperties'
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.
SiteApplianceProperties:
type: object
description: Class for site appliance properties.
properties:
servicePrincipalIdentityDetails:
$ref: '#/components/schemas/SiteSpnProperties'
description: ' Gets or sets the service principal identity details used by agent for communication to the service. '
agentDetails:
$ref: '#/components/schemas/SiteAgentProperties'
description: Gets or sets the on-premises agent details.
applianceName:
type: string
description: Gets or sets the Appliance Name.
ErrorSummaryRequest:
type: object
description: ErrorSummaryRequest body
properties:
applianceName:
type: string
description: Gets or sets the Appliance Name.
SqlSitePropertiesDiscoveryScenario:
type: string
description: SqlSiteProperties DiscoveryScenario
enum:
- Migrate
- DR
x-ms-enum:
name: SqlSitePropertiesDiscoveryScenario
modelAsString: true
values:
- name: Migrate
value: Migrate
description: Migrate value.
- name: DR
value: DR
description: DR value.
DiscoveryScopes:
type: string
description: Discovery scopes
enum:
- AppsAndRoles
- DependencyMap
- StaticData
- SQLServerConnectionInfo
x-ms-enum:
name: DiscoveryScopes
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.
SqlSiteUsage:
type: object
description: SQL site usage.
properties:
serverCount:
type: integer
format: int32
description: Gets or sets the number of servers discovered in the site.
databaseCount:
type: integer
format: int32
description: Gets or sets the number of databases discovered in the site.
runAsAccountCount:
type: integer
format: int32
description: Gets or sets the number of run as accounts in the site.
SqlSiteUpdate:
type: object
description: The type used for update operations of the SqlSite.
properties:
properties:
$ref: '#/components/schemas/SqlSiteUpdateProperties'
x-ms-client-flatten: true
SqlSiteUpdateProperties:
type: object
description: The updatable properties of the SqlSite.
properties:
siteAppliancePropertiesCollection:
type: array
description: "Gets or sets the appliance details used by service to communicate\n \nto the appliance."
items:
$ref: '#/components/schemas/SiteApplianceProperties'
x-ms-identifiers: []
discoveryScenario:
$ref: '#/components/schemas/SqlSitePropertiesDiscoveryScenario'
description: Gets or sets the discovery scenario.
SqlSiteRefreshBody:
type: object
description: SQL site refresh.
properties:
applianceName:
type: string
description: Gets or sets the appliance name of the agent in the site.
ExportSqlServersRequest:
type: object
description: ExportSqlServerRequest body
properties:
applianceName:
type: string
description: Gets or sets the Appliance Name.
filter:
type: string
description: filter options.
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.
SqlSiteListResult:
type: object
description: The response of a SqlSite list operation.
properties:
value:
type: array
description: The SqlSite items on this page
items:
$ref: '#/components/schemas/SqlSite'
nextLink:
type: string
format: uri
description: The link to the next page of items
required:
- 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'
SqlSiteProperties:
type: object
description: Class for SQL site properties.
properties:
siteAppliancePropertiesCollection:
type: array
description: "Gets or sets the appliance details used by service to communicate\n \nto the appliance."
items:
$ref: '#/components/schemas/SiteApplianceProperties'
x-ms-identifiers: []
discoveryScenario:
$ref: '#/components/schemas/SqlSitePropertiesDiscoveryScenario'
description: Gets or sets the discovery scenario.
serviceEndpoint:
type: string
description: Gets the service endpoint.
readOnly: true
provisioningState:
$ref: '#/components/schemas/ProvisioningState'
description: provisioning state enum
readOnly: true
SiteAgentProperties:
type: object
description: Class for site agent properties.
properties:
id:
type: string
description: Gets the ID of the agent.
readOnly: true
version:
type: string
description: Gets the version of the agent.
readOnly: true
lastHeartBeatUtc:
type: string
format: date-time
description: Gets the last heartbeat time of the agent in UTC.
readOnly: true
keyVaultUri:
type: string
description: Gets or sets the key vault URI.
keyVaultId:
type: string
description: Gets or sets the key vault ARM Id.
SiteSpnProperties:
type: object
description: Class for site properties.
properties:
tenantId:
type: string
description: "Gets or sets the tenant Id for the service principal with which the\non-premise\n management/data plane components would communicate with\nour Azure services."
applicationId:
type: string
description: "Gets or sets the application/client Id for the service principal with which\nthe\n on-premise management/data plane components would communicate\nwith our Azure \n services."
objectId:
type: string
description: "Gets or sets the object Id of the service principal with which the on-premise\n\n management/data plane components would communicate with our Azure\nservices."
audience:
type: string
description: Gets or sets the intended audience for the service principal.
aadAuthority:
type: string
description: "Gets or sets the AAD Authority URL which was used to request the token for\nthe\n service principal."
rawCertData:
type: string
description: Gets or sets the raw certificate data for building certificate expiry flows.
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.