Files

396 KiB

@azure/arm-sql client library samples for JavaScript

These sample programs show how to use the JavaScript client libraries for @azure/arm-sql in some common scenarios.

File Name Description
backupShortTermRetentionPoliciesCreateOrUpdateSample.js updates a database's short term retention policy. x-ms-original-file: 2025-01-01/CreateShortTermRetentionPolicy.json
backupShortTermRetentionPoliciesGetSample.js gets a database's short term retention policy. x-ms-original-file: 2025-01-01/GetShortTermRetentionPolicy.json
backupShortTermRetentionPoliciesListByDatabaseSample.js gets a database's short term retention policy. x-ms-original-file: 2025-01-01/ListShortTermRetentionPoliciesByDatabase.json
backupShortTermRetentionPoliciesUpdateSample.js updates a database's short term retention policy. x-ms-original-file: 2025-01-01/UpdateShortTermRetentionPolicy.json
capabilitiesListByLocationSample.js gets the subscription capabilities available for the specified location. x-ms-original-file: 2025-01-01/LocationCapabilityListByLocation.json
dataMaskingPoliciesCreateOrUpdateSample.js creates or updates a database data masking policy. x-ms-original-file: 2025-01-01/DataMaskingPolicyCreateOrUpdateMax.json
dataMaskingPoliciesGetSample.js gets the database data masking policy. x-ms-original-file: 2025-01-01/DataMaskingPolicyGet.json
dataMaskingRulesCreateOrUpdateSample.js creates or updates a database data masking rule. x-ms-original-file: 2025-01-01/DataMaskingRuleCreateOrUpdateDefaultMax.json
dataMaskingRulesListByDatabaseSample.js gets a list of database data masking rules. x-ms-original-file: 2025-01-01/DataMaskingRuleListByDatabase.json
dataWarehouseUserActivitiesOperationsGetSample.js gets the user activities of a data warehouse which includes running and suspended queries x-ms-original-file: 2025-01-01/GetDataWarehouseUserActivities.json
dataWarehouseUserActivitiesOperationsListByDatabaseSample.js list the user activities of a data warehouse which includes running and suspended queries x-ms-original-file: 2025-01-01/ListDataWarehouseUserActivities.json
databaseAdvancedThreatProtectionSettingsCreateOrUpdateSample.js creates or updates a database's Advanced Threat Protection state. x-ms-original-file: 2025-01-01/DatabaseAdvancedThreatProtectionSettingsCreateMax.json
databaseAdvancedThreatProtectionSettingsGetSample.js gets a database's Advanced Threat Protection state. x-ms-original-file: 2025-01-01/DatabaseAdvancedThreatProtectionSettingsGet.json
databaseAdvancedThreatProtectionSettingsListByDatabaseSample.js gets a list of database's Advanced Threat Protection states. x-ms-original-file: 2025-01-01/DatabaseAdvancedThreatProtectionSettingsListByDatabase.json
databaseAdvisorsGetSample.js gets a database advisor. x-ms-original-file: 2025-01-01/DatabaseAdvisorGet.json
databaseAdvisorsListByDatabaseSample.js gets a list of database advisors. x-ms-original-file: 2025-01-01/DatabaseAdvisorList.json
databaseAdvisorsUpdateSample.js updates a database advisor. x-ms-original-file: 2025-01-01/DatabaseAdvisorUpdate.json
databaseAutomaticTuningOperationsGetSample.js gets a database's automatic tuning. x-ms-original-file: 2025-01-01/DatabaseAutomaticTuningGet.json
databaseAutomaticTuningOperationsUpdateSample.js update automatic tuning properties for target database. x-ms-original-file: 2025-01-01/DatabaseAutomaticTuningUpdateMax.json
databaseBlobAuditingPoliciesCreateOrUpdateSample.js creates or updates a database's blob auditing policy. x-ms-original-file: 2025-01-01/DatabaseAzureMonitorAuditingCreateMin.json
databaseBlobAuditingPoliciesGetSample.js gets a database's blob auditing policy. x-ms-original-file: 2025-01-01/DatabaseBlobAuditingGet.json
databaseBlobAuditingPoliciesListByDatabaseSample.js lists auditing settings of a database. x-ms-original-file: 2025-01-01/DatabaseAuditingSettingsList.json
databaseColumnsGetSample.js get database column x-ms-original-file: 2025-01-01/DatabaseColumnGet.json
databaseColumnsListByDatabaseSample.js list database columns x-ms-original-file: 2025-01-01/ColumnsListByDatabaseMax.json
databaseColumnsListByTableSample.js list database columns x-ms-original-file: 2025-01-01/DatabaseColumnListByTable.json
databaseEncryptionProtectorsRevalidateSample.js revalidates an existing encryption protector for a particular database. x-ms-original-file: 2025-01-01/DatabaseEncryptionProtectorRevalidate.json
databaseEncryptionProtectorsRevertSample.js reverts an existing encryption protector for a particular database. x-ms-original-file: 2025-01-01/DatabaseEncryptionProtectorRevert.json
databaseExtensionsOperationsCreateOrUpdateSample.js perform a database extension operation, like database import, database export, or polybase import x-ms-original-file: 2025-01-01/CreateOrUpdateDatabaseExtensions.json
databaseExtensionsOperationsGetSample.js gets a database extension. This will return resource not found as it is not supported. x-ms-original-file: 2025-01-01/GetDatabaseExtensions.json
databaseExtensionsOperationsListByDatabaseSample.js list database extension. This will return an empty list as it is not supported. x-ms-original-file: 2025-01-01/ListDatabaseExtensions.json
databaseOperationsCancelSample.js cancels the asynchronous operation on the database. x-ms-original-file: 2025-01-01/CancelDatabaseOperation.json
databaseOperationsListByDatabaseSample.js gets a list of operations performed on the database. x-ms-original-file: 2025-01-01/ListDatabaseOperations.json
databaseRecommendedActionsGetSample.js gets a database recommended action. x-ms-original-file: 2025-01-01/DatabaseRecommendedActionGet.json
databaseRecommendedActionsListByDatabaseAdvisorSample.js gets list of Database Recommended Actions. x-ms-original-file: 2025-01-01/DatabaseRecommendedActionList.json
databaseRecommendedActionsUpdateSample.js updates a database recommended action. x-ms-original-file: 2025-01-01/DatabaseRecommendedActionUpdate.json
databaseSchemasGetSample.js get database schema x-ms-original-file: 2025-01-01/DatabaseSchemaGet.json
databaseSchemasListByDatabaseSample.js list database schemas x-ms-original-file: 2025-01-01/DatabaseSchemaListByDatabase.json
databaseSecurityAlertPoliciesCreateOrUpdateSample.js creates or updates a database's security alert policy. x-ms-original-file: 2025-01-01/DatabaseSecurityAlertCreateMax.json
databaseSecurityAlertPoliciesGetSample.js gets a database's security alert policy. x-ms-original-file: 2025-01-01/DatabaseSecurityAlertGet.json
databaseSecurityAlertPoliciesListByDatabaseSample.js gets a list of database's security alert policies. x-ms-original-file: 2025-01-01/DatabaseSecurityAlertListByDatabase.json
databaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateSample.js add a database's vulnerability assessment rule baseline list. x-ms-original-file: 2025-01-01/DatabaseSqlVulnerabilityAssessmentBaselineAdd.json
databaseSqlVulnerabilityAssessmentBaselinesGetSample.js gets a list of database's sql vulnerability assessment rule baselines. x-ms-original-file: 2025-01-01/DatabaseSqlVulnerabilityAssessmentBaselineGet.json
databaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentSample.js gets a list of database's sql vulnerability assessment rule baselines. x-ms-original-file: 2025-01-01/DatabaseSqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessment.json
databaseSqlVulnerabilityAssessmentExecuteScanExecuteSample.js executes a Vulnerability Assessment database scan. x-ms-original-file: 2025-01-01/DatabaseSqlVulnerabilityAssessmentScansExecute.json
databaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSample.js creates or updates a database's vulnerability assessment rule baseline. x-ms-original-file: 2025-01-01/DatabaseSqlVulnerabilityAssessmentRuleBaselineCreate.json
databaseSqlVulnerabilityAssessmentRuleBaselinesDeleteSample.js removes the database's vulnerability assessment rule baseline. x-ms-original-file: 2025-01-01/DatabaseSqlVulnerabilityAssessmentRuleBaselineDelete.json
databaseSqlVulnerabilityAssessmentRuleBaselinesGetSample.js gets a database's sql vulnerability assessment rule baseline. x-ms-original-file: 2025-01-01/DatabaseSqlVulnerabilityAssessmentRuleBaselineGet.json
databaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineSample.js gets a list of database's sql vulnerability assessment rule baselines. x-ms-original-file: 2025-01-01/DatabaseSqlVulnerabilityAssessmentRuleBaselineListByBaseline.json
databaseSqlVulnerabilityAssessmentScanResultGetSample.js gets a vulnerability assessment scan record of a database. x-ms-original-file: 2025-01-01/DatabaseSqlVulnerabilityAssessmentScansResults.json
databaseSqlVulnerabilityAssessmentScanResultListByScanSample.js gets a vulnerability assessment scan record of a database. x-ms-original-file: 2025-01-01/DatabaseSqlVulnerabilityAssessmentListScansResults.json
databaseSqlVulnerabilityAssessmentScansGetSample.js get a database vulnerability assessment scan result. x-ms-original-file: 2025-01-01/DatabaseSqlVulnerabilityAssessmentScan.json
databaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsSample.js lists the vulnerability assessment scans of a database. x-ms-original-file: 2025-01-01/DatabaseSqlVulnerabilityAssessmentScanRecordsListByDatabase.json
databaseSqlVulnerabilityAssessmentsSettingsGetSample.js gets SQL Vulnerability Assessment policy for database. x-ms-original-file: 2025-01-01/DatabaseSqlVulnerabilityAssessmentGet.json
databaseSqlVulnerabilityAssessmentsSettingsListByDatabaseSample.js lists SQL Vulnerability Assessment policies associated with a database. x-ms-original-file: 2025-01-01/DatabaseSqlVulnerabilityAssessmentListByDatabase.json
databaseTablesGetSample.js get database table x-ms-original-file: 2025-01-01/DatabaseTableGet.json
databaseTablesListBySchemaSample.js list database tables x-ms-original-file: 2025-01-01/DatabaseTableListBySchema.json
databaseUsagesListByDatabaseSample.js gets database usages. x-ms-original-file: 2025-01-01/GetDatabaseUsages.json
databaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSample.js creates or updates a database's vulnerability assessment rule baseline. x-ms-original-file: 2025-01-01/DatabaseVulnerabilityAssessmentRuleBaselineCreate.json
databaseVulnerabilityAssessmentRuleBaselinesDeleteSample.js removes the database's vulnerability assessment rule baseline. x-ms-original-file: 2025-01-01/DatabaseVulnerabilityAssessmentRuleBaselineDelete.json
databaseVulnerabilityAssessmentRuleBaselinesGetSample.js gets a database's vulnerability assessment rule baseline. x-ms-original-file: 2025-01-01/DatabaseVulnerabilityAssessmentRuleBaselineGet.json
databaseVulnerabilityAssessmentScansExportSample.js convert an existing scan result to a human readable format. If already exists nothing happens x-ms-original-file: 2025-01-01/DatabaseVulnerabilityAssessmentScanExport.json
databaseVulnerabilityAssessmentScansGetSample.js gets a vulnerability assessment scan record of a database. x-ms-original-file: 2025-01-01/DatabaseVulnerabilityAssessmentScanRecordsGet.json
databaseVulnerabilityAssessmentScansInitiateScanSample.js executes a Vulnerability Assessment database scan. x-ms-original-file: 2025-01-01/DatabaseVulnerabilityAssessmentScansExecute.json
databaseVulnerabilityAssessmentScansListByDatabaseSample.js lists the vulnerability assessment scans of a database. x-ms-original-file: 2025-01-01/DatabaseVulnerabilityAssessmentScanRecordsListByDatabase.json
databaseVulnerabilityAssessmentsCreateOrUpdateSample.js creates or updates the database's vulnerability assessment. x-ms-original-file: 2025-01-01/DatabaseVulnerabilityAssessmentCreateContainerSasKeyMin.json
databaseVulnerabilityAssessmentsDeleteSample.js removes the database's vulnerability assessment. x-ms-original-file: 2025-01-01/DatabaseVulnerabilityAssessmentDelete.json
databaseVulnerabilityAssessmentsGetSample.js gets the database's vulnerability assessment. x-ms-original-file: 2025-01-01/DatabaseVulnerabilityAssessmentGet.json
databaseVulnerabilityAssessmentsListByDatabaseSample.js lists the vulnerability assessment policies associated with a database. x-ms-original-file: 2025-01-01/DatabaseVulnerabilityAssessmentListByDatabase.json
databasesCreateOrUpdateSample.js creates a new database or updates an existing database. x-ms-original-file: 2025-01-01/CreateDatabaseConfiguredBackupStorageRedundancy.json
databasesDeleteSample.js deletes the database. x-ms-original-file: 2025-01-01/DeleteDatabase.json
databasesExportSample.js exports a database. x-ms-original-file: 2025-01-01/ExportDatabase.json
databasesFailoverSample.js failovers a database. x-ms-original-file: 2025-01-01/FailoverDatabase.json
databasesGetSample.js gets a database. x-ms-original-file: 2025-01-01/GetDatabaseWithAvailabilityZone.json
databasesImportSample.js imports a bacpac into a new database. x-ms-original-file: 2025-01-01/ImportDatabase.json
databasesListByElasticPoolSample.js gets a list of databases in an elastic pool. x-ms-original-file: 2025-01-01/ListDatabasesByElasticPool.json
databasesListByServerSample.js gets a list of databases. x-ms-original-file: 2025-01-01/ListVCoreDatabasesByServer.json
databasesListInaccessibleByServerSample.js gets a list of inaccessible databases in a logical server x-ms-original-file: 2025-01-01/ListVCoreInaccessibleDatabasesByServer.json
databasesPauseSample.js pauses a database. x-ms-original-file: 2025-01-01/PauseDatabase.json
databasesRenameSample.js renames a database. x-ms-original-file: 2025-01-01/RenameDatabase.json
databasesResumeSample.js resumes a database. x-ms-original-file: 2025-01-01/ResumeDatabase.json
databasesUpdateSample.js updates an existing database. x-ms-original-file: 2025-01-01/PatchDatabaseDefaultEnclave.json
databasesUpgradeDataWarehouseSample.js upgrades a data warehouse. x-ms-original-file: 2025-01-01/UpgradeDataWarehouse.json
deletedServersGetSample.js gets a deleted server. x-ms-original-file: 2025-01-01/DeletedServerGet.json
deletedServersListByLocationSample.js gets a list of deleted servers for a location. x-ms-original-file: 2025-01-01/DeletedServerList.json
deletedServersListSample.js gets a list of all deleted servers in a subscription. x-ms-original-file: 2025-01-01/DeletedServerListBySubscription.json
deletedServersRecoverSample.js recovers a deleted server. x-ms-original-file: 2025-01-01/DeletedServerRecover.json
distributedAvailabilityGroupsCreateOrUpdateSample.js creates a distributed availability group between Sql On-Prem and Sql Managed Instance. x-ms-original-file: 2025-01-01/DistributedAvailabilityGroupsCreateMax.json
distributedAvailabilityGroupsDeleteSample.js drops a distributed availability group between Sql On-Prem and Sql Managed Instance. x-ms-original-file: 2025-01-01/DistributedAvailabilityGroupsDelete.json
distributedAvailabilityGroupsFailoverSample.js performs requested failover type in this distributed availability group. x-ms-original-file: 2025-01-01/DistributedAvailabilityGroupsFailover.json
distributedAvailabilityGroupsGetSample.js gets a distributed availability group info. x-ms-original-file: 2025-01-01/DistributedAvailabilityGroupsGet.json
distributedAvailabilityGroupsListByInstanceSample.js gets a list of a distributed availability groups in instance. x-ms-original-file: 2025-01-01/DistributedAvailabilityGroupsListByInstance.json
distributedAvailabilityGroupsSetRoleSample.js sets the role for managed instance in a distributed availability group. x-ms-original-file: 2025-01-01/DistributedAvailabilityGroupsSetRole.json
distributedAvailabilityGroupsUpdateSample.js updates a distributed availability group replication mode. x-ms-original-file: 2025-01-01/DistributedAvailabilityGroupsUpdate.json
elasticPoolOperationsCancelSample.js cancels the asynchronous operation on the elastic pool. x-ms-original-file: 2025-01-01/CancelElasticPoolOperation.json
elasticPoolOperationsListByElasticPoolSample.js gets a list of operations performed on the elastic pool. x-ms-original-file: 2025-01-01/ListElasticPoolOperations.json
elasticPoolsCreateOrUpdateSample.js creates or updates an elastic pool. x-ms-original-file: 2025-01-01/CreateElasticPoolWithAvailabilityZone.json
elasticPoolsDeleteSample.js deletes an elastic pool. x-ms-original-file: 2025-01-01/ElasticPoolDelete.json
elasticPoolsFailoverSample.js failovers an elastic pool. x-ms-original-file: 2025-01-01/FailoverElasticPool.json
elasticPoolsGetSample.js gets an elastic pool. x-ms-original-file: 2025-01-01/ElasticPoolGet.json
elasticPoolsListByServerSample.js gets all elastic pools in a server. x-ms-original-file: 2025-01-01/ElasticPoolListByServer.json
elasticPoolsUpdateSample.js updates an elastic pool. x-ms-original-file: 2025-01-01/ElasticPoolUpdateAssignMaintenanceConfiguration.json
encryptionProtectorsCreateOrUpdateSample.js updates an existing encryption protector. x-ms-original-file: 2025-01-01/EncryptionProtectorCreateOrUpdateKeyVault.json
encryptionProtectorsGetSample.js gets a server encryption protector. x-ms-original-file: 2025-01-01/EncryptionProtectorGet.json
encryptionProtectorsListByServerSample.js gets a list of server encryption protectors x-ms-original-file: 2025-01-01/EncryptionProtectorList.json
encryptionProtectorsRevalidateSample.js revalidates an existing encryption protector. x-ms-original-file: 2025-01-01/EncryptionProtectorRevalidate.json
endpointCertificatesGetSample.js gets a certificate used on the endpoint with the given id. x-ms-original-file: 2025-01-01/EndpointCertificatesGet.json
endpointCertificatesListByInstanceSample.js list certificates used on endpoints on the target instance. x-ms-original-file: 2025-01-01/EndpointCertificatesListByInstance.json
extendedDatabaseBlobAuditingPoliciesCreateOrUpdateSample.js creates or updates an extended database's blob auditing policy. x-ms-original-file: 2025-01-01/ExtendedDatabaseAzureMonitorAuditingCreateMin.json
extendedDatabaseBlobAuditingPoliciesGetSample.js gets an extended database's blob auditing policy. x-ms-original-file: 2025-01-01/ExtendedDatabaseBlobAuditingGet.json
extendedDatabaseBlobAuditingPoliciesListByDatabaseSample.js lists extended auditing settings of a database. x-ms-original-file: 2025-01-01/DatabaseExtendedAuditingSettingsList.json
extendedServerBlobAuditingPoliciesCreateOrUpdateSample.js creates or updates an extended server's blob auditing policy. x-ms-original-file: 2025-01-01/ExtendedServerBlobAuditingCreateMax.json
extendedServerBlobAuditingPoliciesGetSample.js gets an extended server's blob auditing policy. x-ms-original-file: 2025-01-01/ExtendedServerBlobAuditingGet.json
extendedServerBlobAuditingPoliciesListByServerSample.js lists extended auditing settings of a server. x-ms-original-file: 2025-01-01/ServerExtendedAuditingSettingsList.json
failoverGroupsCreateOrUpdateSample.js creates or updates a failover group. x-ms-original-file: 2025-01-01/FailoverGroupCreateOrUpdate.json
failoverGroupsDeleteSample.js deletes a failover group. x-ms-original-file: 2025-01-01/FailoverGroupDelete.json
failoverGroupsFailoverSample.js fails over from the current primary server to this server. x-ms-original-file: 2025-01-01/FailoverGroupFailover.json
failoverGroupsForceFailoverAllowDataLossSample.js fails over from the current primary server to this server. This operation might result in data loss. x-ms-original-file: 2025-01-01/FailoverGroupForceFailoverAllowDataLoss.json
failoverGroupsGetSample.js gets a failover group. x-ms-original-file: 2025-01-01/FailoverGroupGet.json
failoverGroupsListByServerSample.js lists the failover groups in a server. x-ms-original-file: 2025-01-01/FailoverGroupList.json
failoverGroupsTryPlannedBeforeForcedFailoverSample.js fails over from the current primary server to this server. This operation tries planned before forced failover but might still result in data loss. x-ms-original-file: 2025-01-01/FailoverGroupTryPlannedBeforeForcedFailover.json
failoverGroupsUpdateSample.js updates a failover group. x-ms-original-file: 2025-01-01/FailoverGroupUpdate.json
firewallRulesCreateOrUpdateSample.js creates or updates a firewall rule. x-ms-original-file: 2025-01-01/FirewallRuleCreate.json
firewallRulesDeleteSample.js deletes a firewall rule. x-ms-original-file: 2025-01-01/FirewallRuleDelete.json
firewallRulesGetSample.js gets a firewall rule. x-ms-original-file: 2025-01-01/FirewallRuleGet.json
firewallRulesListByServerSample.js gets a list of firewall rules. x-ms-original-file: 2025-01-01/FirewallRuleList.json
firewallRulesReplaceSample.js replaces all firewall rules on the server. x-ms-original-file: 2025-01-01/FirewallRuleReplace.json
geoBackupPoliciesCreateOrUpdateSample.js create or update a database default Geo backup policy. x-ms-original-file: 2025-01-01/GeoBackupPoliciesCreateOrUpdate.json
geoBackupPoliciesGetSample.js gets a Geo backup policy for the given database resource. x-ms-original-file: 2025-01-01/GeoBackupPoliciesGet.json
geoBackupPoliciesListSample.js gets a list of Geo backup policies for the given database resource. x-ms-original-file: 2025-01-01/GeoBackupPoliciesList.json
iPv6FirewallRulesCreateOrUpdateSample.js creates or updates an IPv6 firewall rule. x-ms-original-file: 2025-01-01/IPv6FirewallRuleCreate.json
iPv6FirewallRulesDeleteSample.js deletes an IPv6 firewall rule. x-ms-original-file: 2025-01-01/IPv6FirewallRuleDelete.json
iPv6FirewallRulesGetSample.js gets an IPv6 firewall rule. x-ms-original-file: 2025-01-01/IPv6FirewallRuleGet.json
iPv6FirewallRulesListByServerSample.js gets a list of IPv6 firewall rules. x-ms-original-file: 2025-01-01/IPv6FirewallRuleList.json
instanceFailoverGroupsCreateOrUpdateSample.js creates or updates a failover group. x-ms-original-file: 2025-01-01/InstanceFailoverGroupCreateOrUpdate.json
instanceFailoverGroupsDeleteSample.js deletes a failover group. x-ms-original-file: 2025-01-01/InstanceFailoverGroupDelete.json
instanceFailoverGroupsFailoverSample.js fails over from the current primary managed instance to this managed instance. x-ms-original-file: 2025-01-01/InstanceFailoverGroupFailover.json
instanceFailoverGroupsForceFailoverAllowDataLossSample.js fails over from the current primary managed instance to this managed instance. This operation might result in data loss. x-ms-original-file: 2025-01-01/InstanceFailoverGroupForceFailoverAllowDataLoss.json
instanceFailoverGroupsGetSample.js gets a failover group. x-ms-original-file: 2025-01-01/InstanceFailoverGroupGet.json
instanceFailoverGroupsListByLocationSample.js lists the failover groups in a location. x-ms-original-file: 2025-01-01/InstanceFailoverGroupList.json
instancePoolOperationsGetSample.js gets a management operation on a instance pool. x-ms-original-file: 2025-01-01/GetInstancePoolOperation.json
instancePoolOperationsListByInstancePoolSample.js gets a list of operations performed on the instance pool. x-ms-original-file: 2025-01-01/ListInstancePoolOperations.json
instancePoolsCreateOrUpdateSample.js creates or updates an instance pool. x-ms-original-file: 2025-01-01/CreateOrUpdateInstancePoolMax.json
instancePoolsDeleteSample.js deletes an instance pool x-ms-original-file: 2025-01-01/DeleteInstancePool.json
instancePoolsGetSample.js gets an instance pool. x-ms-original-file: 2025-01-01/GetInstancePool.json
instancePoolsListByResourceGroupSample.js gets a list of instance pools in the resource group x-ms-original-file: 2025-01-01/ListInstancePoolsByResourceGroup.json
instancePoolsListSample.js gets a list of all instance pools in the subscription. x-ms-original-file: 2025-01-01/ListInstancePoolsBySubscriptionId.json
instancePoolsUpdateSample.js updates an instance pool. x-ms-original-file: 2025-01-01/PatchInstancePool.json
jobAgentsCreateOrUpdateSample.js creates or updates a job agent. x-ms-original-file: 2025-01-01/CreateOrUpdateJobAgent.json
jobAgentsDeleteSample.js deletes a job agent. x-ms-original-file: 2025-01-01/DeleteJobAgent.json
jobAgentsGetSample.js gets a job agent. x-ms-original-file: 2025-01-01/GetJobAgent.json
jobAgentsListByServerSample.js gets a list of job agents in a server. x-ms-original-file: 2025-01-01/ListJobAgentsByServer.json
jobAgentsUpdateSample.js updates a job agent. x-ms-original-file: 2025-01-01/UpdateJobAgent.json
jobCredentialsCreateOrUpdateSample.js creates or updates a job credential. x-ms-original-file: 2025-01-01/CreateOrUpdateJobCredential.json
jobCredentialsDeleteSample.js deletes a job credential. x-ms-original-file: 2025-01-01/DeleteJobCredential.json
jobCredentialsGetSample.js gets a jobs credential. x-ms-original-file: 2025-01-01/GetJobCredential.json
jobCredentialsListByAgentSample.js gets a list of jobs credentials. x-ms-original-file: 2025-01-01/ListJobCredentialsByAgent.json
jobExecutionsCancelSample.js requests cancellation of a job execution. x-ms-original-file: 2025-01-01/CancelJobExecution.json
jobExecutionsCreateOrUpdateSample.js creates or updates a job execution. x-ms-original-file: 2025-01-01/CreateOrUpdateJobExecution.json
jobExecutionsCreateSample.js starts an elastic job execution. x-ms-original-file: 2025-01-01/CreateJobExecution.json
jobExecutionsGetSample.js gets a job execution. x-ms-original-file: 2025-01-01/GetJobExecution.json
jobExecutionsListByAgentSample.js lists all executions in a job agent. x-ms-original-file: 2025-01-01/ListJobExecutionsByAgent.json
jobExecutionsListByJobSample.js lists a job's executions. x-ms-original-file: 2025-01-01/ListJobExecutionsByJob.json
jobPrivateEndpointsCreateOrUpdateSample.js creates or updates a private endpoint. x-ms-original-file: 2025-01-01/CreateOrUpdateJobPrivateEndpoint.json
jobPrivateEndpointsDeleteSample.js deletes a private endpoint. x-ms-original-file: 2025-01-01/DeleteJobPrivateEndpoint.json
jobPrivateEndpointsGetSample.js gets a private endpoint. x-ms-original-file: 2025-01-01/GetJobPrivateEndpoint.json
jobPrivateEndpointsListByAgentSample.js gets a list of job agent private endpoints. x-ms-original-file: 2025-01-01/ListJobPrivateEndpointsByAgent.json
jobStepExecutionsGetSample.js gets a step execution of a job execution. x-ms-original-file: 2025-01-01/GetJobExecutionStep.json
jobStepExecutionsListByJobExecutionSample.js lists the step executions of a job execution. x-ms-original-file: 2025-01-01/ListJobExecutionSteps.json
jobStepsCreateOrUpdateSample.js creates or updates a job step. This will implicitly create a new job version. x-ms-original-file: 2025-01-01/CreateOrUpdateJobStepMax.json
jobStepsDeleteSample.js deletes a job step. This will implicitly create a new job version. x-ms-original-file: 2025-01-01/DeleteJobStep.json
jobStepsGetByVersionSample.js gets the specified version of a job step. x-ms-original-file: 2025-01-01/GetJobStepByVersion.json
jobStepsGetSample.js gets a job step in a job's current version. x-ms-original-file: 2025-01-01/GetJobStepByJob.json
jobStepsListByJobSample.js gets all job steps for a job's current version. x-ms-original-file: 2025-01-01/ListJobStepsByJob.json
jobStepsListByVersionSample.js gets all job steps in the specified job version. x-ms-original-file: 2025-01-01/ListJobStepsByVersion.json
jobTargetExecutionsGetSample.js gets a target execution. x-ms-original-file: 2025-01-01/GetJobExecutionTarget.json
jobTargetExecutionsListByJobExecutionSample.js lists target executions for all steps of a job execution. x-ms-original-file: 2025-01-01/ListJobExecutionTargetsByExecution.json
jobTargetExecutionsListByStepSample.js lists the target executions of a job step execution. x-ms-original-file: 2025-01-01/ListJobExecutionTargetsByStep.json
jobTargetGroupsCreateOrUpdateSample.js creates or updates a target group. x-ms-original-file: 2025-01-01/CreateOrUpdateJobTargetGroupMax.json
jobTargetGroupsDeleteSample.js deletes a target group. x-ms-original-file: 2025-01-01/DeleteJobTargetGroup.json
jobTargetGroupsGetSample.js gets a target group. x-ms-original-file: 2025-01-01/GetJobTargetGroup.json
jobTargetGroupsListByAgentSample.js gets all target groups in an agent. x-ms-original-file: 2025-01-01/ListJobTargetGroups.json
jobVersionsGetSample.js gets a job version. x-ms-original-file: 2025-01-01/GetJobVersion.json
jobVersionsListByJobSample.js gets all versions of a job. x-ms-original-file: 2025-01-01/ListJobVersions.json
jobsCreateOrUpdateSample.js creates or updates a job. x-ms-original-file: 2025-01-01/CreateOrUpdateJobMax.json
jobsDeleteSample.js deletes a job. x-ms-original-file: 2025-01-01/DeleteJob.json
jobsGetSample.js gets a job. x-ms-original-file: 2025-01-01/GetJob.json
jobsListByAgentSample.js gets a list of jobs. x-ms-original-file: 2025-01-01/ListJobsByAgent.json
ledgerDigestUploadsOperationsCreateOrUpdateSample.js enables upload ledger digests to an Azure Storage account or an Azure Confidential Ledger instance. x-ms-original-file: 2025-01-01/LedgerDigestUploadsEnable.json
ledgerDigestUploadsOperationsDisableSample.js disables uploading ledger digests to an Azure Storage account or an Azure Confidential Ledger instance. x-ms-original-file: 2025-01-01/LedgerDigestUploadsDisable.json
ledgerDigestUploadsOperationsGetSample.js gets the current ledger digest upload configuration for a database. x-ms-original-file: 2025-01-01/LedgerDigestUploadsGet.json
ledgerDigestUploadsOperationsListByDatabaseSample.js gets all ledger digest upload settings on a database. x-ms-original-file: 2025-01-01/LedgerDigestUploadsList.json
longTermRetentionBackupsChangeAccessTierByResourceGroupSample.js change a long term retention backup access tier. x-ms-original-file: 2025-01-01/ResourceGroupBasedChangeLongTermRetentionBackupAccessTier.json
longTermRetentionBackupsChangeAccessTierSample.js change a long term retention backup access tier. x-ms-original-file: 2025-01-01/ChangeLongTermRetentionBackupAccessTier.json
longTermRetentionBackupsCopyByResourceGroupSample.js copy an existing long term retention backup to a different server. x-ms-original-file: 2025-01-01/ResourceGroupBasedLongTermRetentionBackupCopy.json
longTermRetentionBackupsCopySample.js copy an existing long term retention backup. x-ms-original-file: 2025-01-01/LongTermRetentionBackupCopy.json
longTermRetentionBackupsDeleteByResourceGroupSample.js deletes a long term retention backup. x-ms-original-file: 2025-01-01/ResourceGroupBasedLongTermRetentionBackupDelete.json
longTermRetentionBackupsDeleteSample.js deletes a long term retention backup. x-ms-original-file: 2025-01-01/LongTermRetentionBackupDelete.json
longTermRetentionBackupsGetByResourceGroupSample.js gets a long term retention backup. x-ms-original-file: 2025-01-01/ResourceGroupBasedLongTermRetentionBackupGet.json
longTermRetentionBackupsGetSample.js gets a long term retention backup. x-ms-original-file: 2025-01-01/LongTermRetentionBackupGet.json
longTermRetentionBackupsListByDatabaseSample.js lists all long term retention backups for a database. x-ms-original-file: 2025-01-01/LongTermRetentionBackupListByDatabase.json
longTermRetentionBackupsListByLocationSample.js lists the long term retention backups for a given location. x-ms-original-file: 2025-01-01/LongTermRetentionBackupListByLocation.json
longTermRetentionBackupsListByResourceGroupDatabaseSample.js lists all long term retention backups for a database based on a particular resource group. x-ms-original-file: 2025-01-01/ResourceGroupBasedLongTermRetentionBackupListByDatabase.json
longTermRetentionBackupsListByResourceGroupLocationSample.js lists the long term retention backups for a given location based on resource group. x-ms-original-file: 2025-01-01/ResourceGroupBasedLongTermRetentionBackupListByLocation.json
longTermRetentionBackupsListByResourceGroupServerSample.js lists the long term retention backups for a given server based on resource groups. x-ms-original-file: 2025-01-01/ResourceGroupBasedLongTermRetentionBackupListByServer.json
longTermRetentionBackupsListByServerSample.js lists the long term retention backups for a given server. x-ms-original-file: 2025-01-01/LongTermRetentionBackupListByServer.json
longTermRetentionBackupsLockTimeBasedImmutabilityByResourceGroupSample.js lock time based immutability of an existing long term retention backup. x-ms-original-file: 2025-01-01/ResourceGroupBasedLockTimeBasedImmutabilityLongTermRetentionBackup.json
longTermRetentionBackupsLockTimeBasedImmutabilitySample.js lock time based immutability of an existing long term retention backup. x-ms-original-file: 2025-01-01/LockTimeBasedImmutabilityLongTermRetentionBackup.json
longTermRetentionBackupsRemoveLegalHoldImmutabilityByResourceGroupSample.js remove legal hold immutability of an existing long term retention backup. x-ms-original-file: 2025-01-01/ResourceGroupBasedRemoveLegalHoldImmutabilityLongTermRetentionBackup.json
longTermRetentionBackupsRemoveLegalHoldImmutabilitySample.js remove legal hold immutability of an existing long term retention backup. x-ms-original-file: 2025-01-01/RemoveLegalHoldImmutabilityLongTermRetentionBackup.json
longTermRetentionBackupsRemoveTimeBasedImmutabilityByResourceGroupSample.js remove time based immutability of an existing long term retention backup. x-ms-original-file: 2025-01-01/ResourceGroupBasedRemoveTimeBasedImmutabilityLongTermRetentionBackup.json
longTermRetentionBackupsRemoveTimeBasedImmutabilitySample.js remove time based immutability of an existing long term retention backup. x-ms-original-file: 2025-01-01/RemoveTimeBasedImmutabilityLongTermRetentionBackup.json
longTermRetentionBackupsSetLegalHoldImmutabilityByResourceGroupSample.js set legal hold immutability of an existing long term retention backup. x-ms-original-file: 2025-01-01/ResourceGroupBasedSetLegalHoldImmutabilityLongTermRetentionBackup.json
longTermRetentionBackupsSetLegalHoldImmutabilitySample.js set legal hold immutability of an existing long term retention backup. x-ms-original-file: 2025-01-01/SetLegalHoldImmutabilityLongTermRetentionBackup.json
longTermRetentionBackupsUpdateByResourceGroupSample.js updates an existing long term retention backup. x-ms-original-file: 2025-01-01/ResourceGroupBasedLongTermRetentionBackupUpdate.json
longTermRetentionBackupsUpdateSample.js updates an existing long term retention backup. x-ms-original-file: 2025-01-01/LongTermRetentionBackupUpdate.json
longTermRetentionManagedInstanceBackupsDeleteByResourceGroupSample.js deletes a long term retention backup. x-ms-original-file: 2025-01-01/ResourceGroupBasedManagedInstanceLongTermRetentionBackupDelete.json
longTermRetentionManagedInstanceBackupsDeleteSample.js deletes a long term retention backup. x-ms-original-file: 2025-01-01/ManagedInstanceLongTermRetentionBackupDelete.json
longTermRetentionManagedInstanceBackupsGetByResourceGroupSample.js gets a long term retention backup for a managed database. x-ms-original-file: 2025-01-01/ResourceGroupBasedManagedInstanceLongTermRetentionBackupGet.json
longTermRetentionManagedInstanceBackupsGetSample.js gets a long term retention backup for a managed database. x-ms-original-file: 2025-01-01/ManagedInstanceLongTermRetentionBackupGet.json
longTermRetentionManagedInstanceBackupsListByDatabaseSample.js lists all long term retention backups for a managed database. x-ms-original-file: 2025-01-01/ManagedInstanceLongTermRetentionBackupListByDatabase.json
longTermRetentionManagedInstanceBackupsListByInstanceSample.js lists the long term retention backups for a given managed instance. x-ms-original-file: 2025-01-01/ManagedInstanceLongTermRetentionBackupListByInstance.json
longTermRetentionManagedInstanceBackupsListByLocationSample.js lists the long term retention backups for managed databases in a given location. x-ms-original-file: 2025-01-01/ManagedInstanceLongTermRetentionBackupListByLocation.json
longTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseSample.js lists all long term retention backups for a managed database. x-ms-original-file: 2025-01-01/ResourceGroupBasedManagedInstanceLongTermRetentionBackupListByDatabase.json
longTermRetentionManagedInstanceBackupsListByResourceGroupInstanceSample.js lists the long term retention backups for a given managed instance. x-ms-original-file: 2025-01-01/ResourceGroupBasedManagedInstanceLongTermRetentionBackupListByInstance.json
longTermRetentionManagedInstanceBackupsListByResourceGroupLocationSample.js lists the long term retention backups for managed databases in a given location. x-ms-original-file: 2025-01-01/ResourceGroupBasedManagedInstanceLongTermRetentionBackupListByLocation.json
longTermRetentionPoliciesCreateOrUpdateSample.js set or update a database's long term retention policy. x-ms-original-file: 2025-01-01/LongTermRetentionPolicyCreateOrUpdate.json
longTermRetentionPoliciesGetSample.js gets a database's long term retention policy. x-ms-original-file: 2025-01-01/LongTermRetentionPolicyGet.json
longTermRetentionPoliciesListByDatabaseSample.js gets a database's long term retention policy. x-ms-original-file: 2025-01-01/LongTermRetentionPolicyListByDatabase.json
maintenanceWindowOptionsOperationsGetSample.js gets a list of available maintenance windows. x-ms-original-file: 2025-01-01/GetMaintenanceWindowOptions.json
maintenanceWindowsOperationsCreateOrUpdateSample.js sets maintenance windows settings for a database. x-ms-original-file: 2025-01-01/CreateOrUpdateMaintenanceWindows.json
maintenanceWindowsOperationsGetSample.js gets maintenance windows settings for a database. x-ms-original-file: 2025-01-01/GetMaintenanceWindows.json
managedBackupShortTermRetentionPoliciesCreateOrUpdateSample.js updates a managed database's short term retention policy. x-ms-original-file: 2025-01-01/CreateManagedShortTermRetentionPolicy.json
managedBackupShortTermRetentionPoliciesGetSample.js gets a managed database's short term retention policy. x-ms-original-file: 2025-01-01/GetManagedShortTermRetentionPolicy.json
managedBackupShortTermRetentionPoliciesListByDatabaseSample.js gets a managed database's short term retention policy list. x-ms-original-file: 2025-01-01/GetListManagedShortTermRetentionPolicy.json
managedBackupShortTermRetentionPoliciesUpdateSample.js updates a managed database's short term retention policy. x-ms-original-file: 2025-01-01/UpdateManagedShortTermRetentionPolicy.json
managedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateSample.js creates or updates a managed database's Advanced Threat Protection state. x-ms-original-file: 2025-01-01/ManagedDatabaseAdvancedThreatProtectionSettingsCreateMax.json
managedDatabaseAdvancedThreatProtectionSettingsGetSample.js gets a managed database's Advanced Threat Protection state. x-ms-original-file: 2025-01-01/ManagedDatabaseAdvancedThreatProtectionSettingsGet.json
managedDatabaseAdvancedThreatProtectionSettingsListByDatabaseSample.js gets a list of managed database's Advanced Threat Protection states. x-ms-original-file: 2025-01-01/ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabase.json
managedDatabaseColumnsGetSample.js get managed database column x-ms-original-file: 2025-01-01/ManagedDatabaseColumnGet.json
managedDatabaseColumnsListByDatabaseSample.js list managed database columns x-ms-original-file: 2025-01-01/ManagedColumnsListByDatabaseMax.json
managedDatabaseColumnsListByTableSample.js list managed database columns x-ms-original-file: 2025-01-01/ManagedDatabaseColumnListByTable.json
managedDatabaseMoveOperationsGetSample.js gets a managed database move operation. x-ms-original-file: 2025-01-01/ManagedDatabaseMoveOperationResultGet.json
managedDatabaseMoveOperationsListByLocationSample.js lists managed database move operations. x-ms-original-file: 2025-01-01/ManagedDatabaseMoveOperationResultList.json
managedDatabaseQueriesGetSample.js get query by query id. x-ms-original-file: 2025-01-01/ManagedInstanceQueryGet.json
managedDatabaseQueriesListByQuerySample.js get query execution statistics by query id. x-ms-original-file: 2025-01-01/ManagedInstanceQueryStatisticsList.json
managedDatabaseRecommendedSensitivityLabelsUpdateSample.js update recommended sensitivity labels states of a given database using an operations batch. x-ms-original-file: 2025-01-01/ManagedDatabaseSensitivityLabelsRecommendedUpdate.json
managedDatabaseRestoreDetailsGetSample.js gets managed database restore details. x-ms-original-file: 2025-01-01/ManagedDatabaseRestoreDetails.json
managedDatabaseSchemasGetSample.js get managed database schema x-ms-original-file: 2025-01-01/ManagedDatabaseSchemaGet.json
managedDatabaseSchemasListByDatabaseSample.js list managed database schemas x-ms-original-file: 2025-01-01/ManagedDatabaseSchemaListByDatabase.json
managedDatabaseSecurityAlertPoliciesCreateOrUpdateSample.js creates or updates a database's security alert policy. x-ms-original-file: 2025-01-01/ManagedDatabaseSecurityAlertCreateMax.json
managedDatabaseSecurityAlertPoliciesGetSample.js gets a managed database's security alert policy. x-ms-original-file: 2025-01-01/ManagedDatabaseSecurityAlertGet.json
managedDatabaseSecurityAlertPoliciesListByDatabaseSample.js gets a list of managed database's security alert policies. x-ms-original-file: 2025-01-01/ManagedDatabaseSecurityAlertListByDatabase.json
managedDatabaseSecurityEventsListByDatabaseSample.js gets a list of security events. x-ms-original-file: 2025-01-01/ManagedDatabaseSecurityEventsGetMax.json
managedDatabaseSensitivityLabelsCreateOrUpdateSample.js creates or updates the sensitivity label of a given column x-ms-original-file: 2025-01-01/ManagedDatabaseColumnSensitivityLabelCreate.json
managedDatabaseSensitivityLabelsDeleteSample.js deletes the sensitivity label of a given column x-ms-original-file: 2025-01-01/ManagedDatabaseColumnSensitivityLabelDelete.json
managedDatabaseSensitivityLabelsDisableRecommendationSample.js disables sensitivity recommendations on a given column x-ms-original-file: 2025-01-01/ManagedDatabaseRecommendedColumnSensitivityLabelDisable.json
managedDatabaseSensitivityLabelsEnableRecommendationSample.js enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns) x-ms-original-file: 2025-01-01/ManagedDatabaseRecommendedColumnSensitivityLabelEnable.json
managedDatabaseSensitivityLabelsGetSample.js gets the sensitivity label of a given column x-ms-original-file: 2025-01-01/ManagedDatabaseColumnSensitivityLabelGet.json
managedDatabaseSensitivityLabelsListByDatabaseSample.js gets the sensitivity labels of a given database x-ms-original-file: 2025-01-01/ManagedDatabaseSensitivityLabelsListByDatabase.json
managedDatabaseSensitivityLabelsListCurrentByDatabaseSample.js gets the sensitivity labels of a given database x-ms-original-file: 2025-01-01/ManagedDatabaseSensitivityLabelsListByDatabaseCurrent.json
managedDatabaseSensitivityLabelsListRecommendedByDatabaseSample.js gets the sensitivity labels of a given database x-ms-original-file: 2025-01-01/ManagedDatabaseSensitivityLabelsListByDatabaseRecommended.json
managedDatabaseSensitivityLabelsUpdateSample.js update sensitivity labels of a given database using an operations batch. x-ms-original-file: 2025-01-01/ManagedDatabaseSensitivityLabelsCurrentUpdate.json
managedDatabaseTablesGetSample.js get managed database table x-ms-original-file: 2025-01-01/ManagedDatabaseTableGet.json
managedDatabaseTablesListBySchemaSample.js list managed database tables x-ms-original-file: 2025-01-01/ManagedDatabaseTableListBySchema.json
managedDatabaseTransparentDataEncryptionCreateOrUpdateSample.js updates a database's transparent data encryption configuration. x-ms-original-file: 2025-01-01/ManagedTransparentDataEncryptionUpdate.json
managedDatabaseTransparentDataEncryptionGetSample.js gets a managed database's transparent data encryption. x-ms-original-file: 2025-01-01/ManagedTransparentDataEncryptionGet.json
managedDatabaseTransparentDataEncryptionListByDatabaseSample.js gets a list of managed database's transparent data encryptions. x-ms-original-file: 2025-01-01/ManagedTransparentDataEncryptionList.json
managedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSample.js creates or updates a database's vulnerability assessment rule baseline. x-ms-original-file: 2025-01-01/ManagedDatabaseVulnerabilityAssessmentRuleBaselineCreate.json
managedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteSample.js removes the database's vulnerability assessment rule baseline. x-ms-original-file: 2025-01-01/ManagedDatabaseVulnerabilityAssessmentRuleBaselineDelete.json
managedDatabaseVulnerabilityAssessmentRuleBaselinesGetSample.js gets a database's vulnerability assessment rule baseline. x-ms-original-file: 2025-01-01/ManagedDatabaseVulnerabilityAssessmentRuleBaselineGet.json
managedDatabaseVulnerabilityAssessmentScansExportSample.js convert an existing scan result to a human readable format. If already exists nothing happens x-ms-original-file: 2025-01-01/ManagedDatabaseVulnerabilityAssessmentScanExport.json
managedDatabaseVulnerabilityAssessmentScansGetSample.js gets a vulnerability assessment scan record of a database. x-ms-original-file: 2025-01-01/ManagedDatabaseVulnerabilityAssessmentScanRecordsGet.json
managedDatabaseVulnerabilityAssessmentScansInitiateScanSample.js executes a Vulnerability Assessment database scan. x-ms-original-file: 2025-01-01/ManagedDatabaseVulnerabilityAssessmentScansExecute.json
managedDatabaseVulnerabilityAssessmentScansListByDatabaseSample.js lists the vulnerability assessment scans of a database. x-ms-original-file: 2025-01-01/ManagedDatabaseVulnerabilityAssessmentScanRecordsListByDatabase.json
managedDatabaseVulnerabilityAssessmentsCreateOrUpdateSample.js creates or updates the database's vulnerability assessment. x-ms-original-file: 2025-01-01/ManagedDatabaseVulnerabilityAssessmentCreateMax.json
managedDatabaseVulnerabilityAssessmentsDeleteSample.js removes the database's vulnerability assessment. x-ms-original-file: 2025-01-01/ManagedDatabaseVulnerabilityAssessmentDelete.json
managedDatabaseVulnerabilityAssessmentsGetSample.js gets the database's vulnerability assessment. x-ms-original-file: 2025-01-01/ManagedDatabaseVulnerabilityAssessmentGet.json
managedDatabaseVulnerabilityAssessmentsListByDatabaseSample.js lists the vulnerability assessments of a managed database. x-ms-original-file: 2025-01-01/ManagedDatabaseVulnerabilityAssessmentListByDatabase.json
managedDatabasesCancelMoveSample.js cancels a managed database move operation. x-ms-original-file: 2025-01-01/ManagedDatabaseCancelMove.json
managedDatabasesCompleteMoveSample.js completes a managed database move operation. x-ms-original-file: 2025-01-01/ManagedDatabaseCompleteMove.json
managedDatabasesCompleteRestoreSample.js completes the restore operation on a managed database. x-ms-original-file: 2025-01-01/ManagedDatabaseCompleteExternalRestore.json
managedDatabasesCreateOrUpdateSample.js creates a new database or updates an existing database. x-ms-original-file: 2025-01-01/CreateManagedDatabaseLedger.json
managedDatabasesDeleteSample.js deletes a managed database. x-ms-original-file: 2025-01-01/ManagedDatabaseDelete.json
managedDatabasesGetSample.js gets a managed database. x-ms-original-file: 2025-01-01/ManagedDatabaseGet.json
managedDatabasesListByInstanceSample.js gets a list of managed databases. x-ms-original-file: 2025-01-01/ManagedDatabaseListByManagedInstance.json
managedDatabasesListInaccessibleByInstanceSample.js gets a list of inaccessible managed databases in a managed instance x-ms-original-file: 2025-01-01/InaccessibleManagedDatabaseListByManagedInstance.json
managedDatabasesReevaluateInaccessibleDatabaseStateSample.js reevaluates the inaccessibility state of a managed database. x-ms-original-file: 2025-01-01/ManagedDatabaseReevaluateInaccessibleDatabaseState.json
managedDatabasesStartMoveSample.js starts a managed database move operation. x-ms-original-file: 2025-01-01/ManagedDatabaseStartMoveMax.json
managedDatabasesUpdateSample.js updates an existing database. x-ms-original-file: 2025-01-01/ManagedDatabaseUpdateMax.json
managedInstanceAdministratorsCreateOrUpdateSample.js creates or updates a managed instance administrator. x-ms-original-file: 2025-01-01/ManagedInstanceAdministratorCreate.json
managedInstanceAdministratorsDeleteSample.js deletes a managed instance administrator. x-ms-original-file: 2025-01-01/ManagedInstanceAdministratorDelete.json
managedInstanceAdministratorsGetSample.js gets a managed instance administrator. x-ms-original-file: 2025-01-01/ManagedInstanceAdministratorGet.json
managedInstanceAdministratorsListByInstanceSample.js gets a list of managed instance administrators. x-ms-original-file: 2025-01-01/ManagedInstanceAdministratorListByInstance.json
managedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateSample.js creates or updates Advanced Threat Protection settings. x-ms-original-file: 2025-01-01/ManagedInstanceAdvancedThreatProtectionSettingsCreateMax.json
managedInstanceAdvancedThreatProtectionSettingsGetSample.js get a managed instance's Advanced Threat Protection state. x-ms-original-file: 2025-01-01/ManagedInstanceAdvancedThreatProtectionSettingsGet.json
managedInstanceAdvancedThreatProtectionSettingsListByInstanceSample.js get the managed instance's Advanced Threat Protection settings. x-ms-original-file: 2025-01-01/ManagedInstanceAdvancedThreatProtectionSettingsListByInstance.json
managedInstanceAzureADOnlyAuthenticationsCreateOrUpdateSample.js sets Server Active Directory only authentication property or updates an existing server Active Directory only authentication property. x-ms-original-file: 2025-01-01/ManagedInstanceAzureADOnlyAuthCreateOrUpdate.json
managedInstanceAzureADOnlyAuthenticationsDeleteSample.js deletes an existing server Active Directory only authentication property. x-ms-original-file: 2025-01-01/ManagedInstanceAzureADOnlyAuthDelete.json
managedInstanceAzureADOnlyAuthenticationsGetSample.js gets a specific Azure Active Directory only authentication property. x-ms-original-file: 2025-01-01/ManagedInstanceAzureADOnlyAuthGet.json
managedInstanceAzureADOnlyAuthenticationsListByInstanceSample.js gets a list of server Azure Active Directory only authentications. x-ms-original-file: 2025-01-01/ManagedInstanceAzureADOnlyAuthListByInstance.json
managedInstanceDtcsCreateOrUpdateSample.js updates managed instance DTC settings. x-ms-original-file: 2025-01-01/ManagedInstanceDtcUpdateEnableDtc.json
managedInstanceDtcsGetSample.js gets managed instance DTC settings. x-ms-original-file: 2025-01-01/ManagedInstanceDtcGet.json
managedInstanceDtcsListByManagedInstanceSample.js gets a list of managed instance DTC settings. x-ms-original-file: 2025-01-01/ManagedInstanceDtcList.json
managedInstanceEncryptionProtectorsCreateOrUpdateSample.js updates an existing encryption protector. x-ms-original-file: 2025-01-01/ManagedInstanceEncryptionProtectorCreateOrUpdateKeyVault.json
managedInstanceEncryptionProtectorsGetSample.js gets a managed instance encryption protector. x-ms-original-file: 2025-01-01/ManagedInstanceEncryptionProtectorGet.json
managedInstanceEncryptionProtectorsListByInstanceSample.js gets a list of managed instance encryption protectors x-ms-original-file: 2025-01-01/ManagedInstanceEncryptionProtectorList.json
managedInstanceEncryptionProtectorsRevalidateSample.js revalidates an existing encryption protector. x-ms-original-file: 2025-01-01/ManagedInstanceEncryptionProtectorRevalidate.json
managedInstanceKeysCreateOrUpdateSample.js creates or updates a managed instance key. x-ms-original-file: 2025-01-01/ManagedInstanceKeyCreateOrUpdate.json
managedInstanceKeysDeleteSample.js deletes the managed instance key with the given name. x-ms-original-file: 2025-01-01/ManagedInstanceKeyDelete.json
managedInstanceKeysGetSample.js gets a managed instance key. x-ms-original-file: 2025-01-01/ManagedInstanceKeyGet.json
managedInstanceKeysListByInstanceSample.js gets a list of managed instance keys. x-ms-original-file: 2025-01-01/ManagedInstanceKeyList.json
managedInstanceLongTermRetentionPoliciesCreateOrUpdateSample.js sets a managed database's long term retention policy. x-ms-original-file: 2025-01-01/ManagedInstanceLongTermRetentionPolicyCreateOrUpdate.json
managedInstanceLongTermRetentionPoliciesDeleteSample.js deletes a managed database's long term retention policy. x-ms-original-file: 2025-01-01/ManagedInstanceLongTermRetentionPolicyDelete.json
managedInstanceLongTermRetentionPoliciesGetSample.js gets a managed database's long term retention policy. x-ms-original-file: 2025-01-01/ManagedInstanceLongTermRetentionPolicyGet.json
managedInstanceLongTermRetentionPoliciesListByDatabaseSample.js gets a database's long term retention policy. x-ms-original-file: 2025-01-01/ManagedInstanceLongTermRetentionPolicyListByDatabase.json
managedInstanceOperationsCancelSample.js cancels the asynchronous operation on the managed instance. x-ms-original-file: 2025-01-01/CancelManagedInstanceOperation.json
managedInstanceOperationsGetSample.js gets a management operation on a managed instance. x-ms-original-file: 2025-01-01/GetManagedInstanceOperation.json
managedInstanceOperationsListByManagedInstanceSample.js gets a list of operations performed on the managed instance. x-ms-original-file: 2025-01-01/ListManagedInstanceOperations.json
managedInstancePrivateEndpointConnectionsCreateOrUpdateSample.js approve or reject a private endpoint connection with a given name. x-ms-original-file: 2025-01-01/ManagedInstancePrivateEndpointConnectionUpdate.json
managedInstancePrivateEndpointConnectionsDeleteSample.js deletes a private endpoint connection with a given name. x-ms-original-file: 2025-01-01/ManagedInstancePrivateEndpointConnectionDelete.json
managedInstancePrivateEndpointConnectionsGetSample.js gets a private endpoint connection. x-ms-original-file: 2025-01-01/ManagedInstancePrivateEndpointConnectionGet.json
managedInstancePrivateEndpointConnectionsListByManagedInstanceSample.js gets all private endpoint connections on a server. x-ms-original-file: 2025-01-01/ManagedInstancePrivateEndpointConnectionList.json
managedInstancePrivateLinkResourcesGetSample.js gets a private link resource for SQL server. x-ms-original-file: 2025-01-01/ManagedInstancePrivateLinkResourcesGet.json
managedInstancePrivateLinkResourcesListByManagedInstanceSample.js gets the private link resources for SQL server. x-ms-original-file: 2025-01-01/ManagedInstancePrivateLinkResourcesList.json
managedInstanceTdeCertificatesCreateSample.js creates a TDE certificate for a given server. x-ms-original-file: 2025-01-01/ManagedInstanceTdeCertificate.json
managedInstanceVulnerabilityAssessmentsCreateOrUpdateSample.js creates or updates the managed instance's vulnerability assessment. Learn more about setting SQL vulnerability assessment with managed identity - https://docs.microsoft.com/azure/azure-sql/database/sql-database-vulnerability-assessment-storage x-ms-original-file: 2025-01-01/ManagedInstanceVulnerabilityAssessmentCreateContainerSasKeyMin.json
managedInstanceVulnerabilityAssessmentsDeleteSample.js removes the managed instance's vulnerability assessment. x-ms-original-file: 2025-01-01/ManagedInstanceVulnerabilityAssessmentDelete.json
managedInstanceVulnerabilityAssessmentsGetSample.js gets the managed instance's vulnerability assessment. x-ms-original-file: 2025-01-01/ManagedInstanceVulnerabilityAssessmentGet.json
managedInstanceVulnerabilityAssessmentsListByInstanceSample.js gets the managed instance's vulnerability assessment policies. x-ms-original-file: 2025-01-01/ManagedInstanceVulnerabilityAssessmentListByInstance.json
managedInstancesCreateOrUpdateSample.js creates or updates a managed instance. x-ms-original-file: 2025-01-01/ManagedInstanceCreateMax.json
managedInstancesDeleteSample.js deletes a managed instance. x-ms-original-file: 2025-01-01/ManagedInstanceDelete.json
managedInstancesFailoverSample.js failovers a managed instance. x-ms-original-file: 2025-01-01/FailoverManagedInstance.json
managedInstancesGetSample.js gets a managed instance. x-ms-original-file: 2025-01-01/ManagedInstanceGet.json
managedInstancesListByInstancePoolSample.js gets a list of all managed instances in an instance pool. x-ms-original-file: 2025-01-01/ManagedInstanceListByInstancePool.json
managedInstancesListByManagedInstanceSample.js get top resource consuming queries of a managed instance. x-ms-original-file: 2025-01-01/ManagedInstanceTopQueriesList.json
managedInstancesListByResourceGroupSample.js gets a list of managed instances in a resource group. x-ms-original-file: 2025-01-01/ManagedInstanceListByResourceGroup.json
managedInstancesListOutboundNetworkDependenciesByManagedInstanceSample.js gets the collection of outbound network dependencies for the given managed instance. x-ms-original-file: 2025-01-01/ListOutboundNetworkDependenciesByManagedInstance.json
managedInstancesListSample.js gets a list of all managed instances in the subscription. x-ms-original-file: 2025-01-01/ManagedInstanceList.json
managedInstancesReevaluateInaccessibleDatabaseStateSample.js reevaluates the inaccessibility state of all managed databases. x-ms-original-file: 2025-01-01/ManagedInstanceReevaluateInaccessibleDatabaseState.json
managedInstancesRefreshStatusSample.js refresh external governance enablement status. x-ms-original-file: 2025-01-01/ManagedInstanceRefreshExternalGovernanceStatus.json
managedInstancesStartSample.js starts the managed instance. x-ms-original-file: 2025-01-01/StartManagedInstance.json
managedInstancesStopSample.js stops the managed instance. x-ms-original-file: 2025-01-01/StopManagedInstance.json
managedInstancesUpdateSample.js updates a managed instance. x-ms-original-file: 2025-01-01/ManagedInstanceRemoveMaintenanceConfiguration.json
managedInstancesValidateAzureKeyVaultEncryptionKeySample.js validates customer managed key. x-ms-original-file: 2025-01-01/ManagedInstancValidateAzureKeyVaultEncryptionKey.json
managedLedgerDigestUploadsOperationsCreateOrUpdateSample.js enables upload ledger digests to an Azure Storage account or an Azure Confidential Ledger instance. x-ms-original-file: 2025-01-01/ManagedLedgerDigestUploadsEnable.json
managedLedgerDigestUploadsOperationsDisableSample.js disables uploading ledger digests to an Azure Storage account or an Azure Confidential Ledger instance. x-ms-original-file: 2025-01-01/ManagedLedgerDigestUploadsDisable.json
managedLedgerDigestUploadsOperationsGetSample.js gets the current ledger digest upload configuration for a database. x-ms-original-file: 2025-01-01/ManagedLedgerDigestUploadsGet.json
managedLedgerDigestUploadsOperationsListByDatabaseSample.js gets all ledger digest upload settings on a database. x-ms-original-file: 2025-01-01/ManagedLedgerDigestUploadsList.json
managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateSample.js sets a database's short term retention policy. x-ms-original-file: 2025-01-01/CreateManagedShortTermRetentionPolicyRestorableDropped.json
managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetSample.js gets a dropped database's short term retention policy. x-ms-original-file: 2025-01-01/GetManagedShortTermRetentionPolicyRestorableDropped.json
managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseSample.js gets a dropped database's short term retention policy list. x-ms-original-file: 2025-01-01/GetListManagedShortTermRetentionPolicyRestorableDropped.json
managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateSample.js sets a database's short term retention policy. x-ms-original-file: 2025-01-01/UpdateManagedShortTermRetentionPolicyRestorableDropped.json
managedServerDnsAliasesAcquireSample.js acquires managed server DNS alias from another managed server. x-ms-original-file: 2025-01-01/ManagedServerDnsAliasAcquire.json
managedServerDnsAliasesCreateOrUpdateSample.js creates a managed server DNS alias. x-ms-original-file: 2025-01-01/ManagedServerDnsAliasCreateOrUpdate.json
managedServerDnsAliasesDeleteSample.js deletes the managed server DNS alias with the given name. x-ms-original-file: 2025-01-01/ManagedServerDnsAliasDelete.json
managedServerDnsAliasesGetSample.js gets a server DNS alias. x-ms-original-file: 2025-01-01/ManagedServerDnsAliasGet.json
managedServerDnsAliasesListByManagedInstanceSample.js gets a list of managed server DNS aliases for a managed server. x-ms-original-file: 2025-01-01/ManagedServerDnsAliasList.json
managedServerSecurityAlertPoliciesCreateOrUpdateSample.js creates or updates a threat detection policy. x-ms-original-file: 2025-01-01/ManagedServerSecurityAlertCreateMax.json
managedServerSecurityAlertPoliciesGetSample.js get a managed server's threat detection policy. x-ms-original-file: 2025-01-01/ManagedServerSecurityAlertGet.json
managedServerSecurityAlertPoliciesListByInstanceSample.js get the managed server's threat detection policies. x-ms-original-file: 2025-01-01/ManagedServerSecurityAlertListByInstance.json
networkSecurityPerimeterConfigurationsGetSample.js gets a network security perimeter configuration. x-ms-original-file: 2025-01-01/NetworkSecurityPerimeterConfigurationsGet.json
networkSecurityPerimeterConfigurationsListByServerSample.js gets a list of NSP configurations for a server. x-ms-original-file: 2025-01-01/NetworkSecurityPerimeterConfigurationsListByServer.json
networkSecurityPerimeterConfigurationsReconcileSample.js reconcile network security perimeter configuration for SQL Resource Provider x-ms-original-file: 2025-01-01/NetworkSecurityPerimeterConfigurationsReconcile.json
operationsListSample.js lists all of the available SQL Rest API operations. x-ms-original-file: 2025-01-01/ListOperations.json
outboundFirewallRulesCreateOrUpdateSample.js create a outbound firewall rule with a given name. x-ms-original-file: 2025-01-01/OutboundFirewallRuleCreate.json
outboundFirewallRulesDeleteSample.js deletes a outbound firewall rule with a given name. x-ms-original-file: 2025-01-01/OutboundFirewallRuleDelete.json
outboundFirewallRulesGetSample.js gets an outbound firewall rule. x-ms-original-file: 2025-01-01/OutboundFirewallRuleGet.json
outboundFirewallRulesListByServerSample.js gets all outbound firewall rules on a server. x-ms-original-file: 2025-01-01/OutboundFirewallRuleList.json
privateEndpointConnectionsCreateOrUpdateSample.js approve or reject a private endpoint connection with a given name. x-ms-original-file: 2025-01-01/PrivateEndpointConnectionUpdate.json
privateEndpointConnectionsDeleteSample.js deletes a private endpoint connection with a given name. x-ms-original-file: 2025-01-01/PrivateEndpointConnectionDelete.json
privateEndpointConnectionsGetSample.js gets a private endpoint connection. x-ms-original-file: 2025-01-01/PrivateEndpointConnectionGet.json
privateEndpointConnectionsListByServerSample.js gets all private endpoint connections on a server. x-ms-original-file: 2025-01-01/PrivateEndpointConnectionList.json
privateLinkResourcesGetSample.js gets a private link resource for SQL server. x-ms-original-file: 2025-01-01/PrivateLinkResourcesGet.json
privateLinkResourcesListByServerSample.js gets the private link resources for SQL server. x-ms-original-file: 2025-01-01/PrivateLinkResourcesList.json
recommendedSensitivityLabelsUpdateSample.js update recommended sensitivity labels states of a given database using an operations batch. x-ms-original-file: 2025-01-01/SensitivityLabelsRecommendedUpdate.json
recoverableDatabasesGetSample.js gets a recoverable database. x-ms-original-file: 2025-01-01/RecoverableDatabaseGet.json
recoverableDatabasesListByServerSample.js gets a list of recoverable databases. x-ms-original-file: 2025-01-01/RecoverableDatabaseList.json
recoverableManagedDatabasesGetSample.js gets a recoverable managed database. x-ms-original-file: 2025-01-01/GetRecoverableManagedDatabase.json
recoverableManagedDatabasesListByInstanceSample.js gets a list of recoverable managed databases. x-ms-original-file: 2025-01-01/ListRecoverableManagedDatabasesByServer.json
replicationLinksCreateOrUpdateSample.js updates the replication link type. x-ms-original-file: 2025-01-01/ReplicationLinkCreateOrUpdate.json
replicationLinksDeleteSample.js deletes the replication link. x-ms-original-file: 2025-01-01/ReplicationLinkDelete.json
replicationLinksFailoverAllowDataLossSample.js fails over from the current primary server to this server allowing data loss. x-ms-original-file: 2025-01-01/ReplicationLinkFailoverAllowDataLoss.json
replicationLinksFailoverSample.js fails over from the current primary server to this server. x-ms-original-file: 2025-01-01/ReplicationLinkFailover.json
replicationLinksGetSample.js gets a replication link. x-ms-original-file: 2025-01-01/ReplicationLinkGet.json
replicationLinksListByDatabaseSample.js gets a list of replication links on database. x-ms-original-file: 2025-01-01/ReplicationLinkListByDatabase.json
replicationLinksListByServerSample.js gets a list of replication links. x-ms-original-file: 2025-01-01/ReplicationLinkListByServer.json
replicationLinksUpdateSample.js updates the replication link type. x-ms-original-file: 2025-01-01/ReplicationLinkUpdate.json
restorableDroppedDatabasesGetSample.js gets a restorable dropped database. x-ms-original-file: 2025-01-01/GetRestorableDroppedDatabase.json
restorableDroppedDatabasesListByServerSample.js gets a list of restorable dropped databases. x-ms-original-file: 2025-01-01/ListRestorableDroppedDatabasesByServer.json
restorableDroppedManagedDatabasesGetSample.js gets a restorable dropped managed database. x-ms-original-file: 2025-01-01/GetRestorableDroppedManagedDatabase.json
restorableDroppedManagedDatabasesListByInstanceSample.js gets a list of restorable dropped managed databases. x-ms-original-file: 2025-01-01/RestorableDroppedManagedDatabaseListByManagedInstance.json
restorePointsCreateSample.js creates a restore point for a data warehouse. x-ms-original-file: 2025-01-01/DatabaseRestorePointsPost.json
restorePointsDeleteSample.js deletes a restore point. x-ms-original-file: 2025-01-01/DatabaseRestorePointsDelete.json
restorePointsGetSample.js gets a restore point. x-ms-original-file: 2025-01-01/DataWarehouseRestorePointsGet.json
restorePointsListByDatabaseSample.js gets a list of database restore points. x-ms-original-file: 2025-01-01/DataWarehouseRestorePointsListByDatabase.json
sensitivityLabelsCreateOrUpdateSample.js creates or updates the sensitivity label of a given column x-ms-original-file: 2025-01-01/ColumnSensitivityLabelCreateMax.json
sensitivityLabelsDeleteSample.js deletes the sensitivity label of a given column x-ms-original-file: 2025-01-01/ColumnSensitivityLabelDelete.json
sensitivityLabelsDisableRecommendationSample.js disables sensitivity recommendations on a given column x-ms-original-file: 2025-01-01/RecommendedColumnSensitivityLabelDisable.json
sensitivityLabelsEnableRecommendationSample.js enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns) x-ms-original-file: 2025-01-01/RecommendedColumnSensitivityLabelEnable.json
sensitivityLabelsGetSample.js gets the sensitivity label of a given column x-ms-original-file: 2025-01-01/ColumnSensitivityLabelGet.json
sensitivityLabelsListByDatabaseSample.js gets the sensitivity labels of a given database x-ms-original-file: 2025-01-01/SensitivityLabelsListByDatabase.json
sensitivityLabelsListCurrentByDatabaseSample.js gets the sensitivity labels of a given database x-ms-original-file: 2025-01-01/SensitivityLabelsListByDatabaseWithSourceCurrent.json
sensitivityLabelsListRecommendedByDatabaseSample.js gets the sensitivity labels of a given database x-ms-original-file: 2025-01-01/SensitivityLabelsListByDatabaseWithSourceRecommended.json
sensitivityLabelsUpdateSample.js update sensitivity labels of a given database using an operations batch. x-ms-original-file: 2025-01-01/SensitivityLabelsCurrentUpdate.json
serverAdvancedThreatProtectionSettingsCreateOrUpdateSample.js creates or updates an Advanced Threat Protection state. x-ms-original-file: 2025-01-01/ServerAdvancedThreatProtectionSettingsCreateMax.json
serverAdvancedThreatProtectionSettingsGetSample.js get a server's Advanced Threat Protection state. x-ms-original-file: 2025-01-01/ServerAdvancedThreatProtectionSettingsGet.json
serverAdvancedThreatProtectionSettingsListByServerSample.js get a list of the server's Advanced Threat Protection states. x-ms-original-file: 2025-01-01/ServerAdvancedThreatProtectionSettingsListByServer.json
serverAdvisorsGetSample.js gets a server advisor. x-ms-original-file: 2025-01-01/ServerAdvisorGet.json
serverAdvisorsListByServerSample.js gets a list of server advisors. x-ms-original-file: 2025-01-01/ServerAdvisorList.json
serverAdvisorsUpdateSample.js updates a server advisor. x-ms-original-file: 2025-01-01/ServerAdvisorUpdate.json
serverAutomaticTuningOperationsGetSample.js retrieves server automatic tuning options. x-ms-original-file: 2025-01-01/ServerAutomaticTuningGet.json
serverAutomaticTuningOperationsUpdateSample.js update automatic tuning options on server. x-ms-original-file: 2025-01-01/ServerAutomaticTuningUpdateMax.json
serverAzureADAdministratorsCreateOrUpdateSample.js creates or updates an existing Azure Active Directory administrator. x-ms-original-file: 2025-01-01/AdministratorCreateOrUpdate.json
serverAzureADAdministratorsDeleteSample.js deletes the Azure Active Directory administrator with the given name. x-ms-original-file: 2025-01-01/AdministratorDelete.json
serverAzureADAdministratorsGetSample.js gets a Azure Active Directory administrator. x-ms-original-file: 2025-01-01/AdministratorGet.json
serverAzureADAdministratorsListByServerSample.js gets a list of Azure Active Directory administrators in a server. x-ms-original-file: 2025-01-01/AdministratorList.json
serverAzureADOnlyAuthenticationsCreateOrUpdateSample.js sets Server Active Directory only authentication property or updates an existing server Active Directory only authentication property. x-ms-original-file: 2025-01-01/AzureADOnlyAuthCreateOrUpdate.json
serverAzureADOnlyAuthenticationsDeleteSample.js deletes an existing server Active Directory only authentication property. x-ms-original-file: 2025-01-01/AzureADOnlyAuthDelete.json
serverAzureADOnlyAuthenticationsGetSample.js gets a specific Azure Active Directory only authentication property. x-ms-original-file: 2025-01-01/AzureADOnlyAuthGet.json
serverAzureADOnlyAuthenticationsListByServerSample.js gets a list of server Azure Active Directory only authentications. x-ms-original-file: 2025-01-01/AzureADOnlyAuthList.json
serverBlobAuditingPoliciesCreateOrUpdateSample.js creates or updates a server's blob auditing policy. x-ms-original-file: 2025-01-01/ServerBlobAuditingCreateMax.json
serverBlobAuditingPoliciesGetSample.js gets a server's blob auditing policy. x-ms-original-file: 2025-01-01/ServerBlobAuditingGet.json
serverBlobAuditingPoliciesListByServerSample.js lists auditing settings of a server. x-ms-original-file: 2025-01-01/ServerAuditingSettingsList.json
serverConfigurationOptionsCreateOrUpdateSample.js updates managed instance server configuration option. x-ms-original-file: 2025-01-01/ServerConfigurationOptionUpdate.json
serverConfigurationOptionsGetSample.js gets managed instance server configuration option. x-ms-original-file: 2025-01-01/ServerConfigurationOptionGet.json
serverConfigurationOptionsListByManagedInstanceSample.js gets a list of managed instance server configuration options. x-ms-original-file: 2025-01-01/ServerConfigurationOptionList.json
serverConnectionPoliciesCreateOrUpdateSample.js updates a server connection policy x-ms-original-file: 2025-01-01/ServerConnectionPoliciesUpdate.json
serverConnectionPoliciesGetSample.js gets a server connection policy x-ms-original-file: 2025-01-01/ServerConnectionPoliciesGet.json
serverConnectionPoliciesListByServerSample.js lists connection policy x-ms-original-file: 2025-01-01/ServerConnectionPoliciesList.json
serverDevOpsAuditSettingsCreateOrUpdateSample.js creates or updates a server's DevOps audit settings. x-ms-original-file: 2025-01-01/ServerDevOpsAuditCreateMax.json
serverDevOpsAuditSettingsGetSample.js gets a server's DevOps audit settings. x-ms-original-file: 2025-01-01/ServerDevOpsAuditGet.json
serverDevOpsAuditSettingsListByServerSample.js lists DevOps audit settings of a server. x-ms-original-file: 2025-01-01/ServerDevOpsAuditList.json
serverDnsAliasesAcquireSample.js acquires server DNS alias from another server. x-ms-original-file: 2025-01-01/ServerDnsAliasAcquire.json
serverDnsAliasesCreateOrUpdateSample.js creates a server DNS alias. x-ms-original-file: 2025-01-01/ServerDnsAliasCreateOrUpdate.json
serverDnsAliasesDeleteSample.js deletes the server DNS alias with the given name. x-ms-original-file: 2025-01-01/ServerDnsAliasDelete.json
serverDnsAliasesGetSample.js gets a server DNS alias. x-ms-original-file: 2025-01-01/ServerDnsAliasGet.json
serverDnsAliasesListByServerSample.js gets a list of server DNS aliases for a server. x-ms-original-file: 2025-01-01/ServerDnsAliasList.json
serverKeysCreateOrUpdateSample.js creates or updates a server key. x-ms-original-file: 2025-01-01/ServerKeyCreateOrUpdate.json
serverKeysDeleteSample.js deletes the server key with the given name. x-ms-original-file: 2025-01-01/ServerKeyDelete.json
serverKeysGetSample.js gets a server key. x-ms-original-file: 2025-01-01/ServerKeyGet.json
serverKeysListByServerSample.js gets a list of server keys. x-ms-original-file: 2025-01-01/ServerKeyList.json
serverOperationsListByServerSample.js gets a list of operations performed on the server. x-ms-original-file: 2025-01-01/ListServerOperations.json
serverSecurityAlertPoliciesCreateOrUpdateSample.js creates or updates a threat detection policy. x-ms-original-file: 2025-01-01/ServerSecurityAlertsCreateMax.json
serverSecurityAlertPoliciesGetSample.js get a server's security alert policy. x-ms-original-file: 2025-01-01/ServerSecurityAlertsGet.json
serverSecurityAlertPoliciesListByServerSample.js get the server's threat detection policies. x-ms-original-file: 2025-01-01/ServerSecurityAlertsListByServer.json
serverTrustCertificatesCreateOrUpdateSample.js uploads a server trust certificate from SQL Server to SQL Managed Instance. x-ms-original-file: 2025-01-01/ServerTrustCertificatesCreate.json
serverTrustCertificatesDeleteSample.js deletes a server trust certificate that was uploaded from SQL Server to SQL Managed Instance. x-ms-original-file: 2025-01-01/ServerTrustCertificatesDelete.json
serverTrustCertificatesGetSample.js gets a server trust certificate that was uploaded from SQL Server to SQL Managed Instance. x-ms-original-file: 2025-01-01/ServerTrustCertificatesGet.json
serverTrustCertificatesListByInstanceSample.js gets a list of the server trust certificates used to secure communication between SQL Server and the specified SQL Managed Instance x-ms-original-file: 2025-01-01/ServerTrustCertificatesListByInstance.json
serverTrustGroupsCreateOrUpdateSample.js creates or updates a server trust group. x-ms-original-file: 2025-01-01/ServerTrustGroupCreate.json
serverTrustGroupsDeleteSample.js deletes a server trust group. x-ms-original-file: 2025-01-01/ServerTrustGroupDelete.json
serverTrustGroupsGetSample.js gets a server trust group. x-ms-original-file: 2025-01-01/ServerTrustGroupGet.json
serverTrustGroupsListByInstanceSample.js gets a server trust groups by instance name. x-ms-original-file: 2025-01-01/ServerTrustGroupListByManagedInstance.json
serverTrustGroupsListByLocationSample.js lists a server trust group. x-ms-original-file: 2025-01-01/ServerTrustGroupList.json
serverUsagesListByServerSample.js gets server usages. x-ms-original-file: 2025-01-01/ServerUsageList.json
serverVulnerabilityAssessmentsCreateOrUpdateSample.js creates or updates the server's vulnerability assessment. Learn more about setting SQL vulnerability assessment with managed identity - https://docs.microsoft.com/azure/azure-sql/database/sql-database-vulnerability-assessment-storage x-ms-original-file: 2025-01-01/ServerVulnerabilityAssessmentCreateContainerSasKeyMin.json
serverVulnerabilityAssessmentsDeleteSample.js removes the server's vulnerability assessment. x-ms-original-file: 2025-01-01/ServerVulnerabilityAssessmentDelete.json
serverVulnerabilityAssessmentsGetSample.js gets the server's vulnerability assessment. x-ms-original-file: 2025-01-01/ServerVulnerabilityAssessmentGet.json
serverVulnerabilityAssessmentsListByServerSample.js lists the vulnerability assessment policies associated with a server. x-ms-original-file: 2025-01-01/ServerVulnerabilityAssessmentListByServer.json
serversCheckNameAvailabilitySample.js determines whether a resource can be created with the specified name. x-ms-original-file: 2025-01-01/CheckNameAvailabilityServerAlreadyExists.json
serversCreateOrUpdateSample.js creates or updates a server. x-ms-original-file: 2025-01-01/ServerCreate.json
serversDeleteSample.js deletes a server. x-ms-original-file: 2025-01-01/ServerDelete.json
serversGetSample.js gets a server. x-ms-original-file: 2025-01-01/ServerGet.json
serversImportDatabaseSample.js imports a bacpac into a new database. x-ms-original-file: 2025-01-01/ImportNewDatabase.json
serversListByResourceGroupSample.js gets a list of servers in a resource groups. x-ms-original-file: 2025-01-01/ServerListByResourceGroup.json
serversListSample.js gets a list of all servers in the subscription. x-ms-original-file: 2025-01-01/ServerList.json
serversRefreshStatusSample.js refresh external governance enablement status. x-ms-original-file: 2025-01-01/RefreshExternalGovernanceStatus.json
serversUpdateSample.js updates a server. x-ms-original-file: 2025-01-01/ServerUpdate.json
sqlAgentCreateOrUpdateSample.js puts new sql agent configuration to instance. x-ms-original-file: 2025-01-01/SqlAgentConfigurationPut.json
sqlAgentGetSample.js gets current instance sql agent configuration. x-ms-original-file: 2025-01-01/SqlAgentConfigurationGet.json
sqlVulnerabilityAssessmentBaselineGetSample.js gets a list of database's sql vulnerability assessment rule baselines. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentBaselineGet.json
sqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentSample.js gets a list of database's sql vulnerability assessment rule baselines. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessment.json
sqlVulnerabilityAssessmentBaselinesCreateOrUpdateSample.js add a database's vulnerability assessment rule baseline list. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentBaselineAdd.json
sqlVulnerabilityAssessmentExecuteScanExecuteSample.js executes a Vulnerability Assessment database scan. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentScansExecute.json
sqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateSample.js creates or updates a database's vulnerability assessment rule baseline. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentRuleBaselineCreate.json
sqlVulnerabilityAssessmentRuleBaselineGetSample.js gets a system database's sql vulnerability assessment rule baseline. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentRuleBaselineGet.json
sqlVulnerabilityAssessmentRuleBaselineListByBaselineSample.js gets a system database's sql vulnerability assessment rule baseline. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentRuleBaselineListByBaseline.json
sqlVulnerabilityAssessmentRuleBaselinesDeleteSample.js removes the database's vulnerability assessment rule baseline. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentRuleBaselineDelete.json
sqlVulnerabilityAssessmentScanResultGetSample.js gets a vulnerability assessment scan record of a database. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentScansResults.json
sqlVulnerabilityAssessmentScanResultListByScanSample.js gets a vulnerability assessment scan record of a database. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentListScansResults.json
sqlVulnerabilityAssessmentScansGetSample.js get a system database vulnerability assessment scan record. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentScan.json
sqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsSample.js lists the vulnerability assessment scans of a database. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentScanRecordsListByDatabase.json
sqlVulnerabilityAssessmentsDeleteSample.js removes SQL Vulnerability Assessment. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentDelete.json
sqlVulnerabilityAssessmentsSettingsCreateOrUpdateSample.js creates or updates SQL Vulnerability Assessment policy. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentCreate.json
sqlVulnerabilityAssessmentsSettingsGetSample.js gets SQL Vulnerability Assessment policy. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentGet.json
sqlVulnerabilityAssessmentsSettingsListByServerSample.js lists SQL Vulnerability Assessment policies associated with a server. x-ms-original-file: 2025-01-01/SqlVulnerabilityAssessmentListByServer.json
startStopManagedInstanceSchedulesCreateOrUpdateSample.js creates or updates the managed instance's Start/Stop schedule. x-ms-original-file: 2025-01-01/StartStopManagedInstanceScheduleCreateOrUpdateMax.json
startStopManagedInstanceSchedulesDeleteSample.js deletes the managed instance's Start/Stop schedule. x-ms-original-file: 2025-01-01/StartStopManagedInstanceScheduleDelete.json
startStopManagedInstanceSchedulesGetSample.js gets the managed instance's Start/Stop schedule. x-ms-original-file: 2025-01-01/StartStopManagedInstanceScheduleGet.json
startStopManagedInstanceSchedulesListByInstanceSample.js lists the managed instance's Start/Stop schedules. x-ms-original-file: 2025-01-01/StartStopManagedInstanceScheduleList.json
subscriptionUsagesGetSample.js gets a subscription usage metric. x-ms-original-file: 2025-01-01/SubscriptionUsageGet.json
subscriptionUsagesListByLocationSample.js gets all subscription usage metrics in a given location. x-ms-original-file: 2025-01-01/SubscriptionUsageListByLocation.json
synapseLinkWorkspacesListByDatabaseSample.js gets all synapselink workspaces for a database. x-ms-original-file: 2025-01-01/SynapseLinkWorkspaceListByDatabase.json
syncAgentsCreateOrUpdateSample.js creates or updates a sync agent. x-ms-original-file: 2025-01-01/SyncAgentCreate.json
syncAgentsDeleteSample.js deletes a sync agent. x-ms-original-file: 2025-01-01/SyncAgentDelete.json
syncAgentsGenerateKeySample.js generates a sync agent key. x-ms-original-file: 2025-01-01/SyncAgentGenerateKey.json
syncAgentsGetSample.js gets a sync agent. x-ms-original-file: 2025-01-01/SyncAgentGet.json
syncAgentsListByServerSample.js lists sync agents in a server. x-ms-original-file: 2025-01-01/SyncAgentListByServer.json
syncAgentsListLinkedDatabasesSample.js lists databases linked to a sync agent. x-ms-original-file: 2025-01-01/SyncAgentGetLinkedDatabases.json
syncGroupsCancelSyncSample.js cancels a sync group synchronization. x-ms-original-file: 2025-01-01/SyncGroupCancelSync.json
syncGroupsCreateOrUpdateSample.js creates or updates a sync group. x-ms-original-file: 2025-01-01/SyncGroupCreate.json
syncGroupsDeleteSample.js deletes a sync group. x-ms-original-file: 2025-01-01/SyncGroupDelete.json
syncGroupsGetSample.js gets a sync group. x-ms-original-file: 2025-01-01/SyncGroupGet.json
syncGroupsListByDatabaseSample.js lists sync groups under a hub database. x-ms-original-file: 2025-01-01/SyncGroupListByDatabase.json
syncGroupsListHubSchemasSample.js gets a collection of hub database schemas. x-ms-original-file: 2025-01-01/SyncGroupGetHubSchema.json
syncGroupsListLogsSample.js gets a collection of sync group logs. x-ms-original-file: 2025-01-01/SyncGroupGetLog.json
syncGroupsListSyncDatabaseIdsSample.js gets a collection of sync database ids. x-ms-original-file: 2025-01-01/SyncGroupGetSyncDatabaseId.json
syncGroupsRefreshHubSchemaSample.js refreshes a hub database schema. x-ms-original-file: 2025-01-01/SyncGroupRefreshHubSchema.json
syncGroupsTriggerSyncSample.js triggers a sync group synchronization. x-ms-original-file: 2025-01-01/SyncGroupTriggerSync.json
syncGroupsUpdateSample.js updates a sync group. x-ms-original-file: 2025-01-01/SyncGroupPatch.json
syncMembersCreateOrUpdateSample.js creates or updates a sync member. x-ms-original-file: 2025-01-01/SyncMemberCreate.json
syncMembersDeleteSample.js deletes a sync member. x-ms-original-file: 2025-01-01/SyncMemberDelete.json
syncMembersGetSample.js gets a sync member. x-ms-original-file: 2025-01-01/SyncMemberGet.json
syncMembersListBySyncGroupSample.js lists sync members in the given sync group. x-ms-original-file: 2025-01-01/SyncMemberListBySyncGroup.json
syncMembersListMemberSchemasSample.js gets a sync member database schema. x-ms-original-file: 2025-01-01/SyncMemberGetSchema.json
syncMembersRefreshMemberSchemaSample.js refreshes a sync member database schema. x-ms-original-file: 2025-01-01/SyncMemberRefreshSchema.json
syncMembersUpdateSample.js updates an existing sync member. x-ms-original-file: 2025-01-01/SyncMemberPatch.json
tdeCertificatesCreateSample.js creates a TDE certificate for a given server. x-ms-original-file: 2025-01-01/SqlTdeCertificateCreate.json
timeZonesGetSample.js gets a managed instance time zone. x-ms-original-file: 2025-01-01/ManagedInstanceTimeZoneGet.json
timeZonesListByLocationSample.js gets a list of managed instance time zones by location. x-ms-original-file: 2025-01-01/ManagedInstanceTimeZoneListByLocation.json
transparentDataEncryptionsCreateOrUpdateSample.js updates a logical database's transparent data encryption configuration. x-ms-original-file: 2025-01-01/TransparentDataEncryptionUpdate.json
transparentDataEncryptionsGetSample.js gets a logical database's transparent data encryption. x-ms-original-file: 2025-01-01/TransparentDataEncryptionGet.json
transparentDataEncryptionsListByDatabaseSample.js gets a list of the logical database's transparent data encryption. x-ms-original-file: 2025-01-01/TransparentDataEncryptionList.json
transparentDataEncryptionsResumeSample.js resume ongoing logical database's Transparent Data Encryption scan configuration. x-ms-original-file: 2025-01-01/ResumeTransparentDataEncryptionUpdate.json
transparentDataEncryptionsSuspendSample.js suspend ongoing logical database's Transparent Data Encryption scan configuration. x-ms-original-file: 2025-01-01/SuspendTransparentDataEncryptionUpdate.json
usagesListByInstancePoolSample.js gets all instance pool usage metrics x-ms-original-file: 2025-01-01/ListInstancePoolUsage.json
virtualClustersCreateOrUpdateSample.js creates virtual cluster. x-ms-original-file: 2025-01-01/VirtualClusterCreate.json
virtualClustersDeleteSample.js deletes a virtual cluster. x-ms-original-file: 2025-01-01/VirtualClusterDelete.json
virtualClustersGetSample.js gets a virtual cluster. x-ms-original-file: 2025-01-01/VirtualClusterGet.json
virtualClustersListByResourceGroupSample.js gets a list of virtual clusters in a resource group. x-ms-original-file: 2025-01-01/VirtualClusterListByResourceGroup.json
virtualClustersListSample.js gets a list of all virtualClusters in the subscription. x-ms-original-file: 2025-01-01/VirtualClusterList.json
virtualClustersUpdateDnsServersSample.js synchronizes the DNS server settings used by the managed instances inside the given virtual cluster. x-ms-original-file: 2025-01-01/UpdateVirtualClusterDnsServers.json
virtualClustersUpdateSample.js updates an existing virtual cluster. x-ms-original-file: 2025-01-01/VirtualClusterUpdate.json
virtualNetworkRulesCreateOrUpdateSample.js creates or updates an existing virtual network rule. x-ms-original-file: 2025-01-01/VirtualNetworkRulesCreateOrUpdate.json
virtualNetworkRulesDeleteSample.js deletes the virtual network rule with the given name. x-ms-original-file: 2025-01-01/VirtualNetworkRulesDelete.json
virtualNetworkRulesGetSample.js gets a virtual network rule. x-ms-original-file: 2025-01-01/VirtualNetworkRulesGet.json
virtualNetworkRulesListByServerSample.js gets a list of virtual network rules in a server. x-ms-original-file: 2025-01-01/VirtualNetworkRulesList.json
workloadClassifiersCreateOrUpdateSample.js creates or updates a workload classifier. x-ms-original-file: 2025-01-01/CreateOrUpdateWorkloadClassifierMax.json
workloadClassifiersDeleteSample.js deletes a workload classifier. x-ms-original-file: 2025-01-01/DeleteWorkloadClassifier.json
workloadClassifiersGetSample.js gets a workload classifier x-ms-original-file: 2025-01-01/GetWorkloadClassifier.json
workloadClassifiersListByWorkloadGroupSample.js gets the list of workload classifiers for a workload group x-ms-original-file: 2025-01-01/GetWorkloadClassifierList.json
workloadGroupsCreateOrUpdateSample.js creates or updates a workload group. x-ms-original-file: 2025-01-01/CreateOrUpdateWorkloadGroupMax.json
workloadGroupsDeleteSample.js deletes a workload group. x-ms-original-file: 2025-01-01/DeleteWorkloadGroup.json
workloadGroupsGetSample.js gets a workload group x-ms-original-file: 2025-01-01/GetWorkloadGroup.json
workloadGroupsListByDatabaseSample.js gets the list of workload groups x-ms-original-file: 2025-01-01/GetWorkloadGroupList.json

Prerequisites

The sample programs are compatible with LTS versions of Node.js.

You need an Azure subscription to run these sample programs.

Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function.

Adapting the samples to run in the browser may require some additional consideration. For details, please see the package README.

Setup

To run the samples using the published version of the package:

  1. Install the dependencies using npm:
npm install
  1. Edit the file sample.env, adding the correct credentials to access the Azure service and run the samples. Then rename the file from sample.env to just .env. The sample programs will read this file automatically.

  2. Run whichever samples you like (note that some samples may require additional setup, see the table above):

node backupShortTermRetentionPoliciesCreateOrUpdateSample.js

Alternatively, run a single sample with the required environment variables set (setting up the .env file is not required if you do this), for example (cross-platform):

node backupShortTermRetentionPoliciesCreateOrUpdateSample.js

Next Steps

Take a look at our API Documentation for more information about the APIs that are available in the clients.