import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; /** A list of active directory administrators. */ export declare interface AdministratorListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ServerAzureADAdministrator[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for AdministratorName. \ * {@link KnownAdministratorName} can be used interchangeably with AdministratorName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **ActiveDirectory** */ export declare type AdministratorName = string; /** * Defines values for AdministratorType. \ * {@link KnownAdministratorType} can be used interchangeably with AdministratorType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **ActiveDirectory** */ export declare type AdministratorType = string; /** * Defines values for AdvancedThreatProtectionName. \ * {@link KnownAdvancedThreatProtectionName} can be used interchangeably with AdvancedThreatProtectionName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** */ export declare type AdvancedThreatProtectionName = string; /** Defines values for AdvancedThreatProtectionState. */ export declare type AdvancedThreatProtectionState = "New" | "Enabled" | "Disabled"; /** Database, Server or Elastic Pool Advisor. */ export declare interface Advisor extends ProxyResource { /** * Resource kind. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; /** * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly location?: string; /** * Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly advisorStatus?: AdvisorStatus; /** Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled' */ autoExecuteStatus?: AutoExecuteStatus; /** * Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly autoExecuteStatusInheritedFrom?: AutoExecuteStatusInheritedFrom; /** * Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly recommendationsStatus?: string; /** * Gets the time when the current resource was analyzed for recommendations by this advisor. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastChecked?: Date; /** * Gets the recommended actions for this advisor. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly recommendedActions?: RecommendedAction[]; } /** Defines values for AdvisorStatus. */ export declare type AdvisorStatus = "GA" | "PublicPreview" | "LimitedPublicPreview" | "PrivatePreview"; /** * Defines values for AggregationFunctionType. \ * {@link KnownAggregationFunctionType} can be used interchangeably with AggregationFunctionType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **avg** \ * **min** \ * **max** \ * **stdev** \ * **sum** */ export declare type AggregationFunctionType = string; /** * Defines values for AlwaysEncryptedEnclaveType. \ * {@link KnownAlwaysEncryptedEnclaveType} can be used interchangeably with AlwaysEncryptedEnclaveType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** \ * **VBS** */ export declare type AlwaysEncryptedEnclaveType = string; /** * Defines values for AuthenticationName. \ * {@link KnownAuthenticationName} can be used interchangeably with AuthenticationName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** */ export declare type AuthenticationName = string; /** Defines values for AutoExecuteStatus. */ export declare type AutoExecuteStatus = "Enabled" | "Disabled" | "Default"; /** Defines values for AutoExecuteStatusInheritedFrom. */ export declare type AutoExecuteStatusInheritedFrom = "Default" | "Subscription" | "Server" | "ElasticPool" | "Database"; /** Defines values for AutomaticTuningDisabledReason. */ export declare type AutomaticTuningDisabledReason = "Default" | "Disabled" | "AutoConfigured" | "InheritedFromServer" | "QueryStoreOff" | "QueryStoreReadOnly" | "NotSupported"; /** Defines values for AutomaticTuningMode. */ export declare type AutomaticTuningMode = "Inherit" | "Custom" | "Auto" | "Unspecified"; /** Defines values for AutomaticTuningOptionModeActual. */ export declare type AutomaticTuningOptionModeActual = "Off" | "On"; /** Defines values for AutomaticTuningOptionModeDesired. */ export declare type AutomaticTuningOptionModeDesired = "Off" | "On" | "Default"; /** Automatic tuning properties for individual advisors. */ export declare interface AutomaticTuningOptions { /** Automatic tuning option desired state. */ desiredState?: AutomaticTuningOptionModeDesired; /** * Automatic tuning option actual state. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly actualState?: AutomaticTuningOptionModeActual; /** * Reason code if desired and actual state are different. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly reasonCode?: number; /** * Reason description if desired and actual state are different. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly reasonDesc?: AutomaticTuningDisabledReason; } /** Defines values for AutomaticTuningServerMode. */ export declare type AutomaticTuningServerMode = "Custom" | "Auto" | "Unspecified"; /** Automatic tuning properties for individual advisors. */ export declare interface AutomaticTuningServerOptions { /** Automatic tuning option desired state. */ desiredState?: AutomaticTuningOptionModeDesired; /** * Automatic tuning option actual state. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly actualState?: AutomaticTuningOptionModeActual; /** * Reason code if desired and actual state are different. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly reasonCode?: number; /** * Reason description if desired and actual state are different. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly reasonDesc?: AutomaticTuningServerReason; } /** Defines values for AutomaticTuningServerReason. */ export declare type AutomaticTuningServerReason = "Default" | "Disabled" | "AutoConfigured"; /** Supported auto pause delay time range */ export declare interface AutoPauseDelayTimeRange { /** * Minimum value * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly minValue?: number; /** * Maximum value * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly maxValue?: number; /** * Step value for discrete values between the minimum value and the maximum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly stepSize?: number; /** * Default value is no value is provided * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly default?: number; /** * Unit of time that delay is expressed in * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: PauseDelayTimeUnit; /** * Value that is used to not pause (infinite delay before pause) * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly doNotPauseValue?: number; } /** * Defines values for AvailabilityZoneType. \ * {@link KnownAvailabilityZoneType} can be used interchangeably with AvailabilityZoneType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **NoPreference** \ * **1** \ * **2** \ * **3** */ export declare type AvailabilityZoneType = string; /** A list of active directory only authentications. */ export declare interface AzureADOnlyAuthListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ServerAzureADOnlyAuthentication[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a BackupShortTermRetentionPolicies. */ export declare interface BackupShortTermRetentionPolicies { /** * Gets a database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: BackupShortTermRetentionPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets a database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param policyName The policy name. Should always be "default". * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, policyName: ShortTermRetentionPolicyName, options?: BackupShortTermRetentionPoliciesGetOptionalParams): Promise; /** * Updates a database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param policyName The policy name. Should always be "default". * @param parameters The short term retention policy info. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, policyName: ShortTermRetentionPolicyName, parameters: BackupShortTermRetentionPolicy, options?: BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise, BackupShortTermRetentionPoliciesCreateOrUpdateResponse>>; /** * Updates a database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param policyName The policy name. Should always be "default". * @param parameters The short term retention policy info. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, policyName: ShortTermRetentionPolicyName, parameters: BackupShortTermRetentionPolicy, options?: BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise; /** * Updates a database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param policyName The policy name. Should always be "default". * @param parameters The short term retention policy info. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, policyName: ShortTermRetentionPolicyName, parameters: BackupShortTermRetentionPolicy, options?: BackupShortTermRetentionPoliciesUpdateOptionalParams): Promise, BackupShortTermRetentionPoliciesUpdateResponse>>; /** * Updates a database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param policyName The policy name. Should always be "default". * @param parameters The short term retention policy info. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, policyName: ShortTermRetentionPolicyName, parameters: BackupShortTermRetentionPolicy, options?: BackupShortTermRetentionPoliciesUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy; /** Optional parameters. */ export declare interface BackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy; /** Optional parameters. */ export declare interface BackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult; /** Optional parameters. */ export declare interface BackupShortTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult; /** Optional parameters. */ export declare interface BackupShortTermRetentionPoliciesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy; /** A short term retention policy. */ export declare interface BackupShortTermRetentionPolicy extends ProxyResource { /** The backup retention period in days. This is how many days Point-in-Time Restore will be supported. */ retentionDays?: number; /** The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases. */ diffBackupIntervalInHours?: DiffBackupIntervalInHours; } /** A list of short term retention policies. */ export declare interface BackupShortTermRetentionPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: BackupShortTermRetentionPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for BackupStorageRedundancy. \ * {@link KnownBackupStorageRedundancy} can be used interchangeably with BackupStorageRedundancy, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Geo** \ * **Local** \ * **Zone** \ * **GeoZone** */ export declare type BackupStorageRedundancy = string; /** SQL Vulnerability Assessment baseline Details */ export declare interface Baseline { /** * SQL Vulnerability Assessment baseline expected results * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly expectedResults?: string[][]; /** * SQL Vulnerability Assessment baseline update time (UTC) * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly updatedTime?: Date; } /** SQL Vulnerability Assessment baseline adjusted results */ export declare interface BaselineAdjustedResult { /** * SQL Vulnerability Assessment baseline details * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly baseline?: Baseline; /** * SQL Vulnerability Assessment baseline status * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: RuleStatus; /** * SQL Vulnerability Assessment results that are not in baseline * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly resultsNotInBaseline?: string[][]; /** * SQL Vulnerability Assessment results that are in baseline. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly resultsOnlyInBaseline?: string[][]; } /** * Defines values for BaselineName. \ * {@link KnownBaselineName} can be used interchangeably with BaselineName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **default** */ export declare type BaselineName = string; /** SQL Vulnerability Assessment benchmark reference */ export declare interface BenchmarkReference { /** * SQL Vulnerability Assessment benchmark name * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly benchmark?: string; /** * SQL Vulnerability Assessment benchmark reference. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly reference?: string; } /** Defines values for BlobAuditingPolicyState. */ export declare type BlobAuditingPolicyState = "Enabled" | "Disabled"; /** Interface representing a Capabilities. */ export declare interface Capabilities { /** * Gets the subscription capabilities available for the specified location. * @param locationName The location name whose capabilities are retrieved. * @param options The options parameters. */ listByLocation(locationName: string, options?: CapabilitiesListByLocationOptionalParams): Promise; } /** Optional parameters. */ export declare interface CapabilitiesListByLocationOptionalParams extends coreClient.OperationOptions { /** If specified, restricts the response to only include the selected item. */ include?: CapabilityGroup; } /** Contains response data for the listByLocation operation. */ export declare type CapabilitiesListByLocationResponse = LocationCapabilities; /** * Defines values for CapabilityGroup. \ * {@link KnownCapabilityGroup} can be used interchangeably with CapabilityGroup, * this enum contains the known values that the service supports. * ### Known values supported by the service * **supportedEditions** \ * **supportedElasticPoolEditions** \ * **supportedManagedInstanceVersions** \ * **supportedInstancePoolEditions** \ * **supportedManagedInstanceEditions** */ export declare type CapabilityGroup = string; /** Defines values for CapabilityStatus. */ export declare type CapabilityStatus = "Visible" | "Available" | "Default" | "Disabled"; /** * Defines values for CatalogCollationType. \ * {@link KnownCatalogCollationType} can be used interchangeably with CatalogCollationType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **DATABASE_DEFAULT** \ * **SQL_Latin1_General_CP1_CI_AS** */ export declare type CatalogCollationType = string; /** Defines values for CheckNameAvailabilityReason. */ export declare type CheckNameAvailabilityReason = "Invalid" | "AlreadyExists"; /** A request to check whether the specified name for a resource is available. */ export declare interface CheckNameAvailabilityRequest { name: string; type: "Microsoft.Sql/servers"; } /** The result of a name availability check. */ export declare interface CheckNameAvailabilityResponse { /** * The name whose availability was checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * True if the name is available, otherwise false. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly available?: boolean; /** * The reason code explaining why the name is unavailable. Will be undefined if the name is available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly reason?: CheckNameAvailabilityReason; /** * A message explaining why the name is unavailable. Will be undefined if the name is available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly message?: string; } /** * Defines values for ColumnDataType. \ * {@link KnownColumnDataType} can be used interchangeably with ColumnDataType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **image** \ * **text** \ * **uniqueidentifier** \ * **date** \ * **time** \ * **datetime2** \ * **datetimeoffset** \ * **tinyint** \ * **smallint** \ * **int** \ * **smalldatetime** \ * **real** \ * **money** \ * **datetime** \ * **float** \ * **sql_variant** \ * **ntext** \ * **bit** \ * **decimal** \ * **numeric** \ * **smallmoney** \ * **bigint** \ * **hierarchyid** \ * **geometry** \ * **geography** \ * **varbinary** \ * **varchar** \ * **binary** \ * **char** \ * **timestamp** \ * **nvarchar** \ * **nchar** \ * **xml** \ * **sysname** */ export declare type ColumnDataType = string; /** Contains the information necessary to perform a complete database restore operation. */ export declare interface CompleteDatabaseRestoreDefinition { /** The last backup name to apply */ lastBackupName: string; } /** * Defines values for ConnectionPolicyName. \ * {@link KnownConnectionPolicyName} can be used interchangeably with ConnectionPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **default** */ export declare type ConnectionPolicyName = string; /** Contains the information necessary to perform long term retention backup copy operation. */ export declare interface CopyLongTermRetentionBackupParameters { /** The subscription that owns the target server */ targetSubscriptionId?: string; /** The resource group that owns the target server */ targetResourceGroup?: string; /** The resource Id of the target server that owns the database */ targetServerResourceId?: string; /** The fully qualified domain name of the target server */ targetServerFullyQualifiedDomainName?: string; /** The name of the database owns the copied backup. */ targetDatabaseName?: string; /** The storage redundancy type of the copied backup */ targetBackupStorageRedundancy?: BackupStorageRedundancy; } /** Contains the information necessary to perform a create database restore point operation. */ export declare interface CreateDatabaseRestorePointDefinition { /** The restore point label to apply */ restorePointLabel: string; } /** * Defines values for CreatedByType. \ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **User** \ * **Application** \ * **ManagedIdentity** \ * **Key** */ export declare type CreatedByType = string; /** * Defines values for CreateMode. \ * {@link KnownCreateMode} can be used interchangeably with CreateMode, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** \ * **Copy** \ * **Secondary** \ * **PointInTimeRestore** \ * **Restore** \ * **Recovery** \ * **RestoreExternalBackup** \ * **RestoreExternalBackupSecondary** \ * **RestoreLongTermRetentionBackup** \ * **OnlineSecondary** */ export declare type CreateMode = string; /** A database resource. */ export declare interface Database extends TrackedResource { /** * The database SKU. * * The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: * * ```azurecli * az sql db list-editions -l -o table * ```` * * ```powershell * Get-AzSqlServerServiceObjective -Location * ```` * */ sku?: Sku; /** * Kind of database. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; /** * Resource that manages the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly managedBy?: string; /** The Azure Active Directory identity of the database. */ identity?: DatabaseIdentity; /** * Specifies the mode of database creation. * * Default: regular database creation. * * Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database. * * Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database. * * PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified. * * Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore. * * Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time. * * RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID. * * Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. */ createMode?: CreateMode; /** The collation of the database. */ collation?: string; /** The max size of the database expressed in bytes. */ maxSizeBytes?: number; /** The name of the sample schema to apply when creating this database. */ sampleName?: SampleName; /** The resource identifier of the elastic pool containing this database. */ elasticPoolId?: string; /** The resource identifier of the source database associated with create operation of this database. */ sourceDatabaseId?: string; /** * The status of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: DatabaseStatus; /** * The ID of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseId?: string; /** * The creation date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationDate?: Date; /** * The current service level objective name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentServiceObjectiveName?: string; /** * The requested service level objective name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestedServiceObjectiveName?: string; /** * The default secondary region for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly defaultSecondaryLocation?: string; /** * Failover Group resource identifier that this database belongs to. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly failoverGroupId?: string; /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ restorePointInTime?: Date; /** Specifies the time that the database was deleted. */ sourceDatabaseDeletionDate?: Date; /** The resource identifier of the recovery point associated with create operation of this database. */ recoveryServicesRecoveryPointId?: string; /** The resource identifier of the long term retention backup associated with create operation of this database. */ longTermRetentionBackupResourceId?: string; /** The resource identifier of the recoverable database associated with create operation of this database. */ recoverableDatabaseId?: string; /** The resource identifier of the restorable dropped database associated with create operation of this database. */ restorableDroppedDatabaseId?: string; /** Collation of the metadata catalog. */ catalogCollation?: CatalogCollationType; /** Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. */ zoneRedundant?: boolean; /** The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. */ licenseType?: DatabaseLicenseType; /** * The max log size for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly maxLogSizeBytes?: number; /** * This records the earliest start date and time that restore is available for this database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly earliestRestoreDate?: Date; /** The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool. */ readScale?: DatabaseReadScale; /** The number of secondary replicas associated with the database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool. */ highAvailabilityReplicaCount?: number; /** The secondary type of the database if it is a secondary. Valid values are Geo, Named and Standby. */ secondaryType?: SecondaryType; /** * The name and tier of the SKU. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentSku?: Sku; /** Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled */ autoPauseDelay?: number; /** * The storage account type used to store backups for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; /** The storage account type to be used to store backups for this database. */ requestedBackupStorageRedundancy?: BackupStorageRedundancy; /** Minimal capacity that database will always have allocated, if not paused */ minCapacity?: number; /** * The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly pausedDate?: Date; /** * The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly resumedDate?: Date; /** Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur. */ maintenanceConfigurationId?: string; /** Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. */ isLedgerOn?: boolean; /** * Infra encryption is enabled for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isInfraEncryptionEnabled?: boolean; /** The Client id used for cross tenant per database CMK scenario */ federatedClientId?: string; /** The resource ids of the user assigned identities to use */ keys?: { [propertyName: string]: DatabaseKey; }; /** The azure key vault URI of the database if it's configured with per Database Customer Managed Keys. */ encryptionProtector?: string; /** Type of enclave requested on the database i.e. Default or VBS enclaves. */ preferredEnclaveType?: AlwaysEncryptedEnclaveType; /** * The resource identifier of the source associated with the create operation of this database. * * This property is only supported for DataWarehouse edition and allows to restore across subscriptions. * * When sourceResourceId is specified, sourceDatabaseId, recoverableDatabaseId, restorableDroppedDatabaseId and sourceDatabaseDeletionDate must not be specified and CreateMode must be PointInTimeRestore, Restore or Recover. * * When createMode is PointInTimeRestore, sourceResourceId must be the resource ID of the existing database or existing sql pool, and restorePointInTime must be specified. * * When createMode is Restore, sourceResourceId must be the resource ID of restorable dropped database or restorable dropped sql pool. * * When createMode is Recover, sourceResourceId must be the resource ID of recoverable database or recoverable sql pool. * * When source subscription belongs to a different tenant than target subscription, “x-ms-authorization-auxiliary” header must contain authentication token for the source tenant. For more details about “x-ms-authorization-auxiliary” header see https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/authenticate-multi-tenant */ sourceResourceId?: string; /** * Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier. * * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier. * * When manualCutover is specified, the scaling operation will wait for user input to trigger cutover to Hyperscale database. * * To trigger cutover, please provide 'performCutover' parameter when the Scaling operation is in Waiting state. */ manualCutover?: boolean; /** * To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress. * * This property parameter is only applicable for scaling operations that are initiated along with 'manualCutover' parameter. * * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier is already in progress. * * When performCutover is specified, the scaling operation will trigger cutover and perform role-change to Hyperscale database. */ performCutover?: boolean; /** Specifies the availability zone the database is pinned to. */ availabilityZone?: AvailabilityZoneType; } /** A database Advanced Threat Protection. */ export declare interface DatabaseAdvancedThreatProtection extends ProxyResource { /** * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ state?: AdvancedThreatProtectionState; /** * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationTime?: Date; } /** A list of the database's Advanced Threat Protection configurations. */ export declare interface DatabaseAdvancedThreatProtectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: DatabaseAdvancedThreatProtection[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a DatabaseAdvancedThreatProtectionSettings. */ export declare interface DatabaseAdvancedThreatProtectionSettings { /** * Gets a list of database's Advanced Threat Protection states. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets a database's Advanced Threat Protection state. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, options?: DatabaseAdvancedThreatProtectionSettingsGetOptionalParams): Promise; /** * Creates or updates a database's Advanced Threat Protection state. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param parameters The database Advanced Threat Protection state. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: DatabaseAdvancedThreatProtection, options?: DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = DatabaseAdvancedThreatProtection; /** Optional parameters. */ export declare interface DatabaseAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseAdvancedThreatProtectionSettingsGetResponse = DatabaseAdvancedThreatProtection; /** Optional parameters. */ export declare interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = DatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ export declare interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = DatabaseAdvancedThreatProtectionListResult; /** Interface representing a DatabaseAdvisors. */ export declare interface DatabaseAdvisors { /** * Gets a list of database advisors. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseAdvisorsListByDatabaseOptionalParams): Promise; /** * Gets a database advisor. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param advisorName The name of the Database Advisor. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, options?: DatabaseAdvisorsGetOptionalParams): Promise; /** * Updates a database advisor. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param advisorName The name of the Database Advisor. * @param parameters The requested advisor resource state. * @param options The options parameters. */ update(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, parameters: Advisor, options?: DatabaseAdvisorsUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseAdvisorsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseAdvisorsGetResponse = Advisor; /** Optional parameters. */ export declare interface DatabaseAdvisorsListByDatabaseOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } /** Contains response data for the listByDatabase operation. */ export declare type DatabaseAdvisorsListByDatabaseResponse = Advisor[]; /** Optional parameters. */ export declare interface DatabaseAdvisorsUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the update operation. */ export declare type DatabaseAdvisorsUpdateResponse = Advisor; /** Database-level Automatic Tuning. */ export declare interface DatabaseAutomaticTuning extends ProxyResource { /** Automatic tuning desired state. */ desiredState?: AutomaticTuningMode; /** * Automatic tuning actual state. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly actualState?: AutomaticTuningMode; /** Automatic tuning options definition. */ options?: { [propertyName: string]: AutomaticTuningOptions; }; } /** Optional parameters. */ export declare interface DatabaseAutomaticTuningGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning; /** Interface representing a DatabaseAutomaticTuningOperations. */ export declare interface DatabaseAutomaticTuningOperations { /** * Gets a database's automatic tuning. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseAutomaticTuningGetOptionalParams): Promise; /** * Update automatic tuning properties for target database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters The requested automatic tuning resource state. * @param options The options parameters. */ update(resourceGroupName: string, serverName: string, databaseName: string, parameters: DatabaseAutomaticTuning, options?: DatabaseAutomaticTuningUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseAutomaticTuningUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the update operation. */ export declare type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning; /** Interface representing a DatabaseBlobAuditingPolicies. */ export declare interface DatabaseBlobAuditingPolicies { /** * Lists auditing settings of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets a database's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseBlobAuditingPoliciesGetOptionalParams): Promise; /** * Creates or updates a database's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters The database blob auditing policy. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: DatabaseBlobAuditingPolicy, options?: DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy; /** Optional parameters. */ export declare interface DatabaseBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy; /** Optional parameters. */ export declare interface DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ export declare interface DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult; /** A database blob auditing policy. */ export declare interface DatabaseBlobAuditingPolicy extends ProxyResource { /** * Resource kind. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; /** Specifies the number of days to keep in the audit logs in the storage account. */ retentionDays?: number; /** * Specifies the Actions-Groups and Actions to audit. * * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: * * BATCH_COMPLETED_GROUP, * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, * FAILED_DATABASE_AUTHENTICATION_GROUP. * * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. * * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): * * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP * BACKUP_RESTORE_GROUP * DATABASE_LOGOUT_GROUP * DATABASE_OBJECT_CHANGE_GROUP * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP * DATABASE_OPERATION_GROUP * DATABASE_PERMISSION_CHANGE_GROUP * DATABASE_PRINCIPAL_CHANGE_GROUP * DATABASE_PRINCIPAL_IMPERSONATION_GROUP * DATABASE_ROLE_MEMBER_CHANGE_GROUP * FAILED_DATABASE_AUTHENTICATION_GROUP * SCHEMA_OBJECT_ACCESS_GROUP * SCHEMA_OBJECT_CHANGE_GROUP * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP * USER_CHANGE_PASSWORD_GROUP * BATCH_STARTED_GROUP * BATCH_COMPLETED_GROUP * DBCC_GROUP * DATABASE_OWNERSHIP_CHANGE_GROUP * DATABASE_CHANGE_GROUP * LEDGER_OPERATION_GROUP * * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. * * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). * * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: * SELECT * UPDATE * INSERT * DELETE * EXECUTE * RECEIVE * REFERENCES * * The general form for defining an action to be audited is: * {action} ON {object} BY {principal} * * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. * * For example: * SELECT on dbo.myTable by public * SELECT on DATABASE::myDatabase by public * SELECT on SCHEMA::mySchema by public * * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ auditActionsAndGroups?: string[]; /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; /** * Specifies whether audit events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. * * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. * Note that for server level audit you should use the 'master' database as {databaseName}. * * Diagnostic Settings URI format: * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview * * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) * */ isAzureMonitorTargetEnabled?: boolean; /** * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ queueDelayMs?: number; /** Specifies whether Managed Identity is used to access blob storage */ isManagedIdentityInUse?: boolean; /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ state?: BlobAuditingPolicyState; /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ storageEndpoint?: string; /** * Specifies the identifier key of the auditing storage account. * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. * Prerequisites for using managed identity authentication: * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ storageAccountAccessKey?: string; /** Specifies the blob storage subscription Id. */ storageAccountSubscriptionId?: string; } /** A list of database auditing settings. */ export declare interface DatabaseBlobAuditingPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: DatabaseBlobAuditingPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** A database column resource. */ export declare interface DatabaseColumn extends ProxyResource { /** The column data type. */ columnType?: ColumnDataType; /** The table temporal type. */ temporalType?: TableTemporalType; /** Whether or not the column belongs to a memory optimized table. */ memoryOptimized?: boolean; /** Whether or not the column is computed. */ isComputed?: boolean; } /** A list of database columns. */ export declare interface DatabaseColumnListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: DatabaseColumn[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a DatabaseColumns. */ export declare interface DatabaseColumns { /** * List database columns * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseColumnsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * List database columns * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param options The options parameters. */ listByTable(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, options?: DatabaseColumnsListByTableOptionalParams): PagedAsyncIterableIterator; /** * Get database column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: DatabaseColumnsGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseColumnsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseColumnsGetResponse = DatabaseColumn; /** Optional parameters. */ export declare interface DatabaseColumnsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type DatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; /** Optional parameters. */ export declare interface DatabaseColumnsListByDatabaseOptionalParams extends coreClient.OperationOptions { /** Array of Get3ItemsItem */ schema?: string[]; /** Array of Get4ItemsItem */ table?: string[]; /** Array of Get5ItemsItem */ column?: string[]; /** Array of Get6ItemsItem */ orderBy?: string[]; /** An opaque token that identifies a starting point in the collection. */ skiptoken?: string; } /** Contains response data for the listByDatabase operation. */ export declare type DatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; /** Optional parameters. */ export declare interface DatabaseColumnsListByTableNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByTableNext operation. */ export declare type DatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; /** Optional parameters. */ export declare interface DatabaseColumnsListByTableOptionalParams extends coreClient.OperationOptions { /** An OData filter expression that filters elements in the collection. */ filter?: string; } /** Contains response data for the listByTable operation. */ export declare type DatabaseColumnsListByTableResponse = DatabaseColumnListResult; /** Interface representing a DatabaseEncryptionProtectors. */ export declare interface DatabaseEncryptionProtectors { /** * Revalidates an existing encryption protector for a particular database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param encryptionProtectorName The name of the encryption protector to be updated. * @param options The options parameters. */ beginRevalidate(resourceGroupName: string, serverName: string, databaseName: string, encryptionProtectorName: EncryptionProtectorName, options?: DatabaseEncryptionProtectorsRevalidateOptionalParams): Promise, void>>; /** * Revalidates an existing encryption protector for a particular database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param encryptionProtectorName The name of the encryption protector to be updated. * @param options The options parameters. */ beginRevalidateAndWait(resourceGroupName: string, serverName: string, databaseName: string, encryptionProtectorName: EncryptionProtectorName, options?: DatabaseEncryptionProtectorsRevalidateOptionalParams): Promise; /** * Reverts an existing encryption protector for a particular database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param encryptionProtectorName The name of the encryption protector to be updated. * @param options The options parameters. */ beginRevert(resourceGroupName: string, serverName: string, databaseName: string, encryptionProtectorName: EncryptionProtectorName, options?: DatabaseEncryptionProtectorsRevertOptionalParams): Promise, void>>; /** * Reverts an existing encryption protector for a particular database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param encryptionProtectorName The name of the encryption protector to be updated. * @param options The options parameters. */ beginRevertAndWait(resourceGroupName: string, serverName: string, databaseName: string, encryptionProtectorName: EncryptionProtectorName, options?: DatabaseEncryptionProtectorsRevertOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseEncryptionProtectorsRevalidateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface DatabaseEncryptionProtectorsRevertOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** An export managed database operation result resource. */ export declare interface DatabaseExtensions extends ProxyResource { /** Operation Mode. */ operationMode?: OperationMode; /** Storage key type. */ storageKeyType?: StorageKeyType; /** Storage key. */ storageKey?: string; /** Storage Uri. */ storageUri?: string; } /** Optional parameters. */ export declare interface DatabaseExtensionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type DatabaseExtensionsCreateOrUpdateResponse = ImportExportExtensionsOperationResult; /** Optional parameters. */ export declare interface DatabaseExtensionsGetOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface DatabaseExtensionsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type DatabaseExtensionsListByDatabaseNextResponse = ImportExportExtensionsOperationListResult; /** Optional parameters. */ export declare interface DatabaseExtensionsListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type DatabaseExtensionsListByDatabaseResponse = ImportExportExtensionsOperationListResult; /** Interface representing a DatabaseExtensionsOperations. */ export declare interface DatabaseExtensionsOperations { /** * List database extension. This will return an empty list as it is not supported. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseExtensionsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets a database extension. This will return resource not found as it is not supported. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param extensionName * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, extensionName: string, options?: DatabaseExtensionsGetOptionalParams): Promise; /** * Perform a database extension operation, like polybase import * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param extensionName * @param parameters The database import request parameters. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, extensionName: string, parameters: DatabaseExtensions, options?: DatabaseExtensionsCreateOrUpdateOptionalParams): Promise, DatabaseExtensionsCreateOrUpdateResponse>>; /** * Perform a database extension operation, like polybase import * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param extensionName * @param parameters The database import request parameters. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, extensionName: string, parameters: DatabaseExtensions, options?: DatabaseExtensionsCreateOrUpdateOptionalParams): Promise; } /** Azure Active Directory identity configuration for a resource. */ export declare interface DatabaseIdentity { /** The identity type */ type?: DatabaseIdentityType; /** * The Azure Active Directory tenant id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly tenantId?: string; /** The resource ids of the user assigned identities to use */ userAssignedIdentities?: { [propertyName: string]: DatabaseUserIdentity; }; } /** * Defines values for DatabaseIdentityType. \ * {@link KnownDatabaseIdentityType} can be used interchangeably with DatabaseIdentityType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **None** \ * **UserAssigned** */ export declare type DatabaseIdentityType = string; /** Database level key used for encryption at rest. */ export declare interface DatabaseKey { /** * The database key type. Only supported value is 'AzureKeyVault'. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: DatabaseKeyType; /** * Thumbprint of the database key. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly thumbprint?: string; /** * The database key creation date. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationDate?: Date; /** * Subregion of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly subregion?: string; } /** * Defines values for DatabaseKeyType. \ * {@link KnownDatabaseKeyType} can be used interchangeably with DatabaseKeyType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **AzureKeyVault** */ export declare type DatabaseKeyType = string; /** * Defines values for DatabaseLicenseType. \ * {@link KnownDatabaseLicenseType} can be used interchangeably with DatabaseLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **LicenseIncluded** \ * **BasePrice** */ export declare type DatabaseLicenseType = string; /** A list of databases. */ export declare interface DatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: Database[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** A database operation. */ export declare interface DatabaseOperation extends ProxyResource { /** * The name of the database the operation is being performed on. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseName?: string; /** * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operation?: string; /** * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operationFriendlyName?: string; /** * The percentage of the operation completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly percentComplete?: number; /** * The name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serverName?: string; /** * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: Date; /** * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: ManagementOperationState; /** * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorCode?: number; /** * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorDescription?: string; /** * The operation error severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorSeverity?: number; /** * Whether or not the error is a user error. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isUserError?: boolean; /** * The estimated completion time of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly estimatedCompletionTime?: Date; /** * The operation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly description?: string; /** * Whether the operation can be cancelled. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isCancellable?: boolean; } /** The response to a list database operations request */ export declare interface DatabaseOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: DatabaseOperation[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a DatabaseOperations. */ export declare interface DatabaseOperations { /** * Gets a list of operations performed on the database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseOperationsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Cancels the asynchronous operation on the database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param operationId The operation identifier. * @param options The options parameters. */ cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options?: DatabaseOperationsCancelOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseOperationsCancelOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface DatabaseOperationsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult; /** Optional parameters. */ export declare interface DatabaseOperationsListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult; /** * Defines values for DatabaseReadScale. \ * {@link KnownDatabaseReadScale} can be used interchangeably with DatabaseReadScale, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Enabled** \ * **Disabled** */ export declare type DatabaseReadScale = string; /** Interface representing a DatabaseRecommendedActions. */ export declare interface DatabaseRecommendedActions { /** * Gets list of Database Recommended Actions. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param advisorName The name of the Database Advisor. * @param options The options parameters. */ listByDatabaseAdvisor(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, options?: DatabaseRecommendedActionsListByDatabaseAdvisorOptionalParams): Promise; /** * Gets a database recommended action. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param advisorName The name of the Database Advisor. * @param recommendedActionName The name of Database Recommended Action. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, recommendedActionName: string, options?: DatabaseRecommendedActionsGetOptionalParams): Promise; /** * Updates a database recommended action. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param advisorName The name of the Database Advisor. * @param recommendedActionName The name of Database Recommended Action. * @param parameters The requested recommended action resource state. * @param options The options parameters. */ update(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, recommendedActionName: string, parameters: RecommendedAction, options?: DatabaseRecommendedActionsUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseRecommendedActionsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseRecommendedActionsGetResponse = RecommendedAction; /** Optional parameters. */ export declare interface DatabaseRecommendedActionsListByDatabaseAdvisorOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseAdvisor operation. */ export declare type DatabaseRecommendedActionsListByDatabaseAdvisorResponse = RecommendedAction[]; /** Optional parameters. */ export declare interface DatabaseRecommendedActionsUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the update operation. */ export declare type DatabaseRecommendedActionsUpdateResponse = RecommendedAction; /** Interface representing a Databases. */ export declare interface Databases { /** * Returns database metrics. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param filter An OData filter expression that describes a subset of metrics to return. * @param options The options parameters. */ listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options?: DatabasesListMetricsOptionalParams): PagedAsyncIterableIterator; /** * Returns database metric definitions. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesListMetricDefinitionsOptionalParams): PagedAsyncIterableIterator; /** * Gets a list of databases. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: DatabasesListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a list of databases in an elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName The name of the elastic pool. * @param options The options parameters. */ listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: DatabasesListByElasticPoolOptionalParams): PagedAsyncIterableIterator; /** * Gets a list of inaccessible databases in a logical server * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listInaccessibleByServer(resourceGroupName: string, serverName: string, options?: DatabasesListInaccessibleByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesGetOptionalParams): Promise; /** * Creates a new database or updates an existing database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters The requested database resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Database, options?: DatabasesCreateOrUpdateOptionalParams): Promise, DatabasesCreateOrUpdateResponse>>; /** * Creates a new database or updates an existing database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters The requested database resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, parameters: Database, options?: DatabasesCreateOrUpdateOptionalParams): Promise; /** * Deletes the database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesDeleteOptionalParams): Promise, void>>; /** * Deletes the database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesDeleteOptionalParams): Promise; /** * Updates an existing database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters The requested database resource state. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: DatabaseUpdate, options?: DatabasesUpdateOptionalParams): Promise, DatabasesUpdateResponse>>; /** * Updates an existing database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters The requested database resource state. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, parameters: DatabaseUpdate, options?: DatabasesUpdateOptionalParams): Promise; /** * Exports a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters The database export request parameters. * @param options The options parameters. */ beginExport(resourceGroupName: string, serverName: string, databaseName: string, parameters: ExportDatabaseDefinition, options?: DatabasesExportOptionalParams): Promise, DatabasesExportResponse>>; /** * Exports a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters The database export request parameters. * @param options The options parameters. */ beginExportAndWait(resourceGroupName: string, serverName: string, databaseName: string, parameters: ExportDatabaseDefinition, options?: DatabasesExportOptionalParams): Promise; /** * Failovers a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database to failover. * @param options The options parameters. */ beginFailover(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesFailoverOptionalParams): Promise, void>>; /** * Failovers a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database to failover. * @param options The options parameters. */ beginFailoverAndWait(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesFailoverOptionalParams): Promise; /** * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters The database import request parameters. * @param options The options parameters. */ beginImport(resourceGroupName: string, serverName: string, databaseName: string, parameters: ImportExistingDatabaseDefinition, options?: DatabasesImportOptionalParams): Promise, DatabasesImportResponse>>; /** * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters The database import request parameters. * @param options The options parameters. */ beginImportAndWait(resourceGroupName: string, serverName: string, databaseName: string, parameters: ImportExistingDatabaseDefinition, options?: DatabasesImportOptionalParams): Promise; /** * Renames a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database to rename. * @param parameters The resource move definition for renaming this database. * @param options The options parameters. */ rename(resourceGroupName: string, serverName: string, databaseName: string, parameters: ResourceMoveDefinition, options?: DatabasesRenameOptionalParams): Promise; /** * Pauses a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database to be paused. * @param options The options parameters. */ beginPause(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesPauseOptionalParams): Promise, DatabasesPauseResponse>>; /** * Pauses a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database to be paused. * @param options The options parameters. */ beginPauseAndWait(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesPauseOptionalParams): Promise; /** * Resumes a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database to be resumed. * @param options The options parameters. */ beginResume(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesResumeOptionalParams): Promise, DatabasesResumeResponse>>; /** * Resumes a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database to be resumed. * @param options The options parameters. */ beginResumeAndWait(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesResumeOptionalParams): Promise; /** * Upgrades a data warehouse. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database to be upgraded. * @param options The options parameters. */ beginUpgradeDataWarehouse(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesUpgradeDataWarehouseOptionalParams): Promise, void>>; /** * Upgrades a data warehouse. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database to be upgraded. * @param options The options parameters. */ beginUpgradeDataWarehouseAndWait(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesUpgradeDataWarehouseOptionalParams): Promise; } /** A database schema resource. */ export declare interface DatabaseSchema extends ProxyResource { } /** A list of database schemas. */ export declare interface DatabaseSchemaListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: DatabaseSchema[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a DatabaseSchemas. */ export declare interface DatabaseSchemas { /** * List database schemas * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseSchemasListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Get database schema * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, options?: DatabaseSchemasGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseSchemasGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseSchemasGetResponse = DatabaseSchema; /** Optional parameters. */ export declare interface DatabaseSchemasListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type DatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; /** Optional parameters. */ export declare interface DatabaseSchemasListByDatabaseOptionalParams extends coreClient.OperationOptions { /** An OData filter expression that filters elements in the collection. */ filter?: string; } /** Contains response data for the listByDatabase operation. */ export declare type DatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; /** Optional parameters. */ export declare interface DatabasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type DatabasesCreateOrUpdateResponse = Database; /** Optional parameters. */ export declare interface DatabasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** A list of the database's security alert policies. */ export declare interface DatabaseSecurityAlertListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: DatabaseSecurityAlertPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a DatabaseSecurityAlertPolicies. */ export declare interface DatabaseSecurityAlertPolicies { /** * Gets a list of database's security alert policies. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database for which the security alert policy is defined. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets a database's security alert policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database for which the security alert policy is defined. * @param securityAlertPolicyName The name of the security alert policy. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, securityAlertPolicyName: SecurityAlertPolicyName, options?: DatabaseSecurityAlertPoliciesGetOptionalParams): Promise; /** * Creates or updates a database's security alert policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database for which the security alert policy is defined. * @param securityAlertPolicyName The name of the security alert policy. * @param parameters The database security alert policy. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: DatabaseSecurityAlertPolicy, options?: DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy; /** Optional parameters. */ export declare interface DatabaseSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseSecurityAlertPoliciesGetResponse = DatabaseSecurityAlertPolicy; /** Optional parameters. */ export declare interface DatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult; /** Optional parameters. */ export declare interface DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult; /** A database security alert policy. */ export declare interface DatabaseSecurityAlertPolicy extends ProxyResource { /** * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ state?: SecurityAlertsPolicyState; /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ disabledAlerts?: string[]; /** Specifies an array of e-mail addresses to which the alert is sent. */ emailAddresses?: string[]; /** Specifies that the alert is sent to the account administrators. */ emailAccountAdmins?: boolean; /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ storageEndpoint?: string; /** Specifies the identifier key of the Threat Detection audit storage account. */ storageAccountAccessKey?: string; /** Specifies the number of days to keep in the Threat Detection audit logs. */ retentionDays?: number; /** * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationTime?: Date; } /** Optional parameters. */ export declare interface DatabasesExportOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the export operation. */ export declare type DatabasesExportResponse = ImportExportOperationResult; /** Optional parameters. */ export declare interface DatabasesFailoverOptionalParams extends coreClient.OperationOptions { /** The type of replica to be failed over. */ replicaType?: ReplicaType; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface DatabasesGetOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; /** An OData filter expression that filters elements in the collection. */ filter?: string; } /** Contains response data for the get operation. */ export declare type DatabasesGetResponse = Database; /** Optional parameters. */ export declare interface DatabasesImportOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the import operation. */ export declare type DatabasesImportResponse = ImportExportOperationResult; /** Optional parameters. */ export declare interface DatabasesListByElasticPoolNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByElasticPoolNext operation. */ export declare type DatabasesListByElasticPoolNextResponse = DatabaseListResult; /** Optional parameters. */ export declare interface DatabasesListByElasticPoolOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByElasticPool operation. */ export declare type DatabasesListByElasticPoolResponse = DatabaseListResult; /** Optional parameters. */ export declare interface DatabasesListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type DatabasesListByServerNextResponse = DatabaseListResult; /** Optional parameters. */ export declare interface DatabasesListByServerOptionalParams extends coreClient.OperationOptions { skipToken?: string; } /** Contains response data for the listByServer operation. */ export declare type DatabasesListByServerResponse = DatabaseListResult; /** Optional parameters. */ export declare interface DatabasesListInaccessibleByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listInaccessibleByServerNext operation. */ export declare type DatabasesListInaccessibleByServerNextResponse = DatabaseListResult; /** Optional parameters. */ export declare interface DatabasesListInaccessibleByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listInaccessibleByServer operation. */ export declare type DatabasesListInaccessibleByServerResponse = DatabaseListResult; /** Optional parameters. */ export declare interface DatabasesListMetricDefinitionsOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listMetricDefinitions operation. */ export declare type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult; /** Optional parameters. */ export declare interface DatabasesListMetricsOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listMetrics operation. */ export declare type DatabasesListMetricsResponse = MetricListResult; /** Optional parameters. */ export declare interface DatabasesPauseOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the pause operation. */ export declare type DatabasesPauseResponse = Database; /** Interface representing a DatabaseSqlVulnerabilityAssessmentBaselines. */ export declare interface DatabaseSqlVulnerabilityAssessmentBaselines { /** * Gets a list of database's sql vulnerability assessment rule baselines. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ listBySqlVulnerabilityAssessment(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams): PagedAsyncIterableIterator; /** * Gets a list of database's sql vulnerability assessment rule baselines. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param baselineName * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, options?: DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams): Promise; /** * Add a database's vulnerability assessment rule baseline list. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param baselineName * @param parameters The requested rule baseline resource. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput, options?: DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; /** A database sql vulnerability assessment baseline set. */ export declare interface DatabaseSqlVulnerabilityAssessmentBaselineSet extends ProxyResource { /** * SystemData of DatabaseSqlVulnerabilityAssessmentBaselineSetResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** The baseline set result */ results?: { [propertyName: string]: string[][]; }; } /** A list of SQL Vulnerability Assessments baseline set. */ export declare interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: DatabaseSqlVulnerabilityAssessmentBaselineSet[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseSqlVulnerabilityAssessmentBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listBySqlVulnerabilityAssessmentNext operation. */ export declare type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listBySqlVulnerabilityAssessment operation. */ export declare type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; /** Interface representing a DatabaseSqlVulnerabilityAssessmentExecuteScan. */ export declare interface DatabaseSqlVulnerabilityAssessmentExecuteScan { /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ beginExecute(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams): Promise, void>>; /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ beginExecuteAndWait(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** A database sql vulnerability assessment rule baseline. */ export declare interface DatabaseSqlVulnerabilityAssessmentRuleBaseline extends ProxyResource { /** * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** The rule baseline result */ results?: string[][]; } /** A database sql vulnerability assessment rule baseline input. */ export declare interface DatabaseSqlVulnerabilityAssessmentRuleBaselineInput extends ProxyResource { /** * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineInputResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** The latest scan flag */ latestScan?: boolean; /** The rule baseline result */ results?: string[][]; } /** A database sql vulnerability assessment rule baseline list input. */ export declare interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput extends ProxyResource { /** * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** The latest scan flag */ latestScan?: boolean; /** The rule baseline result list */ results?: { [propertyName: string]: string[][]; }; } /** A list of SQL Vulnerability Assessments rule baseline. */ export declare interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: DatabaseSqlVulnerabilityAssessmentRuleBaseline[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a DatabaseSqlVulnerabilityAssessmentRuleBaselines. */ export declare interface DatabaseSqlVulnerabilityAssessmentRuleBaselines { /** * Gets a list of database's sql vulnerability assessment rule baselines. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param baselineName * @param options The options parameters. */ listByBaseline(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams): PagedAsyncIterableIterator; /** * Gets a database's sql vulnerability assessment rule baseline. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param baselineName * @param ruleId The vulnerability assessment rule ID. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, ruleId: string, options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams): Promise; /** * Creates or updates a database's vulnerability assessment rule baseline. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param baselineName * @param ruleId The vulnerability assessment rule ID. * @param parameters The requested rule baseline resource. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, ruleId: string, parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineInput, options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams): Promise; /** * Removes the database's vulnerability assessment rule baseline. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param baselineName * @param ruleId The vulnerability assessment rule ID. * @param options The options parameters. */ delete(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, ruleId: string, options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByBaselineNext operation. */ export declare type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByBaseline operation. */ export declare type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; /** Interface representing a DatabaseSqlVulnerabilityAssessmentScanResult. */ export declare interface DatabaseSqlVulnerabilityAssessmentScanResult { /** * Gets a vulnerability assessment scan record of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. * @param options The options parameters. */ listByScan(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, scanId: string, options?: DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams): PagedAsyncIterableIterator; /** * Gets a vulnerability assessment scan record of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. * @param scanResultId The scan result id of the specific result to retrieve. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, scanId: string, scanResultId: string, options?: DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseSqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByScanNext operation. */ export declare type DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByScan operation. */ export declare type DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; /** Interface representing a DatabaseSqlVulnerabilityAssessmentScans. */ export declare interface DatabaseSqlVulnerabilityAssessmentScans { /** * Lists the vulnerability assessment scans of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ listBySqlVulnerabilityAssessments(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams): PagedAsyncIterableIterator; /** * Get a database vulnerability assessment scan result. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseSqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listBySqlVulnerabilityAssessmentsNext operation. */ export declare type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listBySqlVulnerabilityAssessments operation. */ export declare type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** Interface representing a DatabaseSqlVulnerabilityAssessmentsSettings. */ export declare interface DatabaseSqlVulnerabilityAssessmentsSettings { /** * Lists SQL Vulnerability Assessment policies associated with a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets SQL Vulnerability Assessment policy for database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, options?: DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse = SqlVulnerabilityAssessmentListResult; /** Optional parameters. */ export declare interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse = SqlVulnerabilityAssessmentListResult; /** Optional parameters. */ export declare interface DatabasesRenameOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface DatabasesResumeOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the resume operation. */ export declare type DatabasesResumeResponse = Database; /** * Defines values for DatabaseState. \ * {@link KnownDatabaseState} can be used interchangeably with DatabaseState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **All** \ * **Live** \ * **Deleted** */ export declare type DatabaseState = string; /** * Defines values for DatabaseStatus. \ * {@link KnownDatabaseStatus} can be used interchangeably with DatabaseStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Online** \ * **Restoring** \ * **RecoveryPending** \ * **Recovering** \ * **Suspect** \ * **Offline** \ * **Standby** \ * **Shutdown** \ * **EmergencyMode** \ * **AutoClosed** \ * **Copying** \ * **Creating** \ * **Inaccessible** \ * **OfflineSecondary** \ * **Pausing** \ * **Paused** \ * **Resuming** \ * **Scaling** \ * **OfflineChangingDwPerformanceTiers** \ * **OnlineChangingDwPerformanceTiers** \ * **Disabled** \ * **Stopping** \ * **Stopped** \ * **Starting** */ export declare type DatabaseStatus = string; /** Optional parameters. */ export declare interface DatabasesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type DatabasesUpdateResponse = Database; /** Optional parameters. */ export declare interface DatabasesUpgradeDataWarehouseOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** A database table resource. */ export declare interface DatabaseTable extends ProxyResource { /** The table temporal type. */ temporalType?: TableTemporalType; /** Whether or not the table is memory optimized. */ memoryOptimized?: boolean; } /** A list of database tables. */ export declare interface DatabaseTableListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: DatabaseTable[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a DatabaseTables. */ export declare interface DatabaseTables { /** * List database tables * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param options The options parameters. */ listBySchema(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, options?: DatabaseTablesListBySchemaOptionalParams): PagedAsyncIterableIterator; /** * Get database table * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, options?: DatabaseTablesGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseTablesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseTablesGetResponse = DatabaseTable; /** Optional parameters. */ export declare interface DatabaseTablesListBySchemaNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listBySchemaNext operation. */ export declare type DatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; /** Optional parameters. */ export declare interface DatabaseTablesListBySchemaOptionalParams extends coreClient.OperationOptions { /** An OData filter expression that filters elements in the collection. */ filter?: string; } /** Contains response data for the listBySchema operation. */ export declare type DatabaseTablesListBySchemaResponse = DatabaseTableListResult; /** A database update resource. */ export declare interface DatabaseUpdate { /** The name and tier of the SKU. */ sku?: Sku; /** Database identity */ identity?: DatabaseIdentity; /** Resource tags. */ tags?: { [propertyName: string]: string; }; /** * Specifies the mode of database creation. * * Default: regular database creation. * * Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database. * * Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database. * * PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified. * * Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore. * * Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time. * * RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID. * * Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. */ createMode?: CreateMode; /** The collation of the database. */ collation?: string; /** The max size of the database expressed in bytes. */ maxSizeBytes?: number; /** The name of the sample schema to apply when creating this database. */ sampleName?: SampleName; /** The resource identifier of the elastic pool containing this database. */ elasticPoolId?: string; /** The resource identifier of the source database associated with create operation of this database. */ sourceDatabaseId?: string; /** * The status of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: DatabaseStatus; /** * The ID of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseId?: string; /** * The creation date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationDate?: Date; /** * The current service level objective name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentServiceObjectiveName?: string; /** * The requested service level objective name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestedServiceObjectiveName?: string; /** * The default secondary region for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly defaultSecondaryLocation?: string; /** * Failover Group resource identifier that this database belongs to. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly failoverGroupId?: string; /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ restorePointInTime?: Date; /** Specifies the time that the database was deleted. */ sourceDatabaseDeletionDate?: Date; /** The resource identifier of the recovery point associated with create operation of this database. */ recoveryServicesRecoveryPointId?: string; /** The resource identifier of the long term retention backup associated with create operation of this database. */ longTermRetentionBackupResourceId?: string; /** The resource identifier of the recoverable database associated with create operation of this database. */ recoverableDatabaseId?: string; /** The resource identifier of the restorable dropped database associated with create operation of this database. */ restorableDroppedDatabaseId?: string; /** Collation of the metadata catalog. */ catalogCollation?: CatalogCollationType; /** Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. */ zoneRedundant?: boolean; /** The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. */ licenseType?: DatabaseLicenseType; /** * The max log size for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly maxLogSizeBytes?: number; /** * This records the earliest start date and time that restore is available for this database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly earliestRestoreDate?: Date; /** The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool. */ readScale?: DatabaseReadScale; /** The number of secondary replicas associated with the database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool. */ highAvailabilityReplicaCount?: number; /** The secondary type of the database if it is a secondary. Valid values are Geo, Named and Standby. */ secondaryType?: SecondaryType; /** * The name and tier of the SKU. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentSku?: Sku; /** Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled */ autoPauseDelay?: number; /** * The storage account type used to store backups for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; /** The storage account type to be used to store backups for this database. */ requestedBackupStorageRedundancy?: BackupStorageRedundancy; /** Minimal capacity that database will always have allocated, if not paused */ minCapacity?: number; /** * The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly pausedDate?: Date; /** * The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly resumedDate?: Date; /** Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur. */ maintenanceConfigurationId?: string; /** Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. */ isLedgerOn?: boolean; /** * Infra encryption is enabled for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isInfraEncryptionEnabled?: boolean; /** The Client id used for cross tenant per database CMK scenario */ federatedClientId?: string; /** The resource ids of the user assigned identities to use */ keys?: { [propertyName: string]: DatabaseKey; }; /** The azure key vault URI of the database if it's configured with per Database Customer Managed Keys. */ encryptionProtector?: string; /** Type of enclave requested on the database i.e. Default or VBS enclaves. */ preferredEnclaveType?: AlwaysEncryptedEnclaveType; /** * Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier. * * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier. * * When manualCutover is specified, the scaling operation will wait for user input to trigger cutover to Hyperscale database. * * To trigger cutover, please provide 'performCutover' parameter when the Scaling operation is in Waiting state. */ manualCutover?: boolean; /** * To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress. * * This property parameter is only applicable for scaling operations that are initiated along with 'manualCutover' parameter. * * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier is already in progress. * * When performCutover is specified, the scaling operation will trigger cutover and perform role-change to Hyperscale database. */ performCutover?: boolean; } /** Usage metric of a database. */ export declare interface DatabaseUsage extends ProxyResource { /** * User-readable name of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly displayName?: string; /** * Current value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentValue?: number; /** * Boundary value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly limit?: number; /** * Unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: string; } /** A list of database usage metrics. */ export declare interface DatabaseUsageListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: DatabaseUsage[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a DatabaseUsages. */ export declare interface DatabaseUsages { /** * Gets database usages. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseUsagesListByDatabaseOptionalParams): PagedAsyncIterableIterator; } /** Optional parameters. */ export declare interface DatabaseUsagesListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type DatabaseUsagesListByDatabaseNextResponse = DatabaseUsageListResult; /** Optional parameters. */ export declare interface DatabaseUsagesListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult; /** Azure Active Directory identity configuration for a resource. */ export declare interface DatabaseUserIdentity { /** * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly principalId?: string; /** * The Azure Active Directory client id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly clientId?: string; } /** A database vulnerability assessment. */ export declare interface DatabaseVulnerabilityAssessment extends ProxyResource { /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set */ storageContainerPath?: string; /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. */ storageContainerSasKey?: string; /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. */ storageAccountAccessKey?: string; /** The recurring scans settings */ recurringScans?: VulnerabilityAssessmentRecurringScansProperties; } /** A list of the database's vulnerability assessments. */ export declare interface DatabaseVulnerabilityAssessmentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: DatabaseVulnerabilityAssessment[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** A database vulnerability assessment rule baseline. */ export declare interface DatabaseVulnerabilityAssessmentRuleBaseline extends ProxyResource { /** The rule baseline result */ baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; } /** Properties for an Azure SQL Database Vulnerability Assessment rule baseline's result. */ export declare interface DatabaseVulnerabilityAssessmentRuleBaselineItem { /** The rule baseline result */ result: string[]; } /** Interface representing a DatabaseVulnerabilityAssessmentRuleBaselines. */ export declare interface DatabaseVulnerabilityAssessmentRuleBaselines { /** * Gets a database's vulnerability assessment rule baseline. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database for which the vulnerability assessment rule baseline is * defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a * baseline on a database level rule and master for server level rule). * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, options?: DatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams): Promise; /** * Creates or updates a database's vulnerability assessment rule baseline. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database for which the vulnerability assessment rule baseline is * defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a * baseline on a database level rule and master for server level rule). * @param parameters The requested rule baseline resource. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, parameters: DatabaseVulnerabilityAssessmentRuleBaseline, options?: DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams): Promise; /** * Removes the database's vulnerability assessment rule baseline. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database for which the vulnerability assessment rule baseline is * defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a * baseline on a database level rule and master for server level rule). * @param options The options parameters. */ delete(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, options?: DatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ export declare interface DatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface DatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Interface representing a DatabaseVulnerabilityAssessments. */ export declare interface DatabaseVulnerabilityAssessments { /** * Lists the vulnerability assessment policies associated with a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database for which the vulnerability assessment policies are * defined. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets the database's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database for which the vulnerability assessment is defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: DatabaseVulnerabilityAssessmentsGetOptionalParams): Promise; /** * Creates or updates the database's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database for which the vulnerability assessment is defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param parameters The requested resource. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, parameters: DatabaseVulnerabilityAssessment, options?: DatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams): Promise; /** * Removes the database's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database for which the vulnerability assessment is defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ delete(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: DatabaseVulnerabilityAssessmentsDeleteOptionalParams): Promise; } /** Interface representing a DatabaseVulnerabilityAssessmentScans. */ export declare interface DatabaseVulnerabilityAssessmentScans { /** * Lists the vulnerability assessment scans of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ beginInitiateScan(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams): Promise, void>>; /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ beginInitiateScanAndWait(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams): Promise; /** * Gets a vulnerability assessment scan record of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: DatabaseVulnerabilityAssessmentScansGetOptionalParams): Promise; /** * Convert an existing scan result to a human readable format. If already exists nothing happens * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the scanned database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id. * @param options The options parameters. */ export(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: DatabaseVulnerabilityAssessmentScansExportOptionalParams): Promise; } /** A database Vulnerability Assessment scan export resource. */ export declare interface DatabaseVulnerabilityAssessmentScansExport extends ProxyResource { /** * Location of the exported report (e.g. https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly exportedReportLocation?: string; } /** Optional parameters. */ export declare interface DatabaseVulnerabilityAssessmentScansExportOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the export operation. */ export declare type DatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; /** Optional parameters. */ export declare interface DatabaseVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; /** Optional parameters. */ export declare interface DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ export declare interface DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ export declare interface DatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ export declare interface DatabaseVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface DatabaseVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ export declare interface DatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ export declare interface DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; /** Defines values for DataMaskingFunction. */ export declare type DataMaskingFunction = "Default" | "CCN" | "Email" | "Number" | "SSN" | "Text"; /** Interface representing a DataMaskingPolicies. */ export declare interface DataMaskingPolicies { /** * Creates or updates a database data masking policy * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters Parameters for creating or updating a data masking policy. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: DataMaskingPolicy, options?: DataMaskingPoliciesCreateOrUpdateOptionalParams): Promise; /** * Gets a database data masking policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, options?: DataMaskingPoliciesGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface DataMaskingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; /** Optional parameters. */ export declare interface DataMaskingPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DataMaskingPoliciesGetResponse = DataMaskingPolicy; /** Represents a database data masking policy. */ export declare interface DataMaskingPolicy extends ProxyResource { /** * The location of the data masking policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly location?: string; /** * The kind of data masking policy. Metadata, used for Azure portal. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; /** The state of the data masking policy. */ dataMaskingState?: DataMaskingState; /** The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries. */ exemptPrincipals?: string; /** * The list of the application principals. This is a legacy parameter and is no longer used. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly applicationPrincipals?: string; /** * The masking level. This is a legacy parameter and is no longer used. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly maskingLevel?: string; } /** Represents a database data masking rule. */ export declare interface DataMaskingRule extends ProxyResource { /** * The location of the data masking rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly location?: string; /** * The kind of Data Masking Rule. Metadata, used for Azure portal. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; /** * The rule Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly idPropertiesId?: string; /** The alias name. This is a legacy parameter and is no longer used. */ aliasName?: string; /** The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value of ruleState. */ ruleState?: DataMaskingRuleState; /** The schema name on which the data masking rule is applied. */ schemaName?: string; /** The table name on which the data masking rule is applied. */ tableName?: string; /** The column name on which the data masking rule is applied. */ columnName?: string; /** The masking function that is used for the data masking rule. */ maskingFunction?: DataMaskingFunction; /** The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. */ numberFrom?: string; /** The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. */ numberTo?: string; /** If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string. Otherwise, this parameter will be ignored. */ prefixSize?: string; /** If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string. Otherwise, this parameter will be ignored. */ suffixSize?: string; /** If maskingFunction is set to Text, the character to use for masking the unexposed part of the string. Otherwise, this parameter will be ignored. */ replacementString?: string; } /** The response to a list data masking rules request. */ export declare interface DataMaskingRuleListResult { /** The list of database data masking rules. */ value?: DataMaskingRule[]; } /** Interface representing a DataMaskingRules. */ export declare interface DataMaskingRules { /** * Gets a list of database data masking rules. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DataMaskingRulesListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Creates or updates a database data masking rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param dataMaskingRuleName The name of the data masking rule. * @param parameters The required parameters for creating or updating a data masking rule. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: DataMaskingRule, options?: DataMaskingRulesCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface DataMaskingRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; /** Optional parameters. */ export declare interface DataMaskingRulesListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult; /** Defines values for DataMaskingRuleState. */ export declare type DataMaskingRuleState = "Disabled" | "Enabled"; /** Defines values for DataMaskingState. */ export declare type DataMaskingState = "Disabled" | "Enabled"; /** User activities of a data warehouse */ export declare interface DataWarehouseUserActivities extends ProxyResource { /** * Count of running and suspended queries. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly activeQueriesCount?: number; } /** Optional parameters. */ export declare interface DataWarehouseUserActivitiesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; /** Optional parameters. */ export declare interface DataWarehouseUserActivitiesListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult; /** Optional parameters. */ export declare interface DataWarehouseUserActivitiesListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult; /** User activities of a data warehouse */ export declare interface DataWarehouseUserActivitiesListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: DataWarehouseUserActivities[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a DataWarehouseUserActivitiesOperations. */ export declare interface DataWarehouseUserActivitiesOperations { /** * List the user activities of a data warehouse which includes running and suspended queries * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DataWarehouseUserActivitiesListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets the user activities of a data warehouse which includes running and suspended queries * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param dataWarehouseUserActivityName The activity name of the data warehouse. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, dataWarehouseUserActivityName: DataWarehouseUserActivityName, options?: DataWarehouseUserActivitiesGetOptionalParams): Promise; } /** * Defines values for DataWarehouseUserActivityName. \ * {@link KnownDataWarehouseUserActivityName} can be used interchangeably with DataWarehouseUserActivityName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **current** */ export declare type DataWarehouseUserActivityName = string; /** * Defines values for DayOfWeek. \ * {@link KnownDayOfWeek} can be used interchangeably with DayOfWeek, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Sunday** \ * **Monday** \ * **Tuesday** \ * **Wednesday** \ * **Thursday** \ * **Friday** \ * **Saturday** */ export declare type DayOfWeek = string; /** A deleted server. */ export declare interface DeletedServer extends ProxyResource { /** * The version of the deleted server. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly version?: string; /** * The deletion time of the deleted server. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly deletionTime?: Date; /** * The original ID of the server before deletion. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly originalId?: string; /** * The fully qualified domain name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly fullyQualifiedDomainName?: string; } /** A list of deleted servers. */ export declare interface DeletedServerListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: DeletedServer[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a DeletedServers. */ export declare interface DeletedServers { /** * Gets a list of all deleted servers in a subscription. * @param options The options parameters. */ list(options?: DeletedServersListOptionalParams): PagedAsyncIterableIterator; /** * Gets a list of deleted servers for a location. * @param locationName The name of the region where the resource is located. * @param options The options parameters. */ listByLocation(locationName: string, options?: DeletedServersListByLocationOptionalParams): PagedAsyncIterableIterator; /** * Gets a deleted server. * @param locationName The name of the region where the resource is located. * @param deletedServerName The name of the deleted server. * @param options The options parameters. */ get(locationName: string, deletedServerName: string, options?: DeletedServersGetOptionalParams): Promise; /** * Recovers a deleted server. * @param locationName The name of the region where the resource is located. * @param deletedServerName The name of the deleted server. * @param options The options parameters. */ beginRecover(locationName: string, deletedServerName: string, options?: DeletedServersRecoverOptionalParams): Promise, DeletedServersRecoverResponse>>; /** * Recovers a deleted server. * @param locationName The name of the region where the resource is located. * @param deletedServerName The name of the deleted server. * @param options The options parameters. */ beginRecoverAndWait(locationName: string, deletedServerName: string, options?: DeletedServersRecoverOptionalParams): Promise; } /** Optional parameters. */ export declare interface DeletedServersGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DeletedServersGetResponse = DeletedServer; /** Optional parameters. */ export declare interface DeletedServersListByLocationNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByLocationNext operation. */ export declare type DeletedServersListByLocationNextResponse = DeletedServerListResult; /** Optional parameters. */ export declare interface DeletedServersListByLocationOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByLocation operation. */ export declare type DeletedServersListByLocationResponse = DeletedServerListResult; /** Optional parameters. */ export declare interface DeletedServersListNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listNext operation. */ export declare type DeletedServersListNextResponse = DeletedServerListResult; /** Optional parameters. */ export declare interface DeletedServersListOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the list operation. */ export declare type DeletedServersListResponse = DeletedServerListResult; /** Optional parameters. */ export declare interface DeletedServersRecoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the recover operation. */ export declare type DeletedServersRecoverResponse = DeletedServer; /** * Defines values for DevOpsAuditingSettingsName. \ * {@link KnownDevOpsAuditingSettingsName} can be used interchangeably with DevOpsAuditingSettingsName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** */ export declare type DevOpsAuditingSettingsName = string; /** * Defines values for DiffBackupIntervalInHours. \ * {@link KnownDiffBackupIntervalInHours} can be used interchangeably with DiffBackupIntervalInHours, * this enum contains the known values that the service supports. * ### Known values supported by the service * **12** \ * **24** */ export declare type DiffBackupIntervalInHours = number; /** Distributed availability group between box and Sql Managed Instance. */ export declare interface DistributedAvailabilityGroup extends ProxyResource { /** The name of the target database */ targetDatabase?: string; /** The source endpoint */ sourceEndpoint?: string; /** The primary availability group name */ primaryAvailabilityGroupName?: string; /** The secondary availability group name */ secondaryAvailabilityGroupName?: string; /** The replication mode of a distributed availability group. Parameter will be ignored during link creation. */ replicationMode?: ReplicationMode; /** * The distributed availability group id * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly distributedAvailabilityGroupId?: string; /** * The source replica id * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sourceReplicaId?: string; /** * The target replica id * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly targetReplicaId?: string; /** * The link state * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly linkState?: string; /** * The last hardened lsn * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastHardenedLsn?: string; } /** Interface representing a DistributedAvailabilityGroups. */ export declare interface DistributedAvailabilityGroups { /** * Gets a list of a distributed availability groups in instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: DistributedAvailabilityGroupsListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a distributed availability group info. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param distributedAvailabilityGroupName The distributed availability group name. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsGetOptionalParams): Promise; /** * Creates a distributed availability group between Sql On-Prem and Sql Managed Instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param distributedAvailabilityGroupName The distributed availability group name. * @param parameters The distributed availability group info. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams): Promise, DistributedAvailabilityGroupsCreateOrUpdateResponse>>; /** * Creates a distributed availability group between Sql On-Prem and Sql Managed Instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param distributedAvailabilityGroupName The distributed availability group name. * @param parameters The distributed availability group info. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams): Promise; /** * Drops a distributed availability group between Sql On-Prem and Sql Managed Instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param distributedAvailabilityGroupName The distributed availability group name. * @param options The options parameters. */ beginDelete(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsDeleteOptionalParams): Promise, void>>; /** * Drops a distributed availability group between Sql On-Prem and Sql Managed Instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param distributedAvailabilityGroupName The distributed availability group name. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsDeleteOptionalParams): Promise; /** * Updates a distributed availability group replication mode. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param distributedAvailabilityGroupName The distributed availability group name. * @param parameters The distributed availability group info. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsUpdateOptionalParams): Promise, DistributedAvailabilityGroupsUpdateResponse>>; /** * Updates a distributed availability group replication mode. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param distributedAvailabilityGroupName The distributed availability group name. * @param parameters The distributed availability group info. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; /** Optional parameters. */ export declare interface DistributedAvailabilityGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface DistributedAvailabilityGroupsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type DistributedAvailabilityGroupsGetResponse = DistributedAvailabilityGroup; /** Optional parameters. */ export declare interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type DistributedAvailabilityGroupsListByInstanceNextResponse = DistributedAvailabilityGroupsListResult; /** Optional parameters. */ export declare interface DistributedAvailabilityGroupsListByInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstance operation. */ export declare type DistributedAvailabilityGroupsListByInstanceResponse = DistributedAvailabilityGroupsListResult; /** A list of distributed availability groups in instance. */ export declare interface DistributedAvailabilityGroupsListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: DistributedAvailabilityGroup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Optional parameters. */ export declare interface DistributedAvailabilityGroupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type DistributedAvailabilityGroupsUpdateResponse = DistributedAvailabilityGroup; /** * Defines values for DNSRefreshOperationStatus. \ * {@link KnownDNSRefreshOperationStatus} can be used interchangeably with DNSRefreshOperationStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Succeeded** \ * **Failed** \ * **InProgress** */ export declare type DNSRefreshOperationStatus = string; /** * Defines values for DtcName. \ * {@link KnownDtcName} can be used interchangeably with DtcName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **current** */ export declare type DtcName = string; /** The edition capability. */ export declare interface EditionCapability { /** * The database edition name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The list of supported service objectives for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; /** * Whether or not zone redundancy is supported for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly zoneRedundant?: boolean; /** * The read scale capability for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly readScale?: ReadScaleCapability; /** * The list of supported storage capabilities for this edition * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedStorageCapabilities?: StorageCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** An elastic pool. */ export declare interface ElasticPool extends TrackedResource { /** * The elastic pool SKU. * * The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or the following command: * * ```azurecli * az sql elastic-pool list-editions -l -o table * ```` * */ sku?: Sku; /** * Kind of elastic pool. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; /** * The state of the elastic pool. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: ElasticPoolState; /** * The creation date of the elastic pool (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationDate?: Date; /** The storage limit for the database elastic pool in bytes. */ maxSizeBytes?: number; /** The per database settings for the elastic pool. */ perDatabaseSettings?: ElasticPoolPerDatabaseSettings; /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ zoneRedundant?: boolean; /** The license type to apply for this elastic pool. */ licenseType?: ElasticPoolLicenseType; /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ maintenanceConfigurationId?: string; /** The number of secondary replicas associated with the elastic pool that are used to provide high availability. */ highAvailabilityReplicaCount?: number; } /** Interface representing a ElasticPoolActivities. */ export declare interface ElasticPoolActivities { /** * Returns elastic pool activities. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName The name of the elastic pool for which to get the current activity. * @param options The options parameters. */ listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolActivitiesListByElasticPoolOptionalParams): PagedAsyncIterableIterator; } /** Optional parameters. */ export declare interface ElasticPoolActivitiesListByElasticPoolOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByElasticPool operation. */ export declare type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult; /** Represents the activity on an elastic pool. */ export declare interface ElasticPoolActivity extends ProxyResource { /** The geo-location where the resource lives */ location?: string; /** * The time the operation finished (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly endTime?: Date; /** * The error code if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorCode?: number; /** * The error message if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorMessage?: string; /** * The error severity if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorSeverity?: number; /** * The operation name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operation?: string; /** * The unique operation ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operationId?: string; /** * The percentage complete if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly percentComplete?: number; /** * The requested max DTU per database if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestedDatabaseDtuMax?: number; /** * The requested min DTU per database if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestedDatabaseDtuMin?: number; /** * The requested DTU for the pool if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestedDtu?: number; /** * The requested name for the elastic pool if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestedElasticPoolName?: string; /** * The requested storage limit for the pool in GB if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestedStorageLimitInGB?: number; /** * The name of the elastic pool. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly elasticPoolName?: string; /** * The name of the server the elastic pool is in. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serverName?: string; /** * The time the operation started (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: Date; /** * The current state of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: string; /** * The requested storage limit in MB. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestedStorageLimitInMB?: number; /** * The requested per database DTU guarantee. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestedDatabaseDtuGuarantee?: number; /** * The requested per database DTU cap. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestedDatabaseDtuCap?: number; /** * The requested DTU guarantee. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestedDtuGuarantee?: number; } /** Represents the response to a list elastic pool activity request. */ export declare interface ElasticPoolActivityListResult { /** The list of elastic pool activities. */ value: ElasticPoolActivity[]; } /** Interface representing a ElasticPoolDatabaseActivities. */ export declare interface ElasticPoolDatabaseActivities { /** * Returns activity on databases inside of an elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName The name of the elastic pool. * @param options The options parameters. */ listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams): PagedAsyncIterableIterator; } /** Optional parameters. */ export declare interface ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByElasticPool operation. */ export declare type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult; /** Represents the activity on an elastic pool. */ export declare interface ElasticPoolDatabaseActivity extends ProxyResource { /** The geo-location where the resource lives */ location?: string; /** * The database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseName?: string; /** * The time the operation finished (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly endTime?: Date; /** * The error code if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorCode?: number; /** * The error message if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorMessage?: string; /** * The error severity if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorSeverity?: number; /** * The operation name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operation?: string; /** * The unique operation ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operationId?: string; /** * The percentage complete if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly percentComplete?: number; /** * The name for the elastic pool the database is moving into if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestedElasticPoolName?: string; /** * The name of the current elastic pool the database is in if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentElasticPoolName?: string; /** * The name of the current service objective if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentServiceObjective?: string; /** * The name of the requested service objective if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestedServiceObjective?: string; /** * The name of the server the elastic pool is in. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serverName?: string; /** * The time the operation started (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: Date; /** * The current state of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: string; } /** Represents the response to a list elastic pool database activity request. */ export declare interface ElasticPoolDatabaseActivityListResult { /** The list of elastic pool database activities. */ value: ElasticPoolDatabaseActivity[]; } /** The elastic pool edition capability. */ export declare interface ElasticPoolEditionCapability { /** * The elastic pool edition name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The list of supported elastic pool DTU levels for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedElasticPoolPerformanceLevels?: ElasticPoolPerformanceLevelCapability[]; /** * Whether or not zone redundancy is supported for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly zoneRedundant?: boolean; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** * Defines values for ElasticPoolLicenseType. \ * {@link KnownElasticPoolLicenseType} can be used interchangeably with ElasticPoolLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **LicenseIncluded** \ * **BasePrice** */ export declare type ElasticPoolLicenseType = string; /** The result of an elastic pool list request. */ export declare interface ElasticPoolListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ElasticPool[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** A elastic pool operation. */ export declare interface ElasticPoolOperation extends ProxyResource { /** * The name of the elastic pool the operation is being performed on. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly elasticPoolName?: string; /** * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operation?: string; /** * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operationFriendlyName?: string; /** * The percentage of the operation completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly percentComplete?: number; /** * The name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serverName?: string; /** * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: Date; /** * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: string; /** * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorCode?: number; /** * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorDescription?: string; /** * The operation error severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorSeverity?: number; /** * Whether or not the error is a user error. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isUserError?: boolean; /** * The estimated completion time of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly estimatedCompletionTime?: Date; /** * The operation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly description?: string; /** * Whether the operation can be cancelled. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isCancellable?: boolean; } /** The response to a list elastic pool operations request */ export declare interface ElasticPoolOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ElasticPoolOperation[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ElasticPoolOperations. */ export declare interface ElasticPoolOperations { /** * Gets a list of operations performed on the elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName * @param options The options parameters. */ listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolOperationsListByElasticPoolOptionalParams): PagedAsyncIterableIterator; /** * Cancels the asynchronous operation on the elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName * @param operationId The operation identifier. * @param options The options parameters. */ cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options?: ElasticPoolOperationsCancelOptionalParams): Promise; } /** Optional parameters. */ export declare interface ElasticPoolOperationsCancelOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface ElasticPoolOperationsListByElasticPoolNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByElasticPoolNext operation. */ export declare type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult; /** Optional parameters. */ export declare interface ElasticPoolOperationsListByElasticPoolOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByElasticPool operation. */ export declare type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult; /** The max per-database performance level capability. */ export declare interface ElasticPoolPerDatabaseMaxPerformanceLevelCapability { /** * The maximum performance level per database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly limit?: number; /** * Unit type used to measure performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: PerformanceLevelUnit; /** * The list of supported min database performance levels. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedPerDatabaseMinPerformanceLevels?: ElasticPoolPerDatabaseMinPerformanceLevelCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** The minimum per-database performance level capability. */ export declare interface ElasticPoolPerDatabaseMinPerformanceLevelCapability { /** * The minimum performance level per database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly limit?: number; /** * Unit type used to measure performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: PerformanceLevelUnit; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** Per database settings of an elastic pool. */ export declare interface ElasticPoolPerDatabaseSettings { /** The minimum capacity all databases are guaranteed. */ minCapacity?: number; /** The maximum capacity any one database can consume. */ maxCapacity?: number; } /** The Elastic Pool performance level capability. */ export declare interface ElasticPoolPerformanceLevelCapability { /** * The performance level for the pool. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly performanceLevel?: PerformanceLevelCapability; /** * The sku. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sku?: Sku; /** * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** * The maximum number of databases supported. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly maxDatabaseCount?: number; /** * The included (free) max size for this performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly includedMaxSize?: MaxSizeCapability; /** * The list of supported max sizes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedMaxSizes?: MaxSizeRangeCapability[]; /** * The list of supported per database max sizes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedPerDatabaseMaxSizes?: MaxSizeRangeCapability[]; /** * The list of supported per database max performance levels. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedPerDatabaseMaxPerformanceLevels?: ElasticPoolPerDatabaseMaxPerformanceLevelCapability[]; /** * Whether or not zone redundancy is supported for the performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly zoneRedundant?: boolean; /** * List of supported maintenance configurations * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** Interface representing a ElasticPools. */ export declare interface ElasticPools { /** * Returns elastic pool metrics. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName The name of the elastic pool. * @param filter An OData filter expression that describes a subset of metrics to return. * @param options The options parameters. */ listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options?: ElasticPoolsListMetricsOptionalParams): PagedAsyncIterableIterator; /** * Returns elastic pool metric definitions. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName The name of the elastic pool. * @param options The options parameters. */ listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolsListMetricDefinitionsOptionalParams): PagedAsyncIterableIterator; /** * Gets all elastic pools in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ElasticPoolsListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets an elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName The name of the elastic pool. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolsGetOptionalParams): Promise; /** * Creates or updates an elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName The name of the elastic pool. * @param parameters The elastic pool parameters. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, elasticPoolName: string, parameters: ElasticPool, options?: ElasticPoolsCreateOrUpdateOptionalParams): Promise, ElasticPoolsCreateOrUpdateResponse>>; /** * Creates or updates an elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName The name of the elastic pool. * @param parameters The elastic pool parameters. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, elasticPoolName: string, parameters: ElasticPool, options?: ElasticPoolsCreateOrUpdateOptionalParams): Promise; /** * Deletes an elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName The name of the elastic pool. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolsDeleteOptionalParams): Promise, void>>; /** * Deletes an elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName The name of the elastic pool. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolsDeleteOptionalParams): Promise; /** * Updates an elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName The name of the elastic pool. * @param parameters The elastic pool update parameters. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, serverName: string, elasticPoolName: string, parameters: ElasticPoolUpdate, options?: ElasticPoolsUpdateOptionalParams): Promise, ElasticPoolsUpdateResponse>>; /** * Updates an elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName The name of the elastic pool. * @param parameters The elastic pool update parameters. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, serverName: string, elasticPoolName: string, parameters: ElasticPoolUpdate, options?: ElasticPoolsUpdateOptionalParams): Promise; /** * Failovers an elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName The name of the elastic pool to failover. * @param options The options parameters. */ beginFailover(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolsFailoverOptionalParams): Promise, void>>; /** * Failovers an elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param elasticPoolName The name of the elastic pool to failover. * @param options The options parameters. */ beginFailoverAndWait(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolsFailoverOptionalParams): Promise; } /** Optional parameters. */ export declare interface ElasticPoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ElasticPoolsCreateOrUpdateResponse = ElasticPool; /** Optional parameters. */ export declare interface ElasticPoolsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ElasticPoolsFailoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ElasticPoolsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ElasticPoolsGetResponse = ElasticPool; /** Optional parameters. */ export declare interface ElasticPoolsListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type ElasticPoolsListByServerNextResponse = ElasticPoolListResult; /** Optional parameters. */ export declare interface ElasticPoolsListByServerOptionalParams extends coreClient.OperationOptions { /** The number of elements in the collection to skip. */ skip?: number; } /** Contains response data for the listByServer operation. */ export declare type ElasticPoolsListByServerResponse = ElasticPoolListResult; /** Optional parameters. */ export declare interface ElasticPoolsListMetricDefinitionsOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listMetricDefinitions operation. */ export declare type ElasticPoolsListMetricDefinitionsResponse = MetricDefinitionListResult; /** Optional parameters. */ export declare interface ElasticPoolsListMetricsOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listMetrics operation. */ export declare type ElasticPoolsListMetricsResponse = MetricListResult; /** * Defines values for ElasticPoolState. \ * {@link KnownElasticPoolState} can be used interchangeably with ElasticPoolState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Creating** \ * **Ready** \ * **Disabled** */ export declare type ElasticPoolState = string; /** Optional parameters. */ export declare interface ElasticPoolsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type ElasticPoolsUpdateResponse = ElasticPool; /** An elastic pool update. */ export declare interface ElasticPoolUpdate { /** An ARM Resource SKU. */ sku?: Sku; /** Resource tags. */ tags?: { [propertyName: string]: string; }; /** The storage limit for the database elastic pool in bytes. */ maxSizeBytes?: number; /** The per database settings for the elastic pool. */ perDatabaseSettings?: ElasticPoolPerDatabaseSettings; /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ zoneRedundant?: boolean; /** The license type to apply for this elastic pool. */ licenseType?: ElasticPoolLicenseType; /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ maintenanceConfigurationId?: string; /** The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools. */ highAvailabilityReplicaCount?: number; } /** The server encryption protector. */ export declare interface EncryptionProtector extends ProxyResource { /** * Kind of encryption protector. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; /** * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly location?: string; /** * Subregion of the encryption protector. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly subregion?: string; /** The name of the server key. */ serverKeyName?: string; /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ serverKeyType?: ServerKeyType; /** * The URI of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly uri?: string; /** * Thumbprint of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly thumbprint?: string; /** Key auto rotation opt-in flag. Either true or false. */ autoRotationEnabled?: boolean; } /** A list of server encryption protectors. */ export declare interface EncryptionProtectorListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: EncryptionProtector[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for EncryptionProtectorName. \ * {@link KnownEncryptionProtectorName} can be used interchangeably with EncryptionProtectorName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **current** */ export declare type EncryptionProtectorName = string; /** Interface representing a EncryptionProtectors. */ export declare interface EncryptionProtectors { /** * Gets a list of server encryption protectors * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: EncryptionProtectorsListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a server encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param encryptionProtectorName The name of the encryption protector to be retrieved. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, encryptionProtectorName: EncryptionProtectorName, options?: EncryptionProtectorsGetOptionalParams): Promise; /** * Updates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param encryptionProtectorName The name of the encryption protector to be updated. * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, encryptionProtectorName: EncryptionProtectorName, parameters: EncryptionProtector, options?: EncryptionProtectorsCreateOrUpdateOptionalParams): Promise, EncryptionProtectorsCreateOrUpdateResponse>>; /** * Updates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param encryptionProtectorName The name of the encryption protector to be updated. * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, encryptionProtectorName: EncryptionProtectorName, parameters: EncryptionProtector, options?: EncryptionProtectorsCreateOrUpdateOptionalParams): Promise; /** * Revalidates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param encryptionProtectorName The name of the encryption protector to be updated. * @param options The options parameters. */ beginRevalidate(resourceGroupName: string, serverName: string, encryptionProtectorName: EncryptionProtectorName, options?: EncryptionProtectorsRevalidateOptionalParams): Promise, void>>; /** * Revalidates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param encryptionProtectorName The name of the encryption protector to be updated. * @param options The options parameters. */ beginRevalidateAndWait(resourceGroupName: string, serverName: string, encryptionProtectorName: EncryptionProtectorName, options?: EncryptionProtectorsRevalidateOptionalParams): Promise; } /** Optional parameters. */ export declare interface EncryptionProtectorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector; /** Optional parameters. */ export declare interface EncryptionProtectorsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type EncryptionProtectorsGetResponse = EncryptionProtector; /** Optional parameters. */ export declare interface EncryptionProtectorsListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorListResult; /** Optional parameters. */ export declare interface EncryptionProtectorsListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type EncryptionProtectorsListByServerResponse = EncryptionProtectorListResult; /** Optional parameters. */ export declare interface EncryptionProtectorsRevalidateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Certificate used on an endpoint on the Managed Instance. */ export declare interface EndpointCertificate extends ProxyResource { /** The certificate public blob */ publicBlob?: string; } /** A list of endpoint certificates on the target instance. */ export declare interface EndpointCertificateListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: EndpointCertificate[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a EndpointCertificates. */ export declare interface EndpointCertificates { /** * List certificates used on endpoints on the target instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: EndpointCertificatesListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a certificate used on the endpoint with the given id. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param endpointType Type of the endpoint whose certificate the customer is looking for. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, endpointType: string, options?: EndpointCertificatesGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface EndpointCertificatesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type EndpointCertificatesGetResponse = EndpointCertificate; /** Optional parameters. */ export declare interface EndpointCertificatesListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type EndpointCertificatesListByInstanceNextResponse = EndpointCertificateListResult; /** Optional parameters. */ export declare interface EndpointCertificatesListByInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstance operation. */ export declare type EndpointCertificatesListByInstanceResponse = EndpointCertificateListResult; /** A domain name that the managed instance service needs to communicate with, along with additional details. */ export declare interface EndpointDependency { /** * The domain name of the dependency. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly domainName?: string; /** * The IP Addresses and Ports used when connecting to DomainName. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly endpointDetails?: EndpointDetail[]; } /** A domain name that the managed instance service needs to communicate with, along with additional details. */ export declare interface EndpointDetail { /** * The port an endpoint is connected to. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly port?: number; } /** Contains the information necessary to perform export database operation. */ export declare interface ExportDatabaseDefinition { /** Storage key type. */ storageKeyType: StorageKeyType; /** Storage key. */ storageKey: string; /** Storage Uri. */ storageUri: string; /** Administrator login name. */ administratorLogin: string; /** Administrator login password. */ administratorLoginPassword: string; /** Authentication type. */ authenticationType?: string; /** Optional resource information to enable network isolation for request. */ networkIsolation?: NetworkIsolationSettings; } /** Interface representing a ExtendedDatabaseBlobAuditingPolicies. */ export declare interface ExtendedDatabaseBlobAuditingPolicies { /** * Lists extended auditing settings of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets an extended database's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, options?: ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams): Promise; /** * Creates or updates an extended database's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters The extended database blob auditing policy. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: ExtendedDatabaseBlobAuditingPolicy, options?: ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; /** Optional parameters. */ export declare interface ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy; /** Optional parameters. */ export declare interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse = ExtendedDatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ export declare interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult; /** An extended database blob auditing policy. */ export declare interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { /** Specifies condition of where clause when creating an audit. */ predicateExpression?: string; /** Specifies the number of days to keep in the audit logs in the storage account. */ retentionDays?: number; /** * Specifies the Actions-Groups and Actions to audit. * * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: * * BATCH_COMPLETED_GROUP, * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, * FAILED_DATABASE_AUTHENTICATION_GROUP. * * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. * * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): * * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP * BACKUP_RESTORE_GROUP * DATABASE_LOGOUT_GROUP * DATABASE_OBJECT_CHANGE_GROUP * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP * DATABASE_OPERATION_GROUP * DATABASE_PERMISSION_CHANGE_GROUP * DATABASE_PRINCIPAL_CHANGE_GROUP * DATABASE_PRINCIPAL_IMPERSONATION_GROUP * DATABASE_ROLE_MEMBER_CHANGE_GROUP * FAILED_DATABASE_AUTHENTICATION_GROUP * SCHEMA_OBJECT_ACCESS_GROUP * SCHEMA_OBJECT_CHANGE_GROUP * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP * USER_CHANGE_PASSWORD_GROUP * BATCH_STARTED_GROUP * BATCH_COMPLETED_GROUP * DBCC_GROUP * DATABASE_OWNERSHIP_CHANGE_GROUP * DATABASE_CHANGE_GROUP * LEDGER_OPERATION_GROUP * * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. * * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). * * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: * SELECT * UPDATE * INSERT * DELETE * EXECUTE * RECEIVE * REFERENCES * * The general form for defining an action to be audited is: * {action} ON {object} BY {principal} * * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. * * For example: * SELECT on dbo.myTable by public * SELECT on DATABASE::myDatabase by public * SELECT on SCHEMA::mySchema by public * * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ auditActionsAndGroups?: string[]; /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; /** * Specifies whether audit events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. * * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. * Note that for server level audit you should use the 'master' database as {databaseName}. * * Diagnostic Settings URI format: * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview * * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) * */ isAzureMonitorTargetEnabled?: boolean; /** * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ queueDelayMs?: number; /** Specifies whether Managed Identity is used to access blob storage */ isManagedIdentityInUse?: boolean; /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ state?: BlobAuditingPolicyState; /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ storageEndpoint?: string; /** * Specifies the identifier key of the auditing storage account. * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. * Prerequisites for using managed identity authentication: * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ storageAccountAccessKey?: string; /** Specifies the blob storage subscription Id. */ storageAccountSubscriptionId?: string; } /** A list of database extended auditing settings. */ export declare interface ExtendedDatabaseBlobAuditingPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ExtendedDatabaseBlobAuditingPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ExtendedServerBlobAuditingPolicies. */ export declare interface ExtendedServerBlobAuditingPolicies { /** * Lists extended auditing settings of a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ExtendedServerBlobAuditingPoliciesListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets an extended server's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, options?: ExtendedServerBlobAuditingPoliciesGetOptionalParams): Promise; /** * Creates or updates an extended server's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters Properties of extended blob auditing policy * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: ExtendedServerBlobAuditingPolicy, options?: ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise, ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse>>; /** * Creates or updates an extended server's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters Properties of extended blob auditing policy * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, parameters: ExtendedServerBlobAuditingPolicy, options?: ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; /** Optional parameters. */ export declare interface ExtendedServerBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; /** Optional parameters. */ export declare interface ExtendedServerBlobAuditingPoliciesListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type ExtendedServerBlobAuditingPoliciesListByServerNextResponse = ExtendedServerBlobAuditingPolicyListResult; /** Optional parameters. */ export declare interface ExtendedServerBlobAuditingPoliciesListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult; /** An extended server blob auditing policy. */ export declare interface ExtendedServerBlobAuditingPolicy extends ProxyResource { /** * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true * * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created. * * Diagnostic Settings URI format: * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview * * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) * */ isDevopsAuditEnabled?: boolean; /** Specifies condition of where clause when creating an audit. */ predicateExpression?: string; /** Specifies the number of days to keep in the audit logs in the storage account. */ retentionDays?: number; /** * Specifies the Actions-Groups and Actions to audit. * * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: * * BATCH_COMPLETED_GROUP, * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, * FAILED_DATABASE_AUTHENTICATION_GROUP. * * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. * * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): * * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP * BACKUP_RESTORE_GROUP * DATABASE_LOGOUT_GROUP * DATABASE_OBJECT_CHANGE_GROUP * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP * DATABASE_OPERATION_GROUP * DATABASE_PERMISSION_CHANGE_GROUP * DATABASE_PRINCIPAL_CHANGE_GROUP * DATABASE_PRINCIPAL_IMPERSONATION_GROUP * DATABASE_ROLE_MEMBER_CHANGE_GROUP * FAILED_DATABASE_AUTHENTICATION_GROUP * SCHEMA_OBJECT_ACCESS_GROUP * SCHEMA_OBJECT_CHANGE_GROUP * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP * USER_CHANGE_PASSWORD_GROUP * BATCH_STARTED_GROUP * BATCH_COMPLETED_GROUP * DBCC_GROUP * DATABASE_OWNERSHIP_CHANGE_GROUP * DATABASE_CHANGE_GROUP * LEDGER_OPERATION_GROUP * * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. * * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). * * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: * SELECT * UPDATE * INSERT * DELETE * EXECUTE * RECEIVE * REFERENCES * * The general form for defining an action to be audited is: * {action} ON {object} BY {principal} * * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. * * For example: * SELECT on dbo.myTable by public * SELECT on DATABASE::myDatabase by public * SELECT on SCHEMA::mySchema by public * * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ auditActionsAndGroups?: string[]; /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; /** * Specifies whether audit events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. * * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. * Note that for server level audit you should use the 'master' database as {databaseName}. * * Diagnostic Settings URI format: * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview * * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) * */ isAzureMonitorTargetEnabled?: boolean; /** * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ queueDelayMs?: number; /** Specifies whether Managed Identity is used to access blob storage */ isManagedIdentityInUse?: boolean; /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ state?: BlobAuditingPolicyState; /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ storageEndpoint?: string; /** * Specifies the identifier key of the auditing storage account. * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. * Prerequisites for using managed identity authentication: * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ storageAccountAccessKey?: string; /** Specifies the blob storage subscription Id. */ storageAccountSubscriptionId?: string; } /** A list of server extended auditing settings. */ export declare interface ExtendedServerBlobAuditingPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ExtendedServerBlobAuditingPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for ExternalGovernanceStatus. \ * {@link KnownExternalGovernanceStatus} can be used interchangeably with ExternalGovernanceStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Enabled** \ * **Disabled** */ export declare type ExternalGovernanceStatus = string; /** A failover group. */ export declare interface FailoverGroup extends ProxyResource { /** * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly location?: string; /** Resource tags. */ tags?: { [propertyName: string]: string; }; /** Read-write endpoint of the failover group instance. */ readWriteEndpoint?: FailoverGroupReadWriteEndpoint; /** Read-only endpoint of the failover group instance. */ readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; /** * Local replication role of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationRole?: FailoverGroupReplicationRole; /** * Replication state of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationState?: string; /** List of partner server information for the failover group. */ partnerServers?: PartnerInfo[]; /** List of databases in the failover group. */ databases?: string[]; } /** A list of failover groups. */ export declare interface FailoverGroupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: FailoverGroup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Read-only endpoint of the failover group instance. */ export declare interface FailoverGroupReadOnlyEndpoint { /** Failover policy of the read-only endpoint for the failover group. */ failoverPolicy?: ReadOnlyEndpointFailoverPolicy; } /** Read-write endpoint of the failover group instance. */ export declare interface FailoverGroupReadWriteEndpoint { /** Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ failoverPolicy: ReadWriteEndpointFailoverPolicy; /** Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ failoverWithDataLossGracePeriodMinutes?: number; } /** * Defines values for FailoverGroupReplicationRole. \ * {@link KnownFailoverGroupReplicationRole} can be used interchangeably with FailoverGroupReplicationRole, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Primary** \ * **Secondary** */ export declare type FailoverGroupReplicationRole = string; /** Interface representing a FailoverGroups. */ export declare interface FailoverGroups { /** * Lists the failover groups in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server containing the failover group. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: FailoverGroupsListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a failover group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server containing the failover group. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsGetOptionalParams): Promise; /** * Creates or updates a failover group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server containing the failover group. * @param failoverGroupName The name of the failover group. * @param parameters The failover group parameters. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroup, options?: FailoverGroupsCreateOrUpdateOptionalParams): Promise, FailoverGroupsCreateOrUpdateResponse>>; /** * Creates or updates a failover group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server containing the failover group. * @param failoverGroupName The name of the failover group. * @param parameters The failover group parameters. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroup, options?: FailoverGroupsCreateOrUpdateOptionalParams): Promise; /** * Deletes a failover group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server containing the failover group. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsDeleteOptionalParams): Promise, void>>; /** * Deletes a failover group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server containing the failover group. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsDeleteOptionalParams): Promise; /** * Updates a failover group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server containing the failover group. * @param failoverGroupName The name of the failover group. * @param parameters The failover group parameters. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroupUpdate, options?: FailoverGroupsUpdateOptionalParams): Promise, FailoverGroupsUpdateResponse>>; /** * Updates a failover group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server containing the failover group. * @param failoverGroupName The name of the failover group. * @param parameters The failover group parameters. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroupUpdate, options?: FailoverGroupsUpdateOptionalParams): Promise; /** * Fails over from the current primary server to this server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server containing the failover group. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginFailover(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsFailoverOptionalParams): Promise, FailoverGroupsFailoverResponse>>; /** * Fails over from the current primary server to this server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server containing the failover group. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginFailoverAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsFailoverOptionalParams): Promise; /** * Fails over from the current primary server to this server. This operation might result in data loss. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server containing the failover group. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginForceFailoverAllowDataLoss(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsForceFailoverAllowDataLossOptionalParams): Promise, FailoverGroupsForceFailoverAllowDataLossResponse>>; /** * Fails over from the current primary server to this server. This operation might result in data loss. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server containing the failover group. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginForceFailoverAllowDataLossAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsForceFailoverAllowDataLossOptionalParams): Promise; } /** Optional parameters. */ export declare interface FailoverGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type FailoverGroupsCreateOrUpdateResponse = FailoverGroup; /** Optional parameters. */ export declare interface FailoverGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface FailoverGroupsFailoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the failover operation. */ export declare type FailoverGroupsFailoverResponse = FailoverGroup; /** Optional parameters. */ export declare interface FailoverGroupsForceFailoverAllowDataLossOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the forceFailoverAllowDataLoss operation. */ export declare type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup; /** Optional parameters. */ export declare interface FailoverGroupsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type FailoverGroupsGetResponse = FailoverGroup; /** Optional parameters. */ export declare interface FailoverGroupsListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type FailoverGroupsListByServerNextResponse = FailoverGroupListResult; /** Optional parameters. */ export declare interface FailoverGroupsListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type FailoverGroupsListByServerResponse = FailoverGroupListResult; /** Optional parameters. */ export declare interface FailoverGroupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type FailoverGroupsUpdateResponse = FailoverGroup; /** A failover group update request. */ export declare interface FailoverGroupUpdate { /** Resource tags. */ tags?: { [propertyName: string]: string; }; /** Read-write endpoint of the failover group instance. */ readWriteEndpoint?: FailoverGroupReadWriteEndpoint; /** Read-only endpoint of the failover group instance. */ readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; /** List of databases in the failover group. */ databases?: string[]; } /** A server firewall rule. */ export declare interface FirewallRule extends ProxyResourceWithWritableName { /** The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' for all Azure-internal IP addresses. */ startIpAddress?: string; /** The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' for all Azure-internal IP addresses. */ endIpAddress?: string; } /** A list of server firewall rules. */ export declare interface FirewallRuleList { values?: FirewallRule[]; } /** The response to a list firewall rules request */ export declare interface FirewallRuleListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: FirewallRule[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a FirewallRules. */ export declare interface FirewallRules { /** * Gets a list of firewall rules. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: FirewallRulesListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param firewallRuleName The name of the firewall rule. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: FirewallRulesGetOptionalParams): Promise; /** * Creates or updates a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param firewallRuleName The name of the firewall rule. * @param parameters The required parameters for creating or updating a firewall rule. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: FirewallRule, options?: FirewallRulesCreateOrUpdateOptionalParams): Promise; /** * Deletes a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param firewallRuleName The name of the firewall rule. * @param options The options parameters. */ delete(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: FirewallRulesDeleteOptionalParams): Promise; /** * Replaces all firewall rules on the server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters A list of server firewall rules. * @param options The options parameters. */ replace(resourceGroupName: string, serverName: string, parameters: FirewallRuleList, options?: FirewallRulesReplaceOptionalParams): Promise; } /** Optional parameters. */ export declare interface FirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type FirewallRulesCreateOrUpdateResponse = FirewallRule; /** Optional parameters. */ export declare interface FirewallRulesDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface FirewallRulesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type FirewallRulesGetResponse = FirewallRule; /** Optional parameters. */ export declare interface FirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type FirewallRulesListByServerNextResponse = FirewallRuleListResult; /** Optional parameters. */ export declare interface FirewallRulesListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type FirewallRulesListByServerResponse = FirewallRuleListResult; /** Optional parameters. */ export declare interface FirewallRulesReplaceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the replace operation. */ export declare type FirewallRulesReplaceResponse = FirewallRule; /** Interface representing a GeoBackupPolicies. */ export declare interface GeoBackupPolicies { /** * Returns a list of geo backup policies. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: GeoBackupPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Updates a database geo backup policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param geoBackupPolicyName The name of the geo backup policy. * @param parameters The required parameters for creating or updating the geo backup policy. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, parameters: GeoBackupPolicy, options?: GeoBackupPoliciesCreateOrUpdateOptionalParams): Promise; /** * Gets a geo backup policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param geoBackupPolicyName The name of the geo backup policy. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, options?: GeoBackupPoliciesGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface GeoBackupPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; /** Optional parameters. */ export declare interface GeoBackupPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type GeoBackupPoliciesGetResponse = GeoBackupPolicy; /** Optional parameters. */ export declare interface GeoBackupPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult; /** A database geo backup policy. */ export declare interface GeoBackupPolicy extends ProxyResource { /** * Kind of geo backup policy. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; /** * Backup policy location. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly location?: string; /** The state of the geo backup policy. */ state: GeoBackupPolicyState; /** * The storage type of the geo backup policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly storageType?: string; } /** The response to a list geo backup policies request. */ export declare interface GeoBackupPolicyListResult { /** The list of geo backup policies. */ value?: GeoBackupPolicy[]; } /** * Defines values for GeoBackupPolicyName. \ * {@link KnownGeoBackupPolicyName} can be used interchangeably with GeoBackupPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** */ export declare type GeoBackupPolicyName = string; /** Defines values for GeoBackupPolicyState. */ export declare type GeoBackupPolicyState = "Disabled" | "Enabled"; /** * Given the last `.value` produced by the `byPage` iterator, * returns a continuation token that can be used to begin paging from * that point later. * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. * @returns The continuation token that can be passed into byPage() during future calls. */ export declare function getContinuationToken(page: unknown): string | undefined; /** * Defines values for IdentityType. \ * {@link KnownIdentityType} can be used interchangeably with IdentityType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **None** \ * **SystemAssigned** \ * **UserAssigned** \ * **SystemAssigned,UserAssigned** */ export declare type IdentityType = string; /** Defines values for ImplementationMethod. */ export declare type ImplementationMethod = "TSql" | "AzurePowerShell"; /** Contains the information necessary to perform import operation for existing database. */ export declare interface ImportExistingDatabaseDefinition { /** Storage key type. */ storageKeyType: StorageKeyType; /** Storage key. */ storageKey: string; /** Storage Uri. */ storageUri: string; /** Administrator login name. */ administratorLogin: string; /** Administrator login password. */ administratorLoginPassword: string; /** Authentication type. */ authenticationType?: string; /** Optional resource information to enable network isolation for request. */ networkIsolation?: NetworkIsolationSettings; } /** Import export operation extensions list. */ export declare interface ImportExportExtensionsOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ImportExportExtensionsOperationResult[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** An Extension operation result resource. */ export declare interface ImportExportExtensionsOperationResult extends ProxyResource { /** * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestId?: string; /** * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestType?: string; /** * Last modified time. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastModifiedTime?: string; /** * Server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serverName?: string; /** * Database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseName?: string; /** * Operation status. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: string; /** * Error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorMessage?: string; } /** An ImportExport operation result resource. */ export declare interface ImportExportOperationResult extends ProxyResource { /** * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestId?: string; /** * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestType?: string; /** * Queued time. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly queuedTime?: string; /** * Last modified time. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastModifiedTime?: string; /** * Blob Uri. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly blobUri?: string; /** * Server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serverName?: string; /** * Database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseName?: string; /** * Operation status. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: string; /** * Error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorMessage?: string; /** * Gets the status of private endpoints associated with this request. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; } /** Contains the information necessary to perform import operation for new database. */ export declare interface ImportNewDatabaseDefinition { /** Name of the import database. */ databaseName?: string; /** Edition of the import database. */ edition?: string; /** Service level objective name of the import database. */ serviceObjectiveName?: string; /** Max size in bytes for the import database. */ maxSizeBytes?: string; /** Storage key type. */ storageKeyType: StorageKeyType; /** Storage key. */ storageKey: string; /** Storage Uri. */ storageUri: string; /** Administrator login name. */ administratorLogin: string; /** Administrator login password. */ administratorLoginPassword: string; /** Authentication type. */ authenticationType?: string; /** Optional resource information to enable network isolation for request. */ networkIsolation?: NetworkIsolationSettings; } /** An instance failover group. */ export declare interface InstanceFailoverGroup extends ProxyResource { /** Type of the geo-secondary instance. Set 'Standby' if the instance is used as a DR option only. */ secondaryType?: SecondaryInstanceType; /** Read-write endpoint of the failover group instance. */ readWriteEndpoint?: InstanceFailoverGroupReadWriteEndpoint; /** Read-only endpoint of the failover group instance. */ readOnlyEndpoint?: InstanceFailoverGroupReadOnlyEndpoint; /** * Local replication role of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationRole?: InstanceFailoverGroupReplicationRole; /** * Replication state of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationState?: string; /** Partner region information for the failover group. */ partnerRegions?: PartnerRegionInfo[]; /** List of managed instance pairs in the failover group. */ managedInstancePairs?: ManagedInstancePairInfo[]; } /** A list of instance failover groups. */ export declare interface InstanceFailoverGroupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: InstanceFailoverGroup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Read-only endpoint of the failover group instance. */ export declare interface InstanceFailoverGroupReadOnlyEndpoint { /** Failover policy of the read-only endpoint for the failover group. */ failoverPolicy?: ReadOnlyEndpointFailoverPolicy; } /** Read-write endpoint of the failover group instance. */ export declare interface InstanceFailoverGroupReadWriteEndpoint { /** Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ failoverPolicy: ReadWriteEndpointFailoverPolicy; /** Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ failoverWithDataLossGracePeriodMinutes?: number; } /** * Defines values for InstanceFailoverGroupReplicationRole. \ * {@link KnownInstanceFailoverGroupReplicationRole} can be used interchangeably with InstanceFailoverGroupReplicationRole, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Primary** \ * **Secondary** */ export declare type InstanceFailoverGroupReplicationRole = string; /** Interface representing a InstanceFailoverGroups. */ export declare interface InstanceFailoverGroups { /** * Lists the failover groups in a location. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param options The options parameters. */ listByLocation(resourceGroupName: string, locationName: string, options?: InstanceFailoverGroupsListByLocationOptionalParams): PagedAsyncIterableIterator; /** * Gets a failover group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ get(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: InstanceFailoverGroupsGetOptionalParams): Promise; /** * Creates or updates a failover group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param parameters The failover group parameters. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: InstanceFailoverGroup, options?: InstanceFailoverGroupsCreateOrUpdateOptionalParams): Promise, InstanceFailoverGroupsCreateOrUpdateResponse>>; /** * Creates or updates a failover group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param parameters The failover group parameters. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: InstanceFailoverGroup, options?: InstanceFailoverGroupsCreateOrUpdateOptionalParams): Promise; /** * Deletes a failover group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginDelete(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: InstanceFailoverGroupsDeleteOptionalParams): Promise, void>>; /** * Deletes a failover group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: InstanceFailoverGroupsDeleteOptionalParams): Promise; /** * Fails over from the current primary managed instance to this managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginFailover(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: InstanceFailoverGroupsFailoverOptionalParams): Promise, InstanceFailoverGroupsFailoverResponse>>; /** * Fails over from the current primary managed instance to this managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginFailoverAndWait(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: InstanceFailoverGroupsFailoverOptionalParams): Promise; /** * Fails over from the current primary managed instance to this managed instance. This operation might * result in data loss. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginForceFailoverAllowDataLoss(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams): Promise, InstanceFailoverGroupsForceFailoverAllowDataLossResponse>>; /** * Fails over from the current primary managed instance to this managed instance. This operation might * result in data loss. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginForceFailoverAllowDataLossAndWait(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams): Promise; } /** Optional parameters. */ export declare interface InstanceFailoverGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup; /** Optional parameters. */ export declare interface InstanceFailoverGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface InstanceFailoverGroupsFailoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the failover operation. */ export declare type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup; /** Optional parameters. */ export declare interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the forceFailoverAllowDataLoss operation. */ export declare type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup; /** Optional parameters. */ export declare interface InstanceFailoverGroupsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup; /** Optional parameters. */ export declare interface InstanceFailoverGroupsListByLocationNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByLocationNext operation. */ export declare type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult; /** Optional parameters. */ export declare interface InstanceFailoverGroupsListByLocationOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByLocation operation. */ export declare type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; /** An Azure SQL instance pool. */ export declare interface InstancePool extends TrackedResource { /** The name and tier of the SKU. */ sku?: Sku; /** Resource ID of the subnet to place this instance pool in. */ subnetId?: string; /** Count of vCores belonging to this instance pool. */ vCores?: number; /** The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price). */ licenseType?: InstancePoolLicenseType; } /** The instance pool capability */ export declare interface InstancePoolEditionCapability { /** * The instance pool version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The supported families. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedFamilies?: InstancePoolFamilyCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** The instance pool family capability. */ export declare interface InstancePoolFamilyCapability { /** * Family name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** * List of supported virtual cores values. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedVcoresValues?: InstancePoolVcoresCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** * Defines values for InstancePoolLicenseType. \ * {@link KnownInstancePoolLicenseType} can be used interchangeably with InstancePoolLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **LicenseIncluded** \ * **BasePrice** */ export declare type InstancePoolLicenseType = string; /** A list of Azure SQL instance pools. */ export declare interface InstancePoolListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: InstancePool[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a InstancePools. */ export declare interface InstancePools { /** * Gets a list of instance pools in the resource group * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param options The options parameters. */ listByResourceGroup(resourceGroupName: string, options?: InstancePoolsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; /** * Gets a list of all instance pools in the subscription. * @param options The options parameters. */ list(options?: InstancePoolsListOptionalParams): PagedAsyncIterableIterator; /** * Gets an instance pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param instancePoolName The name of the instance pool to be retrieved. * @param options The options parameters. */ get(resourceGroupName: string, instancePoolName: string, options?: InstancePoolsGetOptionalParams): Promise; /** * Creates or updates an instance pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param instancePoolName The name of the instance pool to be created or updated. * @param parameters The requested instance pool resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, instancePoolName: string, parameters: InstancePool, options?: InstancePoolsCreateOrUpdateOptionalParams): Promise, InstancePoolsCreateOrUpdateResponse>>; /** * Creates or updates an instance pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param instancePoolName The name of the instance pool to be created or updated. * @param parameters The requested instance pool resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, instancePoolName: string, parameters: InstancePool, options?: InstancePoolsCreateOrUpdateOptionalParams): Promise; /** * Deletes an instance pool * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param instancePoolName The name of the instance pool to be deleted * @param options The options parameters. */ beginDelete(resourceGroupName: string, instancePoolName: string, options?: InstancePoolsDeleteOptionalParams): Promise, void>>; /** * Deletes an instance pool * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param instancePoolName The name of the instance pool to be deleted * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, instancePoolName: string, options?: InstancePoolsDeleteOptionalParams): Promise; /** * Updates an instance pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param instancePoolName The name of the instance pool to be updated. * @param parameters The requested instance pool resource state. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, instancePoolName: string, parameters: InstancePoolUpdate, options?: InstancePoolsUpdateOptionalParams): Promise, InstancePoolsUpdateResponse>>; /** * Updates an instance pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param instancePoolName The name of the instance pool to be updated. * @param parameters The requested instance pool resource state. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, instancePoolName: string, parameters: InstancePoolUpdate, options?: InstancePoolsUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface InstancePoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type InstancePoolsCreateOrUpdateResponse = InstancePool; /** Optional parameters. */ export declare interface InstancePoolsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface InstancePoolsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type InstancePoolsGetResponse = InstancePool; /** Optional parameters. */ export declare interface InstancePoolsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByResourceGroupNext operation. */ export declare type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult; /** Optional parameters. */ export declare interface InstancePoolsListByResourceGroupOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByResourceGroup operation. */ export declare type InstancePoolsListByResourceGroupResponse = InstancePoolListResult; /** Optional parameters. */ export declare interface InstancePoolsListNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listNext operation. */ export declare type InstancePoolsListNextResponse = InstancePoolListResult; /** Optional parameters. */ export declare interface InstancePoolsListOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the list operation. */ export declare type InstancePoolsListResponse = InstancePoolListResult; /** Optional parameters. */ export declare interface InstancePoolsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type InstancePoolsUpdateResponse = InstancePool; /** An update to an Instance pool. */ export declare interface InstancePoolUpdate { /** Resource tags. */ tags?: { [propertyName: string]: string; }; } /** The managed instance virtual cores capability. */ export declare interface InstancePoolVcoresCapability { /** * The virtual cores identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The virtual cores value. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: number; /** * Storage limit. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly storageLimit?: MaxSizeCapability; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** An IPv6 server firewall rule. */ export declare interface IPv6FirewallRule extends ProxyResourceWithWritableName { /** The start IP address of the firewall rule. Must be IPv6 format. */ startIPv6Address?: string; /** The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress. */ endIPv6Address?: string; } /** The response to a list IPv6 firewall rules request */ export declare interface IPv6FirewallRuleListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: IPv6FirewallRule[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a IPv6FirewallRules. */ export declare interface IPv6FirewallRules { /** * Gets a list of IPv6 firewall rules. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: IPv6FirewallRulesListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets an IPv6 firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param firewallRuleName The name of the firewall rule. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: IPv6FirewallRulesGetOptionalParams): Promise; /** * Creates or updates an IPv6 firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param firewallRuleName The name of the firewall rule. * @param parameters The required parameters for creating or updating an IPv6 firewall rule. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: IPv6FirewallRule, options?: IPv6FirewallRulesCreateOrUpdateOptionalParams): Promise; /** * Deletes an IPv6 firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param firewallRuleName The name of the firewall rule. * @param options The options parameters. */ delete(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: IPv6FirewallRulesDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface IPv6FirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type IPv6FirewallRulesCreateOrUpdateResponse = IPv6FirewallRule; /** Optional parameters. */ export declare interface IPv6FirewallRulesDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface IPv6FirewallRulesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type IPv6FirewallRulesGetResponse = IPv6FirewallRule; /** Optional parameters. */ export declare interface IPv6FirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type IPv6FirewallRulesListByServerNextResponse = IPv6FirewallRuleListResult; /** Optional parameters. */ export declare interface IPv6FirewallRulesListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type IPv6FirewallRulesListByServerResponse = IPv6FirewallRuleListResult; /** Defines values for IsRetryable. */ export declare type IsRetryable = "Yes" | "No"; /** A job. */ export declare interface Job extends ProxyResource { /** User-defined description of the job. */ description?: string; /** * The job version number. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly version?: number; /** Schedule properties of the job. */ schedule?: JobSchedule; } /** An Azure SQL job agent. */ export declare interface JobAgent extends TrackedResource { /** The name and tier of the SKU. */ sku?: Sku; /** Resource ID of the database to store job metadata in. */ databaseId?: string; /** * The state of the job agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: JobAgentState; } /** A list of Azure SQL job agents. */ export declare interface JobAgentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: JobAgent[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a JobAgents. */ export declare interface JobAgents { /** * Gets a list of job agents in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: JobAgentsListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a job agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent to be retrieved. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, jobAgentName: string, options?: JobAgentsGetOptionalParams): Promise; /** * Creates or updates a job agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent to be created or updated. * @param parameters The requested job agent resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, parameters: JobAgent, options?: JobAgentsCreateOrUpdateOptionalParams): Promise, JobAgentsCreateOrUpdateResponse>>; /** * Creates or updates a job agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent to be created or updated. * @param parameters The requested job agent resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, jobAgentName: string, parameters: JobAgent, options?: JobAgentsCreateOrUpdateOptionalParams): Promise; /** * Deletes a job agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent to be deleted. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, jobAgentName: string, options?: JobAgentsDeleteOptionalParams): Promise, void>>; /** * Deletes a job agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent to be deleted. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, jobAgentName: string, options?: JobAgentsDeleteOptionalParams): Promise; /** * Updates a job agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent to be updated. * @param parameters The update to the job agent. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, parameters: JobAgentUpdate, options?: JobAgentsUpdateOptionalParams): Promise, JobAgentsUpdateResponse>>; /** * Updates a job agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent to be updated. * @param parameters The update to the job agent. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, serverName: string, jobAgentName: string, parameters: JobAgentUpdate, options?: JobAgentsUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface JobAgentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type JobAgentsCreateOrUpdateResponse = JobAgent; /** Optional parameters. */ export declare interface JobAgentsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface JobAgentsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type JobAgentsGetResponse = JobAgent; /** Optional parameters. */ export declare interface JobAgentsListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type JobAgentsListByServerNextResponse = JobAgentListResult; /** Optional parameters. */ export declare interface JobAgentsListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type JobAgentsListByServerResponse = JobAgentListResult; /** * Defines values for JobAgentState. \ * {@link KnownJobAgentState} can be used interchangeably with JobAgentState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Creating** \ * **Ready** \ * **Updating** \ * **Deleting** \ * **Disabled** */ export declare type JobAgentState = string; /** Optional parameters. */ export declare interface JobAgentsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type JobAgentsUpdateResponse = JobAgent; /** An update to an Azure SQL job agent. */ export declare interface JobAgentUpdate { /** Resource tags. */ tags?: { [propertyName: string]: string; }; } /** A stored credential that can be used by a job to connect to target databases. */ export declare interface JobCredential extends ProxyResource { /** The credential user name. */ username?: string; /** The credential password. */ password?: string; } /** A list of job credentials. */ export declare interface JobCredentialListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: JobCredential[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a JobCredentials. */ export declare interface JobCredentials { /** * Gets a list of jobs credentials. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param options The options parameters. */ listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: JobCredentialsListByAgentOptionalParams): PagedAsyncIterableIterator; /** * Gets a jobs credential. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param credentialName The name of the credential. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options?: JobCredentialsGetOptionalParams): Promise; /** * Creates or updates a job credential. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param credentialName The name of the credential. * @param parameters The requested job credential state. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, parameters: JobCredential, options?: JobCredentialsCreateOrUpdateOptionalParams): Promise; /** * Deletes a job credential. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param credentialName The name of the credential. * @param options The options parameters. */ delete(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options?: JobCredentialsDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface JobCredentialsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type JobCredentialsCreateOrUpdateResponse = JobCredential; /** Optional parameters. */ export declare interface JobCredentialsDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface JobCredentialsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type JobCredentialsGetResponse = JobCredential; /** Optional parameters. */ export declare interface JobCredentialsListByAgentNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByAgentNext operation. */ export declare type JobCredentialsListByAgentNextResponse = JobCredentialListResult; /** Optional parameters. */ export declare interface JobCredentialsListByAgentOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByAgent operation. */ export declare type JobCredentialsListByAgentResponse = JobCredentialListResult; /** An execution of a job */ export declare interface JobExecution extends ProxyResource { /** * The job version number. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly jobVersion?: number; /** * The job step name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly stepName?: string; /** * The job step id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly stepId?: number; /** * The unique identifier of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly jobExecutionId?: string; /** * The detailed state of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lifecycle?: JobExecutionLifecycle; /** * The ARM provisioning state of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; /** * The time that the job execution was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly createTime?: Date; /** * The time that the job execution started. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: Date; /** * The time that the job execution completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly endTime?: Date; /** Number of times the job execution has been attempted. */ currentAttempts?: number; /** * Start time of the current attempt. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentAttemptStartTime?: Date; /** * The last status or error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastMessage?: string; /** * The target that this execution is executed on. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly target?: JobExecutionTarget; } /** * Defines values for JobExecutionLifecycle. \ * {@link KnownJobExecutionLifecycle} can be used interchangeably with JobExecutionLifecycle, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Created** \ * **InProgress** \ * **WaitingForChildJobExecutions** \ * **WaitingForRetry** \ * **Succeeded** \ * **SucceededWithSkipped** \ * **Failed** \ * **TimedOut** \ * **Canceled** \ * **Skipped** */ export declare type JobExecutionLifecycle = string; /** A list of job executions. */ export declare interface JobExecutionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: JobExecution[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a JobExecutions. */ export declare interface JobExecutions { /** * Lists all executions in a job agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param options The options parameters. */ listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: JobExecutionsListByAgentOptionalParams): PagedAsyncIterableIterator; /** * Lists a job's executions. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param options The options parameters. */ listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: JobExecutionsListByJobOptionalParams): PagedAsyncIterableIterator; /** * Requests cancellation of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. * @param jobExecutionId The id of the job execution to cancel. * @param options The options parameters. */ cancel(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: JobExecutionsCancelOptionalParams): Promise; /** * Starts an elastic job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param options The options parameters. */ beginCreate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: JobExecutionsCreateOptionalParams): Promise, JobExecutionsCreateResponse>>; /** * Starts an elastic job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param options The options parameters. */ beginCreateAndWait(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: JobExecutionsCreateOptionalParams): Promise; /** * Gets a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. * @param jobExecutionId The id of the job execution * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: JobExecutionsGetOptionalParams): Promise; /** * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: JobExecutionsCreateOrUpdateOptionalParams): Promise, JobExecutionsCreateOrUpdateResponse>>; /** * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: JobExecutionsCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface JobExecutionsCancelOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface JobExecutionsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface JobExecutionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type JobExecutionsCreateOrUpdateResponse = JobExecution; /** Contains response data for the create operation. */ export declare type JobExecutionsCreateResponse = JobExecution; /** Optional parameters. */ export declare interface JobExecutionsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type JobExecutionsGetResponse = JobExecution; /** Optional parameters. */ export declare interface JobExecutionsListByAgentNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByAgentNext operation. */ export declare type JobExecutionsListByAgentNextResponse = JobExecutionListResult; /** Optional parameters. */ export declare interface JobExecutionsListByAgentOptionalParams extends coreClient.OperationOptions { /** The number of elements in the collection to skip. */ skip?: number; /** If specified, only job executions created at or after the specified time are included. */ createTimeMin?: Date; /** If specified, only job executions created before the specified time are included. */ createTimeMax?: Date; /** If specified, only job executions completed at or after the specified time are included. */ endTimeMin?: Date; /** If specified, only job executions completed before the specified time are included. */ endTimeMax?: Date; /** If specified, only active or only completed job executions are included. */ isActive?: boolean; /** The number of elements to return from the collection. */ top?: number; } /** Contains response data for the listByAgent operation. */ export declare type JobExecutionsListByAgentResponse = JobExecutionListResult; /** Optional parameters. */ export declare interface JobExecutionsListByJobNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByJobNext operation. */ export declare type JobExecutionsListByJobNextResponse = JobExecutionListResult; /** Optional parameters. */ export declare interface JobExecutionsListByJobOptionalParams extends coreClient.OperationOptions { /** The number of elements in the collection to skip. */ skip?: number; /** If specified, only job executions created at or after the specified time are included. */ createTimeMin?: Date; /** If specified, only job executions created before the specified time are included. */ createTimeMax?: Date; /** If specified, only job executions completed at or after the specified time are included. */ endTimeMin?: Date; /** If specified, only job executions completed before the specified time are included. */ endTimeMax?: Date; /** If specified, only active or only completed job executions are included. */ isActive?: boolean; /** The number of elements to return from the collection. */ top?: number; } /** Contains response data for the listByJob operation. */ export declare type JobExecutionsListByJobResponse = JobExecutionListResult; /** The target that a job execution is executed on. */ export declare interface JobExecutionTarget { /** * The type of the target. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: JobTargetType; /** * The server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serverName?: string; /** * The database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseName?: string; } /** A list of jobs. */ export declare interface JobListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: Job[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a Jobs. */ export declare interface Jobs { /** * Gets a list of jobs. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param options The options parameters. */ listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: JobsListByAgentOptionalParams): PagedAsyncIterableIterator; /** * Gets a job. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: JobsGetOptionalParams): Promise; /** * Creates or updates a job. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param parameters The requested job state. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, parameters: Job, options?: JobsCreateOrUpdateOptionalParams): Promise; /** * Deletes a job. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to delete. * @param options The options parameters. */ delete(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: JobsDeleteOptionalParams): Promise; } /** Scheduling properties of a job. */ export declare interface JobSchedule { /** Schedule start time. */ startTime?: Date; /** Schedule end time. */ endTime?: Date; /** Schedule interval type */ type?: JobScheduleType; /** Whether or not the schedule is enabled. */ enabled?: boolean; /** Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format. */ interval?: string; } /** Defines values for JobScheduleType. */ export declare type JobScheduleType = "Once" | "Recurring"; /** Optional parameters. */ export declare interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type JobsCreateOrUpdateResponse = Job; /** Optional parameters. */ export declare interface JobsDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface JobsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type JobsGetResponse = Job; /** Optional parameters. */ export declare interface JobsListByAgentNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByAgentNext operation. */ export declare type JobsListByAgentNextResponse = JobListResult; /** Optional parameters. */ export declare interface JobsListByAgentOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByAgent operation. */ export declare type JobsListByAgentResponse = JobListResult; /** A job step. */ export declare interface JobStep extends ProxyResource { /** The job step's index within the job. If not specified when creating the job step, it will be created as the last step. If not specified when updating the job step, the step id is not modified. */ stepId?: number; /** The resource ID of the target group that the job step will be executed on. */ targetGroup?: string; /** The resource ID of the job credential that will be used to connect to the targets. */ credential?: string; /** The action payload of the job step. */ action?: JobStepAction; /** Output destination properties of the job step. */ output?: JobStepOutput; /** Execution options for the job step. */ executionOptions?: JobStepExecutionOptions; } /** The action to be executed by a job step. */ export declare interface JobStepAction { /** Type of action being executed by the job step. */ type?: JobStepActionType; /** The source of the action to execute. */ source?: JobStepActionSource; /** The action value, for example the text of the T-SQL script to execute. */ value: string; } /** * Defines values for JobStepActionSource. \ * {@link KnownJobStepActionSource} can be used interchangeably with JobStepActionSource, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Inline** */ export declare type JobStepActionSource = string; /** * Defines values for JobStepActionType. \ * {@link KnownJobStepActionType} can be used interchangeably with JobStepActionType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **TSql** */ export declare type JobStepActionType = string; /** The execution options of a job step. */ export declare interface JobStepExecutionOptions { /** Execution timeout for the job step. */ timeoutSeconds?: number; /** Maximum number of times the job step will be reattempted if the first attempt fails. */ retryAttempts?: number; /** Initial delay between retries for job step execution. */ initialRetryIntervalSeconds?: number; /** The maximum amount of time to wait between retries for job step execution. */ maximumRetryIntervalSeconds?: number; /** The backoff multiplier for the time between retries. */ retryIntervalBackoffMultiplier?: number; } /** Interface representing a JobStepExecutions. */ export declare interface JobStepExecutions { /** * Lists the step executions of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution * @param options The options parameters. */ listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: JobStepExecutionsListByJobExecutionOptionalParams): PagedAsyncIterableIterator; /** * Gets a step execution of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The unique id of the job execution * @param stepName The name of the step. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options?: JobStepExecutionsGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface JobStepExecutionsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type JobStepExecutionsGetResponse = JobExecution; /** Optional parameters. */ export declare interface JobStepExecutionsListByJobExecutionNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByJobExecutionNext operation. */ export declare type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListResult; /** Optional parameters. */ export declare interface JobStepExecutionsListByJobExecutionOptionalParams extends coreClient.OperationOptions { /** The number of elements in the collection to skip. */ skip?: number; /** If specified, only job executions created at or after the specified time are included. */ createTimeMin?: Date; /** If specified, only job executions created before the specified time are included. */ createTimeMax?: Date; /** If specified, only job executions completed at or after the specified time are included. */ endTimeMin?: Date; /** If specified, only job executions completed before the specified time are included. */ endTimeMax?: Date; /** If specified, only active or only completed job executions are included. */ isActive?: boolean; /** The number of elements to return from the collection. */ top?: number; } /** Contains response data for the listByJobExecution operation. */ export declare type JobStepExecutionsListByJobExecutionResponse = JobExecutionListResult; /** A list of job steps. */ export declare interface JobStepListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: JobStep[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** The output configuration of a job step. */ export declare interface JobStepOutput { /** The output destination type. */ type?: JobStepOutputType; /** The output destination subscription id. */ subscriptionId?: string; /** The output destination resource group. */ resourceGroupName?: string; /** The output destination server name. */ serverName: string; /** The output destination database. */ databaseName: string; /** The output destination schema. */ schemaName?: string; /** The output destination table. */ tableName: string; /** The resource ID of the credential to use to connect to the output destination. */ credential: string; } /** * Defines values for JobStepOutputType. \ * {@link KnownJobStepOutputType} can be used interchangeably with JobStepOutputType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **SqlDatabase** */ export declare type JobStepOutputType = string; /** Interface representing a JobSteps. */ export declare interface JobSteps { /** * Gets all job steps in the specified job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobVersion The version of the job to get. * @param options The options parameters. */ listByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options?: JobStepsListByVersionOptionalParams): PagedAsyncIterableIterator; /** * Gets all job steps for a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param options The options parameters. */ listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: JobStepsListByJobOptionalParams): PagedAsyncIterableIterator; /** * Gets the specified version of a job step. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. * @param jobVersion The version of the job to get. * @param stepName The name of the job step. * @param options The options parameters. */ getByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, stepName: string, options?: JobStepsGetByVersionOptionalParams): Promise; /** * Gets a job step in a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. * @param stepName The name of the job step. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options?: JobStepsGetOptionalParams): Promise; /** * Creates or updates a job step. This will implicitly create a new job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. * @param stepName The name of the job step. * @param parameters The requested state of the job step. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, parameters: JobStep, options?: JobStepsCreateOrUpdateOptionalParams): Promise; /** * Deletes a job step. This will implicitly create a new job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. * @param stepName The name of the job step to delete. * @param options The options parameters. */ delete(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options?: JobStepsDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface JobStepsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type JobStepsCreateOrUpdateResponse = JobStep; /** Optional parameters. */ export declare interface JobStepsDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface JobStepsGetByVersionOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the getByVersion operation. */ export declare type JobStepsGetByVersionResponse = JobStep; /** Optional parameters. */ export declare interface JobStepsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type JobStepsGetResponse = JobStep; /** Optional parameters. */ export declare interface JobStepsListByJobNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByJobNext operation. */ export declare type JobStepsListByJobNextResponse = JobStepListResult; /** Optional parameters. */ export declare interface JobStepsListByJobOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByJob operation. */ export declare type JobStepsListByJobResponse = JobStepListResult; /** Optional parameters. */ export declare interface JobStepsListByVersionNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByVersionNext operation. */ export declare type JobStepsListByVersionNextResponse = JobStepListResult; /** Optional parameters. */ export declare interface JobStepsListByVersionOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByVersion operation. */ export declare type JobStepsListByVersionResponse = JobStepListResult; /** A job target, for example a specific database or a container of databases that is evaluated during job execution. */ export declare interface JobTarget { /** Whether the target is included or excluded from the group. */ membershipType?: JobTargetGroupMembershipType; /** The target type. */ type: JobTargetType; /** The target server name. */ serverName?: string; /** The target database name. */ databaseName?: string; /** The target elastic pool name. */ elasticPoolName?: string; /** The target shard map. */ shardMapName?: string; /** The resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target. */ refreshCredential?: string; } /** Interface representing a JobTargetExecutions. */ export declare interface JobTargetExecutions { /** * Lists target executions for all steps of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution * @param options The options parameters. */ listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: JobTargetExecutionsListByJobExecutionOptionalParams): PagedAsyncIterableIterator; /** * Lists the target executions of a job step execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution * @param stepName The name of the step. * @param options The options parameters. */ listByStep(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options?: JobTargetExecutionsListByStepOptionalParams): PagedAsyncIterableIterator; /** * Gets a target execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The unique id of the job execution * @param stepName The name of the step. * @param targetId The target id. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, targetId: string, options?: JobTargetExecutionsGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface JobTargetExecutionsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type JobTargetExecutionsGetResponse = JobExecution; /** Optional parameters. */ export declare interface JobTargetExecutionsListByJobExecutionNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByJobExecutionNext operation. */ export declare type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult; /** Optional parameters. */ export declare interface JobTargetExecutionsListByJobExecutionOptionalParams extends coreClient.OperationOptions { /** The number of elements in the collection to skip. */ skip?: number; /** If specified, only job executions created at or after the specified time are included. */ createTimeMin?: Date; /** If specified, only job executions created before the specified time are included. */ createTimeMax?: Date; /** If specified, only job executions completed at or after the specified time are included. */ endTimeMin?: Date; /** If specified, only job executions completed before the specified time are included. */ endTimeMax?: Date; /** If specified, only active or only completed job executions are included. */ isActive?: boolean; /** The number of elements to return from the collection. */ top?: number; } /** Contains response data for the listByJobExecution operation. */ export declare type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult; /** Optional parameters. */ export declare interface JobTargetExecutionsListByStepNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByStepNext operation. */ export declare type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult; /** Optional parameters. */ export declare interface JobTargetExecutionsListByStepOptionalParams extends coreClient.OperationOptions { /** The number of elements in the collection to skip. */ skip?: number; /** If specified, only job executions created at or after the specified time are included. */ createTimeMin?: Date; /** If specified, only job executions created before the specified time are included. */ createTimeMax?: Date; /** If specified, only job executions completed at or after the specified time are included. */ endTimeMin?: Date; /** If specified, only job executions completed before the specified time are included. */ endTimeMax?: Date; /** If specified, only active or only completed job executions are included. */ isActive?: boolean; /** The number of elements to return from the collection. */ top?: number; } /** Contains response data for the listByStep operation. */ export declare type JobTargetExecutionsListByStepResponse = JobExecutionListResult; /** A group of job targets. */ export declare interface JobTargetGroup extends ProxyResource { /** Members of the target group. */ members?: JobTarget[]; } /** A list of target groups. */ export declare interface JobTargetGroupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: JobTargetGroup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Defines values for JobTargetGroupMembershipType. */ export declare type JobTargetGroupMembershipType = "Include" | "Exclude"; /** Interface representing a JobTargetGroups. */ export declare interface JobTargetGroups { /** * Gets all target groups in an agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param options The options parameters. */ listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: JobTargetGroupsListByAgentOptionalParams): PagedAsyncIterableIterator; /** * Gets a target group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param targetGroupName The name of the target group. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options?: JobTargetGroupsGetOptionalParams): Promise; /** * Creates or updates a target group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param targetGroupName The name of the target group. * @param parameters The requested state of the target group. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, parameters: JobTargetGroup, options?: JobTargetGroupsCreateOrUpdateOptionalParams): Promise; /** * Deletes a target group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param targetGroupName The name of the target group. * @param options The options parameters. */ delete(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options?: JobTargetGroupsDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface JobTargetGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup; /** Optional parameters. */ export declare interface JobTargetGroupsDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface JobTargetGroupsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type JobTargetGroupsGetResponse = JobTargetGroup; /** Optional parameters. */ export declare interface JobTargetGroupsListByAgentNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByAgentNext operation. */ export declare type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult; /** Optional parameters. */ export declare interface JobTargetGroupsListByAgentOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByAgent operation. */ export declare type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult; /** * Defines values for JobTargetType. \ * {@link KnownJobTargetType} can be used interchangeably with JobTargetType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **TargetGroup** \ * **SqlDatabase** \ * **SqlElasticPool** \ * **SqlShardMap** \ * **SqlServer** */ export declare type JobTargetType = string; /** A job version. */ export declare interface JobVersion extends ProxyResource { } /** A list of job versions. */ export declare interface JobVersionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: JobVersion[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a JobVersions. */ export declare interface JobVersions { /** * Gets all versions of a job. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param options The options parameters. */ listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: JobVersionsListByJobOptionalParams): PagedAsyncIterableIterator; /** * Gets a job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. * @param jobVersion The version of the job to get. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options?: JobVersionsGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface JobVersionsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type JobVersionsGetResponse = JobVersion; /** Optional parameters. */ export declare interface JobVersionsListByJobNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByJobNext operation. */ export declare type JobVersionsListByJobNextResponse = JobVersionListResult; /** Optional parameters. */ export declare interface JobVersionsListByJobOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByJob operation. */ export declare type JobVersionsListByJobResponse = JobVersionListResult; /** Known values of {@link AdministratorName} that the service accepts. */ export declare enum KnownAdministratorName { /** ActiveDirectory */ ActiveDirectory = "ActiveDirectory" } /** Known values of {@link AdministratorType} that the service accepts. */ export declare enum KnownAdministratorType { /** ActiveDirectory */ ActiveDirectory = "ActiveDirectory" } /** Known values of {@link AdvancedThreatProtectionName} that the service accepts. */ export declare enum KnownAdvancedThreatProtectionName { /** Default */ Default = "Default" } /** Known values of {@link AggregationFunctionType} that the service accepts. */ export declare enum KnownAggregationFunctionType { /** Avg */ Avg = "avg", /** Min */ Min = "min", /** Max */ Max = "max", /** Stdev */ Stdev = "stdev", /** Sum */ Sum = "sum" } /** Known values of {@link AlwaysEncryptedEnclaveType} that the service accepts. */ export declare enum KnownAlwaysEncryptedEnclaveType { /** Default */ Default = "Default", /** VBS */ VBS = "VBS" } /** Known values of {@link AuthenticationName} that the service accepts. */ export declare enum KnownAuthenticationName { /** Default */ Default = "Default" } /** Known values of {@link AvailabilityZoneType} that the service accepts. */ export declare enum KnownAvailabilityZoneType { /** NoPreference */ NoPreference = "NoPreference", /** One */ One = "1", /** Two */ Two = "2", /** Three */ Three = "3" } /** Known values of {@link BackupStorageRedundancy} that the service accepts. */ export declare enum KnownBackupStorageRedundancy { /** Geo */ Geo = "Geo", /** Local */ Local = "Local", /** Zone */ Zone = "Zone", /** GeoZone */ GeoZone = "GeoZone" } /** Known values of {@link BaselineName} that the service accepts. */ export declare enum KnownBaselineName { /** Default */ Default = "default" } /** Known values of {@link CapabilityGroup} that the service accepts. */ export declare enum KnownCapabilityGroup { /** SupportedEditions */ SupportedEditions = "supportedEditions", /** SupportedElasticPoolEditions */ SupportedElasticPoolEditions = "supportedElasticPoolEditions", /** SupportedManagedInstanceVersions */ SupportedManagedInstanceVersions = "supportedManagedInstanceVersions", /** SupportedInstancePoolEditions */ SupportedInstancePoolEditions = "supportedInstancePoolEditions", /** SupportedManagedInstanceEditions */ SupportedManagedInstanceEditions = "supportedManagedInstanceEditions" } /** Known values of {@link CatalogCollationType} that the service accepts. */ export declare enum KnownCatalogCollationType { /** DatabaseDefault */ DatabaseDefault = "DATABASE_DEFAULT", /** SQLLatin1GeneralCP1CIAS */ SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS" } /** Known values of {@link ColumnDataType} that the service accepts. */ export declare enum KnownColumnDataType { /** Image */ Image = "image", /** Text */ Text = "text", /** Uniqueidentifier */ Uniqueidentifier = "uniqueidentifier", /** Date */ Date = "date", /** Time */ Time = "time", /** Datetime2 */ Datetime2 = "datetime2", /** Datetimeoffset */ Datetimeoffset = "datetimeoffset", /** Tinyint */ Tinyint = "tinyint", /** Smallint */ Smallint = "smallint", /** Int */ Int = "int", /** Smalldatetime */ Smalldatetime = "smalldatetime", /** Real */ Real = "real", /** Money */ Money = "money", /** Datetime */ Datetime = "datetime", /** Float */ Float = "float", /** SqlVariant */ SqlVariant = "sql_variant", /** Ntext */ Ntext = "ntext", /** Bit */ Bit = "bit", /** Decimal */ Decimal = "decimal", /** Numeric */ Numeric = "numeric", /** Smallmoney */ Smallmoney = "smallmoney", /** Bigint */ Bigint = "bigint", /** Hierarchyid */ Hierarchyid = "hierarchyid", /** Geometry */ Geometry = "geometry", /** Geography */ Geography = "geography", /** Varbinary */ Varbinary = "varbinary", /** Varchar */ Varchar = "varchar", /** Binary */ Binary = "binary", /** Char */ Char = "char", /** Timestamp */ Timestamp = "timestamp", /** Nvarchar */ Nvarchar = "nvarchar", /** Nchar */ Nchar = "nchar", /** Xml */ Xml = "xml", /** Sysname */ Sysname = "sysname" } /** Known values of {@link ConnectionPolicyName} that the service accepts. */ export declare enum KnownConnectionPolicyName { /** Default */ Default = "default" } /** Known values of {@link CreatedByType} that the service accepts. */ export declare enum KnownCreatedByType { /** User */ User = "User", /** Application */ Application = "Application", /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ Key = "Key" } /** Known values of {@link CreateMode} that the service accepts. */ export declare enum KnownCreateMode { /** Default */ Default = "Default", /** Copy */ Copy = "Copy", /** Secondary */ Secondary = "Secondary", /** PointInTimeRestore */ PointInTimeRestore = "PointInTimeRestore", /** Restore */ Restore = "Restore", /** Recovery */ Recovery = "Recovery", /** RestoreExternalBackup */ RestoreExternalBackup = "RestoreExternalBackup", /** RestoreExternalBackupSecondary */ RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary", /** RestoreLongTermRetentionBackup */ RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup", /** OnlineSecondary */ OnlineSecondary = "OnlineSecondary" } /** Known values of {@link DatabaseIdentityType} that the service accepts. */ export declare enum KnownDatabaseIdentityType { /** None */ None = "None", /** UserAssigned */ UserAssigned = "UserAssigned" } /** Known values of {@link DatabaseKeyType} that the service accepts. */ export declare enum KnownDatabaseKeyType { /** AzureKeyVault */ AzureKeyVault = "AzureKeyVault" } /** Known values of {@link DatabaseLicenseType} that the service accepts. */ export declare enum KnownDatabaseLicenseType { /** LicenseIncluded */ LicenseIncluded = "LicenseIncluded", /** BasePrice */ BasePrice = "BasePrice" } /** Known values of {@link DatabaseReadScale} that the service accepts. */ export declare enum KnownDatabaseReadScale { /** Enabled */ Enabled = "Enabled", /** Disabled */ Disabled = "Disabled" } /** Known values of {@link DatabaseState} that the service accepts. */ export declare enum KnownDatabaseState { /** All */ All = "All", /** Live */ Live = "Live", /** Deleted */ Deleted = "Deleted" } /** Known values of {@link DatabaseStatus} that the service accepts. */ export declare enum KnownDatabaseStatus { /** Online */ Online = "Online", /** Restoring */ Restoring = "Restoring", /** RecoveryPending */ RecoveryPending = "RecoveryPending", /** Recovering */ Recovering = "Recovering", /** Suspect */ Suspect = "Suspect", /** Offline */ Offline = "Offline", /** Standby */ Standby = "Standby", /** Shutdown */ Shutdown = "Shutdown", /** EmergencyMode */ EmergencyMode = "EmergencyMode", /** AutoClosed */ AutoClosed = "AutoClosed", /** Copying */ Copying = "Copying", /** Creating */ Creating = "Creating", /** Inaccessible */ Inaccessible = "Inaccessible", /** OfflineSecondary */ OfflineSecondary = "OfflineSecondary", /** Pausing */ Pausing = "Pausing", /** Paused */ Paused = "Paused", /** Resuming */ Resuming = "Resuming", /** Scaling */ Scaling = "Scaling", /** OfflineChangingDwPerformanceTiers */ OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers", /** OnlineChangingDwPerformanceTiers */ OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers", /** Disabled */ Disabled = "Disabled", /** Stopping */ Stopping = "Stopping", /** Stopped */ Stopped = "Stopped", /** Starting */ Starting = "Starting" } /** Known values of {@link DataWarehouseUserActivityName} that the service accepts. */ export declare enum KnownDataWarehouseUserActivityName { /** Current */ Current = "current" } /** Known values of {@link DayOfWeek} that the service accepts. */ export declare enum KnownDayOfWeek { /** Sunday */ Sunday = "Sunday", /** Monday */ Monday = "Monday", /** Tuesday */ Tuesday = "Tuesday", /** Wednesday */ Wednesday = "Wednesday", /** Thursday */ Thursday = "Thursday", /** Friday */ Friday = "Friday", /** Saturday */ Saturday = "Saturday" } /** Known values of {@link DevOpsAuditingSettingsName} that the service accepts. */ export declare enum KnownDevOpsAuditingSettingsName { /** Default */ Default = "Default" } /** Known values of {@link DiffBackupIntervalInHours} that the service accepts. */ export declare enum KnownDiffBackupIntervalInHours { /** Twelve */ Twelve = 12, /** TwentyFour */ TwentyFour = 24 } /** Known values of {@link DNSRefreshOperationStatus} that the service accepts. */ export declare enum KnownDNSRefreshOperationStatus { /** Succeeded */ Succeeded = "Succeeded", /** Failed */ Failed = "Failed", /** InProgress */ InProgress = "InProgress" } /** Known values of {@link DtcName} that the service accepts. */ export declare enum KnownDtcName { /** Current */ Current = "current" } /** Known values of {@link ElasticPoolLicenseType} that the service accepts. */ export declare enum KnownElasticPoolLicenseType { /** LicenseIncluded */ LicenseIncluded = "LicenseIncluded", /** BasePrice */ BasePrice = "BasePrice" } /** Known values of {@link ElasticPoolState} that the service accepts. */ export declare enum KnownElasticPoolState { /** Creating */ Creating = "Creating", /** Ready */ Ready = "Ready", /** Disabled */ Disabled = "Disabled" } /** Known values of {@link EncryptionProtectorName} that the service accepts. */ export declare enum KnownEncryptionProtectorName { /** Current */ Current = "current" } /** Known values of {@link ExternalGovernanceStatus} that the service accepts. */ export declare enum KnownExternalGovernanceStatus { /** Enabled */ Enabled = "Enabled", /** Disabled */ Disabled = "Disabled" } /** Known values of {@link FailoverGroupReplicationRole} that the service accepts. */ export declare enum KnownFailoverGroupReplicationRole { /** Primary */ Primary = "Primary", /** Secondary */ Secondary = "Secondary" } /** Known values of {@link GeoBackupPolicyName} that the service accepts. */ export declare enum KnownGeoBackupPolicyName { /** Default */ Default = "Default" } /** Known values of {@link IdentityType} that the service accepts. */ export declare enum KnownIdentityType { /** None */ None = "None", /** SystemAssigned */ SystemAssigned = "SystemAssigned", /** UserAssigned */ UserAssigned = "UserAssigned", /** SystemAssignedUserAssigned */ SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" } /** Known values of {@link InstanceFailoverGroupReplicationRole} that the service accepts. */ export declare enum KnownInstanceFailoverGroupReplicationRole { /** Primary */ Primary = "Primary", /** Secondary */ Secondary = "Secondary" } /** Known values of {@link InstancePoolLicenseType} that the service accepts. */ export declare enum KnownInstancePoolLicenseType { /** LicenseIncluded */ LicenseIncluded = "LicenseIncluded", /** BasePrice */ BasePrice = "BasePrice" } /** Known values of {@link JobAgentState} that the service accepts. */ export declare enum KnownJobAgentState { /** Creating */ Creating = "Creating", /** Ready */ Ready = "Ready", /** Updating */ Updating = "Updating", /** Deleting */ Deleting = "Deleting", /** Disabled */ Disabled = "Disabled" } /** Known values of {@link JobExecutionLifecycle} that the service accepts. */ export declare enum KnownJobExecutionLifecycle { /** Created */ Created = "Created", /** InProgress */ InProgress = "InProgress", /** WaitingForChildJobExecutions */ WaitingForChildJobExecutions = "WaitingForChildJobExecutions", /** WaitingForRetry */ WaitingForRetry = "WaitingForRetry", /** Succeeded */ Succeeded = "Succeeded", /** SucceededWithSkipped */ SucceededWithSkipped = "SucceededWithSkipped", /** Failed */ Failed = "Failed", /** TimedOut */ TimedOut = "TimedOut", /** Canceled */ Canceled = "Canceled", /** Skipped */ Skipped = "Skipped" } /** Known values of {@link JobStepActionSource} that the service accepts. */ export declare enum KnownJobStepActionSource { /** Inline */ Inline = "Inline" } /** Known values of {@link JobStepActionType} that the service accepts. */ export declare enum KnownJobStepActionType { /** TSql */ TSql = "TSql" } /** Known values of {@link JobStepOutputType} that the service accepts. */ export declare enum KnownJobStepOutputType { /** SqlDatabase */ SqlDatabase = "SqlDatabase" } /** Known values of {@link JobTargetType} that the service accepts. */ export declare enum KnownJobTargetType { /** TargetGroup */ TargetGroup = "TargetGroup", /** SqlDatabase */ SqlDatabase = "SqlDatabase", /** SqlElasticPool */ SqlElasticPool = "SqlElasticPool", /** SqlShardMap */ SqlShardMap = "SqlShardMap", /** SqlServer */ SqlServer = "SqlServer" } /** Known values of {@link LedgerDigestUploadsName} that the service accepts. */ export declare enum KnownLedgerDigestUploadsName { /** Current */ Current = "current" } /** Known values of {@link LogSizeUnit} that the service accepts. */ export declare enum KnownLogSizeUnit { /** Megabytes */ Megabytes = "Megabytes", /** Gigabytes */ Gigabytes = "Gigabytes", /** Terabytes */ Terabytes = "Terabytes", /** Petabytes */ Petabytes = "Petabytes", /** Percent */ Percent = "Percent" } /** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ export declare enum KnownLongTermRetentionPolicyName { /** Default */ Default = "default" } /** Known values of {@link ManagedDatabaseCreateMode} that the service accepts. */ export declare enum KnownManagedDatabaseCreateMode { /** Default */ Default = "Default", /** RestoreExternalBackup */ RestoreExternalBackup = "RestoreExternalBackup", /** PointInTimeRestore */ PointInTimeRestore = "PointInTimeRestore", /** Recovery */ Recovery = "Recovery", /** RestoreLongTermRetentionBackup */ RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup" } /** Known values of {@link ManagedDatabaseStatus} that the service accepts. */ export declare enum KnownManagedDatabaseStatus { /** Online */ Online = "Online", /** Offline */ Offline = "Offline", /** Shutdown */ Shutdown = "Shutdown", /** Creating */ Creating = "Creating", /** Inaccessible */ Inaccessible = "Inaccessible", /** Restoring */ Restoring = "Restoring", /** Updating */ Updating = "Updating", /** Stopping */ Stopping = "Stopping", /** Stopped */ Stopped = "Stopped", /** Starting */ Starting = "Starting", /** DbMoving */ DbMoving = "DbMoving", /** DbCopying */ DbCopying = "DbCopying" } /** Known values of {@link ManagedInstanceAdministratorType} that the service accepts. */ export declare enum KnownManagedInstanceAdministratorType { /** ActiveDirectory */ ActiveDirectory = "ActiveDirectory" } /** Known values of {@link ManagedInstanceLicenseType} that the service accepts. */ export declare enum KnownManagedInstanceLicenseType { /** LicenseIncluded */ LicenseIncluded = "LicenseIncluded", /** BasePrice */ BasePrice = "BasePrice" } /** Known values of {@link ManagedInstanceLongTermRetentionPolicyName} that the service accepts. */ export declare enum KnownManagedInstanceLongTermRetentionPolicyName { /** Default */ Default = "default" } /** Known values of {@link ManagedInstancePropertiesProvisioningState} that the service accepts. */ export declare enum KnownManagedInstancePropertiesProvisioningState { /** Creating */ Creating = "Creating", /** Deleting */ Deleting = "Deleting", /** Updating */ Updating = "Updating", /** Unknown */ Unknown = "Unknown", /** Succeeded */ Succeeded = "Succeeded", /** Failed */ Failed = "Failed", /** Accepted */ Accepted = "Accepted", /** Created */ Created = "Created", /** Deleted */ Deleted = "Deleted", /** Unrecognized */ Unrecognized = "Unrecognized", /** Running */ Running = "Running", /** Canceled */ Canceled = "Canceled", /** NotSpecified */ NotSpecified = "NotSpecified", /** Registering */ Registering = "Registering", /** TimedOut */ TimedOut = "TimedOut" } /** Known values of {@link ManagedInstanceProxyOverride} that the service accepts. */ export declare enum KnownManagedInstanceProxyOverride { /** Proxy */ Proxy = "Proxy", /** Redirect */ Redirect = "Redirect", /** Default */ Default = "Default" } /** Known values of {@link ManagedLedgerDigestUploadsName} that the service accepts. */ export declare enum KnownManagedLedgerDigestUploadsName { /** Current */ Current = "current" } /** Known values of {@link ManagedLedgerDigestUploadsState} that the service accepts. */ export declare enum KnownManagedLedgerDigestUploadsState { /** Enabled */ Enabled = "Enabled", /** Disabled */ Disabled = "Disabled" } /** Known values of {@link ManagedServerCreateMode} that the service accepts. */ export declare enum KnownManagedServerCreateMode { /** Default */ Default = "Default", /** PointInTimeRestore */ PointInTimeRestore = "PointInTimeRestore" } /** Known values of {@link ManagedShortTermRetentionPolicyName} that the service accepts. */ export declare enum KnownManagedShortTermRetentionPolicyName { /** Default */ Default = "default" } /** Known values of {@link ManagementOperationState} that the service accepts. */ export declare enum KnownManagementOperationState { /** Pending */ Pending = "Pending", /** InProgress */ InProgress = "InProgress", /** Succeeded */ Succeeded = "Succeeded", /** Failed */ Failed = "Failed", /** CancelInProgress */ CancelInProgress = "CancelInProgress", /** Cancelled */ Cancelled = "Cancelled" } /** Known values of {@link MaxSizeUnit} that the service accepts. */ export declare enum KnownMaxSizeUnit { /** Megabytes */ Megabytes = "Megabytes", /** Gigabytes */ Gigabytes = "Gigabytes", /** Terabytes */ Terabytes = "Terabytes", /** Petabytes */ Petabytes = "Petabytes" } /** Known values of {@link MetricType} that the service accepts. */ export declare enum KnownMetricType { /** Cpu */ Cpu = "cpu", /** Io */ Io = "io", /** LogIo */ LogIo = "logIo", /** Duration */ Duration = "duration", /** Dtu */ Dtu = "dtu" } /** Known values of {@link MoveOperationMode} that the service accepts. */ export declare enum KnownMoveOperationMode { /** Move */ Move = "Move", /** Copy */ Copy = "Copy" } /** Known values of {@link OperationMode} that the service accepts. */ export declare enum KnownOperationMode { /** PolybaseImport */ PolybaseImport = "PolybaseImport" } /** Known values of {@link OperationOrigin} that the service accepts. */ export declare enum KnownOperationOrigin { /** User */ User = "user", /** System */ System = "system" } /** Known values of {@link PauseDelayTimeUnit} that the service accepts. */ export declare enum KnownPauseDelayTimeUnit { /** Minutes */ Minutes = "Minutes" } /** Known values of {@link PerformanceLevelUnit} that the service accepts. */ export declare enum KnownPerformanceLevelUnit { /** DTU */ DTU = "DTU", /** VCores */ VCores = "VCores" } /** Known values of {@link PrimaryAggregationType} that the service accepts. */ export declare enum KnownPrimaryAggregationType { /** None */ None = "None", /** Average */ Average = "Average", /** Count */ Count = "Count", /** Minimum */ Minimum = "Minimum", /** Maximum */ Maximum = "Maximum", /** Total */ Total = "Total" } /** Known values of {@link PrincipalType} that the service accepts. */ export declare enum KnownPrincipalType { /** User */ User = "User", /** Group */ Group = "Group", /** Application */ Application = "Application" } /** Known values of {@link PrivateEndpointProvisioningState} that the service accepts. */ export declare enum KnownPrivateEndpointProvisioningState { /** Approving */ Approving = "Approving", /** Ready */ Ready = "Ready", /** Dropping */ Dropping = "Dropping", /** Failed */ Failed = "Failed", /** Rejecting */ Rejecting = "Rejecting" } /** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */ export declare enum KnownPrivateLinkServiceConnectionStateActionsRequire { /** None */ None = "None" } /** Known values of {@link PrivateLinkServiceConnectionStateStatus} that the service accepts. */ export declare enum KnownPrivateLinkServiceConnectionStateStatus { /** Approved */ Approved = "Approved", /** Pending */ Pending = "Pending", /** Rejected */ Rejected = "Rejected", /** Disconnected */ Disconnected = "Disconnected" } /** Known values of {@link ProvisioningState} that the service accepts. */ export declare enum KnownProvisioningState { /** Created */ Created = "Created", /** InProgress */ InProgress = "InProgress", /** Succeeded */ Succeeded = "Succeeded", /** Failed */ Failed = "Failed", /** Canceled */ Canceled = "Canceled" } /** Known values of {@link QueryMetricUnitType} that the service accepts. */ export declare enum KnownQueryMetricUnitType { /** Percentage */ Percentage = "percentage", /** KB */ KB = "KB", /** Microseconds */ Microseconds = "microseconds", /** Count */ Count = "count" } /** Known values of {@link QueryTimeGrainType} that the service accepts. */ export declare enum KnownQueryTimeGrainType { /** PT1H */ PT1H = "PT1H", /** P1D */ P1D = "P1D" } /** Known values of {@link ReadOnlyEndpointFailoverPolicy} that the service accepts. */ export declare enum KnownReadOnlyEndpointFailoverPolicy { /** Disabled */ Disabled = "Disabled", /** Enabled */ Enabled = "Enabled" } /** Known values of {@link ReadWriteEndpointFailoverPolicy} that the service accepts. */ export declare enum KnownReadWriteEndpointFailoverPolicy { /** Manual */ Manual = "Manual", /** Automatic */ Automatic = "Automatic" } /** Known values of {@link RecommendedActionCurrentState} that the service accepts. */ export declare enum KnownRecommendedActionCurrentState { /** Active */ Active = "Active", /** Pending */ Pending = "Pending", /** Executing */ Executing = "Executing", /** Verifying */ Verifying = "Verifying", /** PendingRevert */ PendingRevert = "PendingRevert", /** RevertCancelled */ RevertCancelled = "RevertCancelled", /** Reverting */ Reverting = "Reverting", /** Reverted */ Reverted = "Reverted", /** Ignored */ Ignored = "Ignored", /** Expired */ Expired = "Expired", /** Monitoring */ Monitoring = "Monitoring", /** Resolved */ Resolved = "Resolved", /** Success */ Success = "Success", /** Error */ Error = "Error" } /** Known values of {@link ReplicationLinkType} that the service accepts. */ export declare enum KnownReplicationLinkType { /** GEO */ GEO = "GEO", /** Named */ Named = "NAMED", /** Standby */ Standby = "STANDBY" } /** Known values of {@link ReplicationMode} that the service accepts. */ export declare enum KnownReplicationMode { /** Async */ Async = "Async", /** Sync */ Sync = "Sync" } /** Known values of {@link ReplicationState} that the service accepts. */ export declare enum KnownReplicationState { /** Pending */ Pending = "PENDING", /** Seeding */ Seeding = "SEEDING", /** CatchUP */ CatchUP = "CATCH_UP", /** Suspended */ Suspended = "SUSPENDED" } /** Known values of {@link ReplicaType} that the service accepts. */ export declare enum KnownReplicaType { /** Primary */ Primary = "Primary", /** ReadableSecondary */ ReadableSecondary = "ReadableSecondary" } /** Known values of {@link RestoreDetailsName} that the service accepts. */ export declare enum KnownRestoreDetailsName { /** Default */ Default = "Default" } /** Known values of {@link RuleSeverity} that the service accepts. */ export declare enum KnownRuleSeverity { /** High */ High = "High", /** Medium */ Medium = "Medium", /** Low */ Low = "Low", /** Informational */ Informational = "Informational", /** Obsolete */ Obsolete = "Obsolete" } /** Known values of {@link RuleStatus} that the service accepts. */ export declare enum KnownRuleStatus { /** NonFinding */ NonFinding = "NonFinding", /** Finding */ Finding = "Finding", /** InternalError */ InternalError = "InternalError" } /** Known values of {@link RuleType} that the service accepts. */ export declare enum KnownRuleType { /** Binary */ Binary = "Binary", /** BaselineExpected */ BaselineExpected = "BaselineExpected", /** PositiveList */ PositiveList = "PositiveList", /** NegativeList */ NegativeList = "NegativeList" } /** Known values of {@link SampleName} that the service accepts. */ export declare enum KnownSampleName { /** AdventureWorksLT */ AdventureWorksLT = "AdventureWorksLT", /** WideWorldImportersStd */ WideWorldImportersStd = "WideWorldImportersStd", /** WideWorldImportersFull */ WideWorldImportersFull = "WideWorldImportersFull" } /** Known values of {@link SecondaryInstanceType} that the service accepts. */ export declare enum KnownSecondaryInstanceType { /** Geo */ Geo = "Geo", /** Standby */ Standby = "Standby" } /** Known values of {@link SecondaryType} that the service accepts. */ export declare enum KnownSecondaryType { /** Geo */ Geo = "Geo", /** Named */ Named = "Named", /** Standby */ Standby = "Standby" } /** Known values of {@link SecurityAlertPolicyName} that the service accepts. */ export declare enum KnownSecurityAlertPolicyName { /** Default */ Default = "Default" } /** Known values of {@link ServerConfigurationOptionName} that the service accepts. */ export declare enum KnownServerConfigurationOptionName { /** AllowPolybaseExport */ AllowPolybaseExport = "allowPolybaseExport" } /** Known values of {@link ServerConnectionType} that the service accepts. */ export declare enum KnownServerConnectionType { /** Default */ Default = "Default", /** Redirect */ Redirect = "Redirect", /** Proxy */ Proxy = "Proxy" } /** Known values of {@link ServerKeyType} that the service accepts. */ export declare enum KnownServerKeyType { /** ServiceManaged */ ServiceManaged = "ServiceManaged", /** AzureKeyVault */ AzureKeyVault = "AzureKeyVault" } /** Known values of {@link ServerNetworkAccessFlag} that the service accepts. */ export declare enum KnownServerNetworkAccessFlag { /** Enabled */ Enabled = "Enabled", /** Disabled */ Disabled = "Disabled" } /** Known values of {@link ServerPublicNetworkAccessFlag} that the service accepts. */ export declare enum KnownServerPublicNetworkAccessFlag { /** Enabled */ Enabled = "Enabled", /** Disabled */ Disabled = "Disabled", /** SecuredByPerimeter */ SecuredByPerimeter = "SecuredByPerimeter" } /** Known values of {@link ServerTrustGroupPropertiesTrustScopesItem} that the service accepts. */ export declare enum KnownServerTrustGroupPropertiesTrustScopesItem { /** GlobalTransactions */ GlobalTransactions = "GlobalTransactions", /** ServiceBroker */ ServiceBroker = "ServiceBroker" } /** Known values of {@link ServerWorkspaceFeature} that the service accepts. */ export declare enum KnownServerWorkspaceFeature { /** Connected */ Connected = "Connected", /** Disconnected */ Disconnected = "Disconnected" } /** Known values of {@link ServiceObjectiveName} that the service accepts. */ export declare enum KnownServiceObjectiveName { /** System */ System = "System", /** System0 */ System0 = "System0", /** System1 */ System1 = "System1", /** System2 */ System2 = "System2", /** System3 */ System3 = "System3", /** System4 */ System4 = "System4", /** System2L */ System2L = "System2L", /** System3L */ System3L = "System3L", /** System4L */ System4L = "System4L", /** Free */ Free = "Free", /** Basic */ Basic = "Basic", /** S0 */ S0 = "S0", /** S1 */ S1 = "S1", /** S2 */ S2 = "S2", /** S3 */ S3 = "S3", /** S4 */ S4 = "S4", /** S6 */ S6 = "S6", /** S7 */ S7 = "S7", /** S9 */ S9 = "S9", /** S12 */ S12 = "S12", /** P1 */ P1 = "P1", /** P2 */ P2 = "P2", /** P3 */ P3 = "P3", /** P4 */ P4 = "P4", /** P6 */ P6 = "P6", /** P11 */ P11 = "P11", /** P15 */ P15 = "P15", /** PRS1 */ PRS1 = "PRS1", /** PRS2 */ PRS2 = "PRS2", /** PRS4 */ PRS4 = "PRS4", /** PRS6 */ PRS6 = "PRS6", /** DW100 */ DW100 = "DW100", /** DW200 */ DW200 = "DW200", /** DW300 */ DW300 = "DW300", /** DW400 */ DW400 = "DW400", /** DW500 */ DW500 = "DW500", /** DW600 */ DW600 = "DW600", /** DW1000 */ DW1000 = "DW1000", /** DW1200 */ DW1200 = "DW1200", /** DW1000C */ DW1000C = "DW1000c", /** DW1500 */ DW1500 = "DW1500", /** DW1500C */ DW1500C = "DW1500c", /** DW2000 */ DW2000 = "DW2000", /** DW2000C */ DW2000C = "DW2000c", /** DW3000 */ DW3000 = "DW3000", /** DW2500C */ DW2500C = "DW2500c", /** DW3000C */ DW3000C = "DW3000c", /** DW6000 */ DW6000 = "DW6000", /** DW5000C */ DW5000C = "DW5000c", /** DW6000C */ DW6000C = "DW6000c", /** DW7500C */ DW7500C = "DW7500c", /** DW10000C */ DW10000C = "DW10000c", /** DW15000C */ DW15000C = "DW15000c", /** DW30000C */ DW30000C = "DW30000c", /** DS100 */ DS100 = "DS100", /** DS200 */ DS200 = "DS200", /** DS300 */ DS300 = "DS300", /** DS400 */ DS400 = "DS400", /** DS500 */ DS500 = "DS500", /** DS600 */ DS600 = "DS600", /** DS1000 */ DS1000 = "DS1000", /** DS1200 */ DS1200 = "DS1200", /** DS1500 */ DS1500 = "DS1500", /** DS2000 */ DS2000 = "DS2000", /** ElasticPool */ ElasticPool = "ElasticPool" } /** Known values of {@link ServicePrincipalType} that the service accepts. */ export declare enum KnownServicePrincipalType { /** None */ None = "None", /** SystemAssigned */ SystemAssigned = "SystemAssigned" } /** Known values of {@link ShortTermRetentionPolicyName} that the service accepts. */ export declare enum KnownShortTermRetentionPolicyName { /** Default */ Default = "default" } /** Known values of {@link SqlAgentConfigurationPropertiesState} that the service accepts. */ export declare enum KnownSqlAgentConfigurationPropertiesState { /** Enabled */ Enabled = "Enabled", /** Disabled */ Disabled = "Disabled" } /** Known values of {@link SQLVulnerabilityAssessmentName} that the service accepts. */ export declare enum KnownSQLVulnerabilityAssessmentName { /** Default */ Default = "default" } /** Known values of {@link SqlVulnerabilityAssessmentName} that the service accepts. */ export declare enum KnownSqlVulnerabilityAssessmentName { /** Default */ Default = "default" } /** Known values of {@link StartStopScheduleName} that the service accepts. */ export declare enum KnownStartStopScheduleName { /** Default */ Default = "default" } /** Known values of {@link StorageCapabilityStorageAccountType} that the service accepts. */ export declare enum KnownStorageCapabilityStorageAccountType { /** GRS */ GRS = "GRS", /** LRS */ LRS = "LRS", /** ZRS */ ZRS = "ZRS" } /** Known values of {@link StorageKeyType} that the service accepts. */ export declare enum KnownStorageKeyType { /** SharedAccessKey */ SharedAccessKey = "SharedAccessKey", /** StorageAccessKey */ StorageAccessKey = "StorageAccessKey" } /** Known values of {@link SyncAgentState} that the service accepts. */ export declare enum KnownSyncAgentState { /** Online */ Online = "Online", /** Offline */ Offline = "Offline", /** NeverConnected */ NeverConnected = "NeverConnected" } /** Known values of {@link SyncConflictResolutionPolicy} that the service accepts. */ export declare enum KnownSyncConflictResolutionPolicy { /** HubWin */ HubWin = "HubWin", /** MemberWin */ MemberWin = "MemberWin" } /** Known values of {@link SyncDirection} that the service accepts. */ export declare enum KnownSyncDirection { /** Bidirectional */ Bidirectional = "Bidirectional", /** OneWayMemberToHub */ OneWayMemberToHub = "OneWayMemberToHub", /** OneWayHubToMember */ OneWayHubToMember = "OneWayHubToMember" } /** Known values of {@link SyncGroupLogType} that the service accepts. */ export declare enum KnownSyncGroupLogType { /** All */ All = "All", /** Error */ Error = "Error", /** Warning */ Warning = "Warning", /** Success */ Success = "Success" } /** Known values of {@link SyncGroupState} that the service accepts. */ export declare enum KnownSyncGroupState { /** NotReady */ NotReady = "NotReady", /** Error */ Error = "Error", /** Warning */ Warning = "Warning", /** Progressing */ Progressing = "Progressing", /** Good */ Good = "Good" } /** Known values of {@link SyncGroupsType} that the service accepts. */ export declare enum KnownSyncGroupsType { /** All */ All = "All", /** Error */ Error = "Error", /** Warning */ Warning = "Warning", /** Success */ Success = "Success" } /** Known values of {@link SyncMemberDbType} that the service accepts. */ export declare enum KnownSyncMemberDbType { /** AzureSqlDatabase */ AzureSqlDatabase = "AzureSqlDatabase", /** SqlServerDatabase */ SqlServerDatabase = "SqlServerDatabase" } /** Known values of {@link SyncMemberState} that the service accepts. */ export declare enum KnownSyncMemberState { /** SyncInProgress */ SyncInProgress = "SyncInProgress", /** SyncSucceeded */ SyncSucceeded = "SyncSucceeded", /** SyncFailed */ SyncFailed = "SyncFailed", /** DisabledTombstoneCleanup */ DisabledTombstoneCleanup = "DisabledTombstoneCleanup", /** DisabledBackupRestore */ DisabledBackupRestore = "DisabledBackupRestore", /** SyncSucceededWithWarnings */ SyncSucceededWithWarnings = "SyncSucceededWithWarnings", /** SyncCancelling */ SyncCancelling = "SyncCancelling", /** SyncCancelled */ SyncCancelled = "SyncCancelled", /** UnProvisioned */ UnProvisioned = "UnProvisioned", /** Provisioning */ Provisioning = "Provisioning", /** Provisioned */ Provisioned = "Provisioned", /** ProvisionFailed */ ProvisionFailed = "ProvisionFailed", /** DeProvisioning */ DeProvisioning = "DeProvisioning", /** DeProvisioned */ DeProvisioned = "DeProvisioned", /** DeProvisionFailed */ DeProvisionFailed = "DeProvisionFailed", /** Reprovisioning */ Reprovisioning = "Reprovisioning", /** ReprovisionFailed */ ReprovisionFailed = "ReprovisionFailed", /** UnReprovisioned */ UnReprovisioned = "UnReprovisioned" } /** Known values of {@link TableTemporalType} that the service accepts. */ export declare enum KnownTableTemporalType { /** NonTemporalTable */ NonTemporalTable = "NonTemporalTable", /** HistoryTable */ HistoryTable = "HistoryTable", /** SystemVersionedTemporalTable */ SystemVersionedTemporalTable = "SystemVersionedTemporalTable" } /** Known values of {@link TransparentDataEncryptionName} that the service accepts. */ export declare enum KnownTransparentDataEncryptionName { /** Current */ Current = "current" } /** Known values of {@link UnitDefinitionType} that the service accepts. */ export declare enum KnownUnitDefinitionType { /** Count */ Count = "Count", /** Bytes */ Bytes = "Bytes", /** Seconds */ Seconds = "Seconds", /** Percent */ Percent = "Percent", /** CountPerSecond */ CountPerSecond = "CountPerSecond", /** BytesPerSecond */ BytesPerSecond = "BytesPerSecond" } /** Known values of {@link UnitType} that the service accepts. */ export declare enum KnownUnitType { /** Count */ Count = "count", /** Bytes */ Bytes = "bytes", /** Seconds */ Seconds = "seconds", /** Percent */ Percent = "percent", /** CountPerSecond */ CountPerSecond = "countPerSecond", /** BytesPerSecond */ BytesPerSecond = "bytesPerSecond" } /** Known values of {@link UpsertManagedServerOperationStepStatus} that the service accepts. */ export declare enum KnownUpsertManagedServerOperationStepStatus { /** NotStarted */ NotStarted = "NotStarted", /** InProgress */ InProgress = "InProgress", /** SlowedDown */ SlowedDown = "SlowedDown", /** Completed */ Completed = "Completed", /** Failed */ Failed = "Failed", /** Canceled */ Canceled = "Canceled" } /** Known values of {@link VirtualNetworkRuleState} that the service accepts. */ export declare enum KnownVirtualNetworkRuleState { /** Initializing */ Initializing = "Initializing", /** InProgress */ InProgress = "InProgress", /** Ready */ Ready = "Ready", /** Failed */ Failed = "Failed", /** Deleting */ Deleting = "Deleting", /** Unknown */ Unknown = "Unknown" } /** Known values of {@link VulnerabilityAssessmentName} that the service accepts. */ export declare enum KnownVulnerabilityAssessmentName { /** Default */ Default = "default" } /** Known values of {@link VulnerabilityAssessmentScanState} that the service accepts. */ export declare enum KnownVulnerabilityAssessmentScanState { /** Passed */ Passed = "Passed", /** Failed */ Failed = "Failed", /** FailedToRun */ FailedToRun = "FailedToRun", /** InProgress */ InProgress = "InProgress" } /** Known values of {@link VulnerabilityAssessmentScanTriggerType} that the service accepts. */ export declare enum KnownVulnerabilityAssessmentScanTriggerType { /** OnDemand */ OnDemand = "OnDemand", /** Recurring */ Recurring = "Recurring" } /** Azure SQL Database ledger digest upload settings. */ export declare interface LedgerDigestUploads extends ProxyResource { /** The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. */ digestStorageEndpoint?: string; /** * Specifies the state of ledger digest upload. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: LedgerDigestUploadsState; } /** Optional parameters. */ export declare interface LedgerDigestUploadsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type LedgerDigestUploadsCreateOrUpdateResponse = LedgerDigestUploads; /** Optional parameters. */ export declare interface LedgerDigestUploadsDisableOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the disable operation. */ export declare type LedgerDigestUploadsDisableResponse = LedgerDigestUploads; /** Optional parameters. */ export declare interface LedgerDigestUploadsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type LedgerDigestUploadsGetResponse = LedgerDigestUploads; /** Optional parameters. */ export declare interface LedgerDigestUploadsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type LedgerDigestUploadsListByDatabaseNextResponse = LedgerDigestUploadsListResult; /** Optional parameters. */ export declare interface LedgerDigestUploadsListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type LedgerDigestUploadsListByDatabaseResponse = LedgerDigestUploadsListResult; /** A list of ledger digest upload settings. */ export declare interface LedgerDigestUploadsListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: LedgerDigestUploads[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for LedgerDigestUploadsName. \ * {@link KnownLedgerDigestUploadsName} can be used interchangeably with LedgerDigestUploadsName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **current** */ export declare type LedgerDigestUploadsName = string; /** Interface representing a LedgerDigestUploadsOperations. */ export declare interface LedgerDigestUploadsOperations { /** * Gets all ledger digest upload settings on a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: LedgerDigestUploadsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets the current ledger digest upload configuration for a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param ledgerDigestUploads * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, ledgerDigestUploads: LedgerDigestUploadsName, options?: LedgerDigestUploadsGetOptionalParams): Promise; /** * Enables upload ledger digests to an Azure Storage account or an Azure Confidential Ledger instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param ledgerDigestUploads * @param parameters Azure SQL Database ledger digest upload settings. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, ledgerDigestUploads: LedgerDigestUploadsName, parameters: LedgerDigestUploads, options?: LedgerDigestUploadsCreateOrUpdateOptionalParams): Promise, LedgerDigestUploadsCreateOrUpdateResponse>>; /** * Enables upload ledger digests to an Azure Storage account or an Azure Confidential Ledger instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param ledgerDigestUploads * @param parameters Azure SQL Database ledger digest upload settings. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, ledgerDigestUploads: LedgerDigestUploadsName, parameters: LedgerDigestUploads, options?: LedgerDigestUploadsCreateOrUpdateOptionalParams): Promise; /** * Disables uploading ledger digests to an Azure Storage account or an Azure Confidential Ledger * instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param ledgerDigestUploads * @param options The options parameters. */ beginDisable(resourceGroupName: string, serverName: string, databaseName: string, ledgerDigestUploads: LedgerDigestUploadsName, options?: LedgerDigestUploadsDisableOptionalParams): Promise, LedgerDigestUploadsDisableResponse>>; /** * Disables uploading ledger digests to an Azure Storage account or an Azure Confidential Ledger * instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param ledgerDigestUploads * @param options The options parameters. */ beginDisableAndWait(resourceGroupName: string, serverName: string, databaseName: string, ledgerDigestUploads: LedgerDigestUploadsName, options?: LedgerDigestUploadsDisableOptionalParams): Promise; } /** Defines values for LedgerDigestUploadsState. */ export declare type LedgerDigestUploadsState = "Enabled" | "Disabled"; /** The license type capability */ export declare interface LicenseTypeCapability { /** * License type identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** The location capability. */ export declare interface LocationCapabilities { /** * The location name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The list of supported server versions. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedServerVersions?: ServerVersionCapability[]; /** * The list of supported managed instance versions. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedManagedInstanceVersions?: ManagedInstanceVersionCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** A logical database transparent data encryption state. */ export declare interface LogicalDatabaseTransparentDataEncryption extends ProxyResource { /** Specifies the state of the transparent data encryption. */ state?: TransparentDataEncryptionState; } /** A list of transparent data encryptions */ export declare interface LogicalDatabaseTransparentDataEncryptionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: LogicalDatabaseTransparentDataEncryption[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** A list of the server's Advanced Threat Protection configurations. */ export declare interface LogicalServerAdvancedThreatProtectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ServerAdvancedThreatProtection[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** A list of the server's security alert policies. */ export declare interface LogicalServerSecurityAlertPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ServerSecurityAlertPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** The log size capability. */ export declare interface LogSizeCapability { /** * The log size limit (see 'unit' for the units). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly limit?: number; /** * The units that the limit is expressed in. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: LogSizeUnit; } /** * Defines values for LogSizeUnit. \ * {@link KnownLogSizeUnit} can be used interchangeably with LogSizeUnit, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Megabytes** \ * **Gigabytes** \ * **Terabytes** \ * **Petabytes** \ * **Percent** */ export declare type LogSizeUnit = string; /** A long term retention backup. */ export declare interface LongTermRetentionBackup extends ProxyResource { /** * The server name that the backup database belong to. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serverName?: string; /** * The create time of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serverCreateTime?: Date; /** * The name of the database the backup belong to * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseName?: string; /** * The delete time of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseDeletionTime?: Date; /** * The time the backup was taken * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly backupTime?: Date; /** * The time the long term retention backup will expire. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly backupExpirationTime?: Date; /** * The storage redundancy type of the backup * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly backupStorageRedundancy?: BackupStorageRedundancy; /** The storage redundancy type of the backup */ requestedBackupStorageRedundancy?: BackupStorageRedundancy; } /** A list of long term retention backups. */ export declare interface LongTermRetentionBackupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: LongTermRetentionBackup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** A LongTermRetentionBackup operation result resource. */ export declare interface LongTermRetentionBackupOperationResult extends ProxyResource { /** * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestId?: string; /** * Operation type. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operationType?: string; /** * Source backup resource id * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly fromBackupResourceId?: string; /** * Target backup resource id * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly toBackupResourceId?: string; /** * The storage redundancy type of the copied backup * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly targetBackupStorageRedundancy?: BackupStorageRedundancy; /** * Operation status * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: string; /** * Progress message * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly message?: string; } /** Interface representing a LongTermRetentionBackups. */ export declare interface LongTermRetentionBackups { /** * Lists all long term retention backups for a database. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param options The options parameters. */ listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: LongTermRetentionBackupsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Lists the long term retention backups for a given location. * @param locationName The location of the database * @param options The options parameters. */ listByLocation(locationName: string, options?: LongTermRetentionBackupsListByLocationOptionalParams): PagedAsyncIterableIterator; /** * Lists the long term retention backups for a given server. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param options The options parameters. */ listByServer(locationName: string, longTermRetentionServerName: string, options?: LongTermRetentionBackupsListByServerOptionalParams): PagedAsyncIterableIterator; /** * Lists all long term retention backups for a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param options The options parameters. */ listByResourceGroupDatabase(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Lists the long term retention backups for a given location. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param options The options parameters. */ listByResourceGroupLocation(resourceGroupName: string, locationName: string, options?: LongTermRetentionBackupsListByResourceGroupLocationOptionalParams): PagedAsyncIterableIterator; /** * Lists the long term retention backups for a given server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param options The options parameters. */ listByResourceGroupServer(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, options?: LongTermRetentionBackupsListByResourceGroupServerOptionalParams): PagedAsyncIterableIterator; /** * Copy an existing long term retention backup. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ beginCopy(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: CopyLongTermRetentionBackupParameters, options?: LongTermRetentionBackupsCopyOptionalParams): Promise, LongTermRetentionBackupsCopyResponse>>; /** * Copy an existing long term retention backup. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ beginCopyAndWait(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: CopyLongTermRetentionBackupParameters, options?: LongTermRetentionBackupsCopyOptionalParams): Promise; /** * Updates an existing long term retention backup. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param parameters The requested backup resource state * @param options The options parameters. */ beginUpdate(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: UpdateLongTermRetentionBackupParameters, options?: LongTermRetentionBackupsUpdateOptionalParams): Promise, LongTermRetentionBackupsUpdateResponse>>; /** * Updates an existing long term retention backup. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param parameters The requested backup resource state * @param options The options parameters. */ beginUpdateAndWait(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: UpdateLongTermRetentionBackupParameters, options?: LongTermRetentionBackupsUpdateOptionalParams): Promise; /** * Gets a long term retention backup. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The options parameters. */ get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: LongTermRetentionBackupsGetOptionalParams): Promise; /** * Deletes a long term retention backup. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The options parameters. */ beginDelete(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: LongTermRetentionBackupsDeleteOptionalParams): Promise, void>>; /** * Deletes a long term retention backup. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The options parameters. */ beginDeleteAndWait(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: LongTermRetentionBackupsDeleteOptionalParams): Promise; /** * Copy an existing long term retention backup to a different server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ beginCopyByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: CopyLongTermRetentionBackupParameters, options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams): Promise, LongTermRetentionBackupsCopyByResourceGroupResponse>>; /** * Copy an existing long term retention backup to a different server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ beginCopyByResourceGroupAndWait(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: CopyLongTermRetentionBackupParameters, options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams): Promise; /** * Updates an existing long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param parameters The requested backup resource state * @param options The options parameters. */ beginUpdateByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: UpdateLongTermRetentionBackupParameters, options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams): Promise, LongTermRetentionBackupsUpdateByResourceGroupResponse>>; /** * Updates an existing long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param parameters The requested backup resource state * @param options The options parameters. */ beginUpdateByResourceGroupAndWait(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: UpdateLongTermRetentionBackupParameters, options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams): Promise; /** * Gets a long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The options parameters. */ getByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: LongTermRetentionBackupsGetByResourceGroupOptionalParams): Promise; /** * Deletes a long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The options parameters. */ beginDeleteByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams): Promise, void>>; /** * Deletes a long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The options parameters. */ beginDeleteByResourceGroupAndWait(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams): Promise; } /** Optional parameters. */ export declare interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the copyByResourceGroup operation. */ export declare type LongTermRetentionBackupsCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ export declare interface LongTermRetentionBackupsCopyOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the copy operation. */ export declare type LongTermRetentionBackupsCopyResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ export declare interface LongTermRetentionBackupsDeleteByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface LongTermRetentionBackupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface LongTermRetentionBackupsGetByResourceGroupOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the getByResourceGroup operation. */ export declare type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup; /** Optional parameters. */ export declare interface LongTermRetentionBackupsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup; /** Optional parameters. */ export declare interface LongTermRetentionBackupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionBackupsListByDatabaseOptionalParams extends coreClient.OperationOptions { /** Whether or not to only get the latest backup for each database. */ onlyLatestPerDatabase?: boolean; /** Whether to query against just live databases, just deleted databases, or all databases. */ databaseState?: DatabaseState; } /** Contains response data for the listByDatabase operation. */ export declare type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionBackupsListByLocationNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByLocationNext operation. */ export declare type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionBackupsListByLocationOptionalParams extends coreClient.OperationOptions { /** Whether or not to only get the latest backup for each database. */ onlyLatestPerDatabase?: boolean; /** Whether to query against just live databases, just deleted databases, or all databases. */ databaseState?: DatabaseState; } /** Contains response data for the listByLocation operation. */ export declare type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByResourceGroupDatabaseNext operation. */ export declare type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams extends coreClient.OperationOptions { /** Whether or not to only get the latest backup for each database. */ onlyLatestPerDatabase?: boolean; /** Whether to query against just live databases, just deleted databases, or all databases. */ databaseState?: DatabaseState; } /** Contains response data for the listByResourceGroupDatabase operation. */ export declare type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByResourceGroupLocationNext operation. */ export declare type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionBackupsListByResourceGroupLocationOptionalParams extends coreClient.OperationOptions { /** Whether or not to only get the latest backup for each database. */ onlyLatestPerDatabase?: boolean; /** Whether to query against just live databases, just deleted databases, or all databases. */ databaseState?: DatabaseState; } /** Contains response data for the listByResourceGroupLocation operation. */ export declare type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByResourceGroupServerNext operation. */ export declare type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionBackupsListByResourceGroupServerOptionalParams extends coreClient.OperationOptions { /** Whether or not to only get the latest backup for each database. */ onlyLatestPerDatabase?: boolean; /** Whether to query against just live databases, just deleted databases, or all databases. */ databaseState?: DatabaseState; } /** Contains response data for the listByResourceGroupServer operation. */ export declare type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionBackupsListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionBackupsListByServerOptionalParams extends coreClient.OperationOptions { /** Whether or not to only get the latest backup for each database. */ onlyLatestPerDatabase?: boolean; /** Whether to query against just live databases, just deleted databases, or all databases. */ databaseState?: DatabaseState; } /** Contains response data for the listByServer operation. */ export declare type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the updateByResourceGroup operation. */ export declare type LongTermRetentionBackupsUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ export declare interface LongTermRetentionBackupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type LongTermRetentionBackupsUpdateResponse = LongTermRetentionBackupOperationResult; /** Interface representing a LongTermRetentionManagedInstanceBackups. */ export declare interface LongTermRetentionManagedInstanceBackups { /** * Lists all long term retention backups for a managed database. * @param locationName The location of the database. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the managed database. * @param options The options parameters. */ listByDatabase(locationName: string, managedInstanceName: string, databaseName: string, options?: LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Lists the long term retention backups for a given managed instance. * @param locationName The location of the database * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByInstance(locationName: string, managedInstanceName: string, options?: LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Lists the long term retention backups for managed databases in a given location. * @param locationName The location of the database. * @param options The options parameters. */ listByLocation(locationName: string, options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams): PagedAsyncIterableIterator; /** * Lists all long term retention backups for a managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the managed database. * @param options The options parameters. */ listByResourceGroupDatabase(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Lists the long term retention backups for a given managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByResourceGroupInstance(resourceGroupName: string, locationName: string, managedInstanceName: string, options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams): PagedAsyncIterableIterator; /** * Lists the long term retention backups for managed databases in a given location. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param options The options parameters. */ listByResourceGroupLocation(resourceGroupName: string, locationName: string, options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams): PagedAsyncIterableIterator; /** * Gets a long term retention backup for a managed database. * @param locationName The location of the database. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the managed database. * @param backupName The backup name. * @param options The options parameters. */ get(locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: LongTermRetentionManagedInstanceBackupsGetOptionalParams): Promise; /** * Deletes a long term retention backup. * @param locationName The location of the database. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the managed database. * @param backupName The backup name. * @param options The options parameters. */ beginDelete(locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: LongTermRetentionManagedInstanceBackupsDeleteOptionalParams): Promise, void>>; /** * Deletes a long term retention backup. * @param locationName The location of the database. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the managed database. * @param backupName The backup name. * @param options The options parameters. */ beginDeleteAndWait(locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: LongTermRetentionManagedInstanceBackupsDeleteOptionalParams): Promise; /** * Gets a long term retention backup for a managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the managed database. * @param backupName The backup name. * @param options The options parameters. */ getByResourceGroup(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams): Promise; /** * Deletes a long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the managed database. * @param backupName The backup name. * @param options The options parameters. */ beginDeleteByResourceGroup(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams): Promise, void>>; /** * Deletes a long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the managed database. * @param backupName The backup name. * @param options The options parameters. */ beginDeleteByResourceGroupAndWait(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams): Promise; } /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the getByResourceGroup operation. */ export declare type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup; /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup; /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams extends coreClient.OperationOptions { /** Whether or not to only get the latest backup for each database. */ onlyLatestPerDatabase?: boolean; /** Whether to query against just live databases, just deleted databases, or all databases. */ databaseState?: DatabaseState; } /** Contains response data for the listByDatabase operation. */ export declare type LongTermRetentionManagedInstanceBackupsListByDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams extends coreClient.OperationOptions { /** Whether or not to only get the latest backup for each database. */ onlyLatestPerDatabase?: boolean; /** Whether to query against just live databases, just deleted databases, or all databases. */ databaseState?: DatabaseState; } /** Contains response data for the listByInstance operation. */ export declare type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByLocationNext operation. */ export declare type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams extends coreClient.OperationOptions { /** Whether or not to only get the latest backup for each database. */ onlyLatestPerDatabase?: boolean; /** Whether to query against just live databases, just deleted databases, or all databases. */ databaseState?: DatabaseState; } /** Contains response data for the listByLocation operation. */ export declare type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByResourceGroupDatabaseNext operation. */ export declare type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams extends coreClient.OperationOptions { /** Whether or not to only get the latest backup for each database. */ onlyLatestPerDatabase?: boolean; /** Whether to query against just live databases, just deleted databases, or all databases. */ databaseState?: DatabaseState; } /** Contains response data for the listByResourceGroupDatabase operation. */ export declare type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByResourceGroupInstanceNext operation. */ export declare type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams extends coreClient.OperationOptions { /** Whether or not to only get the latest backup for each database. */ onlyLatestPerDatabase?: boolean; /** Whether to query against just live databases, just deleted databases, or all databases. */ databaseState?: DatabaseState; } /** Contains response data for the listByResourceGroupInstance operation. */ export declare type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByResourceGroupLocationNext operation. */ export declare type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ export declare interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams extends coreClient.OperationOptions { /** Whether or not to only get the latest backup for each database. */ onlyLatestPerDatabase?: boolean; /** Whether to query against just live databases, just deleted databases, or all databases. */ databaseState?: DatabaseState; } /** Contains response data for the listByResourceGroupLocation operation. */ export declare type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Interface representing a LongTermRetentionPolicies. */ export declare interface LongTermRetentionPolicies { /** * Gets a database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: LongTermRetentionPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets a database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param policyName The policy name. Should always be Default. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, policyName: LongTermRetentionPolicyName, options?: LongTermRetentionPoliciesGetOptionalParams): Promise; /** * Sets a database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param policyName The policy name. Should always be Default. * @param parameters The long term retention policy info. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, policyName: LongTermRetentionPolicyName, parameters: LongTermRetentionPolicy, options?: LongTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise, LongTermRetentionPoliciesCreateOrUpdateResponse>>; /** * Sets a database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param policyName The policy name. Should always be Default. * @param parameters The long term retention policy info. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, policyName: LongTermRetentionPolicyName, parameters: LongTermRetentionPolicy, options?: LongTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type LongTermRetentionPoliciesCreateOrUpdateResponse = LongTermRetentionPolicy; /** Optional parameters. */ export declare interface LongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type LongTermRetentionPoliciesGetResponse = LongTermRetentionPolicy; /** Optional parameters. */ export declare interface LongTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult; /** Optional parameters. */ export declare interface LongTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult; /** A long term retention policy. */ export declare interface LongTermRetentionPolicy extends ProxyResource { /** The weekly retention policy for an LTR backup in an ISO 8601 format. */ weeklyRetention?: string; /** The monthly retention policy for an LTR backup in an ISO 8601 format. */ monthlyRetention?: string; /** The yearly retention policy for an LTR backup in an ISO 8601 format. */ yearlyRetention?: string; /** The week of year to take the yearly backup in an ISO 8601 format. */ weekOfYear?: number; } /** A list of long term retention policies. */ export declare interface LongTermRetentionPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: LongTermRetentionPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for LongTermRetentionPolicyName. \ * {@link KnownLongTermRetentionPolicyName} can be used interchangeably with LongTermRetentionPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **default** */ export declare type LongTermRetentionPolicyName = string; /** The maintenance configuration capability */ export declare interface MaintenanceConfigurationCapability { /** * Maintenance configuration name * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * Whether or not zone redundancy is supported for the maintenance configuration. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly zoneRedundant?: boolean; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** Maintenance window options. */ export declare interface MaintenanceWindowOptions extends ProxyResource { /** Whether maintenance windows are enabled for the database. */ isEnabled?: boolean; /** Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}. */ maintenanceWindowCycles?: MaintenanceWindowTimeRange[]; /** Minimum duration of maintenance window. */ minDurationInMinutes?: number; /** Default duration for maintenance window. */ defaultDurationInMinutes?: number; /** Minimum number of maintenance windows cycles to be set on the database. */ minCycles?: number; /** Time granularity in minutes for maintenance windows. */ timeGranularityInMinutes?: number; /** Whether we allow multiple maintenance windows per cycle. */ allowMultipleMaintenanceWindowsPerCycle?: boolean; } /** Optional parameters. */ export declare interface MaintenanceWindowOptionsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type MaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; /** Interface representing a MaintenanceWindowOptionsOperations. */ export declare interface MaintenanceWindowOptionsOperations { /** * Gets a list of available maintenance windows. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database to get maintenance windows options for. * @param maintenanceWindowOptionsName Maintenance window options name. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, maintenanceWindowOptionsName: string, options?: MaintenanceWindowOptionsGetOptionalParams): Promise; } /** Maintenance windows. */ export declare interface MaintenanceWindows extends ProxyResource { timeRanges?: MaintenanceWindowTimeRange[]; } /** Optional parameters. */ export declare interface MaintenanceWindowsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface MaintenanceWindowsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type MaintenanceWindowsGetResponse = MaintenanceWindows; /** Interface representing a MaintenanceWindowsOperations. */ export declare interface MaintenanceWindowsOperations { /** * Gets maintenance windows settings for a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database to get maintenance windows for. * @param maintenanceWindowName Maintenance window name. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, maintenanceWindowName: string, options?: MaintenanceWindowsGetOptionalParams): Promise; /** * Sets maintenance windows settings for a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database to set maintenance windows for. * @param maintenanceWindowName Maintenance window name. * @param parameters Maintenance windows. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, maintenanceWindowName: string, parameters: MaintenanceWindows, options?: MaintenanceWindowsCreateOrUpdateOptionalParams): Promise; } /** Maintenance window time range. */ export declare interface MaintenanceWindowTimeRange { /** Day of maintenance window. */ dayOfWeek?: DayOfWeek; /** Start time minutes offset from 12am. */ startTime?: string; /** Duration of maintenance window in minutes. */ duration?: string; } /** Interface representing a ManagedBackupShortTermRetentionPolicies. */ export declare interface ManagedBackupShortTermRetentionPolicies { /** * Gets a managed database's short term retention policy list. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets a managed database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param policyName The policy name. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedShortTermRetentionPolicyName, options?: ManagedBackupShortTermRetentionPoliciesGetOptionalParams): Promise; /** * Updates a managed database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param policyName The policy name. Should always be "default". * @param parameters The short term retention policy info. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise, ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse>>; /** * Updates a managed database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param policyName The policy name. Should always be "default". * @param parameters The short term retention policy info. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise; /** * Updates a managed database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param policyName The policy name. Should always be "default". * @param parameters The short term retention policy info. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams): Promise, ManagedBackupShortTermRetentionPoliciesUpdateResponse>>; /** * Updates a managed database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param policyName The policy name. Should always be "default". * @param parameters The short term retention policy info. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ export declare interface ManagedBackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ export declare interface ManagedBackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ export declare interface ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ export declare interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** A short term retention policy. */ export declare interface ManagedBackupShortTermRetentionPolicy extends ProxyResource { /** The backup retention period in days. This is how many days Point-in-Time Restore will be supported. */ retentionDays?: number; } /** A list of short term retention policies. */ export declare interface ManagedBackupShortTermRetentionPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedBackupShortTermRetentionPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** A managed database resource. */ export declare interface ManagedDatabase extends TrackedResource { /** Collation of the managed database. */ collation?: string; /** * Status of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: ManagedDatabaseStatus; /** * Creation date of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationDate?: Date; /** * Earliest restore point in time for point in time restore. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly earliestRestorePoint?: Date; /** Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ restorePointInTime?: Date; /** * Geo paired region. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly defaultSecondaryLocation?: string; /** Collation of the metadata catalog. */ catalogCollation?: CatalogCollationType; /** Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). */ createMode?: ManagedDatabaseCreateMode; /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. */ storageContainerUri?: string; /** The resource identifier of the source database associated with create operation of this database. */ sourceDatabaseId?: string; /** The resource identifier of the cross-subscription source database associated with create operation of this database. */ crossSubscriptionSourceDatabaseId?: string; /** The restorable dropped database resource id to restore when creating this database. */ restorableDroppedDatabaseId?: string; /** The restorable cross-subscription dropped database resource id to restore when creating this database. */ crossSubscriptionRestorableDroppedDatabaseId?: string; /** Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. */ storageContainerIdentity?: string; /** Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. */ storageContainerSasToken?: string; /** * Instance Failover Group resource identifier that this managed database belongs to. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly failoverGroupId?: string; /** The resource identifier of the recoverable database associated with create operation of this database. */ recoverableDatabaseId?: string; /** The name of the Long Term Retention backup to be used for restore of this managed database. */ longTermRetentionBackupResourceId?: string; /** Whether to auto complete restore of this managed database. */ autoCompleteRestore?: boolean; /** Last backup file name for restore of this managed database. */ lastBackupName?: string; /** Target managed instance id used in cross-subscription restore. */ crossSubscriptionTargetManagedInstanceId?: string; } /** A managed database Advanced Threat Protection. */ export declare interface ManagedDatabaseAdvancedThreatProtection extends ProxyResource { /** * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ state?: AdvancedThreatProtectionState; /** * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationTime?: Date; } /** A list of the managed database's Advanced Threat Protection settings. */ export declare interface ManagedDatabaseAdvancedThreatProtectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedDatabaseAdvancedThreatProtection[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ManagedDatabaseAdvancedThreatProtectionSettings. */ export declare interface ManagedDatabaseAdvancedThreatProtectionSettings { /** * Gets a list of managed database's Advanced Threat Protection states. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets a managed database's Advanced Threat Protection state. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, options?: ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams): Promise; /** * Creates or updates a managed database's Advanced Threat Protection state. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param parameters The managed database Advanced Threat Protection state. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: ManagedDatabaseAdvancedThreatProtection, options?: ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedDatabaseAdvancedThreatProtection; /** Optional parameters. */ export declare interface ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse = ManagedDatabaseAdvancedThreatProtection; /** Optional parameters. */ export declare interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = ManagedDatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ export declare interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = ManagedDatabaseAdvancedThreatProtectionListResult; /** Interface representing a ManagedDatabaseColumns. */ export declare interface ManagedDatabaseColumns { /** * List managed database columns * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseColumnsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * List managed database columns * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param options The options parameters. */ listByTable(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, options?: ManagedDatabaseColumnsListByTableOptionalParams): PagedAsyncIterableIterator; /** * Get managed database column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: ManagedDatabaseColumnsGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedDatabaseColumnsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedDatabaseColumnsGetResponse = DatabaseColumn; /** Optional parameters. */ export declare interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; /** Optional parameters. */ export declare interface ManagedDatabaseColumnsListByDatabaseOptionalParams extends coreClient.OperationOptions { /** Array of Get3ItemsItem */ schema?: string[]; /** Array of Get4ItemsItem */ table?: string[]; /** Array of Get5ItemsItem */ column?: string[]; /** Array of Get6ItemsItem */ orderBy?: string[]; /** An opaque token that identifies a starting point in the collection. */ skiptoken?: string; } /** Contains response data for the listByDatabase operation. */ export declare type ManagedDatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; /** Optional parameters. */ export declare interface ManagedDatabaseColumnsListByTableNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByTableNext operation. */ export declare type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; /** Optional parameters. */ export declare interface ManagedDatabaseColumnsListByTableOptionalParams extends coreClient.OperationOptions { /** An OData filter expression that filters elements in the collection. */ filter?: string; } /** Contains response data for the listByTable operation. */ export declare type ManagedDatabaseColumnsListByTableResponse = DatabaseColumnListResult; /** * Defines values for ManagedDatabaseCreateMode. \ * {@link KnownManagedDatabaseCreateMode} can be used interchangeably with ManagedDatabaseCreateMode, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** \ * **RestoreExternalBackup** \ * **PointInTimeRestore** \ * **Recovery** \ * **RestoreLongTermRetentionBackup** */ export declare type ManagedDatabaseCreateMode = string; /** A list of managed databases. */ export declare interface ManagedDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Contains the information necessary to perform a managed database move. */ export declare interface ManagedDatabaseMoveDefinition { /** The destination managed database ID */ destinationManagedDatabaseId: string; } /** List of managed database move operations. */ export declare interface ManagedDatabaseMoveOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedDatabaseMoveOperationResult[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** A managed database move operation. */ export declare interface ManagedDatabaseMoveOperationResult extends ProxyResource { /** * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operation?: string; /** * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operationFriendlyName?: string; /** * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: Date; /** * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: ManagementOperationState; /** * Operation mode. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operationMode?: MoveOperationMode; /** * Source Managed Instance name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sourceManagedInstanceName?: string; /** * Target Managed Instance name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly targetManagedInstanceName?: string; /** * Source Managed Instance resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sourceManagedInstanceId?: string; /** * Target Managed instance resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly targetManagedInstanceId?: string; /** * Source database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sourceDatabaseName?: string; /** * Target database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly targetDatabaseName?: string; /** * Is move operation cancellable. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isCancellable?: boolean; /** * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorCode?: number; /** * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorDescription?: string; /** * The operation error severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorSeverity?: number; /** * Whether or not the error is a user error. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isUserError?: boolean; } /** Interface representing a ManagedDatabaseMoveOperations. */ export declare interface ManagedDatabaseMoveOperations { /** * Lists managed database move operations. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName * @param options The options parameters. */ listByLocation(resourceGroupName: string, locationName: string, options?: ManagedDatabaseMoveOperationsListByLocationOptionalParams): PagedAsyncIterableIterator; /** * Gets a managed database move operation. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName * @param operationId * @param options The options parameters. */ get(resourceGroupName: string, locationName: string, operationId: string, options?: ManagedDatabaseMoveOperationsGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedDatabaseMoveOperationsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedDatabaseMoveOperationsGetResponse = ManagedDatabaseMoveOperationResult; /** Optional parameters. */ export declare interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByLocationNext operation. */ export declare type ManagedDatabaseMoveOperationsListByLocationNextResponse = ManagedDatabaseMoveOperationListResult; /** Optional parameters. */ export declare interface ManagedDatabaseMoveOperationsListByLocationOptionalParams extends coreClient.OperationOptions { /** An OData filter expression that filters elements in the collection. */ filter?: string; /** Whether or not to only get the latest operation for each database. Has higher priority than $filter. */ onlyLatestPerDatabase?: boolean; } /** Contains response data for the listByLocation operation. */ export declare type ManagedDatabaseMoveOperationsListByLocationResponse = ManagedDatabaseMoveOperationListResult; /** Interface representing a ManagedDatabaseQueries. */ export declare interface ManagedDatabaseQueries { /** * Get query execution statistics by query id. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param queryId * @param options The options parameters. */ listByQuery(resourceGroupName: string, managedInstanceName: string, databaseName: string, queryId: string, options?: ManagedDatabaseQueriesListByQueryOptionalParams): PagedAsyncIterableIterator; /** * Get query by query id. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param queryId * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, queryId: string, options?: ManagedDatabaseQueriesGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedDatabaseQueriesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery; /** Optional parameters. */ export declare interface ManagedDatabaseQueriesListByQueryNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByQueryNext operation. */ export declare type ManagedDatabaseQueriesListByQueryNextResponse = ManagedInstanceQueryStatistics; /** Optional parameters. */ export declare interface ManagedDatabaseQueriesListByQueryOptionalParams extends coreClient.OperationOptions { /** Start time for observed period. */ startTime?: string; /** End time for observed period. */ endTime?: string; /** The time step to be used to summarize the metric values. */ interval?: QueryTimeGrainType; } /** Contains response data for the listByQuery operation. */ export declare type ManagedDatabaseQueriesListByQueryResponse = ManagedInstanceQueryStatistics; /** Interface representing a ManagedDatabaseRecommendedSensitivityLabels. */ export declare interface ManagedDatabaseRecommendedSensitivityLabels { /** * Update recommended sensitivity labels states of a given database using an operations batch. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters A list of recommended sensitivity label update operations. * @param options The options parameters. */ update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: RecommendedSensitivityLabelUpdateList, options?: ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions { } /** Interface representing a ManagedDatabaseRestoreDetails. */ export declare interface ManagedDatabaseRestoreDetails { /** * Gets managed database restore details. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param restoreDetailsName The name of the restore details to retrieve. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, restoreDetailsName: RestoreDetailsName, options?: ManagedDatabaseRestoreDetailsGetOptionalParams): Promise; } /** The managed database's restore details backup set properties. */ export declare interface ManagedDatabaseRestoreDetailsBackupSetProperties { /** * Backup set status. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: string; /** * First stripe name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly firstStripeName?: string; /** * Number of stripes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly numberOfStripes?: number; /** * Backup size. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly backupSizeMB?: number; /** * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly restoreStartedTimestampUtc?: Date; /** * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly restoreFinishedTimestampUtc?: Date; } /** Optional parameters. */ export declare interface ManagedDatabaseRestoreDetailsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult; /** A managed database restore details. */ export declare interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { /** * Restore type. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly typePropertiesType?: string; /** * Restore status. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: string; /** * The reason why restore is in Blocked state. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly blockReason?: string; /** * Last uploaded file name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastUploadedFileName?: string; /** * Last uploaded file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastUploadedFileTime?: Date; /** * Last restored file name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastRestoredFileName?: string; /** * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastRestoredFileTime?: Date; /** * Percent completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly percentCompleted?: number; /** * Current restored size MB. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentRestoredSizeMB?: number; /** * Current restore plan size MB. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentRestorePlanSizeMB?: number; /** * Current backup type. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentBackupType?: string; /** * Current restoring file name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentRestoringFileName?: string; /** * Number of files detected. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly numberOfFilesDetected?: number; /** * Number of files queued. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly numberOfFilesQueued?: number; /** * Number of files skipped. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly numberOfFilesSkipped?: number; /** * Number of files restoring. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly numberOfFilesRestoring?: number; /** * Number of files restored. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly numberOfFilesRestored?: number; /** * Number of files unrestorable. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly numberOfFilesUnrestorable?: number; /** * Full backup sets. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly fullBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; /** * Diff backup sets. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly diffBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; /** * Log backup sets. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly logBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; /** * Unrestorable files. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unrestorableFiles?: ManagedDatabaseRestoreDetailsUnrestorableFileProperties[]; } /** The managed database's restore details unrestorable file properties. */ export declare interface ManagedDatabaseRestoreDetailsUnrestorableFileProperties { /** * File name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; } /** Interface representing a ManagedDatabases. */ export declare interface ManagedDatabases { /** * Gets a list of managed databases. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedDatabasesListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a list of inaccessible managed databases in a managed instance * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listInaccessibleByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedDatabasesListInaccessibleByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabasesGetOptionalParams): Promise; /** * Creates a new database or updates an existing database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters The requested database resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabase, options?: ManagedDatabasesCreateOrUpdateOptionalParams): Promise, ManagedDatabasesCreateOrUpdateResponse>>; /** * Creates a new database or updates an existing database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters The requested database resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabase, options?: ManagedDatabasesCreateOrUpdateOptionalParams): Promise; /** * Deletes a managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param options The options parameters. */ beginDelete(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabasesDeleteOptionalParams): Promise, void>>; /** * Deletes a managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabasesDeleteOptionalParams): Promise; /** * Updates an existing database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters The requested database resource state. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseUpdate, options?: ManagedDatabasesUpdateOptionalParams): Promise, ManagedDatabasesUpdateResponse>>; /** * Updates an existing database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters The requested database resource state. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseUpdate, options?: ManagedDatabasesUpdateOptionalParams): Promise; /** * Cancels a managed database move operation. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters Parameters of the cancel managed database move operation. * @param options The options parameters. */ beginCancelMove(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseMoveDefinition, options?: ManagedDatabasesCancelMoveOptionalParams): Promise, void>>; /** * Cancels a managed database move operation. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters Parameters of the cancel managed database move operation. * @param options The options parameters. */ beginCancelMoveAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseMoveDefinition, options?: ManagedDatabasesCancelMoveOptionalParams): Promise; /** * Completes a managed database move operation. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters Parameters of the complete managed database move operation. * @param options The options parameters. */ beginCompleteMove(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseMoveDefinition, options?: ManagedDatabasesCompleteMoveOptionalParams): Promise, void>>; /** * Completes a managed database move operation. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters Parameters of the complete managed database move operation. * @param options The options parameters. */ beginCompleteMoveAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseMoveDefinition, options?: ManagedDatabasesCompleteMoveOptionalParams): Promise; /** * Completes the restore operation on a managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters The definition for completing the restore of this managed database. * @param options The options parameters. */ beginCompleteRestore(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: CompleteDatabaseRestoreDefinition, options?: ManagedDatabasesCompleteRestoreOptionalParams): Promise, void>>; /** * Completes the restore operation on a managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters The definition for completing the restore of this managed database. * @param options The options parameters. */ beginCompleteRestoreAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: CompleteDatabaseRestoreDefinition, options?: ManagedDatabasesCompleteRestoreOptionalParams): Promise; /** * Starts a managed database move operation. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters Parameters of the start managed database move operation. * @param options The options parameters. */ beginStartMove(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseStartMoveDefinition, options?: ManagedDatabasesStartMoveOptionalParams): Promise, void>>; /** * Starts a managed database move operation. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters Parameters of the start managed database move operation. * @param options The options parameters. */ beginStartMoveAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseStartMoveDefinition, options?: ManagedDatabasesStartMoveOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedDatabasesCancelMoveOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Interface representing a ManagedDatabaseSchemas. */ export declare interface ManagedDatabaseSchemas { /** * List managed database schemas * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseSchemasListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Get managed database schema * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, options?: ManagedDatabaseSchemasGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedDatabaseSchemasGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedDatabaseSchemasGetResponse = DatabaseSchema; /** Optional parameters. */ export declare interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; /** Optional parameters. */ export declare interface ManagedDatabaseSchemasListByDatabaseOptionalParams extends coreClient.OperationOptions { /** An OData filter expression that filters elements in the collection. */ filter?: string; } /** Contains response data for the listByDatabase operation. */ export declare type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; /** Optional parameters. */ export declare interface ManagedDatabasesCompleteMoveOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ManagedDatabasesCompleteRestoreOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ManagedDatabasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase; /** Optional parameters. */ export declare interface ManagedDatabasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Interface representing a ManagedDatabaseSecurityAlertPolicies. */ export declare interface ManagedDatabaseSecurityAlertPolicies { /** * Gets a list of managed database's security alert policies. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the managed database for which the security alert policies are * defined. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets a managed database's security alert policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the managed database for which the security alert policy is defined. * @param securityAlertPolicyName The name of the security alert policy. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, securityAlertPolicyName: SecurityAlertPolicyName, options?: ManagedDatabaseSecurityAlertPoliciesGetOptionalParams): Promise; /** * Creates or updates a database's security alert policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the managed database for which the security alert policy is defined. * @param securityAlertPolicyName The name of the security alert policy. * @param parameters The database security alert policy. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ManagedDatabaseSecurityAlertPolicy, options?: ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy; /** Optional parameters. */ export declare interface ManagedDatabaseSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy; /** Optional parameters. */ export declare interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult; /** Optional parameters. */ export declare interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; /** A managed database security alert policy. */ export declare interface ManagedDatabaseSecurityAlertPolicy extends ProxyResource { /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ state?: SecurityAlertPolicyState; /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ disabledAlerts?: string[]; /** Specifies an array of e-mail addresses to which the alert is sent. */ emailAddresses?: string[]; /** Specifies that the alert is sent to the account administrators. */ emailAccountAdmins?: boolean; /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ storageEndpoint?: string; /** Specifies the identifier key of the Threat Detection audit storage account. */ storageAccountAccessKey?: string; /** Specifies the number of days to keep in the Threat Detection audit logs. */ retentionDays?: number; /** * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationTime?: Date; } /** A list of the managed database's security alert policies. */ export declare interface ManagedDatabaseSecurityAlertPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedDatabaseSecurityAlertPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ManagedDatabaseSecurityEvents. */ export declare interface ManagedDatabaseSecurityEvents { /** * Gets a list of security events. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the managed database for which the security events are retrieved. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseSecurityEventsListByDatabaseOptionalParams): PagedAsyncIterableIterator; } /** Optional parameters. */ export declare interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type ManagedDatabaseSecurityEventsListByDatabaseNextResponse = SecurityEventCollection; /** Optional parameters. */ export declare interface ManagedDatabaseSecurityEventsListByDatabaseOptionalParams extends coreClient.OperationOptions { /** An OData filter expression that filters elements in the collection. */ filter?: string; /** The number of elements in the collection to skip. */ skip?: number; /** An opaque token that identifies a starting point in the collection. */ skiptoken?: string; /** The number of elements to return from the collection. */ top?: number; } /** Contains response data for the listByDatabase operation. */ export declare type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection; /** Interface representing a ManagedDatabaseSensitivityLabels. */ export declare interface ManagedDatabaseSensitivityLabels { /** * Gets the sensitivity labels of a given database * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param options The options parameters. */ listCurrentByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets the sensitivity labels of a given database * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param options The options parameters. */ listRecommendedByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. * @param sensitivityLabelSource The source of the sensitivity label. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: SensitivityLabelSource, options?: ManagedDatabaseSensitivityLabelsGetOptionalParams): Promise; /** * Creates or updates the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. * @param parameters The column sensitivity label resource. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, parameters: SensitivityLabel, options?: ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams): Promise; /** * Deletes the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. * @param options The options parameters. */ delete(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: ManagedDatabaseSensitivityLabelsDeleteOptionalParams): Promise; /** * Disables sensitivity recommendations on a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. * @param options The options parameters. */ disableRecommendation(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams): Promise; /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all * columns) * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. * @param options The options parameters. */ enableRecommendation(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams): Promise; /** * Update sensitivity labels of a given database using an operations batch. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters A list of sensitivity label update operations. * @param options The options parameters. */ update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: SensitivityLabelUpdateList, options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; /** Optional parameters. */ export declare interface ManagedDatabaseSensitivityLabelsDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface ManagedDatabaseSensitivityLabelsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ export declare interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listCurrentByDatabaseNext operation. */ export declare type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ export declare interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams extends coreClient.OperationOptions { skipToken?: string; /** An OData filter expression that filters elements in the collection. */ filter?: string; count?: boolean; } /** Contains response data for the listCurrentByDatabase operation. */ export declare type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ export declare interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listRecommendedByDatabaseNext operation. */ export declare type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ export declare interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams extends coreClient.OperationOptions { skipToken?: string; /** An OData filter expression that filters elements in the collection. */ filter?: string; /** Specifies whether to include disabled recommendations or not. */ includeDisabledRecommendations?: boolean; } /** Contains response data for the listRecommendedByDatabase operation. */ export declare type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ export declare interface ManagedDatabaseSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface ManagedDatabasesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedDatabasesGetResponse = ManagedDatabase; /** Optional parameters. */ export declare interface ManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult; /** Optional parameters. */ export declare interface ManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstance operation. */ export declare type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult; /** Optional parameters. */ export declare interface ManagedDatabasesListInaccessibleByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listInaccessibleByInstanceNext operation. */ export declare type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult; /** Optional parameters. */ export declare interface ManagedDatabasesListInaccessibleByInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listInaccessibleByInstance operation. */ export declare type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult; /** Optional parameters. */ export declare interface ManagedDatabasesStartMoveOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains the information necessary to start a managed database move. */ export declare interface ManagedDatabaseStartMoveDefinition { /** The destination managed database ID */ destinationManagedDatabaseId: string; /** The move operation mode. */ operationMode?: MoveOperationMode; } /** * Defines values for ManagedDatabaseStatus. \ * {@link KnownManagedDatabaseStatus} can be used interchangeably with ManagedDatabaseStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Online** \ * **Offline** \ * **Shutdown** \ * **Creating** \ * **Inaccessible** \ * **Restoring** \ * **Updating** \ * **Stopping** \ * **Stopped** \ * **Starting** \ * **DbMoving** \ * **DbCopying** */ export declare type ManagedDatabaseStatus = string; /** Optional parameters. */ export declare interface ManagedDatabasesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type ManagedDatabasesUpdateResponse = ManagedDatabase; /** Interface representing a ManagedDatabaseTables. */ export declare interface ManagedDatabaseTables { /** * List managed database tables * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param options The options parameters. */ listBySchema(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, options?: ManagedDatabaseTablesListBySchemaOptionalParams): PagedAsyncIterableIterator; /** * Get managed database table * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, options?: ManagedDatabaseTablesGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedDatabaseTablesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedDatabaseTablesGetResponse = DatabaseTable; /** Optional parameters. */ export declare interface ManagedDatabaseTablesListBySchemaNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listBySchemaNext operation. */ export declare type ManagedDatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; /** Optional parameters. */ export declare interface ManagedDatabaseTablesListBySchemaOptionalParams extends coreClient.OperationOptions { /** An OData filter expression that filters elements in the collection. */ filter?: string; } /** Contains response data for the listBySchema operation. */ export declare type ManagedDatabaseTablesListBySchemaResponse = DatabaseTableListResult; /** Interface representing a ManagedDatabaseTransparentDataEncryption. */ export declare interface ManagedDatabaseTransparentDataEncryption { /** * Gets a list of managed database's transparent data encryptions. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the managed database for which the transparent data encryption is * defined. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets a managed database's transparent data encryption. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the managed database for which the transparent data encryption is * defined. * @param tdeName The name of the transparent data encryption configuration. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, tdeName: TransparentDataEncryptionName, options?: ManagedDatabaseTransparentDataEncryptionGetOptionalParams): Promise; /** * Updates a database's transparent data encryption configuration. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the managed database for which the security alert policy is defined. * @param tdeName The name of the transparent data encryption configuration. * @param parameters The database transparent data encryption. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, tdeName: TransparentDataEncryptionName, parameters: ManagedTransparentDataEncryption, options?: ManagedDatabaseTransparentDataEncryptionCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedDatabaseTransparentDataEncryptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedDatabaseTransparentDataEncryptionCreateOrUpdateResponse = ManagedTransparentDataEncryption; /** Optional parameters. */ export declare interface ManagedDatabaseTransparentDataEncryptionGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedDatabaseTransparentDataEncryptionGetResponse = ManagedTransparentDataEncryption; /** Optional parameters. */ export declare interface ManagedDatabaseTransparentDataEncryptionListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type ManagedDatabaseTransparentDataEncryptionListByDatabaseNextResponse = ManagedTransparentDataEncryptionListResult; /** Optional parameters. */ export declare interface ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type ManagedDatabaseTransparentDataEncryptionListByDatabaseResponse = ManagedTransparentDataEncryptionListResult; /** An managed database update. */ export declare interface ManagedDatabaseUpdate { /** Resource tags. */ tags?: { [propertyName: string]: string; }; /** Collation of the managed database. */ collation?: string; /** * Status of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: ManagedDatabaseStatus; /** * Creation date of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationDate?: Date; /** * Earliest restore point in time for point in time restore. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly earliestRestorePoint?: Date; /** Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ restorePointInTime?: Date; /** * Geo paired region. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly defaultSecondaryLocation?: string; /** Collation of the metadata catalog. */ catalogCollation?: CatalogCollationType; /** Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). */ createMode?: ManagedDatabaseCreateMode; /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. */ storageContainerUri?: string; /** The resource identifier of the source database associated with create operation of this database. */ sourceDatabaseId?: string; /** The resource identifier of the cross-subscription source database associated with create operation of this database. */ crossSubscriptionSourceDatabaseId?: string; /** The restorable dropped database resource id to restore when creating this database. */ restorableDroppedDatabaseId?: string; /** The restorable cross-subscription dropped database resource id to restore when creating this database. */ crossSubscriptionRestorableDroppedDatabaseId?: string; /** Conditional. If createMode is RestoreExternalBackup, this value is used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. */ storageContainerIdentity?: string; /** Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. */ storageContainerSasToken?: string; /** * Instance Failover Group resource identifier that this managed database belongs to. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly failoverGroupId?: string; /** The resource identifier of the recoverable database associated with create operation of this database. */ recoverableDatabaseId?: string; /** The name of the Long Term Retention backup to be used for restore of this managed database. */ longTermRetentionBackupResourceId?: string; /** Whether to auto complete restore of this managed database. */ autoCompleteRestore?: boolean; /** Last backup file name for restore of this managed database. */ lastBackupName?: string; /** Target managed instance id used in cross-subscription restore. */ crossSubscriptionTargetManagedInstanceId?: string; } /** Interface representing a ManagedDatabaseVulnerabilityAssessmentRuleBaselines. */ export declare interface ManagedDatabaseVulnerabilityAssessmentRuleBaselines { /** * Gets a database's vulnerability assessment rule baseline. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database for which the vulnerability assessment rule baseline is * defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a * baseline on a database level rule and master for server level rule). * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, options?: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams): Promise; /** * Creates or updates a database's vulnerability assessment rule baseline. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database for which the vulnerability assessment rule baseline is * defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a * baseline on a database level rule and master for server level rule). * @param parameters The requested rule baseline resource. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, parameters: DatabaseVulnerabilityAssessmentRuleBaseline, options?: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams): Promise; /** * Removes the database's vulnerability assessment rule baseline. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database for which the vulnerability assessment rule baseline is * defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a * baseline on a database level rule and master for server level rule). * @param options The options parameters. */ delete(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, options?: ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ export declare interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Interface representing a ManagedDatabaseVulnerabilityAssessments. */ export declare interface ManagedDatabaseVulnerabilityAssessments { /** * Lists the vulnerability assessments of a managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database for which the vulnerability assessment is defined. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets the database's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database for which the vulnerability assessment is defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: ManagedDatabaseVulnerabilityAssessmentsGetOptionalParams): Promise; /** * Creates or updates the database's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database for which the vulnerability assessment is defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param parameters The requested resource. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, parameters: DatabaseVulnerabilityAssessment, options?: ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams): Promise; /** * Removes the database's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database for which the vulnerability assessment is defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ delete(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: ManagedDatabaseVulnerabilityAssessmentsDeleteOptionalParams): Promise; } /** Interface representing a ManagedDatabaseVulnerabilityAssessmentScans. */ export declare interface ManagedDatabaseVulnerabilityAssessmentScans { /** * Lists the vulnerability assessment scans of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ beginInitiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams): Promise, void>>; /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ beginInitiateScanAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams): Promise; /** * Convert an existing scan result to a human readable format. If already exists nothing happens * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the scanned database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id. * @param options The options parameters. */ export(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams): Promise; /** * Gets a vulnerability assessment scan record of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the export operation. */ export declare type ManagedDatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; /** Optional parameters. */ export declare interface ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; /** Optional parameters. */ export declare interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ export declare interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ export declare interface ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ export declare interface ManagedDatabaseVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface ManagedDatabaseVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ export declare interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ export declare interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; /** An Azure SQL managed instance. */ export declare interface ManagedInstance extends TrackedResource { /** The Azure Active Directory identity of the managed instance. */ identity?: ResourceIdentity; /** Managed instance SKU. Allowed values for sku.name: GP_Gen5, GP_G8IM, GP_G8IH, BC_Gen5, BC_G8IM, BC_G8IH */ sku?: Sku; /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ManagedInstancePropertiesProvisioningState; /** * Specifies the mode of database creation. * * Default: Regular instance creation. * * Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. */ managedInstanceCreateMode?: ManagedServerCreateMode; /** * The fully qualified domain name of the managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly fullyQualifiedDomainName?: string; /** Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). */ administratorLogin?: string; /** The administrator login password (required for managed instance creation). */ administratorLoginPassword?: string; /** Subnet resource ID for the managed instance. */ subnetId?: string; /** * The state of the managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: string; /** The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). */ licenseType?: ManagedInstanceLicenseType; /** The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. */ vCores?: number; /** Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores. */ storageSizeInGB?: number; /** Collation of the managed instance. */ collation?: string; /** * The Dns Zone that the managed instance is in. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly dnsZone?: string; /** The resource id of another managed instance whose DNS zone this managed instance will share after creation. */ dnsZonePartner?: string; /** Whether or not the public data endpoint is enabled. */ publicDataEndpointEnabled?: boolean; /** The resource identifier of the source managed instance associated with create operation of this instance. */ sourceManagedInstanceId?: string; /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ restorePointInTime?: Date; /** Connection type used for connecting to the instance. */ proxyOverride?: ManagedInstanceProxyOverride; /** * Id of the timezone. Allowed values are timezones supported by Windows. * Windows keeps details on supported timezones, including the id, in registry under * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". */ timezoneId?: string; /** The Id of the instance pool this managed server belongs to. */ instancePoolId?: string; /** Specifies maintenance configuration id to apply to this managed instance. */ maintenanceConfigurationId?: string; /** * List of private endpoint connections on a managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointConnections?: ManagedInstancePecProperty[]; /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ minimalTlsVersion?: string; /** * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; /** The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) */ requestedBackupStorageRedundancy?: BackupStorageRedundancy; /** Whether or not the multi-az is enabled. */ zoneRedundant?: boolean; /** The resource id of a user assigned identity to be used by default. */ primaryUserAssignedIdentityId?: string; /** A CMK URI of the key to use for encryption. */ keyId?: string; /** The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ administrators?: ManagedInstanceExternalAdministrator; /** The managed instance's service principal. */ servicePrincipal?: ServicePrincipal; } /** An Azure SQL managed instance administrator. */ export declare interface ManagedInstanceAdministrator extends ProxyResource { /** Type of the managed instance administrator. */ administratorType?: ManagedInstanceAdministratorType; /** Login name of the managed instance administrator. */ login?: string; /** SID (object ID) of the managed instance administrator. */ sid?: string; /** Tenant ID of the managed instance administrator. */ tenantId?: string; } /** A list of managed instance administrators. */ export declare interface ManagedInstanceAdministratorListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedInstanceAdministrator[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ManagedInstanceAdministrators. */ export declare interface ManagedInstanceAdministrators { /** * Gets a list of managed instance administrators. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstanceAdministratorsListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a managed instance administrator. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param administratorName * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, administratorName: AdministratorName, options?: ManagedInstanceAdministratorsGetOptionalParams): Promise; /** * Creates or updates a managed instance administrator. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param administratorName * @param parameters The requested administrator parameters. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, administratorName: AdministratorName, parameters: ManagedInstanceAdministrator, options?: ManagedInstanceAdministratorsCreateOrUpdateOptionalParams): Promise, ManagedInstanceAdministratorsCreateOrUpdateResponse>>; /** * Creates or updates a managed instance administrator. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param administratorName * @param parameters The requested administrator parameters. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, administratorName: AdministratorName, parameters: ManagedInstanceAdministrator, options?: ManagedInstanceAdministratorsCreateOrUpdateOptionalParams): Promise; /** * Deletes a managed instance administrator. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param administratorName * @param options The options parameters. */ beginDelete(resourceGroupName: string, managedInstanceName: string, administratorName: AdministratorName, options?: ManagedInstanceAdministratorsDeleteOptionalParams): Promise, void>>; /** * Deletes a managed instance administrator. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param administratorName * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, administratorName: AdministratorName, options?: ManagedInstanceAdministratorsDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator; /** Optional parameters. */ export declare interface ManagedInstanceAdministratorsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ManagedInstanceAdministratorsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator; /** Optional parameters. */ export declare interface ManagedInstanceAdministratorsListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult; /** Optional parameters. */ export declare interface ManagedInstanceAdministratorsListByInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstance operation. */ export declare type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult; /** * Defines values for ManagedInstanceAdministratorType. \ * {@link KnownManagedInstanceAdministratorType} can be used interchangeably with ManagedInstanceAdministratorType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **ActiveDirectory** */ export declare type ManagedInstanceAdministratorType = string; /** A managed instance Advanced Threat Protection. */ export declare interface ManagedInstanceAdvancedThreatProtection extends ProxyResource { /** * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ state?: AdvancedThreatProtectionState; /** * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationTime?: Date; } /** A list of the managed instance's Advanced Threat Protection settings. */ export declare interface ManagedInstanceAdvancedThreatProtectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedInstanceAdvancedThreatProtection[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ManagedInstanceAdvancedThreatProtectionSettings. */ export declare interface ManagedInstanceAdvancedThreatProtectionSettings { /** * Get the managed instance's Advanced Threat Protection settings. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Get a managed instance's Advanced Threat Protection state. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, options?: ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams): Promise; /** * Creates or updates Advanced Threat Protection settings. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param parameters The managed instance Advanced Threat Protection state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: ManagedInstanceAdvancedThreatProtection, options?: ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams): Promise, ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse>>; /** * Creates or updates Advanced Threat Protection settings. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param parameters The managed instance Advanced Threat Protection state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: ManagedInstanceAdvancedThreatProtection, options?: ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedInstanceAdvancedThreatProtection; /** Optional parameters. */ export declare interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedInstanceAdvancedThreatProtectionSettingsGetResponse = ManagedInstanceAdvancedThreatProtection; /** Optional parameters. */ export declare interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse = ManagedInstanceAdvancedThreatProtectionListResult; /** Optional parameters. */ export declare interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstance operation. */ export declare type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse = ManagedInstanceAdvancedThreatProtectionListResult; /** Azure Active Directory only authentication. */ export declare interface ManagedInstanceAzureADOnlyAuthentication extends ProxyResource { /** Azure Active Directory only Authentication enabled. */ azureADOnlyAuthentication?: boolean; } /** Interface representing a ManagedInstanceAzureADOnlyAuthentications. */ export declare interface ManagedInstanceAzureADOnlyAuthentications { /** * Gets a list of server Azure Active Directory only authentications. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a specific Azure Active Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param authenticationName The name of server azure active directory only authentication. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, authenticationName: AuthenticationName, options?: ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams): Promise; /** * Sets Server Active Directory only authentication property or updates an existing server Active * Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param authenticationName The name of server azure active directory only authentication. * @param parameters The required parameters for creating or updating an Active Directory only * authentication property. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, authenticationName: AuthenticationName, parameters: ManagedInstanceAzureADOnlyAuthentication, options?: ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams): Promise, ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse>>; /** * Sets Server Active Directory only authentication property or updates an existing server Active * Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param authenticationName The name of server azure active directory only authentication. * @param parameters The required parameters for creating or updating an Active Directory only * authentication property. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, authenticationName: AuthenticationName, parameters: ManagedInstanceAzureADOnlyAuthentication, options?: ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams): Promise; /** * Deletes an existing server Active Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param authenticationName The name of server azure active directory only authentication. * @param options The options parameters. */ beginDelete(resourceGroupName: string, managedInstanceName: string, authenticationName: AuthenticationName, options?: ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams): Promise, void>>; /** * Deletes an existing server Active Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param authenticationName The name of server azure active directory only authentication. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, authenticationName: AuthenticationName, options?: ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication; /** Optional parameters. */ export declare interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication; /** Optional parameters. */ export declare interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult; /** Optional parameters. */ export declare interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstance operation. */ export declare type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult; /** A list of active directory only authentications. */ export declare interface ManagedInstanceAzureADOnlyAuthListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedInstanceAzureADOnlyAuthentication[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** SQL Managed Instance DTC */ export declare interface ManagedInstanceDtc extends ProxyResource { /** Active status of managed instance DTC. */ dtcEnabled?: boolean; /** Security settings of managed instance DTC. */ securitySettings?: ManagedInstanceDtcSecuritySettings; /** External dns suffix search list of managed instance DTC. */ externalDnsSuffixSearchList?: string[]; /** * Host name dns suffix of managed instance DTC. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly dtcHostNameDnsSuffix?: string; /** * Provisioning state of managed instance DTC. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; } /** A list of managed instance's DTCs. */ export declare interface ManagedInstanceDtcListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedInstanceDtc[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ManagedInstanceDtcs. */ export declare interface ManagedInstanceDtcs { /** * Gets a list of managed instance DTC settings. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstanceDtcsListByManagedInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets managed instance DTC settings. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param dtcName The name of the managed instance DTC. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, dtcName: DtcName, options?: ManagedInstanceDtcsGetOptionalParams): Promise; /** * Updates managed instance DTC settings. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param dtcName The name of the managed instance DTC. * @param parameters Managed instance DTC settings. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, dtcName: DtcName, parameters: ManagedInstanceDtc, options?: ManagedInstanceDtcsCreateOrUpdateOptionalParams): Promise, ManagedInstanceDtcsCreateOrUpdateResponse>>; /** * Updates managed instance DTC settings. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param dtcName The name of the managed instance DTC. * @param parameters Managed instance DTC settings. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, dtcName: DtcName, parameters: ManagedInstanceDtc, options?: ManagedInstanceDtcsCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedInstanceDtcsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedInstanceDtcsCreateOrUpdateResponse = ManagedInstanceDtc; /** The Security Settings of managed instance DTC. */ export declare interface ManagedInstanceDtcSecuritySettings { /** Transaction Manager communication settings of managed instance DTC. */ transactionManagerCommunicationSettings?: ManagedInstanceDtcTransactionManagerCommunicationSettings; /** Allow XA Transactions to managed instance DTC. */ xaTransactionsEnabled?: boolean; /** Allow SNA LU 6.2 Transactions to managed instance DTC. */ snaLu6Point2TransactionsEnabled?: boolean; /** Default timeout for XA Transactions (in seconds). */ xaTransactionsDefaultTimeout?: number; /** Maximum timeout for XA Transactions (in seconds). */ xaTransactionsMaximumTimeout?: number; } /** Optional parameters. */ export declare interface ManagedInstanceDtcsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedInstanceDtcsGetResponse = ManagedInstanceDtc; /** Optional parameters. */ export declare interface ManagedInstanceDtcsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByManagedInstanceNext operation. */ export declare type ManagedInstanceDtcsListByManagedInstanceNextResponse = ManagedInstanceDtcListResult; /** Optional parameters. */ export declare interface ManagedInstanceDtcsListByManagedInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByManagedInstance operation. */ export declare type ManagedInstanceDtcsListByManagedInstanceResponse = ManagedInstanceDtcListResult; /** The Transaction Manager Communication Settings of managed instance DTC. */ export declare interface ManagedInstanceDtcTransactionManagerCommunicationSettings { /** Allow Inbound traffic to managed instance DTC. */ allowInboundEnabled?: boolean; /** Allow Outbound traffic of managed instance DTC. */ allowOutboundEnabled?: boolean; /** Authentication type of managed instance DTC. */ authentication?: string; } /** The managed server capability */ export declare interface ManagedInstanceEditionCapability { /** * The managed server version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The supported families. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedFamilies?: ManagedInstanceFamilyCapability[]; /** * The list of supported storage capabilities for this edition * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedStorageCapabilities?: StorageCapability[]; /** * Whether or not zone redundancy is supported for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly zoneRedundant?: boolean; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** The managed instance encryption protector. */ export declare interface ManagedInstanceEncryptionProtector extends ProxyResource { /** * Kind of encryption protector. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; /** The name of the managed instance key. */ serverKeyName?: string; /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ serverKeyType?: ServerKeyType; /** * The URI of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly uri?: string; /** * Thumbprint of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly thumbprint?: string; /** Key auto rotation opt-in flag. Either true or false. */ autoRotationEnabled?: boolean; } /** A list of managed instance encryption protectors. */ export declare interface ManagedInstanceEncryptionProtectorListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedInstanceEncryptionProtector[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ManagedInstanceEncryptionProtectors. */ export declare interface ManagedInstanceEncryptionProtectors { /** * Gets a list of managed instance encryption protectors * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Revalidates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param encryptionProtectorName The name of the encryption protector to be updated. * @param options The options parameters. */ beginRevalidate(resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams): Promise, void>>; /** * Revalidates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param encryptionProtectorName The name of the encryption protector to be updated. * @param options The options parameters. */ beginRevalidateAndWait(resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams): Promise; /** * Gets a managed instance encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param encryptionProtectorName The name of the encryption protector to be retrieved. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, options?: ManagedInstanceEncryptionProtectorsGetOptionalParams): Promise; /** * Updates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param encryptionProtectorName The name of the encryption protector to be updated. * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, parameters: ManagedInstanceEncryptionProtector, options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams): Promise, ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse>>; /** * Updates an existing encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param encryptionProtectorName The name of the encryption protector to be updated. * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, parameters: ManagedInstanceEncryptionProtector, options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector; /** Optional parameters. */ export declare interface ManagedInstanceEncryptionProtectorsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector; /** Optional parameters. */ export declare interface ManagedInstanceEncryptionProtectorsListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult; /** Optional parameters. */ export declare interface ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstance operation. */ export declare type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult; /** Optional parameters. */ export declare interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Properties of a active directory administrator. */ export declare interface ManagedInstanceExternalAdministrator { /** Type of the sever administrator. */ administratorType?: AdministratorType; /** Principal Type of the sever administrator. */ principalType?: PrincipalType; /** Login name of the server administrator. */ login?: string; /** SID (object ID) of the server administrator. */ sid?: string; /** Tenant ID of the administrator. */ tenantId?: string; /** Azure Active Directory only Authentication enabled. */ azureADOnlyAuthentication?: boolean; } /** The managed server family capability. */ export declare interface ManagedInstanceFamilyCapability { /** * Family name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * SKU name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sku?: string; /** * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** * List of supported virtual cores values. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedVcoresValues?: ManagedInstanceVcoresCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** A managed instance key. */ export declare interface ManagedInstanceKey extends ProxyResource { /** * Kind of encryption protector. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; /** The key type like 'ServiceManaged', 'AzureKeyVault'. */ serverKeyType?: ServerKeyType; /** The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required. */ uri?: string; /** * Thumbprint of the key. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly thumbprint?: string; /** * The key creation date. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationDate?: Date; /** * Key auto rotation opt-in flag. Either true or false. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly autoRotationEnabled?: boolean; } /** A list of managed instance keys. */ export declare interface ManagedInstanceKeyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedInstanceKey[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ManagedInstanceKeys. */ export declare interface ManagedInstanceKeys { /** * Gets a list of managed instance keys. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstanceKeysListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a managed instance key. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param keyName The name of the managed instance key to be retrieved. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: ManagedInstanceKeysGetOptionalParams): Promise; /** * Creates or updates a managed instance key. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param keyName The name of the managed instance key to be operated on (updated or created). * @param parameters The requested managed instance key resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: ManagedInstanceKey, options?: ManagedInstanceKeysCreateOrUpdateOptionalParams): Promise, ManagedInstanceKeysCreateOrUpdateResponse>>; /** * Creates or updates a managed instance key. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param keyName The name of the managed instance key to be operated on (updated or created). * @param parameters The requested managed instance key resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: ManagedInstanceKey, options?: ManagedInstanceKeysCreateOrUpdateOptionalParams): Promise; /** * Deletes the managed instance key with the given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param keyName The name of the managed instance key to be deleted. * @param options The options parameters. */ beginDelete(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: ManagedInstanceKeysDeleteOptionalParams): Promise, void>>; /** * Deletes the managed instance key with the given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param keyName The name of the managed instance key to be deleted. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: ManagedInstanceKeysDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedInstanceKeysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey; /** Optional parameters. */ export declare interface ManagedInstanceKeysDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ManagedInstanceKeysGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedInstanceKeysGetResponse = ManagedInstanceKey; /** Optional parameters. */ export declare interface ManagedInstanceKeysListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult; /** Optional parameters. */ export declare interface ManagedInstanceKeysListByInstanceOptionalParams extends coreClient.OperationOptions { /** An OData filter expression that filters elements in the collection. */ filter?: string; } /** Contains response data for the listByInstance operation. */ export declare type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult; /** * Defines values for ManagedInstanceLicenseType. \ * {@link KnownManagedInstanceLicenseType} can be used interchangeably with ManagedInstanceLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **LicenseIncluded** \ * **BasePrice** */ export declare type ManagedInstanceLicenseType = string; /** A list of managed instances. */ export declare interface ManagedInstanceListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedInstance[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** A long term retention backup for a managed database. */ export declare interface ManagedInstanceLongTermRetentionBackup extends ProxyResource { /** * The managed instance that the backup database belongs to. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly managedInstanceName?: string; /** * The create time of the instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly managedInstanceCreateTime?: Date; /** * The name of the database the backup belong to * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseName?: string; /** * The delete time of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseDeletionTime?: Date; /** * The time the backup was taken * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly backupTime?: Date; /** * The time the long term retention backup will expire. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly backupExpirationTime?: Date; /** * The storage redundancy type of the backup * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly backupStorageRedundancy?: BackupStorageRedundancy; } /** A list of long term retention backups for managed database(s). */ export declare interface ManagedInstanceLongTermRetentionBackupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedInstanceLongTermRetentionBackup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ManagedInstanceLongTermRetentionPolicies. */ export declare interface ManagedInstanceLongTermRetentionPolicies { /** * Gets a database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets a managed database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param policyName The policy name. Should always be Default. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, options?: ManagedInstanceLongTermRetentionPoliciesGetOptionalParams): Promise; /** * Sets a managed database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param policyName The policy name. Should always be Default. * @param parameters The long term retention policy info. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, parameters: ManagedInstanceLongTermRetentionPolicy, options?: ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise, ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse>>; /** * Sets a managed database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param policyName The policy name. Should always be Default. * @param parameters The long term retention policy info. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, parameters: ManagedInstanceLongTermRetentionPolicy, options?: ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; /** Optional parameters. */ export declare interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy; /** Optional parameters. */ export declare interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult; /** Optional parameters. */ export declare interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult; /** A long term retention policy. */ export declare interface ManagedInstanceLongTermRetentionPolicy extends ProxyResource { /** The weekly retention policy for an LTR backup in an ISO 8601 format. */ weeklyRetention?: string; /** The monthly retention policy for an LTR backup in an ISO 8601 format. */ monthlyRetention?: string; /** The yearly retention policy for an LTR backup in an ISO 8601 format. */ yearlyRetention?: string; /** The week of year to take the yearly backup in an ISO 8601 format. */ weekOfYear?: number; } /** A list of long term retention policies. */ export declare interface ManagedInstanceLongTermRetentionPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedInstanceLongTermRetentionPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for ManagedInstanceLongTermRetentionPolicyName. \ * {@link KnownManagedInstanceLongTermRetentionPolicyName} can be used interchangeably with ManagedInstanceLongTermRetentionPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **default** */ export declare type ManagedInstanceLongTermRetentionPolicyName = string; /** The maintenance configuration capability */ export declare interface ManagedInstanceMaintenanceConfigurationCapability { /** * Maintenance configuration name * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** A managed instance operation. */ export declare interface ManagedInstanceOperation extends ProxyResource { /** * The name of the managed instance the operation is being performed on. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly managedInstanceName?: string; /** * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operation?: string; /** * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operationFriendlyName?: string; /** * The percentage of the operation completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly percentComplete?: number; /** * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: Date; /** * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: ManagementOperationState; /** * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorCode?: number; /** * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorDescription?: string; /** * The operation error severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorSeverity?: number; /** * Whether or not the error is a user error. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isUserError?: boolean; /** * The estimated completion time of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly estimatedCompletionTime?: Date; /** * The operation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly description?: string; /** * Whether the operation can be cancelled. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isCancellable?: boolean; /** * The operation parameters. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operationParameters?: ManagedInstanceOperationParametersPair; /** * The operation steps. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operationSteps?: ManagedInstanceOperationSteps; } /** The response to a list managed instance operations request */ export declare interface ManagedInstanceOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedInstanceOperation[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** The parameters of a managed instance operation. */ export declare interface ManagedInstanceOperationParametersPair { /** * The current parameters. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentParameters?: UpsertManagedServerOperationParameters; /** * The requested parameters. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestedParameters?: UpsertManagedServerOperationParameters; } /** Interface representing a ManagedInstanceOperations. */ export declare interface ManagedInstanceOperations { /** * Gets a list of operations performed on the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstanceOperationsListByManagedInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a management operation on a managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param operationId * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, operationId: string, options?: ManagedInstanceOperationsGetOptionalParams): Promise; /** * Cancels the asynchronous operation on the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param operationId * @param options The options parameters. */ cancel(resourceGroupName: string, managedInstanceName: string, operationId: string, options?: ManagedInstanceOperationsCancelOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedInstanceOperationsCancelOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface ManagedInstanceOperationsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation; /** Optional parameters. */ export declare interface ManagedInstanceOperationsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByManagedInstanceNext operation. */ export declare type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult; /** Optional parameters. */ export declare interface ManagedInstanceOperationsListByManagedInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByManagedInstance operation. */ export declare type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult; /** The steps of a managed instance operation. */ export declare interface ManagedInstanceOperationSteps { /** * The total number of operation steps. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly totalSteps?: string; /** * The number of current operation steps. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentStep?: number; /** * The operation steps list. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly stepsList?: UpsertManagedServerOperationStep[]; } /** Pairs of Managed Instances in the failover group. */ export declare interface ManagedInstancePairInfo { /** Id of Primary Managed Instance in pair. */ primaryManagedInstanceId?: string; /** Id of Partner Managed Instance in pair. */ partnerManagedInstanceId?: string; } /** A private endpoint connection under a managed instance */ export declare interface ManagedInstancePecProperty { /** * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** * Private endpoint connection properties * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly properties?: ManagedInstancePrivateEndpointConnectionProperties; } /** A private endpoint connection */ export declare interface ManagedInstancePrivateEndpointConnection extends ProxyResource { /** Private endpoint which the connection belongs to. */ privateEndpoint?: ManagedInstancePrivateEndpointProperty; /** Connection State of the Private Endpoint Connection. */ privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; /** * State of the Private Endpoint Connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; } /** A list of private endpoint connections. */ export declare interface ManagedInstancePrivateEndpointConnectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedInstancePrivateEndpointConnection[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Properties of a private endpoint connection. */ export declare interface ManagedInstancePrivateEndpointConnectionProperties { /** Private endpoint which the connection belongs to. */ privateEndpoint?: ManagedInstancePrivateEndpointProperty; /** Connection State of the Private Endpoint Connection. */ privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; /** * State of the Private Endpoint Connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; } /** Interface representing a ManagedInstancePrivateEndpointConnections. */ export declare interface ManagedInstancePrivateEndpointConnections { /** * Gets all private endpoint connections on a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a private endpoint connection. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, privateEndpointConnectionName: string, options?: ManagedInstancePrivateEndpointConnectionsGetOptionalParams): Promise; /** * Approve or reject a private endpoint connection with a given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param privateEndpointConnectionName * @param parameters A private endpoint connection * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, privateEndpointConnectionName: string, parameters: ManagedInstancePrivateEndpointConnection, options?: ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise, ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse>>; /** * Approve or reject a private endpoint connection with a given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param privateEndpointConnectionName * @param parameters A private endpoint connection * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, privateEndpointConnectionName: string, parameters: ManagedInstancePrivateEndpointConnection, options?: ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise; /** * Deletes a private endpoint connection with a given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param privateEndpointConnectionName * @param options The options parameters. */ beginDelete(resourceGroupName: string, managedInstanceName: string, privateEndpointConnectionName: string, options?: ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams): Promise, void>>; /** * Deletes a private endpoint connection with a given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param privateEndpointConnectionName * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, privateEndpointConnectionName: string, options?: ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection; /** Optional parameters. */ export declare interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ManagedInstancePrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection; /** Optional parameters. */ export declare interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByManagedInstanceNext operation. */ export declare type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult; /** Optional parameters. */ export declare interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByManagedInstance operation. */ export declare type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult; export declare interface ManagedInstancePrivateEndpointProperty { /** Resource id of the private endpoint. */ id?: string; } /** A private link resource */ export declare interface ManagedInstancePrivateLink extends ProxyResource { /** * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly properties?: ManagedInstancePrivateLinkProperties; } /** A list of private link resources */ export declare interface ManagedInstancePrivateLinkListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedInstancePrivateLink[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Properties of a private link resource. */ export declare interface ManagedInstancePrivateLinkProperties { /** * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly groupId?: string; /** * The private link resource required member names. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requiredMembers?: string[]; } /** Interface representing a ManagedInstancePrivateLinkResources. */ export declare interface ManagedInstancePrivateLinkResources { /** * Gets the private link resources for SQL server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a private link resource for SQL server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param groupName The name of the private link resource. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, groupName: string, options?: ManagedInstancePrivateLinkResourcesGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedInstancePrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink; /** Optional parameters. */ export declare interface ManagedInstancePrivateLinkResourcesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByManagedInstanceNext operation. */ export declare type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult; /** Optional parameters. */ export declare interface ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByManagedInstance operation. */ export declare type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult; export declare interface ManagedInstancePrivateLinkServiceConnectionStateProperty { /** The private link service connection status. */ status: string; /** The private link service connection description. */ description: string; /** * The private link service connection description. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly actionsRequired?: string; } /** * Defines values for ManagedInstancePropertiesProvisioningState. \ * {@link KnownManagedInstancePropertiesProvisioningState} can be used interchangeably with ManagedInstancePropertiesProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Creating** \ * **Deleting** \ * **Updating** \ * **Unknown** \ * **Succeeded** \ * **Failed** \ * **Accepted** \ * **Created** \ * **Deleted** \ * **Unrecognized** \ * **Running** \ * **Canceled** \ * **NotSpecified** \ * **Registering** \ * **TimedOut** */ export declare type ManagedInstancePropertiesProvisioningState = string; /** * Defines values for ManagedInstanceProxyOverride. \ * {@link KnownManagedInstanceProxyOverride} can be used interchangeably with ManagedInstanceProxyOverride, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Proxy** \ * **Redirect** \ * **Default** */ export declare type ManagedInstanceProxyOverride = string; /** Database query. */ export declare interface ManagedInstanceQuery extends ProxyResource { /** Query text. */ queryText?: string; } /** Execution statistics for one particular query */ export declare interface ManagedInstanceQueryStatistics { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: QueryStatistics[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ManagedInstances. */ export declare interface ManagedInstances { /** * Gets a list of all managed instances in the subscription. * @param options The options parameters. */ list(options?: ManagedInstancesListOptionalParams): PagedAsyncIterableIterator; /** * Gets a list of all managed instances in an instance pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param instancePoolName The instance pool name. * @param options The options parameters. */ listByInstancePool(resourceGroupName: string, instancePoolName: string, options?: ManagedInstancesListByInstancePoolOptionalParams): PagedAsyncIterableIterator; /** * Gets a list of managed instances in a resource group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param options The options parameters. */ listByResourceGroup(resourceGroupName: string, options?: ManagedInstancesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; /** * Gets the collection of outbound network dependencies for the given managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listOutboundNetworkDependenciesByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams): PagedAsyncIterableIterator; /** * Get top resource consuming queries of a managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesListByManagedInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesGetOptionalParams): Promise; /** * Creates or updates a managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param parameters The requested managed instance resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: ManagedInstance, options?: ManagedInstancesCreateOrUpdateOptionalParams): Promise, ManagedInstancesCreateOrUpdateResponse>>; /** * Creates or updates a managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param parameters The requested managed instance resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, parameters: ManagedInstance, options?: ManagedInstancesCreateOrUpdateOptionalParams): Promise; /** * Deletes a managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ beginDelete(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesDeleteOptionalParams): Promise, void>>; /** * Deletes a managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesDeleteOptionalParams): Promise; /** * Updates a managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param parameters The requested managed instance resource state. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, managedInstanceName: string, parameters: ManagedInstanceUpdate, options?: ManagedInstancesUpdateOptionalParams): Promise, ManagedInstancesUpdateResponse>>; /** * Updates a managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param parameters The requested managed instance resource state. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, parameters: ManagedInstanceUpdate, options?: ManagedInstancesUpdateOptionalParams): Promise; /** * Failovers a managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance to failover. * @param options The options parameters. */ beginFailover(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesFailoverOptionalParams): Promise, void>>; /** * Failovers a managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance to failover. * @param options The options parameters. */ beginFailoverAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesFailoverOptionalParams): Promise; /** * Starts the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ beginStart(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams): Promise, void>>; /** * Starts the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ beginStartAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams): Promise; /** * Stops the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ beginStop(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams): Promise, void>>; /** * Stops the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ beginStopAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedInstancesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedInstancesCreateOrUpdateResponse = ManagedInstance; /** Optional parameters. */ export declare interface ManagedInstancesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ManagedInstancesFailoverOptionalParams extends coreClient.OperationOptions { /** The type of replica to be failed over. */ replicaType?: ReplicaType; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ManagedInstancesGetOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } /** Contains response data for the get operation. */ export declare type ManagedInstancesGetResponse = ManagedInstance; /** Optional parameters. */ export declare interface ManagedInstancesListByInstancePoolNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstancePoolNext operation. */ export declare type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult; /** Optional parameters. */ export declare interface ManagedInstancesListByInstancePoolOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } /** Contains response data for the listByInstancePool operation. */ export declare type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult; /** Optional parameters. */ export declare interface ManagedInstancesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByManagedInstanceNext operation. */ export declare type ManagedInstancesListByManagedInstanceNextResponse = TopQueriesListResult; /** Optional parameters. */ export declare interface ManagedInstancesListByManagedInstanceOptionalParams extends coreClient.OperationOptions { /** Start time for observed period. */ startTime?: string; /** End time for observed period. */ endTime?: string; /** The time step to be used to summarize the metric values. Default value is PT1H */ interval?: QueryTimeGrainType; /** How many 'top queries' to return. Default is 5. */ numberOfQueries?: number; /** Comma separated list of databases to be included into search. All DB's are included if this parameter is not specified. */ databases?: string; /** Aggregation function to be used, default value is 'sum' */ aggregationFunction?: AggregationFunctionType; /** Metric to be used for ranking top queries. Default is 'cpu' */ observationMetric?: MetricType; } /** Contains response data for the listByManagedInstance operation. */ export declare type ManagedInstancesListByManagedInstanceResponse = TopQueriesListResult; /** Optional parameters. */ export declare interface ManagedInstancesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByResourceGroupNext operation. */ export declare type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult; /** Optional parameters. */ export declare interface ManagedInstancesListByResourceGroupOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } /** Contains response data for the listByResourceGroup operation. */ export declare type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult; /** Optional parameters. */ export declare interface ManagedInstancesListNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listNext operation. */ export declare type ManagedInstancesListNextResponse = ManagedInstanceListResult; /** Optional parameters. */ export declare interface ManagedInstancesListOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } /** Optional parameters. */ export declare interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listOutboundNetworkDependenciesByManagedInstanceNext operation. */ export declare type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse = OutboundEnvironmentEndpointCollection; /** Optional parameters. */ export declare interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listOutboundNetworkDependenciesByManagedInstance operation. */ export declare type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse = OutboundEnvironmentEndpointCollection; /** Contains response data for the list operation. */ export declare type ManagedInstancesListResponse = ManagedInstanceListResult; /** Optional parameters. */ export declare interface ManagedInstancesStartOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ManagedInstancesStopOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ManagedInstancesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type ManagedInstancesUpdateResponse = ManagedInstance; /** Interface representing a ManagedInstanceTdeCertificates. */ export declare interface ManagedInstanceTdeCertificates { /** * Creates a TDE certificate for a given server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param parameters The requested TDE certificate to be created or updated. * @param options The options parameters. */ beginCreate(resourceGroupName: string, managedInstanceName: string, parameters: TdeCertificate, options?: ManagedInstanceTdeCertificatesCreateOptionalParams): Promise, void>>; /** * Creates a TDE certificate for a given server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param parameters The requested TDE certificate to be created or updated. * @param options The options parameters. */ beginCreateAndWait(resourceGroupName: string, managedInstanceName: string, parameters: TdeCertificate, options?: ManagedInstanceTdeCertificatesCreateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedInstanceTdeCertificatesCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** An update request for an Azure SQL Database managed instance. */ export declare interface ManagedInstanceUpdate { /** Managed instance sku */ sku?: Sku; /** Managed instance identity */ identity?: ResourceIdentity; /** Resource tags. */ tags?: { [propertyName: string]: string; }; /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ManagedInstancePropertiesProvisioningState; /** * Specifies the mode of database creation. * * Default: Regular instance creation. * * Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. */ managedInstanceCreateMode?: ManagedServerCreateMode; /** * The fully qualified domain name of the managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly fullyQualifiedDomainName?: string; /** Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). */ administratorLogin?: string; /** The administrator login password (required for managed instance creation). */ administratorLoginPassword?: string; /** Subnet resource ID for the managed instance. */ subnetId?: string; /** * The state of the managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: string; /** The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). */ licenseType?: ManagedInstanceLicenseType; /** The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. */ vCores?: number; /** Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores. */ storageSizeInGB?: number; /** Collation of the managed instance. */ collation?: string; /** * The Dns Zone that the managed instance is in. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly dnsZone?: string; /** The resource id of another managed instance whose DNS zone this managed instance will share after creation. */ dnsZonePartner?: string; /** Whether or not the public data endpoint is enabled. */ publicDataEndpointEnabled?: boolean; /** The resource identifier of the source managed instance associated with create operation of this instance. */ sourceManagedInstanceId?: string; /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ restorePointInTime?: Date; /** Connection type used for connecting to the instance. */ proxyOverride?: ManagedInstanceProxyOverride; /** * Id of the timezone. Allowed values are timezones supported by Windows. * Windows keeps details on supported timezones, including the id, in registry under * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". */ timezoneId?: string; /** The Id of the instance pool this managed server belongs to. */ instancePoolId?: string; /** Specifies maintenance configuration id to apply to this managed instance. */ maintenanceConfigurationId?: string; /** * List of private endpoint connections on a managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointConnections?: ManagedInstancePecProperty[]; /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ minimalTlsVersion?: string; /** * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; /** The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) */ requestedBackupStorageRedundancy?: BackupStorageRedundancy; /** Whether or not the multi-az is enabled. */ zoneRedundant?: boolean; /** The resource id of a user assigned identity to be used by default. */ primaryUserAssignedIdentityId?: string; /** A CMK URI of the key to use for encryption. */ keyId?: string; /** The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ administrators?: ManagedInstanceExternalAdministrator; /** The managed instance's service principal. */ servicePrincipal?: ServicePrincipal; } /** The managed instance virtual cores capability. */ export declare interface ManagedInstanceVcoresCapability { /** * The virtual cores identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The virtual cores value. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: number; /** * Included size. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly includedMaxSize?: MaxSizeCapability; /** * Storage size ranges. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedStorageSizes?: MaxSizeRangeCapability[]; /** * True if this service objective is supported for managed instances in an instance pool. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly instancePoolSupported?: boolean; /** * True if this service objective is supported for standalone managed instances. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly standaloneSupported?: boolean; /** * List of supported maintenance configurations * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedMaintenanceConfigurations?: ManagedInstanceMaintenanceConfigurationCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** The managed instance capability */ export declare interface ManagedInstanceVersionCapability { /** * The server version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The list of supported managed instance editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedEditions?: ManagedInstanceEditionCapability[]; /** * The list of supported instance pool editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedInstancePoolEditions?: InstancePoolEditionCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** A managed instance vulnerability assessment. */ export declare interface ManagedInstanceVulnerabilityAssessment extends ProxyResource { /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). */ storageContainerPath?: string; /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ storageContainerSasKey?: string; /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ storageAccountAccessKey?: string; /** The recurring scans settings */ recurringScans?: VulnerabilityAssessmentRecurringScansProperties; } /** A list of the ManagedInstance's vulnerability assessments. */ export declare interface ManagedInstanceVulnerabilityAssessmentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedInstanceVulnerabilityAssessment[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ManagedInstanceVulnerabilityAssessments. */ export declare interface ManagedInstanceVulnerabilityAssessments { /** * Gets the managed instance's vulnerability assessment policies. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance for which the vulnerability assessments * is defined. * @param options The options parameters. */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets the managed instance's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance for which the vulnerability assessment * is defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: ManagedInstanceVulnerabilityAssessmentsGetOptionalParams): Promise; /** * 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 * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance for which the vulnerability assessment * is defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param parameters The requested resource. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, managedInstanceName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, parameters: ManagedInstanceVulnerabilityAssessment, options?: ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams): Promise; /** * Removes the managed instance's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance for which the vulnerability assessment * is defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ delete(resourceGroupName: string, managedInstanceName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ export declare interface ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface ManagedInstanceVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ export declare interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** Optional parameters. */ export declare interface ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstance operation. */ export declare type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** Azure SQL Database ledger digest upload settings. */ export declare interface ManagedLedgerDigestUploads extends ProxyResource { /** The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. */ digestStorageEndpoint?: string; /** * Specifies the state of ledger digest upload. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: ManagedLedgerDigestUploadsState; } /** Optional parameters. */ export declare interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedLedgerDigestUploadsCreateOrUpdateResponse = ManagedLedgerDigestUploads; /** Optional parameters. */ export declare interface ManagedLedgerDigestUploadsDisableOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the disable operation. */ export declare type ManagedLedgerDigestUploadsDisableResponse = ManagedLedgerDigestUploads; /** Optional parameters. */ export declare interface ManagedLedgerDigestUploadsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedLedgerDigestUploadsGetResponse = ManagedLedgerDigestUploads; /** Optional parameters. */ export declare interface ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type ManagedLedgerDigestUploadsListByDatabaseNextResponse = ManagedLedgerDigestUploadsListResult; /** Optional parameters. */ export declare interface ManagedLedgerDigestUploadsListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type ManagedLedgerDigestUploadsListByDatabaseResponse = ManagedLedgerDigestUploadsListResult; /** A list of ledger digest upload settings. */ export declare interface ManagedLedgerDigestUploadsListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedLedgerDigestUploads[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for ManagedLedgerDigestUploadsName. \ * {@link KnownManagedLedgerDigestUploadsName} can be used interchangeably with ManagedLedgerDigestUploadsName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **current** */ export declare type ManagedLedgerDigestUploadsName = string; /** Interface representing a ManagedLedgerDigestUploadsOperations. */ export declare interface ManagedLedgerDigestUploadsOperations { /** * Gets all ledger digest upload settings on a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedLedgerDigestUploadsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets the current ledger digest upload configuration for a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param ledgerDigestUploads * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ledgerDigestUploads: ManagedLedgerDigestUploadsName, options?: ManagedLedgerDigestUploadsGetOptionalParams): Promise; /** * Enables upload ledger digests to an Azure Storage account or an Azure Confidential Ledger instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param ledgerDigestUploads The name of the Ledger Digest Upload Configurations. * @param parameters The Ledger Digest Storage Endpoint. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ledgerDigestUploads: ManagedLedgerDigestUploadsName, parameters: ManagedLedgerDigestUploads, options?: ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams): Promise, ManagedLedgerDigestUploadsCreateOrUpdateResponse>>; /** * Enables upload ledger digests to an Azure Storage account or an Azure Confidential Ledger instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param ledgerDigestUploads The name of the Ledger Digest Upload Configurations. * @param parameters The Ledger Digest Storage Endpoint. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, ledgerDigestUploads: ManagedLedgerDigestUploadsName, parameters: ManagedLedgerDigestUploads, options?: ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams): Promise; /** * Disables uploading ledger digests to an Azure Storage account or an Azure Confidential Ledger * instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param ledgerDigestUploads * @param options The options parameters. */ beginDisable(resourceGroupName: string, managedInstanceName: string, databaseName: string, ledgerDigestUploads: ManagedLedgerDigestUploadsName, options?: ManagedLedgerDigestUploadsDisableOptionalParams): Promise, ManagedLedgerDigestUploadsDisableResponse>>; /** * Disables uploading ledger digests to an Azure Storage account or an Azure Confidential Ledger * instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param ledgerDigestUploads * @param options The options parameters. */ beginDisableAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, ledgerDigestUploads: ManagedLedgerDigestUploadsName, options?: ManagedLedgerDigestUploadsDisableOptionalParams): Promise; } /** * Defines values for ManagedLedgerDigestUploadsState. \ * {@link KnownManagedLedgerDigestUploadsState} can be used interchangeably with ManagedLedgerDigestUploadsState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Enabled** \ * **Disabled** */ export declare type ManagedLedgerDigestUploadsState = string; /** Interface representing a ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies. */ export declare interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies { /** * Gets a dropped database's short term retention policy list. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param restorableDroppedDatabaseId * @param options The options parameters. */ listByRestorableDroppedDatabase(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets a dropped database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param restorableDroppedDatabaseId * @param policyName The policy name. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams): Promise; /** * Sets a database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param restorableDroppedDatabaseId * @param policyName The policy name. Should always be "default". * @param parameters The short term retention policy info. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise, ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse>>; /** * Sets a database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param restorableDroppedDatabaseId * @param policyName The policy name. Should always be "default". * @param parameters The short term retention policy info. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise; /** * Sets a database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param restorableDroppedDatabaseId * @param policyName The policy name. Should always be "default". * @param parameters The short term retention policy info. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams): Promise, ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse>>; /** * Sets a database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param restorableDroppedDatabaseId * @param policyName The policy name. Should always be "default". * @param parameters The short term retention policy info. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ export declare interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ export declare interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByRestorableDroppedDatabaseNext operation. */ export declare type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ export declare interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByRestorableDroppedDatabase operation. */ export declare type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ export declare interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** * Defines values for ManagedServerCreateMode. \ * {@link KnownManagedServerCreateMode} can be used interchangeably with ManagedServerCreateMode, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** \ * **PointInTimeRestore** */ export declare type ManagedServerCreateMode = string; /** A managed server DNS alias. */ export declare interface ManagedServerDnsAlias extends ProxyResource { /** * The fully qualified DNS record for managed server alias * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly azureDnsRecord?: string; /** * The fully qualified public DNS record for managed server alias * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly publicAzureDnsRecord?: string; } /** A managed server DNS alias acquisition request. */ export declare interface ManagedServerDnsAliasAcquisition { /** The resource ID of the managed server DNS alias that will be acquired to point to this managed server instead. */ oldManagedServerDnsAliasResourceId: string; } /** A managed server dns alias creation request. */ export declare interface ManagedServerDnsAliasCreation { /** Whether or not DNS record should be created for this alias. */ createDnsRecord?: boolean; } /** Interface representing a ManagedServerDnsAliases. */ export declare interface ManagedServerDnsAliases { /** * Gets a list of managed server DNS aliases for a managed server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedServerDnsAliasesListByManagedInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a server DNS alias. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param dnsAliasName * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, dnsAliasName: string, options?: ManagedServerDnsAliasesGetOptionalParams): Promise; /** * Creates a managed server DNS alias. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param dnsAliasName * @param parameters A managed server dns alias creation request. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, dnsAliasName: string, parameters: ManagedServerDnsAliasCreation, options?: ManagedServerDnsAliasesCreateOrUpdateOptionalParams): Promise, ManagedServerDnsAliasesCreateOrUpdateResponse>>; /** * Creates a managed server DNS alias. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param dnsAliasName * @param parameters A managed server dns alias creation request. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, dnsAliasName: string, parameters: ManagedServerDnsAliasCreation, options?: ManagedServerDnsAliasesCreateOrUpdateOptionalParams): Promise; /** * Deletes the managed server DNS alias with the given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param dnsAliasName * @param options The options parameters. */ beginDelete(resourceGroupName: string, managedInstanceName: string, dnsAliasName: string, options?: ManagedServerDnsAliasesDeleteOptionalParams): Promise, void>>; /** * Deletes the managed server DNS alias with the given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param dnsAliasName * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, dnsAliasName: string, options?: ManagedServerDnsAliasesDeleteOptionalParams): Promise; /** * Acquires managed server DNS alias from another managed server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param dnsAliasName * @param parameters A managed server DNS alias acquisition request. * @param options The options parameters. */ beginAcquire(resourceGroupName: string, managedInstanceName: string, dnsAliasName: string, parameters: ManagedServerDnsAliasAcquisition, options?: ManagedServerDnsAliasesAcquireOptionalParams): Promise, ManagedServerDnsAliasesAcquireResponse>>; /** * Acquires managed server DNS alias from another managed server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param dnsAliasName * @param parameters A managed server DNS alias acquisition request. * @param options The options parameters. */ beginAcquireAndWait(resourceGroupName: string, managedInstanceName: string, dnsAliasName: string, parameters: ManagedServerDnsAliasAcquisition, options?: ManagedServerDnsAliasesAcquireOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedServerDnsAliasesAcquireOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the acquire operation. */ export declare type ManagedServerDnsAliasesAcquireResponse = ManagedServerDnsAlias; /** Optional parameters. */ export declare interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedServerDnsAliasesCreateOrUpdateResponse = ManagedServerDnsAlias; /** Optional parameters. */ export declare interface ManagedServerDnsAliasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ManagedServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedServerDnsAliasesGetResponse = ManagedServerDnsAlias; /** Optional parameters. */ export declare interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByManagedInstanceNext operation. */ export declare type ManagedServerDnsAliasesListByManagedInstanceNextResponse = ManagedServerDnsAliasListResult; /** Optional parameters. */ export declare interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByManagedInstance operation. */ export declare type ManagedServerDnsAliasesListByManagedInstanceResponse = ManagedServerDnsAliasListResult; /** A list of managed server DNS aliases. */ export declare interface ManagedServerDnsAliasListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedServerDnsAlias[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ManagedServerSecurityAlertPolicies. */ export declare interface ManagedServerSecurityAlertPolicies { /** * Get the managed server's threat detection policies. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Get a managed server's threat detection policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param securityAlertPolicyName The name of the security alert policy. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, options?: ManagedServerSecurityAlertPoliciesGetOptionalParams): Promise; /** * Creates or updates a threat detection policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param securityAlertPolicyName The name of the security alert policy. * @param parameters The managed server security alert policy. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise, ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse>>; /** * Creates or updates a threat detection policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param securityAlertPolicyName The name of the security alert policy. * @param parameters The managed server security alert policy. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy; /** Optional parameters. */ export declare interface ManagedServerSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy; /** Optional parameters. */ export declare interface ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult; /** Optional parameters. */ export declare interface ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstance operation. */ export declare type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult; /** A managed server security alert policy. */ export declare interface ManagedServerSecurityAlertPolicy extends ProxyResource { /** * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ state?: SecurityAlertsPolicyState; /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ disabledAlerts?: string[]; /** Specifies an array of e-mail addresses to which the alert is sent. */ emailAddresses?: string[]; /** Specifies that the alert is sent to the account administrators. */ emailAccountAdmins?: boolean; /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ storageEndpoint?: string; /** Specifies the identifier key of the Threat Detection audit storage account. */ storageAccountAccessKey?: string; /** Specifies the number of days to keep in the Threat Detection audit logs. */ retentionDays?: number; /** * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationTime?: Date; } /** A list of the managed Server's security alert policies. */ export declare interface ManagedServerSecurityAlertPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedServerSecurityAlertPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for ManagedShortTermRetentionPolicyName. \ * {@link KnownManagedShortTermRetentionPolicyName} can be used interchangeably with ManagedShortTermRetentionPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **default** */ export declare type ManagedShortTermRetentionPolicyName = string; /** A managed database transparent data encryption state. */ export declare interface ManagedTransparentDataEncryption extends ProxyResource { /** Specifies the state of the transparent data encryption. */ state?: TransparentDataEncryptionState; } /** A list of managed transparent data encryptions */ export declare interface ManagedTransparentDataEncryptionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ManagedTransparentDataEncryption[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for ManagementOperationState. \ * {@link KnownManagementOperationState} can be used interchangeably with ManagementOperationState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Pending** \ * **InProgress** \ * **Succeeded** \ * **Failed** \ * **CancelInProgress** \ * **Cancelled** */ export declare type ManagementOperationState = string; /** The maximum size capability. */ export declare interface MaxSizeCapability { /** * The maximum size limit (see 'unit' for the units). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly limit?: number; /** * The units that the limit is expressed in. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: MaxSizeUnit; } /** The maximum size range capability. */ export declare interface MaxSizeRangeCapability { /** * Minimum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly minValue?: MaxSizeCapability; /** * Maximum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly maxValue?: MaxSizeCapability; /** * Scale/step size for discrete values between the minimum value and the maximum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly scaleSize?: MaxSizeCapability; /** * Size of transaction log. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly logSize?: LogSizeCapability; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** * Defines values for MaxSizeUnit. \ * {@link KnownMaxSizeUnit} can be used interchangeably with MaxSizeUnit, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Megabytes** \ * **Gigabytes** \ * **Terabytes** \ * **Petabytes** */ export declare type MaxSizeUnit = string; /** Database metrics. */ export declare interface Metric { /** * The start time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: Date; /** * The end time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly endTime?: Date; /** * The time step to be used to summarize the metric values. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeGrain?: string; /** * The unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: UnitType; /** * The name information for the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: MetricName; /** * The metric values for the specified time window and timestep. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly metricValues?: MetricValue[]; } /** A metric availability value. */ export declare interface MetricAvailability { /** * The length of retention for the database metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly retention?: string; /** * The granularity of the database metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeGrain?: string; } /** A database metric definition. */ export declare interface MetricDefinition { /** * The name information for the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: MetricName; /** * The primary aggregation type defining how metric values are displayed. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly primaryAggregationType?: PrimaryAggregationType; /** * The resource uri of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly resourceUri?: string; /** * The unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: UnitDefinitionType; /** * The list of database metric availabilities for the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly metricAvailabilities?: MetricAvailability[]; } /** The response to a list database metric definitions request. */ export declare interface MetricDefinitionListResult { /** The list of metric definitions for the database. */ value: MetricDefinition[]; } /** The response to a list database metrics request. */ export declare interface MetricListResult { /** The list of metrics for the database. */ value: Metric[]; } /** A database metric name. */ export declare interface MetricName { /** * The name of the database metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: string; /** * The friendly name of the database metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly localizedValue?: string; } /** * Defines values for MetricType. \ * {@link KnownMetricType} can be used interchangeably with MetricType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **cpu** \ * **io** \ * **logIo** \ * **duration** \ * **dtu** */ export declare type MetricType = string; /** Represents database metrics. */ export declare interface MetricValue { /** * The number of values for the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly count?: number; /** * The average value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly average?: number; /** * The max value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly maximum?: number; /** * The min value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly minimum?: number; /** * The metric timestamp (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timestamp?: Date; /** * The total value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly total?: number; } /** The min capacity capability */ export declare interface MinCapacityCapability { /** * Min capacity value * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: number; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** * Defines values for MoveOperationMode. \ * {@link KnownMoveOperationMode} can be used interchangeably with MoveOperationMode, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Move** \ * **Copy** */ export declare type MoveOperationMode = string; /** ARM Usage Name */ export declare interface Name { /** Usage name value */ value?: string; /** Usage name localized value. */ localizedValue?: string; } /** Contains the ARM resources for which to create private endpoint connection. */ export declare interface NetworkIsolationSettings { /** The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for StorageUri parameter. */ storageAccountResourceId?: string; /** The resource id for the SQL server which is the target of this request. If set, private endpoint connection will be created for the SQL server. Must match server which is target of the operation. */ sqlServerResourceId?: string; } /** SQL REST API operation definition. */ export declare interface Operation { /** * The name of the operation being performed on this particular object. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The localized display information for this particular operation / action. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly display?: OperationDisplay; /** * The intended executor of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly origin?: OperationOrigin; /** * Additional descriptions for the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly properties?: { [propertyName: string]: Record; }; } /** Display metadata associated with the operation. */ export declare interface OperationDisplay { /** * The localized friendly form of the resource provider name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provider?: string; /** * The localized friendly form of the resource type related to this action/operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly resource?: string; /** * The localized friendly name for the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operation?: string; /** * The localized friendly description for the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly description?: string; } /** The impact of an operation, both in absolute and relative terms. */ export declare interface OperationImpact { /** * The name of the impact dimension. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The unit in which estimated impact to dimension is measured. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: string; /** * The absolute impact to dimension. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly changeValueAbsolute?: number; /** * The relative impact to dimension (null if not applicable) * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly changeValueRelative?: number; } /** Result of the request to list SQL operations. */ export declare interface OperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: Operation[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for OperationMode. \ * {@link KnownOperationMode} can be used interchangeably with OperationMode, * this enum contains the known values that the service supports. * ### Known values supported by the service * **PolybaseImport** */ export declare type OperationMode = string; /** * Defines values for OperationOrigin. \ * {@link KnownOperationOrigin} can be used interchangeably with OperationOrigin, * this enum contains the known values that the service supports. * ### Known values supported by the service * **user** \ * **system** */ export declare type OperationOrigin = string; /** Interface representing a Operations. */ export declare interface Operations { /** * Lists all of the available SQL Rest API operations. * @param options The options parameters. */ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } /** Optional parameters. */ export declare interface OperationsListNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listNext operation. */ export declare type OperationsListNextResponse = OperationListResult; /** Optional parameters. */ export declare interface OperationsListOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the list operation. */ export declare type OperationsListResponse = OperationListResult; /** An endpoint that the managed instance service requires outbound network access to. */ export declare interface OutboundEnvironmentEndpoint { /** * The type of service accessed by the managed instance service, e.g., Azure Storage, Azure Active Directory, etc. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly category?: string; /** * The endpoints that the managed instance service communicates with in order to function correctly. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly endpoints?: EndpointDependency[]; } /** A collection of endpoints that the managed instance service requires outbound network access to. */ export declare interface OutboundEnvironmentEndpointCollection { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: OutboundEnvironmentEndpoint[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** An Azure SQL DB Server Outbound Firewall Rule. */ export declare interface OutboundFirewallRule extends ProxyResource { /** * The state of the outbound rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; } /** A list of outbound rules. */ export declare interface OutboundFirewallRuleListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: OutboundFirewallRule[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a OutboundFirewallRules. */ export declare interface OutboundFirewallRules { /** * Gets all outbound firewall rules on a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: OutboundFirewallRulesListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets an outbound firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesGetOptionalParams): Promise; /** * Create a outbound firewall rule with a given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn * @param parameters An Azure SQL DB Server Outbound Firewall Rule. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams): Promise, OutboundFirewallRulesCreateOrUpdateResponse>>; /** * Create a outbound firewall rule with a given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn * @param parameters An Azure SQL DB Server Outbound Firewall Rule. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams): Promise; /** * Deletes a outbound firewall rule with a given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesDeleteOptionalParams): Promise, void>>; /** * Deletes a outbound firewall rule with a given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface OutboundFirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type OutboundFirewallRulesCreateOrUpdateResponse = OutboundFirewallRule; /** Optional parameters. */ export declare interface OutboundFirewallRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface OutboundFirewallRulesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type OutboundFirewallRulesGetResponse = OutboundFirewallRule; /** Optional parameters. */ export declare interface OutboundFirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type OutboundFirewallRulesListByServerNextResponse = OutboundFirewallRuleListResult; /** Optional parameters. */ export declare interface OutboundFirewallRulesListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type OutboundFirewallRulesListByServerResponse = OutboundFirewallRuleListResult; /** Partner server information for the failover group. */ export declare interface PartnerInfo { /** Resource identifier of the partner server. */ id: string; /** * Geo location of the partner server. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly location?: string; /** * Replication role of the partner server. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationRole?: FailoverGroupReplicationRole; } /** Partner region information for the failover group. */ export declare interface PartnerRegionInfo { /** Geo location of the partner managed instances. */ location?: string; /** * Replication role of the partner managed instances. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationRole?: InstanceFailoverGroupReplicationRole; } /** * Defines values for PauseDelayTimeUnit. \ * {@link KnownPauseDelayTimeUnit} can be used interchangeably with PauseDelayTimeUnit, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Minutes** */ export declare type PauseDelayTimeUnit = string; /** The performance level capability. */ export declare interface PerformanceLevelCapability { /** * Performance level value. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: number; /** * Unit type used to measure performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: PerformanceLevelUnit; } /** * Defines values for PerformanceLevelUnit. \ * {@link KnownPerformanceLevelUnit} can be used interchangeably with PerformanceLevelUnit, * this enum contains the known values that the service supports. * ### Known values supported by the service * **DTU** \ * **VCores** */ export declare type PerformanceLevelUnit = string; /** * Defines values for PrimaryAggregationType. \ * {@link KnownPrimaryAggregationType} can be used interchangeably with PrimaryAggregationType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **None** \ * **Average** \ * **Count** \ * **Minimum** \ * **Maximum** \ * **Total** */ export declare type PrimaryAggregationType = string; /** * Defines values for PrincipalType. \ * {@link KnownPrincipalType} can be used interchangeably with PrincipalType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **User** \ * **Group** \ * **Application** */ export declare type PrincipalType = string; /** A private endpoint connection */ export declare interface PrivateEndpointConnection extends ProxyResource { /** Private endpoint which the connection belongs to. */ privateEndpoint?: PrivateEndpointProperty; /** Connection state of the private endpoint connection. */ privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; /** * State of the private endpoint connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: PrivateEndpointProvisioningState; } /** A list of private endpoint connections. */ export declare interface PrivateEndpointConnectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: PrivateEndpointConnection[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Properties of a private endpoint connection. */ export declare interface PrivateEndpointConnectionProperties { /** Private endpoint which the connection belongs to. */ privateEndpoint?: PrivateEndpointProperty; /** * Group IDs. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly groupIds?: string[]; /** Connection state of the private endpoint connection. */ privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; /** * State of the private endpoint connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: PrivateEndpointProvisioningState; } /** Contains the private endpoint connection requests status. */ export declare interface PrivateEndpointConnectionRequestStatus { /** * Resource id for which the private endpoint is created. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateLinkServiceId?: string; /** * The connection name for the private endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointConnectionName?: string; /** * Status of this private endpoint connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: string; } /** Interface representing a PrivateEndpointConnections. */ export declare interface PrivateEndpointConnections { /** * Gets all private endpoint connections on a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: PrivateEndpointConnectionsListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a private endpoint connection. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise; /** * Approve or reject a private endpoint connection with a given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param privateEndpointConnectionName * @param parameters A private endpoint connection * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise, PrivateEndpointConnectionsCreateOrUpdateResponse>>; /** * Approve or reject a private endpoint connection with a given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param privateEndpointConnectionName * @param parameters A private endpoint connection * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise; /** * Deletes a private endpoint connection with a given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param privateEndpointConnectionName * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise, void>>; /** * Deletes a private endpoint connection with a given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param privateEndpointConnectionName * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; /** Optional parameters. */ export declare interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; /** Optional parameters. */ export declare interface PrivateEndpointConnectionsListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ export declare interface PrivateEndpointConnectionsListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult; export declare interface PrivateEndpointProperty { /** Resource id of the private endpoint. */ id?: string; } /** * Defines values for PrivateEndpointProvisioningState. \ * {@link KnownPrivateEndpointProvisioningState} can be used interchangeably with PrivateEndpointProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Approving** \ * **Ready** \ * **Dropping** \ * **Failed** \ * **Rejecting** */ export declare type PrivateEndpointProvisioningState = string; /** A private link resource */ export declare interface PrivateLinkResource extends ProxyResource { /** * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly properties?: PrivateLinkResourceProperties; } /** A list of private link resources */ export declare interface PrivateLinkResourceListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: PrivateLinkResource[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Properties of a private link resource. */ export declare interface PrivateLinkResourceProperties { /** * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly groupId?: string; /** * The private link resource required member names. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requiredMembers?: string[]; /** * The private link resource required zone names. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requiredZoneNames?: string[]; } /** Interface representing a PrivateLinkResources. */ export declare interface PrivateLinkResources { /** * Gets the private link resources for SQL server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: PrivateLinkResourcesListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a private link resource for SQL server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param groupName The name of the private link resource. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, groupName: string, options?: PrivateLinkResourcesGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface PrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type PrivateLinkResourcesGetResponse = PrivateLinkResource; /** Optional parameters. */ export declare interface PrivateLinkResourcesListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult; /** Optional parameters. */ export declare interface PrivateLinkResourcesListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult; /** * Defines values for PrivateLinkServiceConnectionStateActionsRequire. \ * {@link KnownPrivateLinkServiceConnectionStateActionsRequire} can be used interchangeably with PrivateLinkServiceConnectionStateActionsRequire, * this enum contains the known values that the service supports. * ### Known values supported by the service * **None** */ export declare type PrivateLinkServiceConnectionStateActionsRequire = string; export declare interface PrivateLinkServiceConnectionStateProperty { /** The private link service connection status. */ status: PrivateLinkServiceConnectionStateStatus; /** The private link service connection description. */ description: string; /** * The actions required for private link service connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly actionsRequired?: PrivateLinkServiceConnectionStateActionsRequire; } /** * Defines values for PrivateLinkServiceConnectionStateStatus. \ * {@link KnownPrivateLinkServiceConnectionStateStatus} can be used interchangeably with PrivateLinkServiceConnectionStateStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Approved** \ * **Pending** \ * **Rejected** \ * **Disconnected** */ export declare type PrivateLinkServiceConnectionStateStatus = string; /** * Defines values for ProvisioningState. \ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Created** \ * **InProgress** \ * **Succeeded** \ * **Failed** \ * **Canceled** */ export declare type ProvisioningState = string; /** ARM proxy resource. */ export declare interface ProxyResource extends Resource { } /** ARM proxy resource. */ export declare interface ProxyResourceWithWritableName extends ResourceWithWritableName { } /** SQL Vulnerability Assessment query check object. */ export declare interface QueryCheck { /** * SQL Vulnerability Assessment rule query. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly query?: string; /** * SQL Vulnerability Assessment query expected result. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly expectedResult?: string[][]; /** * SQL Vulnerability Assessment column names of query expected result. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly columnNames?: string[]; } /** Properties of a query metrics interval. */ export declare interface QueryMetricInterval { /** * The start time for the metric interval (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly intervalStartTime?: string; /** * Interval type (length). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly intervalType?: QueryTimeGrainType; /** * Execution count of a query in this interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly executionCount?: number; /** List of metric objects for this interval */ metrics?: QueryMetricProperties[]; } /** Properties of a topquery metric in one interval. */ export declare interface QueryMetricProperties { /** * The name information for the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The UI appropriate name for the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly displayName?: string; /** * The unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: QueryMetricUnitType; /** * The value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: number; /** * Metric value when min() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly min?: number; /** * Metric value when max() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly max?: number; /** * Metric value when avg() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly avg?: number; /** * Metric value when sum() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sum?: number; /** * Metric value when stdev aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly stdev?: number; } /** * Defines values for QueryMetricUnitType. \ * {@link KnownQueryMetricUnitType} can be used interchangeably with QueryMetricUnitType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **percentage** \ * **KB** \ * **microseconds** \ * **count** */ export declare type QueryMetricUnitType = string; export declare interface QueryStatistics extends ProxyResource { /** * Database name of the database in which this query was executed. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseName?: string; /** * Unique query id (unique within one database). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly queryId?: string; /** * The start time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: string; /** * The end time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly endTime?: string; /** List of intervals with appropriate metric data */ intervals?: QueryMetricInterval[]; } /** Properties of a query execution statistics. */ export declare interface QueryStatisticsProperties { /** * Database name of the database in which this query was executed. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseName?: string; /** * Unique query id (unique within one database). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly queryId?: string; /** * The start time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: string; /** * The end time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly endTime?: string; /** List of intervals with appropriate metric data */ intervals?: QueryMetricInterval[]; } /** * Defines values for QueryTimeGrainType. \ * {@link KnownQueryTimeGrainType} can be used interchangeably with QueryTimeGrainType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **PT1H** \ * **P1D** */ export declare type QueryTimeGrainType = string; /** * Defines values for ReadOnlyEndpointFailoverPolicy. \ * {@link KnownReadOnlyEndpointFailoverPolicy} can be used interchangeably with ReadOnlyEndpointFailoverPolicy, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Disabled** \ * **Enabled** */ export declare type ReadOnlyEndpointFailoverPolicy = string; /** The read scale capability. */ export declare interface ReadScaleCapability { /** * The maximum number of read scale replicas. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly maxNumberOfReplicas?: number; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** * Defines values for ReadWriteEndpointFailoverPolicy. \ * {@link KnownReadWriteEndpointFailoverPolicy} can be used interchangeably with ReadWriteEndpointFailoverPolicy, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Manual** \ * **Automatic** */ export declare type ReadWriteEndpointFailoverPolicy = string; /** Database, Server or Elastic Pool Recommended Action. */ export declare interface RecommendedAction extends ProxyResource { /** * Resource kind. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; /** * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly location?: string; /** * Gets the reason for recommending this action. e.g., DuplicateIndex * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly recommendationReason?: string; /** * Gets the time since when this recommended action is valid. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly validSince?: Date; /** * Gets time when this recommended action was last refreshed. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastRefresh?: Date; /** Gets the info of the current state the recommended action is in. */ state?: RecommendedActionStateInfo; /** * Gets if this recommended action is actionable by user * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isExecutableAction?: boolean; /** * Gets if changes applied by this recommended action can be reverted by user * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isRevertableAction?: boolean; /** * Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isArchivedAction?: boolean; /** * Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly executeActionStartTime?: Date; /** * Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly executeActionDuration?: string; /** * Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly revertActionStartTime?: Date; /** * Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly revertActionDuration?: string; /** * Gets if approval for applying this recommended action was given by user/system. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly executeActionInitiatedBy?: RecommendedActionInitiatedBy; /** * Gets the time when this recommended action was approved for execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly executeActionInitiatedTime?: Date; /** * Gets if approval for reverting this recommended action was given by user/system. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly revertActionInitiatedBy?: RecommendedActionInitiatedBy; /** * Gets the time when this recommended action was approved for revert. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly revertActionInitiatedTime?: Date; /** * Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly score?: number; /** * Gets the implementation details of this recommended action for user to apply it manually. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly implementationDetails?: RecommendedActionImplementationInfo; /** * Gets the error details if and why this recommended action is put to error state. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorDetails?: RecommendedActionErrorInfo; /** * Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly estimatedImpact?: RecommendedActionImpactRecord[]; /** * Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly observedImpact?: RecommendedActionImpactRecord[]; /** * Gets the time series info of metrics for this recommended action e.g., CPU consumption time series * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeSeries?: RecommendedActionMetricInfo[]; /** * Gets the linked objects, if any. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly linkedObjects?: string[]; /** * Gets additional details specific to this recommended action. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly details?: { [propertyName: string]: Record; }; } /** * Defines values for RecommendedActionCurrentState. \ * {@link KnownRecommendedActionCurrentState} can be used interchangeably with RecommendedActionCurrentState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Active** \ * **Pending** \ * **Executing** \ * **Verifying** \ * **PendingRevert** \ * **RevertCancelled** \ * **Reverting** \ * **Reverted** \ * **Ignored** \ * **Expired** \ * **Monitoring** \ * **Resolved** \ * **Success** \ * **Error** */ export declare type RecommendedActionCurrentState = string; /** Contains error information for an Azure SQL Database, Server or Elastic Pool Recommended Action. */ export declare interface RecommendedActionErrorInfo { /** * Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorCode?: string; /** * Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isRetryable?: IsRetryable; } /** Contains information of estimated or observed impact on various metrics for an Azure SQL Database, Server or Elastic Pool Recommended Action. */ export declare interface RecommendedActionImpactRecord { /** * Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly dimensionName?: string; /** * Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: string; /** * Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly absoluteValue?: number; /** * Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly changeValueAbsolute?: number; /** * Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly changeValueRelative?: number; } /** Contains information for manual implementation for an Azure SQL Database, Server or Elastic Pool Recommended Action. */ export declare interface RecommendedActionImplementationInfo { /** * Gets the method in which this recommended action can be manually implemented. e.g., TSql, AzurePowerShell. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly method?: ImplementationMethod; /** * Gets the manual implementation script. e.g., T-SQL script that could be executed on the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly script?: string; } /** Defines values for RecommendedActionInitiatedBy. */ export declare type RecommendedActionInitiatedBy = "User" | "System"; /** Contains time series of various impacted metrics for an Azure SQL Database, Server or Elastic Pool Recommended Action. */ export declare interface RecommendedActionMetricInfo { /** * Gets the name of the metric. e.g., CPU, Number of Queries. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly metricName?: string; /** * Gets the unit in which metric is measured. e.g., DTU, Frequency * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: string; /** * Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour) * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeGrain?: string; /** * Gets the start time of time interval given by this MetricInfo. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: Date; /** * Gets the value of the metric in the time interval given by this MetricInfo. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: number; } /** Contains information of current state for an Azure SQL Database, Server or Elastic Pool Recommended Action. */ export declare interface RecommendedActionStateInfo { /** Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action. */ currentValue: RecommendedActionCurrentState; /** * Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly actionInitiatedBy?: RecommendedActionInitiatedBy; /** * Gets the time when the state was last modified * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastModified?: Date; } /** Interface representing a RecommendedSensitivityLabels. */ export declare interface RecommendedSensitivityLabels { /** * Update recommended sensitivity labels states of a given database using an operations batch. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters A list of recommended sensitivity label update operations. * @param options The options parameters. */ update(resourceGroupName: string, serverName: string, databaseName: string, parameters: RecommendedSensitivityLabelUpdateList, options?: RecommendedSensitivityLabelsUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface RecommendedSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions { } /** A recommended sensitivity label update operation. */ export declare interface RecommendedSensitivityLabelUpdate extends ProxyResource { op?: RecommendedSensitivityLabelUpdateKind; /** Schema name of the column to update. */ schema?: string; /** Table name of the column to update. */ table?: string; /** Column name to update. */ column?: string; } /** Defines values for RecommendedSensitivityLabelUpdateKind. */ export declare type RecommendedSensitivityLabelUpdateKind = "enable" | "disable"; /** A list of recommended sensitivity label update operations. */ export declare interface RecommendedSensitivityLabelUpdateList { operations?: RecommendedSensitivityLabelUpdate[]; } /** A recoverable database resource. */ export declare interface RecoverableDatabase extends ProxyResource { /** * The edition of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly edition?: string; /** * The service level objective name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serviceLevelObjective?: string; /** * The elastic pool name of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly elasticPoolName?: string; /** * The last available backup date. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastAvailableBackupDate?: Date; /** The resource ids of the user assigned identities to use */ keys?: { [propertyName: string]: DatabaseKey; }; } /** A list of recoverable databases. */ export declare interface RecoverableDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: RecoverableDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a RecoverableDatabases. */ export declare interface RecoverableDatabases { /** * Gets a list of recoverable databases. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: RecoverableDatabasesListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a recoverable database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, options?: RecoverableDatabasesGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface RecoverableDatabasesGetOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; /** An OData filter expression that filters elements in the collection. */ filter?: string; } /** Contains response data for the get operation. */ export declare type RecoverableDatabasesGetResponse = RecoverableDatabase; /** Optional parameters. */ export declare interface RecoverableDatabasesListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type RecoverableDatabasesListByServerNextResponse = RecoverableDatabaseListResult; /** Optional parameters. */ export declare interface RecoverableDatabasesListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; /** A recoverable managed database resource. */ export declare interface RecoverableManagedDatabase extends ProxyResource { /** * The last available backup date. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastAvailableBackupDate?: string; } /** A list of recoverable managed databases. */ export declare interface RecoverableManagedDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: RecoverableManagedDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a RecoverableManagedDatabases. */ export declare interface RecoverableManagedDatabases { /** * Gets a list of recoverable managed databases. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: RecoverableManagedDatabasesListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a recoverable managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param recoverableDatabaseName * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, recoverableDatabaseName: string, options?: RecoverableManagedDatabasesGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface RecoverableManagedDatabasesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase; /** Optional parameters. */ export declare interface RecoverableManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult; /** Optional parameters. */ export declare interface RecoverableManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstance operation. */ export declare type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; /** An RefreshExternalGovernanceStatus operation result resource. */ export declare interface RefreshExternalGovernanceStatusOperationResult extends ProxyResource { /** * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestId?: string; /** * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestType?: string; /** * Queued time. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly queuedTime?: string; /** * Server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serverName?: string; /** * Operation status. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: string; /** * Error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorMessage?: string; } /** SQL Vulnerability Assessment remediation Details. */ export declare interface Remediation { /** * SQL Vulnerability Assessment remediation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly description?: string; /** * SQL Vulnerability Assessment remediation script. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly scripts?: string[]; /** * SQL Vulnerability Assessment is remediation automated. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly automated?: boolean; /** * SQL Vulnerability Assessment optional link to remediate in Azure Portal. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly portalLink?: string; } /** A replication link. */ export declare interface ReplicationLink extends ProxyResource { /** * Resource partner server. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly partnerServer?: string; /** * Resource partner database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly partnerDatabase?: string; /** * Resource partner location. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly partnerLocation?: string; /** * Local replication role. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly role?: ReplicationRole; /** * Partner replication role. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly partnerRole?: ReplicationRole; /** * Replication mode. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationMode?: string; /** * Time at which the link was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: Date; /** * Seeding completion percentage for the link. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly percentComplete?: number; /** * Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationState?: ReplicationState; /** * Whether the user is currently allowed to terminate the link. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isTerminationAllowed?: boolean; /** * Link type (GEO, NAMED, STANDBY). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly linkType?: ReplicationLinkType; } /** A list of replication links. */ export declare interface ReplicationLinkListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ReplicationLink[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ReplicationLinks. */ export declare interface ReplicationLinks { /** * Gets a list of replication links on database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: ReplicationLinksListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets a list of replication links. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ReplicationLinksListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a replication link. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param linkId The name of the replication link. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksGetOptionalParams): Promise; /** * Deletes the replication link. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param linkId * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksDeleteOptionalParams): Promise, void>>; /** * Deletes the replication link. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param linkId * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksDeleteOptionalParams): Promise; /** * Fails over from the current primary server to this server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param linkId The name of the replication link. * @param options The options parameters. */ beginFailover(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksFailoverOptionalParams): Promise, ReplicationLinksFailoverResponse>>; /** * Fails over from the current primary server to this server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param linkId The name of the replication link. * @param options The options parameters. */ beginFailoverAndWait(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksFailoverOptionalParams): Promise; /** * Fails over from the current primary server to this server allowing data loss. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param linkId The name of the replication link. * @param options The options parameters. */ beginFailoverAllowDataLoss(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksFailoverAllowDataLossOptionalParams): Promise, ReplicationLinksFailoverAllowDataLossResponse>>; /** * Fails over from the current primary server to this server allowing data loss. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param linkId The name of the replication link. * @param options The options parameters. */ beginFailoverAllowDataLossAndWait(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksFailoverAllowDataLossOptionalParams): Promise; } /** Optional parameters. */ export declare interface ReplicationLinksDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ReplicationLinksFailoverAllowDataLossOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the failoverAllowDataLoss operation. */ export declare type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink; /** Optional parameters. */ export declare interface ReplicationLinksFailoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the failover operation. */ export declare type ReplicationLinksFailoverResponse = ReplicationLink; /** Optional parameters. */ export declare interface ReplicationLinksGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ReplicationLinksGetResponse = ReplicationLink; /** Optional parameters. */ export declare interface ReplicationLinksListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult; /** Optional parameters. */ export declare interface ReplicationLinksListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult; /** Optional parameters. */ export declare interface ReplicationLinksListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult; /** Optional parameters. */ export declare interface ReplicationLinksListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ReplicationLinksListByServerResponse = ReplicationLinkListResult; /** * Defines values for ReplicationLinkType. \ * {@link KnownReplicationLinkType} can be used interchangeably with ReplicationLinkType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **GEO** \ * **NAMED** \ * **STANDBY** */ export declare type ReplicationLinkType = string; /** * Defines values for ReplicationMode. \ * {@link KnownReplicationMode} can be used interchangeably with ReplicationMode, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Async** \ * **Sync** */ export declare type ReplicationMode = string; /** Defines values for ReplicationRole. */ export declare type ReplicationRole = "Primary" | "Secondary" | "NonReadableSecondary" | "Source" | "Copy"; /** * Defines values for ReplicationState. \ * {@link KnownReplicationState} can be used interchangeably with ReplicationState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **PENDING** \ * **SEEDING** \ * **CATCH_UP** \ * **SUSPENDED** */ export declare type ReplicationState = string; /** * Defines values for ReplicaType. \ * {@link KnownReplicaType} can be used interchangeably with ReplicaType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Primary** \ * **ReadableSecondary** */ export declare type ReplicaType = string; /** ARM resource. */ export declare interface Resource { /** * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** * Resource name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * Resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; } /** Azure Active Directory identity configuration for a resource. */ export declare interface ResourceIdentity { /** The resource ids of the user assigned identities to use */ userAssignedIdentities?: { [propertyName: string]: UserIdentity; }; /** * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly principalId?: string; /** The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. */ type?: IdentityType; /** * The Azure Active Directory tenant id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly tenantId?: string; } /** Contains the information necessary to perform a resource move (rename). */ export declare interface ResourceMoveDefinition { /** The target ID for the resource */ id: string; } /** ARM resource. */ export declare interface ResourceWithWritableName { /** * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** Resource name. */ name?: string; /** * Resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; } /** A restorable dropped database resource. */ export declare interface RestorableDroppedDatabase extends ProxyResource { /** The name and tier of the SKU. */ sku?: Sku; /** Resource location. */ location?: string; /** Resource tags. */ tags?: { [propertyName: string]: string; }; /** * The name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseName?: string; /** * The max size of the database expressed in bytes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly maxSizeBytes?: number; /** * The creation date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationDate?: Date; /** * The deletion date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly deletionDate?: Date; /** * The earliest restore date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly earliestRestoreDate?: Date; /** * The storage account type used to store backups for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly backupStorageRedundancy?: BackupStorageRedundancy; /** The resource ids of the user assigned identities to use */ keys?: { [propertyName: string]: DatabaseKey; }; } /** A list of restorable dropped databases. */ export declare interface RestorableDroppedDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: RestorableDroppedDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a RestorableDroppedDatabases. */ export declare interface RestorableDroppedDatabases { /** * Gets a list of restorable dropped databases. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: RestorableDroppedDatabasesListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a restorable dropped database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param restorableDroppedDatabaseId * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, restorableDroppedDatabaseId: string, options?: RestorableDroppedDatabasesGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface RestorableDroppedDatabasesGetOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; /** An OData filter expression that filters elements in the collection. */ filter?: string; } /** Contains response data for the get operation. */ export declare type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase; /** Optional parameters. */ export declare interface RestorableDroppedDatabasesListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type RestorableDroppedDatabasesListByServerNextResponse = RestorableDroppedDatabaseListResult; /** Optional parameters. */ export declare interface RestorableDroppedDatabasesListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult; /** A restorable dropped managed database resource. */ export declare interface RestorableDroppedManagedDatabase extends TrackedResource { /** * The name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseName?: string; /** * The creation date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationDate?: Date; /** * The deletion date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly deletionDate?: Date; /** * The earliest restore date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly earliestRestoreDate?: Date; } /** A list of restorable dropped managed databases. */ export declare interface RestorableDroppedManagedDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: RestorableDroppedManagedDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a RestorableDroppedManagedDatabases. */ export declare interface RestorableDroppedManagedDatabases { /** * Gets a list of restorable dropped managed databases. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: RestorableDroppedManagedDatabasesListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a restorable dropped managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param restorableDroppedDatabaseId * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: RestorableDroppedManagedDatabasesGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface RestorableDroppedManagedDatabasesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase; /** Optional parameters. */ export declare interface RestorableDroppedManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult; /** Optional parameters. */ export declare interface RestorableDroppedManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstance operation. */ export declare type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult; /** * Defines values for RestoreDetailsName. \ * {@link KnownRestoreDetailsName} can be used interchangeably with RestoreDetailsName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** */ export declare type RestoreDetailsName = string; /** Database restore points. */ export declare interface RestorePoint extends ProxyResource { /** * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly location?: string; /** * The type of restore point * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly restorePointType?: RestorePointType; /** * The earliest time to which this database can be restored * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly earliestRestoreDate?: Date; /** * The time the backup was taken * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly restorePointCreationDate?: Date; /** * The label of restore point for backup request by user * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly restorePointLabel?: string; } /** A list of long term retention backups. */ export declare interface RestorePointListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: RestorePoint[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a RestorePoints. */ export declare interface RestorePoints { /** * Gets a list of database restore points. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: RestorePointsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Creates a restore point for a data warehouse. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters The definition for creating the restore point of this database. * @param options The options parameters. */ beginCreate(resourceGroupName: string, serverName: string, databaseName: string, parameters: CreateDatabaseRestorePointDefinition, options?: RestorePointsCreateOptionalParams): Promise, RestorePointsCreateResponse>>; /** * Creates a restore point for a data warehouse. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters The definition for creating the restore point of this database. * @param options The options parameters. */ beginCreateAndWait(resourceGroupName: string, serverName: string, databaseName: string, parameters: CreateDatabaseRestorePointDefinition, options?: RestorePointsCreateOptionalParams): Promise; /** * Gets a restore point. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param restorePointName The name of the restore point. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: RestorePointsGetOptionalParams): Promise; /** * Deletes a restore point. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param restorePointName The name of the restore point. * @param options The options parameters. */ delete(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: RestorePointsDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface RestorePointsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the create operation. */ export declare type RestorePointsCreateResponse = RestorePoint; /** Optional parameters. */ export declare interface RestorePointsDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface RestorePointsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type RestorePointsGetResponse = RestorePoint; /** Optional parameters. */ export declare interface RestorePointsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type RestorePointsListByDatabaseNextResponse = RestorePointListResult; /** Optional parameters. */ export declare interface RestorePointsListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type RestorePointsListByDatabaseResponse = RestorePointListResult; /** Defines values for RestorePointType. */ export declare type RestorePointType = "CONTINUOUS" | "DISCRETE"; /** * Defines values for RuleSeverity. \ * {@link KnownRuleSeverity} can be used interchangeably with RuleSeverity, * this enum contains the known values that the service supports. * ### Known values supported by the service * **High** \ * **Medium** \ * **Low** \ * **Informational** \ * **Obsolete** */ export declare type RuleSeverity = string; /** * Defines values for RuleStatus. \ * {@link KnownRuleStatus} can be used interchangeably with RuleStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service * **NonFinding** \ * **Finding** \ * **InternalError** */ export declare type RuleStatus = string; /** * Defines values for RuleType. \ * {@link KnownRuleType} can be used interchangeably with RuleType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Binary** \ * **BaselineExpected** \ * **PositiveList** \ * **NegativeList** */ export declare type RuleType = string; /** * Defines values for SampleName. \ * {@link KnownSampleName} can be used interchangeably with SampleName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **AdventureWorksLT** \ * **WideWorldImportersStd** \ * **WideWorldImportersFull** */ export declare type SampleName = string; /** Schedule info describing when the server should be started or stopped. */ export declare interface ScheduleItem { /** Start day. */ startDay: DayOfWeek; /** Start time. */ startTime: string; /** Stop day. */ stopDay: DayOfWeek; /** Stop time. */ stopTime: string; } /** * Defines values for SecondaryInstanceType. \ * {@link KnownSecondaryInstanceType} can be used interchangeably with SecondaryInstanceType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Geo** \ * **Standby** */ export declare type SecondaryInstanceType = string; /** * Defines values for SecondaryType. \ * {@link KnownSecondaryType} can be used interchangeably with SecondaryType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Geo** \ * **Named** \ * **Standby** */ export declare type SecondaryType = string; /** * Defines values for SecurityAlertPolicyName. \ * {@link KnownSecurityAlertPolicyName} can be used interchangeably with SecurityAlertPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** */ export declare type SecurityAlertPolicyName = string; /** Defines values for SecurityAlertPolicyState. */ export declare type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled"; /** Defines values for SecurityAlertsPolicyState. */ export declare type SecurityAlertsPolicyState = "Enabled" | "Disabled"; /** A security event. */ export declare interface SecurityEvent extends ProxyResource { /** * The time when the security event occurred. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly eventTime?: Date; /** * The type of the security event. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly securityEventType?: SecurityEventType; /** * The subscription name * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly subscription?: string; /** * The server name * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly server?: string; /** * The database name * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly database?: string; /** * The IP address of the client who executed the statement. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly clientIp?: string; /** * The application used to execute the statement. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly applicationName?: string; /** * The principal user who executed the statement * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly principalName?: string; /** * The sql injection additional properties, populated only if the type of the security event is sql injection. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly securityEventSqlInjectionAdditionalProperties?: SecurityEventSqlInjectionAdditionalProperties; } /** A list of security events. */ export declare interface SecurityEventCollection { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SecurityEvent[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** The properties that are supported in the $filter operation. */ export declare interface SecurityEventsFilterParameters { /** Filter on the event time. */ eventTime?: Date; /** Whether to show server records or not. */ showServerRecords?: boolean; } /** The properties of a security event sql injection additional properties. */ export declare interface SecurityEventSqlInjectionAdditionalProperties { /** * The threat ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly threatId?: string; /** * The statement * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly statement?: string; /** * The statement highlight offset * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly statementHighlightOffset?: number; /** * The statement highlight length * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly statementHighlightLength?: number; /** * The sql error code * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorCode?: number; /** * The sql error severity * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorSeverity?: number; /** * The sql error message * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorMessage?: string; } /** Defines values for SecurityEventType. */ export declare type SecurityEventType = "Undefined" | "SqlInjectionVulnerability" | "SqlInjectionExploit"; /** A sensitivity label. */ export declare interface SensitivityLabel extends ProxyResource { /** * Resource that manages the sensitivity label. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly managedBy?: string; /** * The schema name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly schemaName?: string; /** * The table name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly tableName?: string; /** * The column name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly columnName?: string; /** The label name. */ labelName?: string; /** The label ID. */ labelId?: string; /** The information type. */ informationType?: string; /** The information type ID. */ informationTypeId?: string; /** * Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isDisabled?: boolean; rank?: SensitivityLabelRank; } /** A list of sensitivity labels. */ export declare interface SensitivityLabelListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SensitivityLabel[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Defines values for SensitivityLabelRank. */ export declare type SensitivityLabelRank = "None" | "Low" | "Medium" | "High" | "Critical"; /** Interface representing a SensitivityLabels. */ export declare interface SensitivityLabels { /** * Gets the sensitivity labels of a given database * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listCurrentByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SensitivityLabelsListCurrentByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets the sensitivity labels of a given database * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listRecommendedByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SensitivityLabelsListRecommendedByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Update sensitivity labels of a given database using an operations batch. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param parameters A list of sensitivity label update operations. * @param options The options parameters. */ update(resourceGroupName: string, serverName: string, databaseName: string, parameters: SensitivityLabelUpdateList, options?: SensitivityLabelsUpdateOptionalParams): Promise; /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all * columns) * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. * @param options The options parameters. */ enableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: SensitivityLabelsEnableRecommendationOptionalParams): Promise; /** * Disables sensitivity recommendations on a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. * @param options The options parameters. */ disableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: SensitivityLabelsDisableRecommendationOptionalParams): Promise; /** * Gets the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. * @param sensitivityLabelSource The source of the sensitivity label. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: SensitivityLabelSource, options?: SensitivityLabelsGetOptionalParams): Promise; /** * Creates or updates the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. * @param parameters The column sensitivity label resource. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, parameters: SensitivityLabel, options?: SensitivityLabelsCreateOrUpdateOptionalParams): Promise; /** * Deletes the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. * @param options The options parameters. */ delete(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: SensitivityLabelsDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface SensitivityLabelsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; /** Optional parameters. */ export declare interface SensitivityLabelsDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface SensitivityLabelsDisableRecommendationOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface SensitivityLabelsEnableRecommendationOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface SensitivityLabelsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type SensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ export declare interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listCurrentByDatabaseNext operation. */ export declare type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ export declare interface SensitivityLabelsListCurrentByDatabaseOptionalParams extends coreClient.OperationOptions { skipToken?: string; /** An OData filter expression that filters elements in the collection. */ filter?: string; count?: boolean; } /** Contains response data for the listCurrentByDatabase operation. */ export declare type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ export declare interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listRecommendedByDatabaseNext operation. */ export declare type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ export declare interface SensitivityLabelsListRecommendedByDatabaseOptionalParams extends coreClient.OperationOptions { skipToken?: string; /** An OData filter expression that filters elements in the collection. */ filter?: string; /** Specifies whether to include disabled recommendations or not. */ includeDisabledRecommendations?: boolean; } /** Contains response data for the listRecommendedByDatabase operation. */ export declare type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Defines values for SensitivityLabelSource. */ export declare type SensitivityLabelSource = "current" | "recommended"; /** Optional parameters. */ export declare interface SensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions { } /** A sensitivity label update operation. */ export declare interface SensitivityLabelUpdate extends ProxyResource { op?: SensitivityLabelUpdateKind; /** Schema name of the column to update. */ schema?: string; /** Table name of the column to update. */ table?: string; /** Column name to update. */ column?: string; /** The sensitivity label information to apply on a column. */ sensitivityLabel?: SensitivityLabel; } /** Defines values for SensitivityLabelUpdateKind. */ export declare type SensitivityLabelUpdateKind = "set" | "remove"; /** A list of sensitivity label update operations. */ export declare interface SensitivityLabelUpdateList { operations?: SensitivityLabelUpdate[]; } /** An Azure SQL Database server. */ export declare interface Server extends TrackedResource { /** The Azure Active Directory identity of the server. */ identity?: ResourceIdentity; /** * Kind of sql server. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; /** Administrator username for the server. Once created it cannot be changed. */ administratorLogin?: string; /** The administrator login password (required for server creation). */ administratorLoginPassword?: string; /** The version of the server. */ version?: string; /** * The state of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: string; /** * The fully qualified domain name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly fullyQualifiedDomainName?: string; /** * List of private endpoint connections on a server * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ minimalTlsVersion?: string; /** Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter' */ publicNetworkAccess?: ServerPublicNetworkAccessFlag; /** * Whether or not existing server has a workspace created and if it allows connection from workspace * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly workspaceFeature?: ServerWorkspaceFeature; /** The resource id of a user assigned identity to be used by default. */ primaryUserAssignedIdentityId?: string; /** The Client id used for cross tenant CMK scenario */ federatedClientId?: string; /** A CMK URI of the key to use for encryption. */ keyId?: string; /** The Azure Active Directory administrator of the server. This can only be used at server create time. If used for server update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ administrators?: ServerExternalAdministrator; /** Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; /** * Status of external governance. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly externalGovernanceStatus?: ExternalGovernanceStatus; } /** A server Advanced Threat Protection. */ export declare interface ServerAdvancedThreatProtection extends ProxyResource { /** * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ state?: AdvancedThreatProtectionState; /** * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationTime?: Date; } /** Interface representing a ServerAdvancedThreatProtectionSettings. */ export declare interface ServerAdvancedThreatProtectionSettings { /** * Get a list of the server's Advanced Threat Protection states. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ServerAdvancedThreatProtectionSettingsListByServerOptionalParams): PagedAsyncIterableIterator; /** * Get a server's Advanced Threat Protection state. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, options?: ServerAdvancedThreatProtectionSettingsGetOptionalParams): Promise; /** * Creates or updates an Advanced Threat Protection state. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param parameters The server Advanced Threat Protection state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: ServerAdvancedThreatProtection, options?: ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams): Promise, ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse>>; /** * Creates or updates an Advanced Threat Protection state. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. * @param parameters The server Advanced Threat Protection state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: ServerAdvancedThreatProtection, options?: ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ServerAdvancedThreatProtection; /** Optional parameters. */ export declare interface ServerAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerAdvancedThreatProtectionSettingsGetResponse = ServerAdvancedThreatProtection; /** Optional parameters. */ export declare interface ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type ServerAdvancedThreatProtectionSettingsListByServerNextResponse = LogicalServerAdvancedThreatProtectionListResult; /** Optional parameters. */ export declare interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ServerAdvancedThreatProtectionSettingsListByServerResponse = LogicalServerAdvancedThreatProtectionListResult; /** Interface representing a ServerAdvisors. */ export declare interface ServerAdvisors { /** * Gets a list of server advisors. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ServerAdvisorsListByServerOptionalParams): Promise; /** * Gets a server advisor. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param advisorName The name of the Server Advisor. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, advisorName: string, options?: ServerAdvisorsGetOptionalParams): Promise; /** * Updates a server advisor. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param advisorName The name of the Server Advisor. * @param parameters The requested advisor resource state. * @param options The options parameters. */ update(resourceGroupName: string, serverName: string, advisorName: string, parameters: Advisor, options?: ServerAdvisorsUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerAdvisorsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerAdvisorsGetResponse = Advisor; /** Optional parameters. */ export declare interface ServerAdvisorsListByServerOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } /** Contains response data for the listByServer operation. */ export declare type ServerAdvisorsListByServerResponse = Advisor[]; /** Optional parameters. */ export declare interface ServerAdvisorsUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the update operation. */ export declare type ServerAdvisorsUpdateResponse = Advisor; /** Server-level Automatic Tuning. */ export declare interface ServerAutomaticTuning extends ProxyResource { /** Automatic tuning desired state. */ desiredState?: AutomaticTuningServerMode; /** * Automatic tuning actual state. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly actualState?: AutomaticTuningServerMode; /** Automatic tuning options definition. */ options?: { [propertyName: string]: AutomaticTuningServerOptions; }; } /** Optional parameters. */ export declare interface ServerAutomaticTuningGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerAutomaticTuningGetResponse = ServerAutomaticTuning; /** Interface representing a ServerAutomaticTuningOperations. */ export declare interface ServerAutomaticTuningOperations { /** * Retrieves server automatic tuning options. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, options?: ServerAutomaticTuningGetOptionalParams): Promise; /** * Update automatic tuning options on server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters The requested automatic tuning resource state. * @param options The options parameters. */ update(resourceGroupName: string, serverName: string, parameters: ServerAutomaticTuning, options?: ServerAutomaticTuningUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerAutomaticTuningUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the update operation. */ export declare type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning; /** Azure Active Directory administrator. */ export declare interface ServerAzureADAdministrator extends ProxyResource { /** Type of the sever administrator. */ administratorType?: AdministratorType; /** Login name of the server administrator. */ login?: string; /** SID (object ID) of the server administrator. */ sid?: string; /** Tenant ID of the administrator. */ tenantId?: string; /** * Azure Active Directory only Authentication enabled. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly azureADOnlyAuthentication?: boolean; } /** Interface representing a ServerAzureADAdministrators. */ export declare interface ServerAzureADAdministrators { /** * Gets a list of Azure Active Directory administrators in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ServerAzureADAdministratorsListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a Azure Active Directory administrator. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param administratorName The name of server active directory administrator. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, administratorName: AdministratorName, options?: ServerAzureADAdministratorsGetOptionalParams): Promise; /** * Creates or updates an existing Azure Active Directory administrator. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param administratorName The name of server active directory administrator. * @param parameters The requested Azure Active Directory administrator Resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, administratorName: AdministratorName, parameters: ServerAzureADAdministrator, options?: ServerAzureADAdministratorsCreateOrUpdateOptionalParams): Promise, ServerAzureADAdministratorsCreateOrUpdateResponse>>; /** * Creates or updates an existing Azure Active Directory administrator. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param administratorName The name of server active directory administrator. * @param parameters The requested Azure Active Directory administrator Resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, administratorName: AdministratorName, parameters: ServerAzureADAdministrator, options?: ServerAzureADAdministratorsCreateOrUpdateOptionalParams): Promise; /** * Deletes the Azure Active Directory administrator with the given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param administratorName The name of server active directory administrator. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, administratorName: AdministratorName, options?: ServerAzureADAdministratorsDeleteOptionalParams): Promise, void>>; /** * Deletes the Azure Active Directory administrator with the given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param administratorName The name of server active directory administrator. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, administratorName: AdministratorName, options?: ServerAzureADAdministratorsDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator; /** Optional parameters. */ export declare interface ServerAzureADAdministratorsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ServerAzureADAdministratorsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator; /** Optional parameters. */ export declare interface ServerAzureADAdministratorsListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult; /** Optional parameters. */ export declare interface ServerAzureADAdministratorsListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult; /** Azure Active Directory only authentication. */ export declare interface ServerAzureADOnlyAuthentication extends ProxyResource { /** Azure Active Directory only Authentication enabled. */ azureADOnlyAuthentication?: boolean; } /** Interface representing a ServerAzureADOnlyAuthentications. */ export declare interface ServerAzureADOnlyAuthentications { /** * Gets a list of server Azure Active Directory only authentications. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ServerAzureADOnlyAuthenticationsListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a specific Azure Active Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param authenticationName The name of server azure active directory only authentication. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, authenticationName: AuthenticationName, options?: ServerAzureADOnlyAuthenticationsGetOptionalParams): Promise; /** * Sets Server Active Directory only authentication property or updates an existing server Active * Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param authenticationName The name of server azure active directory only authentication. * @param parameters The required parameters for creating or updating an Active Directory only * authentication property. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, authenticationName: AuthenticationName, parameters: ServerAzureADOnlyAuthentication, options?: ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams): Promise, ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse>>; /** * Sets Server Active Directory only authentication property or updates an existing server Active * Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param authenticationName The name of server azure active directory only authentication. * @param parameters The required parameters for creating or updating an Active Directory only * authentication property. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, authenticationName: AuthenticationName, parameters: ServerAzureADOnlyAuthentication, options?: ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams): Promise; /** * Deletes an existing server Active Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param authenticationName The name of server azure active directory only authentication. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, authenticationName: AuthenticationName, options?: ServerAzureADOnlyAuthenticationsDeleteOptionalParams): Promise, void>>; /** * Deletes an existing server Active Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param authenticationName The name of server azure active directory only authentication. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, authenticationName: AuthenticationName, options?: ServerAzureADOnlyAuthenticationsDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ export declare interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ServerAzureADOnlyAuthenticationsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerAzureADOnlyAuthenticationsGetResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ export declare interface ServerAzureADOnlyAuthenticationsListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type ServerAzureADOnlyAuthenticationsListByServerNextResponse = AzureADOnlyAuthListResult; /** Optional parameters. */ export declare interface ServerAzureADOnlyAuthenticationsListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ServerAzureADOnlyAuthenticationsListByServerResponse = AzureADOnlyAuthListResult; /** Interface representing a ServerBlobAuditingPolicies. */ export declare interface ServerBlobAuditingPolicies { /** * Lists auditing settings of a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ServerBlobAuditingPoliciesListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a server's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, options?: ServerBlobAuditingPoliciesGetOptionalParams): Promise; /** * Creates or updates a server's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters Properties of blob auditing policy * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: ServerBlobAuditingPolicy, options?: ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise, ServerBlobAuditingPoliciesCreateOrUpdateResponse>>; /** * Creates or updates a server's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters Properties of blob auditing policy * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, parameters: ServerBlobAuditingPolicy, options?: ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; /** Optional parameters. */ export declare interface ServerBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy; /** Optional parameters. */ export declare interface ServerBlobAuditingPoliciesListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult; /** Optional parameters. */ export declare interface ServerBlobAuditingPoliciesListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult; /** A server blob auditing policy. */ export declare interface ServerBlobAuditingPolicy extends ProxyResource { /** * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true * * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created. * * Diagnostic Settings URI format: * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview * * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) * */ isDevopsAuditEnabled?: boolean; /** Specifies the number of days to keep in the audit logs in the storage account. */ retentionDays?: number; /** * Specifies the Actions-Groups and Actions to audit. * * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: * * BATCH_COMPLETED_GROUP, * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, * FAILED_DATABASE_AUTHENTICATION_GROUP. * * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. * * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): * * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP * BACKUP_RESTORE_GROUP * DATABASE_LOGOUT_GROUP * DATABASE_OBJECT_CHANGE_GROUP * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP * DATABASE_OPERATION_GROUP * DATABASE_PERMISSION_CHANGE_GROUP * DATABASE_PRINCIPAL_CHANGE_GROUP * DATABASE_PRINCIPAL_IMPERSONATION_GROUP * DATABASE_ROLE_MEMBER_CHANGE_GROUP * FAILED_DATABASE_AUTHENTICATION_GROUP * SCHEMA_OBJECT_ACCESS_GROUP * SCHEMA_OBJECT_CHANGE_GROUP * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP * USER_CHANGE_PASSWORD_GROUP * BATCH_STARTED_GROUP * BATCH_COMPLETED_GROUP * DBCC_GROUP * DATABASE_OWNERSHIP_CHANGE_GROUP * DATABASE_CHANGE_GROUP * LEDGER_OPERATION_GROUP * * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. * * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). * * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: * SELECT * UPDATE * INSERT * DELETE * EXECUTE * RECEIVE * REFERENCES * * The general form for defining an action to be audited is: * {action} ON {object} BY {principal} * * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. * * For example: * SELECT on dbo.myTable by public * SELECT on DATABASE::myDatabase by public * SELECT on SCHEMA::mySchema by public * * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ auditActionsAndGroups?: string[]; /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ isStorageSecondaryKeyInUse?: boolean; /** * Specifies whether audit events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. * * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. * Note that for server level audit you should use the 'master' database as {databaseName}. * * Diagnostic Settings URI format: * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview * * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) * */ isAzureMonitorTargetEnabled?: boolean; /** * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ queueDelayMs?: number; /** Specifies whether Managed Identity is used to access blob storage */ isManagedIdentityInUse?: boolean; /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ state?: BlobAuditingPolicyState; /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ storageEndpoint?: string; /** * Specifies the identifier key of the auditing storage account. * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. * Prerequisites for using managed identity authentication: * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ storageAccountAccessKey?: string; /** Specifies the blob storage subscription Id. */ storageAccountSubscriptionId?: string; } /** A list of server auditing settings. */ export declare interface ServerBlobAuditingPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ServerBlobAuditingPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Server communication link. */ export declare interface ServerCommunicationLink extends ProxyResource { /** * Communication link location. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly location?: string; /** * Communication link kind. This property is used for Azure Portal metadata. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; /** * The state. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: string; /** The name of the partner server. */ partnerServer?: string; } /** A list of server communication links. */ export declare interface ServerCommunicationLinkListResult { /** The list of server communication links. */ value?: ServerCommunicationLink[]; } /** Interface representing a ServerCommunicationLinks. */ export declare interface ServerCommunicationLinks { /** * Gets a list of server communication links. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ServerCommunicationLinksListByServerOptionalParams): PagedAsyncIterableIterator; /** * Deletes a server communication link. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param communicationLinkName The name of the server communication link. * @param options The options parameters. */ delete(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: ServerCommunicationLinksDeleteOptionalParams): Promise; /** * Returns a server communication link. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param communicationLinkName The name of the server communication link. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: ServerCommunicationLinksGetOptionalParams): Promise; /** * Creates a server communication link. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param communicationLinkName The name of the server communication link. * @param parameters The required parameters for creating a server communication link. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, communicationLinkName: string, parameters: ServerCommunicationLink, options?: ServerCommunicationLinksCreateOrUpdateOptionalParams): Promise, ServerCommunicationLinksCreateOrUpdateResponse>>; /** * Creates a server communication link. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param communicationLinkName The name of the server communication link. * @param parameters The required parameters for creating a server communication link. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, communicationLinkName: string, parameters: ServerCommunicationLink, options?: ServerCommunicationLinksCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerCommunicationLinksCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunicationLink; /** Optional parameters. */ export declare interface ServerCommunicationLinksDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface ServerCommunicationLinksGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerCommunicationLinksGetResponse = ServerCommunicationLink; /** Optional parameters. */ export declare interface ServerCommunicationLinksListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ServerCommunicationLinksListByServerResponse = ServerCommunicationLinkListResult; /** A server configuration option */ export declare interface ServerConfigurationOption extends ProxyResource { /** Value of the server configuration option. */ serverConfigurationOptionValue?: number; /** * Provisioning state of server configuration option. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; } /** A list of server configuration options. */ export declare interface ServerConfigurationOptionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ServerConfigurationOption[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for ServerConfigurationOptionName. \ * {@link KnownServerConfigurationOptionName} can be used interchangeably with ServerConfigurationOptionName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **allowPolybaseExport** */ export declare type ServerConfigurationOptionName = string; /** Interface representing a ServerConfigurationOptions. */ export declare interface ServerConfigurationOptions { /** * Gets a list of managed instance server configuration options. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: ServerConfigurationOptionsListByManagedInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets managed instance server configuration option. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param serverConfigurationOptionName The name of the server configuration option. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, serverConfigurationOptionName: ServerConfigurationOptionName, options?: ServerConfigurationOptionsGetOptionalParams): Promise; /** * Updates managed instance server configuration option. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param serverConfigurationOptionName The name of the server configuration option. * @param parameters Server configuration option parameters. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, serverConfigurationOptionName: ServerConfigurationOptionName, parameters: ServerConfigurationOption, options?: ServerConfigurationOptionsCreateOrUpdateOptionalParams): Promise, ServerConfigurationOptionsCreateOrUpdateResponse>>; /** * Updates managed instance server configuration option. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param serverConfigurationOptionName The name of the server configuration option. * @param parameters Server configuration option parameters. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, serverConfigurationOptionName: ServerConfigurationOptionName, parameters: ServerConfigurationOption, options?: ServerConfigurationOptionsCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerConfigurationOptionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ServerConfigurationOptionsCreateOrUpdateResponse = ServerConfigurationOption; /** Optional parameters. */ export declare interface ServerConfigurationOptionsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerConfigurationOptionsGetResponse = ServerConfigurationOption; /** Optional parameters. */ export declare interface ServerConfigurationOptionsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByManagedInstanceNext operation. */ export declare type ServerConfigurationOptionsListByManagedInstanceNextResponse = ServerConfigurationOptionListResult; /** Optional parameters. */ export declare interface ServerConfigurationOptionsListByManagedInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByManagedInstance operation. */ export declare type ServerConfigurationOptionsListByManagedInstanceResponse = ServerConfigurationOptionListResult; /** Interface representing a ServerConnectionPolicies. */ export declare interface ServerConnectionPolicies { /** * Lists connection policy * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ServerConnectionPoliciesListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a server connection policy * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param connectionPolicyName The name of the connection policy. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, connectionPolicyName: ConnectionPolicyName, options?: ServerConnectionPoliciesGetOptionalParams): Promise; /** * Updates a server connection policy * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param connectionPolicyName The name of the connection policy. * @param parameters The required parameters for updating a server connection policy. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, connectionPolicyName: ConnectionPolicyName, parameters: ServerConnectionPolicy, options?: ServerConnectionPoliciesCreateOrUpdateOptionalParams): Promise, ServerConnectionPoliciesCreateOrUpdateResponse>>; /** * Updates a server connection policy * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param connectionPolicyName The name of the connection policy. * @param parameters The required parameters for updating a server connection policy. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, connectionPolicyName: ConnectionPolicyName, parameters: ServerConnectionPolicy, options?: ServerConnectionPoliciesCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerConnectionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy; /** Optional parameters. */ export declare interface ServerConnectionPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy; /** Optional parameters. */ export declare interface ServerConnectionPoliciesListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type ServerConnectionPoliciesListByServerNextResponse = ServerConnectionPolicyListResult; /** Optional parameters. */ export declare interface ServerConnectionPoliciesListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ServerConnectionPoliciesListByServerResponse = ServerConnectionPolicyListResult; /** A server connection policy */ export declare interface ServerConnectionPolicy extends ProxyResource { /** * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly location?: string; /** * Metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; /** The server connection type. */ connectionType?: ServerConnectionType; } /** A list of server connection policy objects. */ export declare interface ServerConnectionPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ServerConnectionPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for ServerConnectionType. \ * {@link KnownServerConnectionType} can be used interchangeably with ServerConnectionType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** \ * **Redirect** \ * **Proxy** */ export declare type ServerConnectionType = string; /** A server DevOps auditing settings. */ export declare interface ServerDevOpsAuditingSettings extends ProxyResource { /** * SystemData of ServerDevOpsAuditSettingsResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** * Specifies whether DevOps audit events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. * * When using REST API to configure DevOps audit, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should be also created. * * Diagnostic Settings URI format: * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview * * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) * */ isAzureMonitorTargetEnabled?: boolean; /** Specifies whether Managed Identity is used to access blob storage */ isManagedIdentityInUse?: boolean; /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ state?: BlobAuditingPolicyState; /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ storageEndpoint?: string; /** * Specifies the identifier key of the auditing storage account. * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. * Prerequisites for using managed identity authentication: * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ storageAccountAccessKey?: string; /** Specifies the blob storage subscription Id. */ storageAccountSubscriptionId?: string; } /** Interface representing a ServerDevOpsAuditSettings. */ export declare interface ServerDevOpsAuditSettings { /** * Lists DevOps audit settings of a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ServerDevOpsAuditSettingsListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a server's DevOps audit settings. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param devOpsAuditingSettingsName * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, devOpsAuditingSettingsName: DevOpsAuditingSettingsName, options?: ServerDevOpsAuditSettingsGetOptionalParams): Promise; /** * Creates or updates a server's DevOps audit settings. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param devOpsAuditingSettingsName * @param parameters Properties of DevOps audit settings * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, devOpsAuditingSettingsName: DevOpsAuditingSettingsName, parameters: ServerDevOpsAuditingSettings, options?: ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams): Promise, ServerDevOpsAuditSettingsCreateOrUpdateResponse>>; /** * Creates or updates a server's DevOps audit settings. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param devOpsAuditingSettingsName * @param parameters Properties of DevOps audit settings * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, devOpsAuditingSettingsName: DevOpsAuditingSettingsName, parameters: ServerDevOpsAuditingSettings, options?: ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings; /** Optional parameters. */ export declare interface ServerDevOpsAuditSettingsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerDevOpsAuditSettingsGetResponse = ServerDevOpsAuditingSettings; /** Optional parameters. */ export declare interface ServerDevOpsAuditSettingsListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult; /** Optional parameters. */ export declare interface ServerDevOpsAuditSettingsListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ServerDevOpsAuditSettingsListByServerResponse = ServerDevOpsAuditSettingsListResult; /** A list of server DevOps audit settings. */ export declare interface ServerDevOpsAuditSettingsListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ServerDevOpsAuditingSettings[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** A server DNS alias. */ export declare interface ServerDnsAlias extends ProxyResource { /** * The fully qualified DNS record for alias * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly azureDnsRecord?: string; } /** A server dns alias acquisition request. */ export declare interface ServerDnsAliasAcquisition { /** The id of the server alias that will be acquired to point to this server instead. */ oldServerDnsAliasId: string; } /** Interface representing a ServerDnsAliases. */ export declare interface ServerDnsAliases { /** * Gets a list of server DNS aliases for a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server that the alias is pointing to. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ServerDnsAliasesListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a server DNS alias. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server that the alias is pointing to. * @param dnsAliasName The name of the server dns alias. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: ServerDnsAliasesGetOptionalParams): Promise; /** * Creates a server DNS alias. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server that the alias is pointing to. * @param dnsAliasName The name of the server dns alias. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: ServerDnsAliasesCreateOrUpdateOptionalParams): Promise, ServerDnsAliasesCreateOrUpdateResponse>>; /** * Creates a server DNS alias. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server that the alias is pointing to. * @param dnsAliasName The name of the server dns alias. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: ServerDnsAliasesCreateOrUpdateOptionalParams): Promise; /** * Deletes the server DNS alias with the given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server that the alias is pointing to. * @param dnsAliasName The name of the server dns alias. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: ServerDnsAliasesDeleteOptionalParams): Promise, void>>; /** * Deletes the server DNS alias with the given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server that the alias is pointing to. * @param dnsAliasName The name of the server dns alias. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: ServerDnsAliasesDeleteOptionalParams): Promise; /** * Acquires server DNS alias from another server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server that the alias is pointing to. * @param dnsAliasName The name of the server dns alias. * @param parameters A server dns alias acquisition request. * @param options The options parameters. */ beginAcquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: ServerDnsAliasAcquisition, options?: ServerDnsAliasesAcquireOptionalParams): Promise, ServerDnsAliasesAcquireResponse>>; /** * Acquires server DNS alias from another server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server that the alias is pointing to. * @param dnsAliasName The name of the server dns alias. * @param parameters A server dns alias acquisition request. * @param options The options parameters. */ beginAcquireAndWait(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: ServerDnsAliasAcquisition, options?: ServerDnsAliasesAcquireOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerDnsAliasesAcquireOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the acquire operation. */ export declare type ServerDnsAliasesAcquireResponse = ServerDnsAlias; /** Optional parameters. */ export declare interface ServerDnsAliasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias; /** Optional parameters. */ export declare interface ServerDnsAliasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerDnsAliasesGetResponse = ServerDnsAlias; /** Optional parameters. */ export declare interface ServerDnsAliasesListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult; /** Optional parameters. */ export declare interface ServerDnsAliasesListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult; /** A list of server DNS aliases. */ export declare interface ServerDnsAliasListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ServerDnsAlias[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Properties of a active directory administrator. */ export declare interface ServerExternalAdministrator { /** Type of the sever administrator. */ administratorType?: AdministratorType; /** Principal Type of the sever administrator. */ principalType?: PrincipalType; /** Login name of the server administrator. */ login?: string; /** SID (object ID) of the server administrator. */ sid?: string; /** Tenant ID of the administrator. */ tenantId?: string; /** Azure Active Directory only Authentication enabled. */ azureADOnlyAuthentication?: boolean; } /** Server info for the server trust group. */ export declare interface ServerInfo { /** Server Id. */ serverId: string; } /** A server key. */ export declare interface ServerKey extends ProxyResource { /** * Kind of encryption protector. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kind?: string; /** * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly location?: string; /** * Subregion of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly subregion?: string; /** The server key type like 'ServiceManaged', 'AzureKeyVault'. */ serverKeyType?: ServerKeyType; /** The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. */ uri?: string; /** * Thumbprint of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly thumbprint?: string; /** * The server key creation date. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationDate?: Date; /** * Key auto rotation opt-in flag. Either true or false. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly autoRotationEnabled?: boolean; } /** A list of server keys. */ export declare interface ServerKeyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ServerKey[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ServerKeys. */ export declare interface ServerKeys { /** * Gets a list of server keys. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ServerKeysListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a server key. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param keyName The name of the server key to be retrieved. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, keyName: string, options?: ServerKeysGetOptionalParams): Promise; /** * Creates or updates a server key. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param keyName The name of the server key to be operated on (updated or created). The key name is * required to be in the format of 'vault_key_version'. For example, if the keyId is * https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion, then the server key name * should be formatted as: YourVaultName_YourKeyName_YourKeyVersion * @param parameters The requested server key resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, keyName: string, parameters: ServerKey, options?: ServerKeysCreateOrUpdateOptionalParams): Promise, ServerKeysCreateOrUpdateResponse>>; /** * Creates or updates a server key. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param keyName The name of the server key to be operated on (updated or created). The key name is * required to be in the format of 'vault_key_version'. For example, if the keyId is * https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion, then the server key name * should be formatted as: YourVaultName_YourKeyName_YourKeyVersion * @param parameters The requested server key resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, keyName: string, parameters: ServerKey, options?: ServerKeysCreateOrUpdateOptionalParams): Promise; /** * Deletes the server key with the given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param keyName The name of the server key to be deleted. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, keyName: string, options?: ServerKeysDeleteOptionalParams): Promise, void>>; /** * Deletes the server key with the given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param keyName The name of the server key to be deleted. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, keyName: string, options?: ServerKeysDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerKeysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ServerKeysCreateOrUpdateResponse = ServerKey; /** Optional parameters. */ export declare interface ServerKeysDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ServerKeysGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerKeysGetResponse = ServerKey; /** Optional parameters. */ export declare interface ServerKeysListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type ServerKeysListByServerNextResponse = ServerKeyListResult; /** Optional parameters. */ export declare interface ServerKeysListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ServerKeysListByServerResponse = ServerKeyListResult; /** * Defines values for ServerKeyType. \ * {@link KnownServerKeyType} can be used interchangeably with ServerKeyType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **ServiceManaged** \ * **AzureKeyVault** */ export declare type ServerKeyType = string; /** A list of servers. */ export declare interface ServerListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: Server[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for ServerNetworkAccessFlag. \ * {@link KnownServerNetworkAccessFlag} can be used interchangeably with ServerNetworkAccessFlag, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Enabled** \ * **Disabled** */ export declare type ServerNetworkAccessFlag = string; /** A server operation. */ export declare interface ServerOperation extends ProxyResource { /** * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operation?: string; /** * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operationFriendlyName?: string; /** * The percentage of the operation completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly percentComplete?: number; /** * The name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serverName?: string; /** * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: Date; /** * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: ManagementOperationState; /** * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorCode?: number; /** * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorDescription?: string; /** * The operation error severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorSeverity?: number; /** * Whether or not the error is a user error. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isUserError?: boolean; /** * The estimated completion time of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly estimatedCompletionTime?: Date; /** * The operation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly description?: string; /** * Whether the operation can be cancelled. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isCancellable?: boolean; } /** The response to a list server operations request */ export declare interface ServerOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ServerOperation[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ServerOperations. */ export declare interface ServerOperations { /** * Gets a list of operations performed on the server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ServerOperationsListByServerOptionalParams): PagedAsyncIterableIterator; } /** Optional parameters. */ export declare interface ServerOperationsListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type ServerOperationsListByServerNextResponse = ServerOperationListResult; /** Optional parameters. */ export declare interface ServerOperationsListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ServerOperationsListByServerResponse = ServerOperationListResult; /** A private endpoint connection under a server */ export declare interface ServerPrivateEndpointConnection { /** * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** * Private endpoint connection properties * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly properties?: PrivateEndpointConnectionProperties; } /** * Defines values for ServerPublicNetworkAccessFlag. \ * {@link KnownServerPublicNetworkAccessFlag} can be used interchangeably with ServerPublicNetworkAccessFlag, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Enabled** \ * **Disabled** \ * **SecuredByPerimeter** */ export declare type ServerPublicNetworkAccessFlag = string; /** Interface representing a Servers. */ export declare interface Servers { /** * Gets a list of all servers in the subscription. * @param options The options parameters. */ list(options?: ServersListOptionalParams): PagedAsyncIterableIterator; /** * Gets a list of servers in a resource groups. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param options The options parameters. */ listByResourceGroup(resourceGroupName: string, options?: ServersListByResourceGroupOptionalParams): PagedAsyncIterableIterator; /** * Determines whether a resource can be created with the specified name. * @param parameters The name availability request parameters. * @param options The options parameters. */ checkNameAvailability(parameters: CheckNameAvailabilityRequest, options?: ServersCheckNameAvailabilityOptionalParams): Promise; /** * Gets a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, options?: ServersGetOptionalParams): Promise; /** * Creates or updates a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters The requested server resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: Server, options?: ServersCreateOrUpdateOptionalParams): Promise, ServersCreateOrUpdateResponse>>; /** * Creates or updates a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters The requested server resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, parameters: Server, options?: ServersCreateOrUpdateOptionalParams): Promise; /** * Deletes a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams): Promise, void>>; /** * Deletes a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams): Promise; /** * Updates a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters The requested server resource state. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, serverName: string, parameters: ServerUpdate, options?: ServersUpdateOptionalParams): Promise, ServersUpdateResponse>>; /** * Updates a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters The requested server resource state. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, serverName: string, parameters: ServerUpdate, options?: ServersUpdateOptionalParams): Promise; /** * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters The database import request parameters. * @param options The options parameters. */ beginImportDatabase(resourceGroupName: string, serverName: string, parameters: ImportNewDatabaseDefinition, options?: ServersImportDatabaseOptionalParams): Promise, ServersImportDatabaseResponse>>; /** * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters The database import request parameters. * @param options The options parameters. */ beginImportDatabaseAndWait(resourceGroupName: string, serverName: string, parameters: ImportNewDatabaseDefinition, options?: ServersImportDatabaseOptionalParams): Promise; /** * Refresh external governance enablement status. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ beginRefreshStatus(resourceGroupName: string, serverName: string, options?: ServersRefreshStatusOptionalParams): Promise, ServersRefreshStatusResponse>>; /** * Refresh external governance enablement status. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ beginRefreshStatusAndWait(resourceGroupName: string, serverName: string, options?: ServersRefreshStatusOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServersCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the checkNameAvailability operation. */ export declare type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; /** Optional parameters. */ export declare interface ServersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ServersCreateOrUpdateResponse = Server; /** Optional parameters. */ export declare interface ServersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Interface representing a ServerSecurityAlertPolicies. */ export declare interface ServerSecurityAlertPolicies { /** * Get the server's threat detection policies. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ServerSecurityAlertPoliciesListByServerOptionalParams): PagedAsyncIterableIterator; /** * Get a server's security alert policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param securityAlertPolicyName The name of the security alert policy. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyName, options?: ServerSecurityAlertPoliciesGetOptionalParams): Promise; /** * Creates or updates a threat detection policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param securityAlertPolicyName The name of the threat detection policy. * @param parameters The server security alert policy. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise, ServerSecurityAlertPoliciesCreateOrUpdateResponse>>; /** * Creates or updates a threat detection policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param securityAlertPolicyName The name of the threat detection policy. * @param parameters The server security alert policy. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy; /** Optional parameters. */ export declare interface ServerSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy; /** Optional parameters. */ export declare interface ServerSecurityAlertPoliciesListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult; /** Optional parameters. */ export declare interface ServerSecurityAlertPoliciesListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; /** A server security alert policy. */ export declare interface ServerSecurityAlertPolicy extends ProxyResource { /** * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ state?: SecurityAlertsPolicyState; /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ disabledAlerts?: string[]; /** Specifies an array of e-mail addresses to which the alert is sent. */ emailAddresses?: string[]; /** Specifies that the alert is sent to the account administrators. */ emailAccountAdmins?: boolean; /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ storageEndpoint?: string; /** Specifies the identifier key of the Threat Detection audit storage account. */ storageAccountAccessKey?: string; /** Specifies the number of days to keep in the Threat Detection audit logs. */ retentionDays?: number; /** * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationTime?: Date; } /** Optional parameters. */ export declare interface ServersGetOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } /** Contains response data for the get operation. */ export declare type ServersGetResponse = Server; /** Optional parameters. */ export declare interface ServersImportDatabaseOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the importDatabase operation. */ export declare type ServersImportDatabaseResponse = ImportExportOperationResult; /** Optional parameters. */ export declare interface ServersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByResourceGroupNext operation. */ export declare type ServersListByResourceGroupNextResponse = ServerListResult; /** Optional parameters. */ export declare interface ServersListByResourceGroupOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } /** Contains response data for the listByResourceGroup operation. */ export declare type ServersListByResourceGroupResponse = ServerListResult; /** Optional parameters. */ export declare interface ServersListNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listNext operation. */ export declare type ServersListNextResponse = ServerListResult; /** Optional parameters. */ export declare interface ServersListOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } /** Contains response data for the list operation. */ export declare type ServersListResponse = ServerListResult; /** Optional parameters. */ export declare interface ServersRefreshStatusOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the refreshStatus operation. */ export declare type ServersRefreshStatusResponse = RefreshExternalGovernanceStatusOperationResult; /** Optional parameters. */ export declare interface ServersUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type ServersUpdateResponse = Server; /** Server trust certificate imported from box to enable connection between box and Sql Managed Instance. */ export declare interface ServerTrustCertificate extends ProxyResource { /** The certificate public blob */ publicBlob?: string; /** * The certificate thumbprint * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly thumbprint?: string; /** * The certificate name * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly certificateName?: string; } /** Interface representing a ServerTrustCertificates. */ export declare interface ServerTrustCertificates { /** * Gets a list of server trust certificates that were uploaded from box to the given Sql Managed * Instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ServerTrustCertificatesListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a server trust certificate that was uploaded from box to Sql Managed Instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param certificateName Name of of the certificate to get. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, certificateName: string, options?: ServerTrustCertificatesGetOptionalParams): Promise; /** * Uploads a server trust certificate from box to Sql Managed Instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param certificateName Name of of the certificate to upload. * @param parameters The server trust certificate info. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, certificateName: string, parameters: ServerTrustCertificate, options?: ServerTrustCertificatesCreateOrUpdateOptionalParams): Promise, ServerTrustCertificatesCreateOrUpdateResponse>>; /** * Uploads a server trust certificate from box to Sql Managed Instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param certificateName Name of of the certificate to upload. * @param parameters The server trust certificate info. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, certificateName: string, parameters: ServerTrustCertificate, options?: ServerTrustCertificatesCreateOrUpdateOptionalParams): Promise; /** * Deletes a server trust certificate that was uploaded from box to Sql Managed Instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param certificateName Name of of the certificate to delete. * @param options The options parameters. */ beginDelete(resourceGroupName: string, managedInstanceName: string, certificateName: string, options?: ServerTrustCertificatesDeleteOptionalParams): Promise, void>>; /** * Deletes a server trust certificate that was uploaded from box to Sql Managed Instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param certificateName Name of of the certificate to delete. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, certificateName: string, options?: ServerTrustCertificatesDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerTrustCertificatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ServerTrustCertificatesCreateOrUpdateResponse = ServerTrustCertificate; /** Optional parameters. */ export declare interface ServerTrustCertificatesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ServerTrustCertificatesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerTrustCertificatesGetResponse = ServerTrustCertificate; /** Optional parameters. */ export declare interface ServerTrustCertificatesListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type ServerTrustCertificatesListByInstanceNextResponse = ServerTrustCertificatesListResult; /** Optional parameters. */ export declare interface ServerTrustCertificatesListByInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstance operation. */ export declare type ServerTrustCertificatesListByInstanceResponse = ServerTrustCertificatesListResult; /** A list of server trust certificates in instance. */ export declare interface ServerTrustCertificatesListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ServerTrustCertificate[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** A server trust group. */ export declare interface ServerTrustGroup extends ProxyResource { /** Group members information for the server trust group. */ groupMembers?: ServerInfo[]; /** Trust scope of the server trust group. */ trustScopes?: ServerTrustGroupPropertiesTrustScopesItem[]; } /** A list of server trust groups. */ export declare interface ServerTrustGroupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ServerTrustGroup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for ServerTrustGroupPropertiesTrustScopesItem. \ * {@link KnownServerTrustGroupPropertiesTrustScopesItem} can be used interchangeably with ServerTrustGroupPropertiesTrustScopesItem, * this enum contains the known values that the service supports. * ### Known values supported by the service * **GlobalTransactions** \ * **ServiceBroker** */ export declare type ServerTrustGroupPropertiesTrustScopesItem = string; /** Interface representing a ServerTrustGroups. */ export declare interface ServerTrustGroups { /** * Lists a server trust group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param options The options parameters. */ listByLocation(resourceGroupName: string, locationName: string, options?: ServerTrustGroupsListByLocationOptionalParams): PagedAsyncIterableIterator; /** * Gets a server trust groups by instance name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ServerTrustGroupsListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets a server trust group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param serverTrustGroupName The name of the server trust group. * @param options The options parameters. */ get(resourceGroupName: string, locationName: string, serverTrustGroupName: string, options?: ServerTrustGroupsGetOptionalParams): Promise; /** * Creates or updates a server trust group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param serverTrustGroupName The name of the server trust group. * @param parameters The server trust group parameters. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, locationName: string, serverTrustGroupName: string, parameters: ServerTrustGroup, options?: ServerTrustGroupsCreateOrUpdateOptionalParams): Promise, ServerTrustGroupsCreateOrUpdateResponse>>; /** * Creates or updates a server trust group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param serverTrustGroupName The name of the server trust group. * @param parameters The server trust group parameters. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, locationName: string, serverTrustGroupName: string, parameters: ServerTrustGroup, options?: ServerTrustGroupsCreateOrUpdateOptionalParams): Promise; /** * Deletes a server trust group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param serverTrustGroupName The name of the server trust group. * @param options The options parameters. */ beginDelete(resourceGroupName: string, locationName: string, serverTrustGroupName: string, options?: ServerTrustGroupsDeleteOptionalParams): Promise, void>>; /** * Deletes a server trust group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param locationName The name of the region where the resource is located. * @param serverTrustGroupName The name of the server trust group. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, locationName: string, serverTrustGroupName: string, options?: ServerTrustGroupsDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerTrustGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup; /** Optional parameters. */ export declare interface ServerTrustGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface ServerTrustGroupsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerTrustGroupsGetResponse = ServerTrustGroup; /** Optional parameters. */ export declare interface ServerTrustGroupsListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult; /** Optional parameters. */ export declare interface ServerTrustGroupsListByInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstance operation. */ export declare type ServerTrustGroupsListByInstanceResponse = ServerTrustGroupListResult; /** Optional parameters. */ export declare interface ServerTrustGroupsListByLocationNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByLocationNext operation. */ export declare type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult; /** Optional parameters. */ export declare interface ServerTrustGroupsListByLocationOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByLocation operation. */ export declare type ServerTrustGroupsListByLocationResponse = ServerTrustGroupListResult; /** An update request for an Azure SQL Database server. */ export declare interface ServerUpdate { /** Server identity */ identity?: ResourceIdentity; /** Resource tags. */ tags?: { [propertyName: string]: string; }; /** Administrator username for the server. Once created it cannot be changed. */ administratorLogin?: string; /** The administrator login password (required for server creation). */ administratorLoginPassword?: string; /** The version of the server. */ version?: string; /** * The state of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: string; /** * The fully qualified domain name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly fullyQualifiedDomainName?: string; /** * List of private endpoint connections on a server * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ minimalTlsVersion?: string; /** Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter' */ publicNetworkAccess?: ServerPublicNetworkAccessFlag; /** * Whether or not existing server has a workspace created and if it allows connection from workspace * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly workspaceFeature?: ServerWorkspaceFeature; /** The resource id of a user assigned identity to be used by default. */ primaryUserAssignedIdentityId?: string; /** The Client id used for cross tenant CMK scenario */ federatedClientId?: string; /** A CMK URI of the key to use for encryption. */ keyId?: string; /** The Azure Active Directory administrator of the server. This can only be used at server create time. If used for server update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ administrators?: ServerExternalAdministrator; /** Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; /** * Status of external governance. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly externalGovernanceStatus?: ExternalGovernanceStatus; } /** Represents server metrics. */ export declare interface ServerUsage { /** * Name of the server usage metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The name of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly resourceName?: string; /** * The metric display name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly displayName?: string; /** * The current value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentValue?: number; /** * The current limit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly limit?: number; /** * The units of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: string; /** * The next reset time for the metric (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextResetTime?: Date; } /** Represents the response to a list server metrics request. */ export declare interface ServerUsageListResult { /** The list of server metrics for the server. */ value: ServerUsage[]; } /** Interface representing a ServerUsages. */ export declare interface ServerUsages { /** * Returns server usages. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ServerUsagesListByServerOptionalParams): PagedAsyncIterableIterator; } /** Optional parameters. */ export declare interface ServerUsagesListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ServerUsagesListByServerResponse = ServerUsageListResult; /** The server capability */ export declare interface ServerVersionCapability { /** * The server version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The list of supported database editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedEditions?: EditionCapability[]; /** * The list of supported elastic pool editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedElasticPoolEditions?: ElasticPoolEditionCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** A server vulnerability assessment. */ export declare interface ServerVulnerabilityAssessment extends ProxyResource { /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). */ storageContainerPath?: string; /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ storageContainerSasKey?: string; /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ storageAccountAccessKey?: string; /** The recurring scans settings */ recurringScans?: VulnerabilityAssessmentRecurringScansProperties; } /** A list of the server's vulnerability assessments. */ export declare interface ServerVulnerabilityAssessmentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: ServerVulnerabilityAssessment[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a ServerVulnerabilityAssessments. */ export declare interface ServerVulnerabilityAssessments { /** * Lists the vulnerability assessment policies associated with a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ServerVulnerabilityAssessmentsListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets the server's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server for which the vulnerability assessment is defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: ServerVulnerabilityAssessmentsGetOptionalParams): Promise; /** * 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 * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server for which the vulnerability assessment is defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param parameters The requested resource. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, parameters: ServerVulnerabilityAssessment, options?: ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams): Promise; /** * Removes the server's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server for which the vulnerability assessment is defined. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ delete(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: ServerVulnerabilityAssessmentsDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ export declare interface ServerVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface ServerVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ export declare interface ServerVulnerabilityAssessmentsListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult; /** Optional parameters. */ export declare interface ServerVulnerabilityAssessmentsListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult; /** * Defines values for ServerWorkspaceFeature. \ * {@link KnownServerWorkspaceFeature} can be used interchangeably with ServerWorkspaceFeature, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Connected** \ * **Disconnected** */ export declare type ServerWorkspaceFeature = string; /** Represents a database service objective. */ export declare interface ServiceObjective extends ProxyResource { /** * The name for the service objective. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serviceObjectiveName?: string; /** * Gets whether the service level objective is the default service objective. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isDefault?: boolean; /** * Gets whether the service level objective is a system service objective. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isSystem?: boolean; /** * The description for the service level objective. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly description?: string; /** * Gets whether the service level objective is enabled. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly enabled?: boolean; } /** The service objectives capability. */ export declare interface ServiceObjectiveCapability { /** * The unique ID of the service objective. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** * The service objective name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The list of supported maximum database sizes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedMaxSizes?: MaxSizeRangeCapability[]; /** * The performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly performanceLevel?: PerformanceLevelCapability; /** * The sku. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sku?: Sku; /** * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** * The included (free) max size. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly includedMaxSize?: MaxSizeCapability; /** * Whether or not zone redundancy is supported for the service objective. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly zoneRedundant?: boolean; /** * Supported time range for auto pause delay * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedAutoPauseDelay?: AutoPauseDelayTimeRange; /** * List of supported min capacities * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedMinCapacities?: MinCapacityCapability[]; /** * The compute model * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly computeModel?: string; /** * List of supported maintenance configurations * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** Represents the response to a get database service objectives request. */ export declare interface ServiceObjectiveListResult { /** The list of database service objectives. */ value: ServiceObjective[]; } /** * Defines values for ServiceObjectiveName. \ * {@link KnownServiceObjectiveName} can be used interchangeably with ServiceObjectiveName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **System** \ * **System0** \ * **System1** \ * **System2** \ * **System3** \ * **System4** \ * **System2L** \ * **System3L** \ * **System4L** \ * **Free** \ * **Basic** \ * **S0** \ * **S1** \ * **S2** \ * **S3** \ * **S4** \ * **S6** \ * **S7** \ * **S9** \ * **S12** \ * **P1** \ * **P2** \ * **P3** \ * **P4** \ * **P6** \ * **P11** \ * **P15** \ * **PRS1** \ * **PRS2** \ * **PRS4** \ * **PRS6** \ * **DW100** \ * **DW200** \ * **DW300** \ * **DW400** \ * **DW500** \ * **DW600** \ * **DW1000** \ * **DW1200** \ * **DW1000c** \ * **DW1500** \ * **DW1500c** \ * **DW2000** \ * **DW2000c** \ * **DW3000** \ * **DW2500c** \ * **DW3000c** \ * **DW6000** \ * **DW5000c** \ * **DW6000c** \ * **DW7500c** \ * **DW10000c** \ * **DW15000c** \ * **DW30000c** \ * **DS100** \ * **DS200** \ * **DS300** \ * **DS400** \ * **DS500** \ * **DS600** \ * **DS1000** \ * **DS1200** \ * **DS1500** \ * **DS2000** \ * **ElasticPool** */ export declare type ServiceObjectiveName = string; /** Interface representing a ServiceObjectives. */ export declare interface ServiceObjectives { /** * Returns database service objectives. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: ServiceObjectivesListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a database service objective. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param serviceObjectiveName The name of the service objective to retrieve. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options?: ServiceObjectivesGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface ServiceObjectivesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type ServiceObjectivesGetResponse = ServiceObjective; /** Optional parameters. */ export declare interface ServiceObjectivesListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type ServiceObjectivesListByServerResponse = ServiceObjectiveListResult; /** The managed instance's service principal configuration for a resource. */ export declare interface ServicePrincipal { /** * The Azure Active Directory application object id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly principalId?: string; /** * The Azure Active Directory application client id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly clientId?: string; /** * The Azure Active Directory tenant id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly tenantId?: string; /** Service principal type. */ type?: ServicePrincipalType; } /** * Defines values for ServicePrincipalType. \ * {@link KnownServicePrincipalType} can be used interchangeably with ServicePrincipalType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **None** \ * **SystemAssigned** */ export declare type ServicePrincipalType = string; /** * Defines values for ShortTermRetentionPolicyName. \ * {@link KnownShortTermRetentionPolicyName} can be used interchangeably with ShortTermRetentionPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **default** */ export declare type ShortTermRetentionPolicyName = string; /** An ARM Resource SKU. */ export declare interface Sku { /** The name of the SKU, typically, a letter + Number code, e.g. P3. */ name: string; /** The tier or edition of the particular SKU, e.g. Basic, Premium. */ tier?: string; /** Size of the particular SKU */ size?: string; /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ family?: string; /** Capacity of the particular SKU. */ capacity?: number; } /** A Slo Usage Metric. */ export declare interface SloUsageMetric { /** * The serviceLevelObjective for SLO usage metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serviceLevelObjective?: ServiceObjectiveName; /** * The serviceLevelObjectiveId for SLO usage metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serviceLevelObjectiveId?: string; /** * Gets or sets inRangeTimeRatio for SLO usage metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly inRangeTimeRatio?: number; } /** Interface representing a SqlAgent. */ export declare interface SqlAgent { /** * Gets current instance sql agent configuration. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, options?: SqlAgentGetOptionalParams): Promise; /** * Puts new sql agent configuration to instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param parameters A recoverable managed database resource. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: SqlAgentConfiguration, options?: SqlAgentCreateOrUpdateOptionalParams): Promise; } /** A recoverable managed database resource. */ export declare interface SqlAgentConfiguration extends ProxyResource { /** The state of Sql Agent. */ state?: SqlAgentConfigurationPropertiesState; } /** * Defines values for SqlAgentConfigurationPropertiesState. \ * {@link KnownSqlAgentConfigurationPropertiesState} can be used interchangeably with SqlAgentConfigurationPropertiesState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Enabled** \ * **Disabled** */ export declare type SqlAgentConfigurationPropertiesState = string; /** Optional parameters. */ export declare interface SqlAgentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration; /** Optional parameters. */ export declare interface SqlAgentGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type SqlAgentGetResponse = SqlAgentConfiguration; export declare class SqlManagementClient extends coreClient.ServiceClient { $host: string; subscriptionId: string; /** * Initializes a new instance of the SqlManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. * @param subscriptionId The subscription ID that identifies an Azure subscription. * @param options The parameter options */ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: SqlManagementClientOptionalParams); dataMaskingPolicies: DataMaskingPolicies; dataMaskingRules: DataMaskingRules; geoBackupPolicies: GeoBackupPolicies; databases: Databases; elasticPools: ElasticPools; serverCommunicationLinks: ServerCommunicationLinks; serviceObjectives: ServiceObjectives; elasticPoolActivities: ElasticPoolActivities; elasticPoolDatabaseActivities: ElasticPoolDatabaseActivities; serverUsages: ServerUsages; databaseAdvisors: DatabaseAdvisors; databaseAutomaticTuningOperations: DatabaseAutomaticTuningOperations; databaseColumns: DatabaseColumns; databaseRecommendedActions: DatabaseRecommendedActions; databaseSchemas: DatabaseSchemas; databaseSecurityAlertPolicies: DatabaseSecurityAlertPolicies; databaseTables: DatabaseTables; databaseVulnerabilityAssessmentRuleBaselines: DatabaseVulnerabilityAssessmentRuleBaselines; databaseVulnerabilityAssessments: DatabaseVulnerabilityAssessments; databaseVulnerabilityAssessmentScans: DatabaseVulnerabilityAssessmentScans; dataWarehouseUserActivitiesOperations: DataWarehouseUserActivitiesOperations; deletedServers: DeletedServers; elasticPoolOperations: ElasticPoolOperations; encryptionProtectors: EncryptionProtectors; failoverGroups: FailoverGroups; firewallRules: FirewallRules; instancePools: InstancePools; jobAgents: JobAgents; jobCredentials: JobCredentials; jobExecutions: JobExecutions; jobs: Jobs; jobStepExecutions: JobStepExecutions; jobSteps: JobSteps; jobTargetExecutions: JobTargetExecutions; jobTargetGroups: JobTargetGroups; jobVersions: JobVersions; capabilities: Capabilities; longTermRetentionPolicies: LongTermRetentionPolicies; maintenanceWindowOptionsOperations: MaintenanceWindowOptionsOperations; maintenanceWindowsOperations: MaintenanceWindowsOperations; managedBackupShortTermRetentionPolicies: ManagedBackupShortTermRetentionPolicies; managedDatabaseColumns: ManagedDatabaseColumns; managedDatabaseQueries: ManagedDatabaseQueries; managedDatabaseSchemas: ManagedDatabaseSchemas; managedDatabaseSecurityAlertPolicies: ManagedDatabaseSecurityAlertPolicies; managedDatabaseSecurityEvents: ManagedDatabaseSecurityEvents; managedDatabaseTables: ManagedDatabaseTables; managedDatabaseTransparentDataEncryption: ManagedDatabaseTransparentDataEncryption; managedDatabaseVulnerabilityAssessmentRuleBaselines: ManagedDatabaseVulnerabilityAssessmentRuleBaselines; managedDatabaseVulnerabilityAssessments: ManagedDatabaseVulnerabilityAssessments; managedDatabaseVulnerabilityAssessmentScans: ManagedDatabaseVulnerabilityAssessmentScans; managedInstanceAdministrators: ManagedInstanceAdministrators; managedInstanceAzureADOnlyAuthentications: ManagedInstanceAzureADOnlyAuthentications; managedInstanceEncryptionProtectors: ManagedInstanceEncryptionProtectors; managedInstanceKeys: ManagedInstanceKeys; managedInstanceLongTermRetentionPolicies: ManagedInstanceLongTermRetentionPolicies; managedInstanceOperations: ManagedInstanceOperations; managedInstancePrivateEndpointConnections: ManagedInstancePrivateEndpointConnections; managedInstancePrivateLinkResources: ManagedInstancePrivateLinkResources; managedInstanceTdeCertificates: ManagedInstanceTdeCertificates; managedInstanceVulnerabilityAssessments: ManagedInstanceVulnerabilityAssessments; managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies; managedServerSecurityAlertPolicies: ManagedServerSecurityAlertPolicies; operations: Operations; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; recoverableManagedDatabases: RecoverableManagedDatabases; restorePoints: RestorePoints; serverAdvisors: ServerAdvisors; serverAutomaticTuningOperations: ServerAutomaticTuningOperations; serverAzureADAdministrators: ServerAzureADAdministrators; serverAzureADOnlyAuthentications: ServerAzureADOnlyAuthentications; serverDevOpsAuditSettings: ServerDevOpsAuditSettings; serverDnsAliases: ServerDnsAliases; serverKeys: ServerKeys; serverOperations: ServerOperations; serverSecurityAlertPolicies: ServerSecurityAlertPolicies; serverTrustGroups: ServerTrustGroups; serverVulnerabilityAssessments: ServerVulnerabilityAssessments; sqlAgent: SqlAgent; subscriptionUsages: SubscriptionUsages; syncAgents: SyncAgents; syncGroups: SyncGroups; syncMembers: SyncMembers; tdeCertificates: TdeCertificates; timeZones: TimeZones; virtualNetworkRules: VirtualNetworkRules; workloadClassifiers: WorkloadClassifiers; workloadGroups: WorkloadGroups; backupShortTermRetentionPolicies: BackupShortTermRetentionPolicies; databaseExtensionsOperations: DatabaseExtensionsOperations; databaseOperations: DatabaseOperations; databaseUsages: DatabaseUsages; ledgerDigestUploadsOperations: LedgerDigestUploadsOperations; outboundFirewallRules: OutboundFirewallRules; usages: Usages; longTermRetentionBackups: LongTermRetentionBackups; longTermRetentionManagedInstanceBackups: LongTermRetentionManagedInstanceBackups; restorableDroppedManagedDatabases: RestorableDroppedManagedDatabases; serverConnectionPolicies: ServerConnectionPolicies; distributedAvailabilityGroups: DistributedAvailabilityGroups; serverTrustCertificates: ServerTrustCertificates; iPv6FirewallRules: IPv6FirewallRules; endpointCertificates: EndpointCertificates; managedDatabaseSensitivityLabels: ManagedDatabaseSensitivityLabels; managedDatabaseRecommendedSensitivityLabels: ManagedDatabaseRecommendedSensitivityLabels; sensitivityLabels: SensitivityLabels; recommendedSensitivityLabels: RecommendedSensitivityLabels; serverBlobAuditingPolicies: ServerBlobAuditingPolicies; databaseBlobAuditingPolicies: DatabaseBlobAuditingPolicies; extendedDatabaseBlobAuditingPolicies: ExtendedDatabaseBlobAuditingPolicies; extendedServerBlobAuditingPolicies: ExtendedServerBlobAuditingPolicies; databaseAdvancedThreatProtectionSettings: DatabaseAdvancedThreatProtectionSettings; serverAdvancedThreatProtectionSettings: ServerAdvancedThreatProtectionSettings; managedServerDnsAliases: ManagedServerDnsAliases; databaseSqlVulnerabilityAssessmentBaselines: DatabaseSqlVulnerabilityAssessmentBaselines; databaseSqlVulnerabilityAssessmentExecuteScan: DatabaseSqlVulnerabilityAssessmentExecuteScan; databaseSqlVulnerabilityAssessmentRuleBaselines: DatabaseSqlVulnerabilityAssessmentRuleBaselines; databaseSqlVulnerabilityAssessmentScanResult: DatabaseSqlVulnerabilityAssessmentScanResult; databaseSqlVulnerabilityAssessmentScans: DatabaseSqlVulnerabilityAssessmentScans; databaseSqlVulnerabilityAssessmentsSettings: DatabaseSqlVulnerabilityAssessmentsSettings; managedDatabaseAdvancedThreatProtectionSettings: ManagedDatabaseAdvancedThreatProtectionSettings; managedInstanceAdvancedThreatProtectionSettings: ManagedInstanceAdvancedThreatProtectionSettings; replicationLinks: ReplicationLinks; sqlVulnerabilityAssessmentBaseline: SqlVulnerabilityAssessmentBaseline; sqlVulnerabilityAssessmentBaselines: SqlVulnerabilityAssessmentBaselines; sqlVulnerabilityAssessmentExecuteScan: SqlVulnerabilityAssessmentExecuteScan; sqlVulnerabilityAssessmentRuleBaseline: SqlVulnerabilityAssessmentRuleBaseline; sqlVulnerabilityAssessmentRuleBaselines: SqlVulnerabilityAssessmentRuleBaselines; sqlVulnerabilityAssessmentScanResult: SqlVulnerabilityAssessmentScanResult; sqlVulnerabilityAssessmentScans: SqlVulnerabilityAssessmentScans; sqlVulnerabilityAssessmentsSettings: SqlVulnerabilityAssessmentsSettings; sqlVulnerabilityAssessments: SqlVulnerabilityAssessments; managedDatabaseMoveOperations: ManagedDatabaseMoveOperations; managedInstanceDtcs: ManagedInstanceDtcs; synapseLinkWorkspaces: SynapseLinkWorkspaces; virtualClusters: VirtualClusters; instanceFailoverGroups: InstanceFailoverGroups; managedDatabaseRestoreDetails: ManagedDatabaseRestoreDetails; managedDatabases: ManagedDatabases; databaseEncryptionProtectors: DatabaseEncryptionProtectors; managedInstances: ManagedInstances; managedLedgerDigestUploadsOperations: ManagedLedgerDigestUploadsOperations; recoverableDatabases: RecoverableDatabases; restorableDroppedDatabases: RestorableDroppedDatabases; serverConfigurationOptions: ServerConfigurationOptions; servers: Servers; startStopManagedInstanceSchedules: StartStopManagedInstanceSchedules; transparentDataEncryptions: TransparentDataEncryptions; } /** Optional parameters. */ export declare interface SqlManagementClientOptionalParams extends coreClient.ServiceClientOptions { /** server parameter */ $host?: string; /** Overrides client endpoint. */ endpoint?: string; } /** A SQL Vulnerability Assessment. */ export declare interface SqlVulnerabilityAssessment extends ProxyResource { /** * SystemData of SqlVulnerabilityAssessmentResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** Specifies the state of the SQL Vulnerability Assessment, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ state?: SqlVulnerabilityAssessmentState; } /** Interface representing a SqlVulnerabilityAssessmentBaseline. */ export declare interface SqlVulnerabilityAssessmentBaseline { /** * Gets a list of database's sql vulnerability assessment rule baselines. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ listBySqlVulnerabilityAssessment(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams): PagedAsyncIterableIterator; /** * Gets a list of database's sql vulnerability assessment rule baselines. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param baselineName * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, options?: SqlVulnerabilityAssessmentBaselineGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentBaselineGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type SqlVulnerabilityAssessmentBaselineGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listBySqlVulnerabilityAssessmentNext operation. */ export declare type SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listBySqlVulnerabilityAssessment operation. */ export declare type SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; /** Interface representing a SqlVulnerabilityAssessmentBaselines. */ export declare interface SqlVulnerabilityAssessmentBaselines { /** * Add a database's vulnerability assessment rule baseline list. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param baselineName * @param parameters The requested rule baseline resource. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput, options?: SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type SqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; /** Interface representing a SqlVulnerabilityAssessmentExecuteScan. */ export declare interface SqlVulnerabilityAssessmentExecuteScan { /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ beginExecute(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams): Promise, void>>; /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ beginExecuteAndWait(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams): Promise; } /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** A list of SQL Vulnerability Assessments. */ export declare interface SqlVulnerabilityAssessmentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SqlVulnerabilityAssessment[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for SQLVulnerabilityAssessmentName. \ * {@link KnownSQLVulnerabilityAssessmentName} can be used interchangeably with SQLVulnerabilityAssessmentName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **default** */ export declare type SQLVulnerabilityAssessmentName = string; /** * Defines values for SqlVulnerabilityAssessmentName. \ * {@link KnownSqlVulnerabilityAssessmentName} can be used interchangeably with SqlVulnerabilityAssessmentName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **default** */ export declare type SqlVulnerabilityAssessmentName = string; /** Interface representing a SqlVulnerabilityAssessmentRuleBaseline. */ export declare interface SqlVulnerabilityAssessmentRuleBaseline { /** * Gets a system database's sql vulnerability assessment rule baseline. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param baselineName * @param options The options parameters. */ listByBaseline(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, options?: SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams): PagedAsyncIterableIterator; /** * Gets a system database's sql vulnerability assessment rule baseline. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param baselineName * @param ruleId The vulnerability assessment rule ID. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, ruleId: string, options?: SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams): Promise; /** * Creates or updates a database's vulnerability assessment rule baseline. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param baselineName * @param ruleId The vulnerability assessment rule ID. * @param parameters The requested rule baseline resource. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, ruleId: string, parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineInput, options?: SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type SqlVulnerabilityAssessmentRuleBaselineGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByBaselineNext operation. */ export declare type SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByBaseline operation. */ export declare type SqlVulnerabilityAssessmentRuleBaselineListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; /** Interface representing a SqlVulnerabilityAssessmentRuleBaselines. */ export declare interface SqlVulnerabilityAssessmentRuleBaselines { /** * Removes the database's vulnerability assessment rule baseline. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param baselineName * @param ruleId The vulnerability assessment rule ID. * @param options The options parameters. */ delete(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, ruleId: string, options?: SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions { } /** Interface representing a SqlVulnerabilityAssessments. */ export declare interface SqlVulnerabilityAssessments { /** * Removes SQL Vulnerability Assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. * @param options The options parameters. */ delete(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: SqlVulnerabilityAssessmentsDeleteOptionalParams): Promise; } /** Properties of a vulnerability assessment scan error. */ export declare interface SqlVulnerabilityAssessmentScanError { /** * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly code?: string; /** * The error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly message?: string; } /** A list of vulnerability assessment scan results. */ export declare interface SQLVulnerabilityAssessmentScanListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SqlVulnerabilityAssessmentScanResults[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** A vulnerability assessment scan record. */ export declare interface SqlVulnerabilityAssessmentScanRecord extends ProxyResource { /** * SystemData of SqlVulnerabilityAssessmentScanRecordResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** * The scan ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly scanId?: string; /** * The scan trigger type. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly triggerType?: VulnerabilityAssessmentScanTriggerType; /** * The scan status. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: VulnerabilityAssessmentScanState; /** * The scan start time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: Date; /** * The scan end time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly endTime?: Date; /** * The scan errors. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errors?: SqlVulnerabilityAssessmentScanError[]; /** * The server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly server?: string; /** * The database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly database?: string; /** * The SQL version. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sqlVersion?: string; /** * The number of failed rules with high severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly highSeverityFailedRulesCount?: number; /** * The number of failed rules with medium severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly mediumSeverityFailedRulesCount?: number; /** * The number of failed rules with low severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lowSeverityFailedRulesCount?: number; /** * The number of total passed rules. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly totalPassedRulesCount?: number; /** * The number of total failed rules. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly totalFailedRulesCount?: number; /** * The number of total rules assessed. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly totalRulesCount?: number; /** * Baseline created for this database, and has one or more rules. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isBaselineApplied?: boolean; } /** A list of vulnerability assessment scan records. */ export declare interface SqlVulnerabilityAssessmentScanRecordListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SqlVulnerabilityAssessmentScanRecord[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a SqlVulnerabilityAssessmentScanResult. */ export declare interface SqlVulnerabilityAssessmentScanResult { /** * Gets a vulnerability assessment scan record of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. * @param options The options parameters. */ listByScan(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, scanId: string, options?: SqlVulnerabilityAssessmentScanResultListByScanOptionalParams): PagedAsyncIterableIterator; /** * Gets a vulnerability assessment scan record of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. * @param scanResultId The scan result id of the specific result to retrieve. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, scanId: string, scanResultId: string, options?: SqlVulnerabilityAssessmentScanResultGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentScanResultGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type SqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByScanNext operation. */ export declare type SqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentScanResultListByScanOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByScan operation. */ export declare type SqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; export declare interface SqlVulnerabilityAssessmentScanResults extends ProxyResource { /** * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** * SQL Vulnerability Assessment rule Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly ruleId?: string; /** * SQL Vulnerability Assessment rule result status. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: RuleStatus; /** * SQL Vulnerability Assessment error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorMessage?: string; /** * SQL Vulnerability Assessment is the query results trimmed. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isTrimmed?: boolean; /** * SQL Vulnerability Assessment query results that was run. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly queryResults?: string[][]; /** * SQL Vulnerability Assessment the remediation details. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly remediation?: Remediation; /** * SQL Vulnerability Assessment rule result adjusted with baseline. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly baselineAdjustedResult?: BaselineAdjustedResult; /** * SQL Vulnerability Assessment rule metadata. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly ruleMetadata?: VaRule; } /** Interface representing a SqlVulnerabilityAssessmentScans. */ export declare interface SqlVulnerabilityAssessmentScans { /** * Lists the vulnerability assessment scans of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param options The options parameters. */ listBySqlVulnerabilityAssessments(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams): PagedAsyncIterableIterator; /** * Get a system database vulnerability assessment scan record. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: SqlVulnerabilityAssessmentScansGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type SqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listBySqlVulnerabilityAssessmentsNext operation. */ export declare type SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listBySqlVulnerabilityAssessments operation. */ export declare type SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions { } /** Interface representing a SqlVulnerabilityAssessmentsSettings. */ export declare interface SqlVulnerabilityAssessmentsSettings { /** * Lists SQL Vulnerability Assessment policies associated with a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets SQL Vulnerability Assessment policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, options?: SqlVulnerabilityAssessmentsSettingsGetOptionalParams): Promise; /** * Creates or updates SQL Vulnerability Assessment policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. * @param parameters The requested resource. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, parameters: SqlVulnerabilityAssessment, options?: SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type SqlVulnerabilityAssessmentsSettingsCreateOrUpdateResponse = SqlVulnerabilityAssessment; /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentsSettingsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type SqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentsSettingsListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type SqlVulnerabilityAssessmentsSettingsListByServerNextResponse = SqlVulnerabilityAssessmentListResult; /** Optional parameters. */ export declare interface SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type SqlVulnerabilityAssessmentsSettingsListByServerResponse = SqlVulnerabilityAssessmentListResult; /** Defines values for SqlVulnerabilityAssessmentState. */ export declare type SqlVulnerabilityAssessmentState = "Enabled" | "Disabled"; /** Managed instance's Start/Stop schedule. */ export declare interface StartStopManagedInstanceSchedule extends ProxyResource { /** * System data of the scheduled resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; /** The description of the schedule. */ description?: string; /** The time zone of the schedule. */ timeZoneId?: string; /** Schedule list. */ scheduleList?: ScheduleItem[]; /** * Next action to be executed (Start or Stop) * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextRunAction?: string; /** * Timestamp when the next action will be executed in the corresponding schedule time zone. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextExecutionTime?: string; } /** Managed instance's Start/Stop schedule list result. */ export declare interface StartStopManagedInstanceScheduleListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: StartStopManagedInstanceSchedule[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a StartStopManagedInstanceSchedules. */ export declare interface StartStopManagedInstanceSchedules { /** * Lists the managed instance's Start/Stop schedules. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: StartStopManagedInstanceSchedulesListByInstanceOptionalParams): PagedAsyncIterableIterator; /** * Gets the managed instance's Start/Stop schedule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param startStopScheduleName Name of the managed instance Start/Stop schedule. * @param options The options parameters. */ get(resourceGroupName: string, managedInstanceName: string, startStopScheduleName: StartStopScheduleName, options?: StartStopManagedInstanceSchedulesGetOptionalParams): Promise; /** * Creates or updates the managed instance's Start/Stop schedule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param startStopScheduleName Name of the managed instance Start/Stop schedule. * @param parameters The requested managed instance Start/Stop schedule. * @param options The options parameters. */ createOrUpdate(resourceGroupName: string, managedInstanceName: string, startStopScheduleName: StartStopScheduleName, parameters: StartStopManagedInstanceSchedule, options?: StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams): Promise; /** * Deletes the managed instance's Start/Stop schedule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param startStopScheduleName Name of the managed instance Start/Stop schedule. * @param options The options parameters. */ delete(resourceGroupName: string, managedInstanceName: string, startStopScheduleName: StartStopScheduleName, options?: StartStopManagedInstanceSchedulesDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the createOrUpdate operation. */ export declare type StartStopManagedInstanceSchedulesCreateOrUpdateResponse = StartStopManagedInstanceSchedule; /** Optional parameters. */ export declare interface StartStopManagedInstanceSchedulesDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ export declare interface StartStopManagedInstanceSchedulesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type StartStopManagedInstanceSchedulesGetResponse = StartStopManagedInstanceSchedule; /** Optional parameters. */ export declare interface StartStopManagedInstanceSchedulesListByInstanceNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstanceNext operation. */ export declare type StartStopManagedInstanceSchedulesListByInstanceNextResponse = StartStopManagedInstanceScheduleListResult; /** Optional parameters. */ export declare interface StartStopManagedInstanceSchedulesListByInstanceOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstance operation. */ export declare type StartStopManagedInstanceSchedulesListByInstanceResponse = StartStopManagedInstanceScheduleListResult; /** * Defines values for StartStopScheduleName. \ * {@link KnownStartStopScheduleName} can be used interchangeably with StartStopScheduleName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **default** */ export declare type StartStopScheduleName = string; /** The storage account type capability. */ export declare interface StorageCapability { /** * The storage account type for the database's backups. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly storageAccountType?: StorageCapabilityStorageAccountType; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: CapabilityStatus; /** The reason for the capability not being available. */ reason?: string; } /** * Defines values for StorageCapabilityStorageAccountType. \ * {@link KnownStorageCapabilityStorageAccountType} can be used interchangeably with StorageCapabilityStorageAccountType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **GRS** \ * **LRS** \ * **ZRS** */ export declare type StorageCapabilityStorageAccountType = string; /** * Defines values for StorageKeyType. \ * {@link KnownStorageKeyType} can be used interchangeably with StorageKeyType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **SharedAccessKey** \ * **StorageAccessKey** */ export declare type StorageKeyType = string; /** Usage Metric of a Subscription in a Location. */ export declare interface SubscriptionUsage extends ProxyResource { /** * User-readable name of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly displayName?: string; /** * Current value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentValue?: number; /** * Boundary value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly limit?: number; /** * Unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: string; } /** A list of subscription usage metrics in a location. */ export declare interface SubscriptionUsageListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SubscriptionUsage[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a SubscriptionUsages. */ export declare interface SubscriptionUsages { /** * Gets all subscription usage metrics in a given location. * @param locationName The name of the region where the resource is located. * @param options The options parameters. */ listByLocation(locationName: string, options?: SubscriptionUsagesListByLocationOptionalParams): PagedAsyncIterableIterator; /** * Gets a subscription usage metric. * @param locationName The name of the region where the resource is located. * @param usageName Name of usage metric to return. * @param options The options parameters. */ get(locationName: string, usageName: string, options?: SubscriptionUsagesGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface SubscriptionUsagesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type SubscriptionUsagesGetResponse = SubscriptionUsage; /** Optional parameters. */ export declare interface SubscriptionUsagesListByLocationNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByLocationNext operation. */ export declare type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult; /** Optional parameters. */ export declare interface SubscriptionUsagesListByLocationOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByLocation operation. */ export declare type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; /** Synapse link workspace resource */ export declare interface SynapseLinkWorkspace extends ProxyResource { /** List of all synapselink workspaces */ workspaces?: SynapseLinkWorkspaceInfoProperties[]; } /** Properties of a Synapse link workspaces */ export declare interface SynapseLinkWorkspaceInfoProperties { /** Synapse link workspace id. */ workspaceId?: string; /** Link connection name. */ linkConnectionName?: string; } /** A list of synapselink workspaces */ export declare interface SynapseLinkWorkspaceListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SynapseLinkWorkspace[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a SynapseLinkWorkspaces. */ export declare interface SynapseLinkWorkspaces { /** * Gets all synapselink workspaces for a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SynapseLinkWorkspacesListByDatabaseOptionalParams): PagedAsyncIterableIterator; } /** Optional parameters. */ export declare interface SynapseLinkWorkspacesListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type SynapseLinkWorkspacesListByDatabaseNextResponse = SynapseLinkWorkspaceListResult; /** Optional parameters. */ export declare interface SynapseLinkWorkspacesListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type SynapseLinkWorkspacesListByDatabaseResponse = SynapseLinkWorkspaceListResult; /** An Azure SQL Database sync agent. */ export declare interface SyncAgent extends ProxyResource { /** * Name of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly namePropertiesName?: string; /** ARM resource id of the sync database in the sync agent. */ syncDatabaseId?: string; /** * Last alive time of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastAliveTime?: Date; /** * State of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: SyncAgentState; /** * If the sync agent version is up to date. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isUpToDate?: boolean; /** * Expiration time of the sync agent version. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly expiryTime?: Date; /** * Version of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly version?: string; } /** Properties of an Azure SQL Database sync agent key. */ export declare interface SyncAgentKeyProperties { /** * Key of sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly syncAgentKey?: string; } /** An Azure SQL Database sync agent linked database. */ export declare interface SyncAgentLinkedDatabase extends ProxyResource { /** * Type of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseType?: SyncMemberDbType; /** * Id of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseId?: string; /** * Description of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly description?: string; /** * Server name of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serverName?: string; /** * Database name of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseName?: string; /** * User name of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly userName?: string; } /** A list of sync agent linked databases. */ export declare interface SyncAgentLinkedDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SyncAgentLinkedDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** A list of sync agents. */ export declare interface SyncAgentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SyncAgent[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a SyncAgents. */ export declare interface SyncAgents { /** * Lists sync agents in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server on which the sync agent is hosted. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: SyncAgentsListByServerOptionalParams): PagedAsyncIterableIterator; /** * Lists databases linked to a sync agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server on which the sync agent is hosted. * @param syncAgentName The name of the sync agent. * @param options The options parameters. */ listLinkedDatabases(resourceGroupName: string, serverName: string, syncAgentName: string, options?: SyncAgentsListLinkedDatabasesOptionalParams): PagedAsyncIterableIterator; /** * Gets a sync agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server on which the sync agent is hosted. * @param syncAgentName The name of the sync agent. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, syncAgentName: string, options?: SyncAgentsGetOptionalParams): Promise; /** * Creates or updates a sync agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server on which the sync agent is hosted. * @param syncAgentName The name of the sync agent. * @param parameters The requested sync agent resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, syncAgentName: string, parameters: SyncAgent, options?: SyncAgentsCreateOrUpdateOptionalParams): Promise, SyncAgentsCreateOrUpdateResponse>>; /** * Creates or updates a sync agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server on which the sync agent is hosted. * @param syncAgentName The name of the sync agent. * @param parameters The requested sync agent resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, syncAgentName: string, parameters: SyncAgent, options?: SyncAgentsCreateOrUpdateOptionalParams): Promise; /** * Deletes a sync agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server on which the sync agent is hosted. * @param syncAgentName The name of the sync agent. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, syncAgentName: string, options?: SyncAgentsDeleteOptionalParams): Promise, void>>; /** * Deletes a sync agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server on which the sync agent is hosted. * @param syncAgentName The name of the sync agent. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, syncAgentName: string, options?: SyncAgentsDeleteOptionalParams): Promise; /** * Generates a sync agent key. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server on which the sync agent is hosted. * @param syncAgentName The name of the sync agent. * @param options The options parameters. */ generateKey(resourceGroupName: string, serverName: string, syncAgentName: string, options?: SyncAgentsGenerateKeyOptionalParams): Promise; } /** Optional parameters. */ export declare interface SyncAgentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type SyncAgentsCreateOrUpdateResponse = SyncAgent; /** Optional parameters. */ export declare interface SyncAgentsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface SyncAgentsGenerateKeyOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the generateKey operation. */ export declare type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties; /** Optional parameters. */ export declare interface SyncAgentsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type SyncAgentsGetResponse = SyncAgent; /** Optional parameters. */ export declare interface SyncAgentsListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type SyncAgentsListByServerNextResponse = SyncAgentListResult; /** Optional parameters. */ export declare interface SyncAgentsListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type SyncAgentsListByServerResponse = SyncAgentListResult; /** Optional parameters. */ export declare interface SyncAgentsListLinkedDatabasesNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listLinkedDatabasesNext operation. */ export declare type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult; /** Optional parameters. */ export declare interface SyncAgentsListLinkedDatabasesOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listLinkedDatabases operation. */ export declare type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult; /** * Defines values for SyncAgentState. \ * {@link KnownSyncAgentState} can be used interchangeably with SyncAgentState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Online** \ * **Offline** \ * **NeverConnected** */ export declare type SyncAgentState = string; /** * Defines values for SyncConflictResolutionPolicy. \ * {@link KnownSyncConflictResolutionPolicy} can be used interchangeably with SyncConflictResolutionPolicy, * this enum contains the known values that the service supports. * ### Known values supported by the service * **HubWin** \ * **MemberWin** */ export declare type SyncConflictResolutionPolicy = string; /** A list of sync database ID properties. */ export declare interface SyncDatabaseIdListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SyncDatabaseIdProperties[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Properties of the sync database id. */ export declare interface SyncDatabaseIdProperties { /** * ARM resource id of sync database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; } /** * Defines values for SyncDirection. \ * {@link KnownSyncDirection} can be used interchangeably with SyncDirection, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Bidirectional** \ * **OneWayMemberToHub** \ * **OneWayHubToMember** */ export declare type SyncDirection = string; /** Properties of the database full schema. */ export declare interface SyncFullSchemaProperties { /** * List of tables in the database full schema. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly tables?: SyncFullSchemaTable[]; /** * Last update time of the database schema. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastUpdateTime?: Date; } /** A list of sync schema properties. */ export declare interface SyncFullSchemaPropertiesListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SyncFullSchemaProperties[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Properties of the table in the database full schema. */ export declare interface SyncFullSchemaTable { /** * List of columns in the table of database full schema. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly columns?: SyncFullSchemaTableColumn[]; /** * Error id of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorId?: string; /** * If there is error in the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly hasError?: boolean; /** * Name of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * Quoted name of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly quotedName?: string; } /** Properties of the column in the table of database full schema. */ export declare interface SyncFullSchemaTableColumn { /** * Data size of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly dataSize?: string; /** * Data type of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly dataType?: string; /** * Error id of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorId?: string; /** * If there is error in the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly hasError?: boolean; /** * If it is the primary key of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isPrimaryKey?: boolean; /** * Name of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * Quoted name of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly quotedName?: string; } /** An Azure SQL Database sync group. */ export declare interface SyncGroup extends ProxyResource { /** The name and capacity of the SKU. */ sku?: Sku; /** Sync interval of the sync group. */ interval?: number; /** * Last sync time of the sync group. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastSyncTime?: Date; /** Conflict resolution policy of the sync group. */ conflictResolutionPolicy?: SyncConflictResolutionPolicy; /** ARM resource id of the sync database in the sync group. */ syncDatabaseId?: string; /** User name for the sync group hub database credential. */ hubDatabaseUserName?: string; /** Password for the sync group hub database credential. */ hubDatabasePassword?: string; /** * Sync state of the sync group. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly syncState?: SyncGroupState; /** Sync schema of the sync group. */ schema?: SyncGroupSchema; /** If conflict logging is enabled. */ enableConflictLogging?: boolean; /** Conflict logging retention period. */ conflictLoggingRetentionInDays?: number; /** If use private link connection is enabled. */ usePrivateLinkConnection?: boolean; /** * Private endpoint name of the sync group if use private link connection is enabled. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointName?: string; } /** A list of sync groups. */ export declare interface SyncGroupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SyncGroup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** A list of sync group log properties. */ export declare interface SyncGroupLogListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SyncGroupLogProperties[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Properties of an Azure SQL Database sync group log. */ export declare interface SyncGroupLogProperties { /** * Timestamp of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timestamp?: Date; /** * Type of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: SyncGroupLogType; /** * Source of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly source?: string; /** * Details of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly details?: string; /** * TracingId of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly tracingId?: string; /** * OperationStatus of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operationStatus?: string; } /** * Defines values for SyncGroupLogType. \ * {@link KnownSyncGroupLogType} can be used interchangeably with SyncGroupLogType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **All** \ * **Error** \ * **Warning** \ * **Success** */ export declare type SyncGroupLogType = string; /** Interface representing a SyncGroups. */ export declare interface SyncGroups { /** * Gets a collection of sync database ids. * @param locationName The name of the region where the resource is located. * @param options The options parameters. */ listSyncDatabaseIds(locationName: string, options?: SyncGroupsListSyncDatabaseIdsOptionalParams): PagedAsyncIterableIterator; /** * Gets a collection of hub database schemas. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. * @param options The options parameters. */ listHubSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsListHubSchemasOptionalParams): PagedAsyncIterableIterator; /** * Gets a collection of sync group logs. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. * @param startTime Get logs generated after this time. * @param endTime Get logs generated before this time. * @param typeParam The types of logs to retrieve. * @param options The options parameters. */ listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams): PagedAsyncIterableIterator; /** * Lists sync groups under a hub database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SyncGroupsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Refreshes a hub database schema. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. * @param options The options parameters. */ beginRefreshHubSchema(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsRefreshHubSchemaOptionalParams): Promise, void>>; /** * Refreshes a hub database schema. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. * @param options The options parameters. */ beginRefreshHubSchemaAndWait(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsRefreshHubSchemaOptionalParams): Promise; /** * Cancels a sync group synchronization. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. * @param options The options parameters. */ cancelSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsCancelSyncOptionalParams): Promise; /** * Triggers a sync group synchronization. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. * @param options The options parameters. */ triggerSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsTriggerSyncOptionalParams): Promise; /** * Gets a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsGetOptionalParams): Promise; /** * Creates or updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. * @param parameters The requested sync group resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, parameters: SyncGroup, options?: SyncGroupsCreateOrUpdateOptionalParams): Promise, SyncGroupsCreateOrUpdateResponse>>; /** * Creates or updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. * @param parameters The requested sync group resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, parameters: SyncGroup, options?: SyncGroupsCreateOrUpdateOptionalParams): Promise; /** * Deletes a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsDeleteOptionalParams): Promise, void>>; /** * Deletes a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsDeleteOptionalParams): Promise; /** * Updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. * @param parameters The requested sync group resource state. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, parameters: SyncGroup, options?: SyncGroupsUpdateOptionalParams): Promise, SyncGroupsUpdateResponse>>; /** * Updates a sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. * @param parameters The requested sync group resource state. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, parameters: SyncGroup, options?: SyncGroupsUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface SyncGroupsCancelSyncOptionalParams extends coreClient.OperationOptions { } /** Properties of sync group schema. */ export declare interface SyncGroupSchema { /** List of tables in sync group schema. */ tables?: SyncGroupSchemaTable[]; /** Name of master sync member where the schema is from. */ masterSyncMemberName?: string; } /** Properties of table in sync group schema. */ export declare interface SyncGroupSchemaTable { /** List of columns in sync group schema. */ columns?: SyncGroupSchemaTableColumn[]; /** Quoted name of sync group schema table. */ quotedName?: string; } /** Properties of column in sync group table. */ export declare interface SyncGroupSchemaTableColumn { /** Quoted name of sync group table column. */ quotedName?: string; /** Data size of the column. */ dataSize?: string; /** Data type of the column. */ dataType?: string; } /** Optional parameters. */ export declare interface SyncGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type SyncGroupsCreateOrUpdateResponse = SyncGroup; /** Optional parameters. */ export declare interface SyncGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface SyncGroupsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type SyncGroupsGetResponse = SyncGroup; /** Optional parameters. */ export declare interface SyncGroupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult; /** Optional parameters. */ export declare interface SyncGroupsListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type SyncGroupsListByDatabaseResponse = SyncGroupListResult; /** Optional parameters. */ export declare interface SyncGroupsListHubSchemasNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listHubSchemasNext operation. */ export declare type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ export declare interface SyncGroupsListHubSchemasOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listHubSchemas operation. */ export declare type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ export declare interface SyncGroupsListLogsNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listLogsNext operation. */ export declare type SyncGroupsListLogsNextResponse = SyncGroupLogListResult; /** Optional parameters. */ export declare interface SyncGroupsListLogsOptionalParams extends coreClient.OperationOptions { /** The continuation token for this operation. */ continuationToken?: string; } /** Contains response data for the listLogs operation. */ export declare type SyncGroupsListLogsResponse = SyncGroupLogListResult; /** Optional parameters. */ export declare interface SyncGroupsListSyncDatabaseIdsNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listSyncDatabaseIdsNext operation. */ export declare type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult; /** Optional parameters. */ export declare interface SyncGroupsListSyncDatabaseIdsOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listSyncDatabaseIds operation. */ export declare type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult; /** Optional parameters. */ export declare interface SyncGroupsRefreshHubSchemaOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** * Defines values for SyncGroupState. \ * {@link KnownSyncGroupState} can be used interchangeably with SyncGroupState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **NotReady** \ * **Error** \ * **Warning** \ * **Progressing** \ * **Good** */ export declare type SyncGroupState = string; /** Optional parameters. */ export declare interface SyncGroupsTriggerSyncOptionalParams extends coreClient.OperationOptions { } /** * Defines values for SyncGroupsType. \ * {@link KnownSyncGroupsType} can be used interchangeably with SyncGroupsType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **All** \ * **Error** \ * **Warning** \ * **Success** */ export declare type SyncGroupsType = string; /** Optional parameters. */ export declare interface SyncGroupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type SyncGroupsUpdateResponse = SyncGroup; /** An Azure SQL Database sync member. */ export declare interface SyncMember extends ProxyResource { /** Database type of the sync member. */ databaseType?: SyncMemberDbType; /** ARM resource id of the sync agent in the sync member. */ syncAgentId?: string; /** SQL Server database id of the sync member. */ sqlServerDatabaseId?: string; /** ARM resource id of the sync member logical database, for sync members in Azure. */ syncMemberAzureDatabaseResourceId?: string; /** Whether to use private link connection. */ usePrivateLinkConnection?: boolean; /** * Private endpoint name of the sync member if use private link connection is enabled, for sync members in Azure. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointName?: string; /** Server name of the member database in the sync member */ serverName?: string; /** Database name of the member database in the sync member. */ databaseName?: string; /** User name of the member database in the sync member. */ userName?: string; /** Password of the member database in the sync member. */ password?: string; /** Sync direction of the sync member. */ syncDirection?: SyncDirection; /** * Sync state of the sync member. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly syncState?: SyncMemberState; } /** * Defines values for SyncMemberDbType. \ * {@link KnownSyncMemberDbType} can be used interchangeably with SyncMemberDbType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **AzureSqlDatabase** \ * **SqlServerDatabase** */ export declare type SyncMemberDbType = string; /** A list of Azure SQL Database sync members. */ export declare interface SyncMemberListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SyncMember[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a SyncMembers. */ export declare interface SyncMembers { /** * Lists sync members in the given sync group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. * @param options The options parameters. */ listBySyncGroup(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncMembersListBySyncGroupOptionalParams): PagedAsyncIterableIterator; /** * Gets a sync member database schema. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group on which the sync member is hosted. * @param syncMemberName The name of the sync member. * @param options The options parameters. */ listMemberSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: SyncMembersListMemberSchemasOptionalParams): PagedAsyncIterableIterator; /** * Gets a sync member. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group on which the sync member is hosted. * @param syncMemberName The name of the sync member. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: SyncMembersGetOptionalParams): Promise; /** * Creates or updates a sync member. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group on which the sync member is hosted. * @param syncMemberName The name of the sync member. * @param parameters The requested sync member resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, parameters: SyncMember, options?: SyncMembersCreateOrUpdateOptionalParams): Promise, SyncMembersCreateOrUpdateResponse>>; /** * Creates or updates a sync member. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group on which the sync member is hosted. * @param syncMemberName The name of the sync member. * @param parameters The requested sync member resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, parameters: SyncMember, options?: SyncMembersCreateOrUpdateOptionalParams): Promise; /** * Deletes a sync member. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group on which the sync member is hosted. * @param syncMemberName The name of the sync member. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: SyncMembersDeleteOptionalParams): Promise, void>>; /** * Deletes a sync member. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group on which the sync member is hosted. * @param syncMemberName The name of the sync member. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: SyncMembersDeleteOptionalParams): Promise; /** * Updates an existing sync member. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group on which the sync member is hosted. * @param syncMemberName The name of the sync member. * @param parameters The requested sync member resource state. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, parameters: SyncMember, options?: SyncMembersUpdateOptionalParams): Promise, SyncMembersUpdateResponse>>; /** * Updates an existing sync member. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group on which the sync member is hosted. * @param syncMemberName The name of the sync member. * @param parameters The requested sync member resource state. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, parameters: SyncMember, options?: SyncMembersUpdateOptionalParams): Promise; /** * Refreshes a sync member database schema. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group on which the sync member is hosted. * @param syncMemberName The name of the sync member. * @param options The options parameters. */ beginRefreshMemberSchema(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: SyncMembersRefreshMemberSchemaOptionalParams): Promise, void>>; /** * Refreshes a sync member database schema. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group on which the sync member is hosted. * @param syncMemberName The name of the sync member. * @param options The options parameters. */ beginRefreshMemberSchemaAndWait(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: SyncMembersRefreshMemberSchemaOptionalParams): Promise; } /** Optional parameters. */ export declare interface SyncMembersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type SyncMembersCreateOrUpdateResponse = SyncMember; /** Optional parameters. */ export declare interface SyncMembersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface SyncMembersGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type SyncMembersGetResponse = SyncMember; /** Optional parameters. */ export declare interface SyncMembersListBySyncGroupNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listBySyncGroupNext operation. */ export declare type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult; /** Optional parameters. */ export declare interface SyncMembersListBySyncGroupOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listBySyncGroup operation. */ export declare type SyncMembersListBySyncGroupResponse = SyncMemberListResult; /** Optional parameters. */ export declare interface SyncMembersListMemberSchemasNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listMemberSchemasNext operation. */ export declare type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ export declare interface SyncMembersListMemberSchemasOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listMemberSchemas operation. */ export declare type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ export declare interface SyncMembersRefreshMemberSchemaOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** * Defines values for SyncMemberState. \ * {@link KnownSyncMemberState} can be used interchangeably with SyncMemberState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **SyncInProgress** \ * **SyncSucceeded** \ * **SyncFailed** \ * **DisabledTombstoneCleanup** \ * **DisabledBackupRestore** \ * **SyncSucceededWithWarnings** \ * **SyncCancelling** \ * **SyncCancelled** \ * **UnProvisioned** \ * **Provisioning** \ * **Provisioned** \ * **ProvisionFailed** \ * **DeProvisioning** \ * **DeProvisioned** \ * **DeProvisionFailed** \ * **Reprovisioning** \ * **ReprovisionFailed** \ * **UnReprovisioned** */ export declare type SyncMemberState = string; /** Optional parameters. */ export declare interface SyncMembersUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type SyncMembersUpdateResponse = SyncMember; /** Metadata pertaining to creation and last modification of the resource. */ export declare interface SystemData { /** The identity that created the resource. */ createdBy?: string; /** The type of identity that created the resource. */ createdByType?: CreatedByType; /** The timestamp of resource creation (UTC). */ createdAt?: Date; /** The identity that last modified the resource. */ lastModifiedBy?: string; /** The type of identity that last modified the resource. */ lastModifiedByType?: CreatedByType; /** The timestamp of resource last modification (UTC) */ lastModifiedAt?: Date; } /** * Defines values for TableTemporalType. \ * {@link KnownTableTemporalType} can be used interchangeably with TableTemporalType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **NonTemporalTable** \ * **HistoryTable** \ * **SystemVersionedTemporalTable** */ export declare type TableTemporalType = string; /** A TDE certificate that can be uploaded into a server. */ export declare interface TdeCertificate extends ProxyResource { /** The base64 encoded certificate private blob. */ privateBlob?: string; /** The certificate password. */ certPassword?: string; } /** Interface representing a TdeCertificates. */ export declare interface TdeCertificates { /** * Creates a TDE certificate for a given server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters The requested TDE certificate to be created or updated. * @param options The options parameters. */ beginCreate(resourceGroupName: string, serverName: string, parameters: TdeCertificate, options?: TdeCertificatesCreateOptionalParams): Promise, void>>; /** * Creates a TDE certificate for a given server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param parameters The requested TDE certificate to be created or updated. * @param options The options parameters. */ beginCreateAndWait(resourceGroupName: string, serverName: string, parameters: TdeCertificate, options?: TdeCertificatesCreateOptionalParams): Promise; } /** Optional parameters. */ export declare interface TdeCertificatesCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Time Zone. */ export declare interface TimeZone extends ProxyResource { /** * The time zone id * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeZoneId?: string; /** * The time zone display name * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly displayName?: string; } /** A list of time zones. */ export declare interface TimeZoneListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: TimeZone[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a TimeZones. */ export declare interface TimeZones { /** * Gets a list of managed instance time zones by location. * @param locationName * @param options The options parameters. */ listByLocation(locationName: string, options?: TimeZonesListByLocationOptionalParams): PagedAsyncIterableIterator; /** * Gets a managed instance time zone. * @param locationName * @param timeZoneId * @param options The options parameters. */ get(locationName: string, timeZoneId: string, options?: TimeZonesGetOptionalParams): Promise; } /** Optional parameters. */ export declare interface TimeZonesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type TimeZonesGetResponse = TimeZone; /** Optional parameters. */ export declare interface TimeZonesListByLocationNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByLocationNext operation. */ export declare type TimeZonesListByLocationNextResponse = TimeZoneListResult; /** Optional parameters. */ export declare interface TimeZonesListByLocationOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByLocation operation. */ export declare type TimeZonesListByLocationResponse = TimeZoneListResult; export declare interface TopQueries { /** * Requested number of top queries. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly numberOfQueries?: number; /** * Aggregation function used to calculate query metrics. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly aggregationFunction?: string; /** * Metric used to rank queries. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly observationMetric?: string; /** * Interval type (length). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly intervalType?: QueryTimeGrainType; /** * The start time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: string; /** * The end time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly endTime?: string; /** List of top resource consuming queries with appropriate metric data */ queries?: QueryStatisticsProperties[]; } /** A list of top resource consuming queries on managed instance */ export declare interface TopQueriesListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: TopQueries[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** ARM tracked top level resource. */ export declare interface TrackedResource extends Resource { /** Resource location. */ location: string; /** Resource tags. */ tags?: { [propertyName: string]: string; }; } /** * Defines values for TransparentDataEncryptionName. \ * {@link KnownTransparentDataEncryptionName} can be used interchangeably with TransparentDataEncryptionName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **current** */ export declare type TransparentDataEncryptionName = string; /** Interface representing a TransparentDataEncryptions. */ export declare interface TransparentDataEncryptions { /** * Gets a list of the logical database's transparent data encryption. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the logical database for which the transparent data encryption is * defined. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: TransparentDataEncryptionsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets a logical database's transparent data encryption. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the logical database for which the transparent data encryption is * defined. * @param tdeName The name of the transparent data encryption configuration. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, tdeName: TransparentDataEncryptionName, options?: TransparentDataEncryptionsGetOptionalParams): Promise; /** * Updates a logical database's transparent data encryption configuration. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the logical database for which the security alert policy is defined. * @param tdeName The name of the transparent data encryption configuration. * @param parameters The database transparent data encryption. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, tdeName: TransparentDataEncryptionName, parameters: LogicalDatabaseTransparentDataEncryption, options?: TransparentDataEncryptionsCreateOrUpdateOptionalParams): Promise, TransparentDataEncryptionsCreateOrUpdateResponse>>; /** * Updates a logical database's transparent data encryption configuration. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the logical database for which the security alert policy is defined. * @param tdeName The name of the transparent data encryption configuration. * @param parameters The database transparent data encryption. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, tdeName: TransparentDataEncryptionName, parameters: LogicalDatabaseTransparentDataEncryption, options?: TransparentDataEncryptionsCreateOrUpdateOptionalParams): Promise; } /** Optional parameters. */ export declare interface TransparentDataEncryptionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ export declare interface TransparentDataEncryptionsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ export declare interface TransparentDataEncryptionsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult; /** Optional parameters. */ export declare interface TransparentDataEncryptionsListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult; /** Defines values for TransparentDataEncryptionState. */ export declare type TransparentDataEncryptionState = "Enabled" | "Disabled"; /** * Defines values for UnitDefinitionType. \ * {@link KnownUnitDefinitionType} can be used interchangeably with UnitDefinitionType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Count** \ * **Bytes** \ * **Seconds** \ * **Percent** \ * **CountPerSecond** \ * **BytesPerSecond** */ export declare type UnitDefinitionType = string; /** * Defines values for UnitType. \ * {@link KnownUnitType} can be used interchangeably with UnitType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **count** \ * **bytes** \ * **seconds** \ * **percent** \ * **countPerSecond** \ * **bytesPerSecond** */ export declare type UnitType = string; /** Contains the information necessary to perform long term retention backup update operation. */ export declare interface UpdateLongTermRetentionBackupParameters { /** The storage redundancy type of the copied backup */ requestedBackupStorageRedundancy?: BackupStorageRedundancy; } /** A refresh DNS servers operation. */ export declare interface UpdateVirtualClusterDnsServersOperation extends ProxyResource { /** * The status of the DNS refresh operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: DNSRefreshOperationStatus; } export declare interface UpsertManagedServerOperationParameters { family?: string; tier?: string; vCores?: number; storageSizeInGB?: number; } export declare interface UpsertManagedServerOperationStep { order?: number; name?: string; status?: UpsertManagedServerOperationStepStatus; } /** * Defines values for UpsertManagedServerOperationStepStatus. \ * {@link KnownUpsertManagedServerOperationStepStatus} can be used interchangeably with UpsertManagedServerOperationStepStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service * **NotStarted** \ * **InProgress** \ * **SlowedDown** \ * **Completed** \ * **Failed** \ * **Canceled** */ export declare type UpsertManagedServerOperationStepStatus = string; /** ARM usage. */ export declare interface Usage { /** * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** * Resource name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: Name; /** * Resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; /** * Usage unit. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: string; /** * Usage current value. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentValue?: number; /** * Usage limit. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly limit?: number; /** * Usage requested limit. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requestedLimit?: number; } /** A list of usages. */ export declare interface UsageListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: Usage[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a Usages. */ export declare interface Usages { /** * Gets all instance pool usage metrics * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param instancePoolName The name of the instance pool to be retrieved. * @param options The options parameters. */ listByInstancePool(resourceGroupName: string, instancePoolName: string, options?: UsagesListByInstancePoolOptionalParams): PagedAsyncIterableIterator; } /** Optional parameters. */ export declare interface UsagesListByInstancePoolNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByInstancePoolNext operation. */ export declare type UsagesListByInstancePoolNextResponse = UsageListResult; /** Optional parameters. */ export declare interface UsagesListByInstancePoolOptionalParams extends coreClient.OperationOptions { /** Optional request parameter to include managed instance usages within the instance pool. */ expandChildren?: boolean; } /** Contains response data for the listByInstancePool operation. */ export declare type UsagesListByInstancePoolResponse = UsageListResult; /** Azure Active Directory identity configuration for a resource. */ export declare interface UserIdentity { /** * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly principalId?: string; /** * The Azure Active Directory client id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly clientId?: string; } /** SQL Vulnerability Assessment rule metadata details. */ export declare interface VaRule { /** * SQL Vulnerability Assessment rule Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly ruleId?: string; /** * SQL Vulnerability Assessment rule severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly severity?: RuleSeverity; /** * SQL Vulnerability Assessment rule category. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly category?: string; /** * SQL Vulnerability Assessment rule type. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly ruleType?: RuleType; /** * SQL Vulnerability Assessment rule title. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly title?: string; /** * SQL Vulnerability Assessment rule description. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly description?: string; /** * SQL Vulnerability Assessment rule rationale. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly rationale?: string; /** * SQL Vulnerability Assessment rule query details. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly queryCheck?: QueryCheck; /** * SQL Vulnerability Assessment benchmark references. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly benchmarkReferences?: BenchmarkReference[]; } /** An Azure SQL virtual cluster. */ export declare interface VirtualCluster extends TrackedResource { /** * Subnet resource ID for the virtual cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly subnetId?: string; /** Virtual cluster version. */ version?: string; /** * List of resources in this virtual cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly childResources?: string[]; } /** A list of virtual clusters. */ export declare interface VirtualClusterListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: VirtualCluster[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a VirtualClusters. */ export declare interface VirtualClusters { /** * Gets a list of all virtualClusters in the subscription. * @param options The options parameters. */ list(options?: VirtualClustersListOptionalParams): PagedAsyncIterableIterator; /** * Gets a list of virtual clusters in a resource group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param options The options parameters. */ listByResourceGroup(resourceGroupName: string, options?: VirtualClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator; /** * Gets a virtual cluster. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param virtualClusterName The name of the virtual cluster. * @param options The options parameters. */ get(resourceGroupName: string, virtualClusterName: string, options?: VirtualClustersGetOptionalParams): Promise; /** * Deletes a virtual cluster. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param virtualClusterName The name of the virtual cluster. * @param options The options parameters. */ beginDelete(resourceGroupName: string, virtualClusterName: string, options?: VirtualClustersDeleteOptionalParams): Promise, void>>; /** * Deletes a virtual cluster. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param virtualClusterName The name of the virtual cluster. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, virtualClusterName: string, options?: VirtualClustersDeleteOptionalParams): Promise; /** * Updates an existing virtual cluster. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param virtualClusterName The name of the virtual cluster. * @param parameters The requested virtual cluster resource state. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, virtualClusterName: string, parameters: VirtualClusterUpdate, options?: VirtualClustersUpdateOptionalParams): Promise, VirtualClustersUpdateResponse>>; /** * Updates an existing virtual cluster. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param virtualClusterName The name of the virtual cluster. * @param parameters The requested virtual cluster resource state. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, virtualClusterName: string, parameters: VirtualClusterUpdate, options?: VirtualClustersUpdateOptionalParams): Promise; /** * Synchronizes the DNS server settings used by the managed instances inside the given virtual cluster. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param virtualClusterName The name of the virtual cluster. * @param options The options parameters. */ beginUpdateDnsServers(resourceGroupName: string, virtualClusterName: string, options?: VirtualClustersUpdateDnsServersOptionalParams): Promise, VirtualClustersUpdateDnsServersResponse>>; /** * Synchronizes the DNS server settings used by the managed instances inside the given virtual cluster. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param virtualClusterName The name of the virtual cluster. * @param options The options parameters. */ beginUpdateDnsServersAndWait(resourceGroupName: string, virtualClusterName: string, options?: VirtualClustersUpdateDnsServersOptionalParams): Promise; } /** Optional parameters. */ export declare interface VirtualClustersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface VirtualClustersGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type VirtualClustersGetResponse = VirtualCluster; /** Optional parameters. */ export declare interface VirtualClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByResourceGroupNext operation. */ export declare type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult; /** Optional parameters. */ export declare interface VirtualClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByResourceGroup operation. */ export declare type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult; /** Optional parameters. */ export declare interface VirtualClustersListNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listNext operation. */ export declare type VirtualClustersListNextResponse = VirtualClusterListResult; /** Optional parameters. */ export declare interface VirtualClustersListOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the list operation. */ export declare type VirtualClustersListResponse = VirtualClusterListResult; /** Optional parameters. */ export declare interface VirtualClustersUpdateDnsServersOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the updateDnsServers operation. */ export declare type VirtualClustersUpdateDnsServersResponse = UpdateVirtualClusterDnsServersOperation; /** Optional parameters. */ export declare interface VirtualClustersUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the update operation. */ export declare type VirtualClustersUpdateResponse = VirtualCluster; /** An update request for virtual cluster. */ export declare interface VirtualClusterUpdate { /** Resource tags. */ tags?: { [propertyName: string]: string; }; /** * Subnet resource ID for the virtual cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly subnetId?: string; /** Virtual cluster version. */ version?: string; /** * List of resources in this virtual cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly childResources?: string[]; } /** A virtual network rule. */ export declare interface VirtualNetworkRule extends ProxyResource { /** The ARM resource id of the virtual network subnet. */ virtualNetworkSubnetId?: string; /** Create firewall rule before the virtual network has vnet service endpoint enabled. */ ignoreMissingVnetServiceEndpoint?: boolean; /** * Virtual Network Rule State * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: VirtualNetworkRuleState; } /** A list of virtual network rules. */ export declare interface VirtualNetworkRuleListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: VirtualNetworkRule[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a VirtualNetworkRules. */ export declare interface VirtualNetworkRules { /** * Gets a list of virtual network rules in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param options The options parameters. */ listByServer(resourceGroupName: string, serverName: string, options?: VirtualNetworkRulesListByServerOptionalParams): PagedAsyncIterableIterator; /** * Gets a virtual network rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param virtualNetworkRuleName The name of the virtual network rule. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, options?: VirtualNetworkRulesGetOptionalParams): Promise; /** * Creates or updates an existing virtual network rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param virtualNetworkRuleName The name of the virtual network rule. * @param parameters The requested virtual Network Rule Resource state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, parameters: VirtualNetworkRule, options?: VirtualNetworkRulesCreateOrUpdateOptionalParams): Promise, VirtualNetworkRulesCreateOrUpdateResponse>>; /** * Creates or updates an existing virtual network rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param virtualNetworkRuleName The name of the virtual network rule. * @param parameters The requested virtual Network Rule Resource state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, parameters: VirtualNetworkRule, options?: VirtualNetworkRulesCreateOrUpdateOptionalParams): Promise; /** * Deletes the virtual network rule with the given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param virtualNetworkRuleName The name of the virtual network rule. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, options?: VirtualNetworkRulesDeleteOptionalParams): Promise, void>>; /** * Deletes the virtual network rule with the given name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param virtualNetworkRuleName The name of the virtual network rule. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, options?: VirtualNetworkRulesDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface VirtualNetworkRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule; /** Optional parameters. */ export declare interface VirtualNetworkRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface VirtualNetworkRulesGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type VirtualNetworkRulesGetResponse = VirtualNetworkRule; /** Optional parameters. */ export declare interface VirtualNetworkRulesListByServerNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServerNext operation. */ export declare type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult; /** Optional parameters. */ export declare interface VirtualNetworkRulesListByServerOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByServer operation. */ export declare type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult; /** * Defines values for VirtualNetworkRuleState. \ * {@link KnownVirtualNetworkRuleState} can be used interchangeably with VirtualNetworkRuleState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Initializing** \ * **InProgress** \ * **Ready** \ * **Failed** \ * **Deleting** \ * **Unknown** */ export declare type VirtualNetworkRuleState = string; /** * Defines values for VulnerabilityAssessmentName. \ * {@link KnownVulnerabilityAssessmentName} can be used interchangeably with VulnerabilityAssessmentName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **default** */ export declare type VulnerabilityAssessmentName = string; /** Defines values for VulnerabilityAssessmentPolicyBaselineName. */ export declare type VulnerabilityAssessmentPolicyBaselineName = "master" | "default"; /** Properties of a Vulnerability Assessment recurring scans. */ export declare interface VulnerabilityAssessmentRecurringScansProperties { /** Recurring scans state. */ isEnabled?: boolean; /** Specifies that the schedule scan notification will be is sent to the subscription administrators. */ emailSubscriptionAdmins?: boolean; /** Specifies an array of e-mail addresses to which the scan notification is sent. */ emails?: string[]; } /** Properties of a vulnerability assessment scan error. */ export declare interface VulnerabilityAssessmentScanError { /** * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly code?: string; /** * The error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly message?: string; } /** A vulnerability assessment scan record. */ export declare interface VulnerabilityAssessmentScanRecord extends ProxyResource { /** * The scan ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly scanId?: string; /** * The scan trigger type. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly triggerType?: VulnerabilityAssessmentScanTriggerType; /** * The scan status. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: VulnerabilityAssessmentScanState; /** * The scan start time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: Date; /** * The scan end time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly endTime?: Date; /** * The scan errors. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errors?: VulnerabilityAssessmentScanError[]; /** * The scan results storage container path. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly storageContainerPath?: string; /** * The number of failed security checks. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly numberOfFailedSecurityChecks?: number; } /** A list of vulnerability assessment scan records. */ export declare interface VulnerabilityAssessmentScanRecordListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: VulnerabilityAssessmentScanRecord[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** * Defines values for VulnerabilityAssessmentScanState. \ * {@link KnownVulnerabilityAssessmentScanState} can be used interchangeably with VulnerabilityAssessmentScanState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Passed** \ * **Failed** \ * **FailedToRun** \ * **InProgress** */ export declare type VulnerabilityAssessmentScanState = string; /** * Defines values for VulnerabilityAssessmentScanTriggerType. \ * {@link KnownVulnerabilityAssessmentScanTriggerType} can be used interchangeably with VulnerabilityAssessmentScanTriggerType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **OnDemand** \ * **Recurring** */ export declare type VulnerabilityAssessmentScanTriggerType = string; /** Workload classifier operations for a data warehouse */ export declare interface WorkloadClassifier extends ProxyResource { /** The workload classifier member name. */ memberName?: string; /** The workload classifier label. */ label?: string; /** The workload classifier context. */ context?: string; /** The workload classifier start time for classification. */ startTime?: string; /** The workload classifier end time for classification. */ endTime?: string; /** The workload classifier importance. */ importance?: string; } /** A list of workload classifiers for a workload group. */ export declare interface WorkloadClassifierListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: WorkloadClassifier[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a WorkloadClassifiers. */ export declare interface WorkloadClassifiers { /** * Gets the list of workload classifiers for a workload group * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param workloadGroupName The name of the workload group from which to receive the classifiers from. * @param options The options parameters. */ listByWorkloadGroup(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, options?: WorkloadClassifiersListByWorkloadGroupOptionalParams): PagedAsyncIterableIterator; /** * Gets a workload classifier * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param workloadGroupName The name of the workload group from which to receive the classifier from. * @param workloadClassifierName The name of the workload classifier. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, options?: WorkloadClassifiersGetOptionalParams): Promise; /** * Creates or updates a workload classifier. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param workloadGroupName The name of the workload group from which to receive the classifier from. * @param workloadClassifierName The name of the workload classifier to create/update. * @param parameters The properties of the workload classifier. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, parameters: WorkloadClassifier, options?: WorkloadClassifiersCreateOrUpdateOptionalParams): Promise, WorkloadClassifiersCreateOrUpdateResponse>>; /** * Creates or updates a workload classifier. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param workloadGroupName The name of the workload group from which to receive the classifier from. * @param workloadClassifierName The name of the workload classifier to create/update. * @param parameters The properties of the workload classifier. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, parameters: WorkloadClassifier, options?: WorkloadClassifiersCreateOrUpdateOptionalParams): Promise; /** * Deletes a workload classifier. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param workloadGroupName The name of the workload group from which to receive the classifier from. * @param workloadClassifierName The name of the workload classifier to delete. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, options?: WorkloadClassifiersDeleteOptionalParams): Promise, void>>; /** * Deletes a workload classifier. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param workloadGroupName The name of the workload group from which to receive the classifier from. * @param workloadClassifierName The name of the workload classifier to delete. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, options?: WorkloadClassifiersDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface WorkloadClassifiersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier; /** Optional parameters. */ export declare interface WorkloadClassifiersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface WorkloadClassifiersGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type WorkloadClassifiersGetResponse = WorkloadClassifier; /** Optional parameters. */ export declare interface WorkloadClassifiersListByWorkloadGroupNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByWorkloadGroupNext operation. */ export declare type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult; /** Optional parameters. */ export declare interface WorkloadClassifiersListByWorkloadGroupOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByWorkloadGroup operation. */ export declare type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; /** Workload group operations for a data warehouse */ export declare interface WorkloadGroup extends ProxyResource { /** The workload group minimum percentage resource. */ minResourcePercent?: number; /** The workload group cap percentage resource. */ maxResourcePercent?: number; /** The workload group request minimum grant percentage. */ minResourcePercentPerRequest?: number; /** The workload group request maximum grant percentage. */ maxResourcePercentPerRequest?: number; /** The workload group importance level. */ importance?: string; /** The workload group query execution timeout. */ queryExecutionTimeout?: number; } /** A list of workload groups. */ export declare interface WorkloadGroupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: WorkloadGroup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } /** Interface representing a WorkloadGroups. */ export declare interface WorkloadGroups { /** * Gets the list of workload groups * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: WorkloadGroupsListByDatabaseOptionalParams): PagedAsyncIterableIterator; /** * Gets a workload group * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param workloadGroupName The name of the workload group. * @param options The options parameters. */ get(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, options?: WorkloadGroupsGetOptionalParams): Promise; /** * Creates or updates a workload group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param workloadGroupName The name of the workload group. * @param parameters The requested workload group state. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, parameters: WorkloadGroup, options?: WorkloadGroupsCreateOrUpdateOptionalParams): Promise, WorkloadGroupsCreateOrUpdateResponse>>; /** * Creates or updates a workload group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param workloadGroupName The name of the workload group. * @param parameters The requested workload group state. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, parameters: WorkloadGroup, options?: WorkloadGroupsCreateOrUpdateOptionalParams): Promise; /** * Deletes a workload group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param workloadGroupName The name of the workload group to delete. * @param options The options parameters. */ beginDelete(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, options?: WorkloadGroupsDeleteOptionalParams): Promise, void>>; /** * Deletes a workload group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param workloadGroupName The name of the workload group to delete. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, options?: WorkloadGroupsDeleteOptionalParams): Promise; } /** Optional parameters. */ export declare interface WorkloadGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ export declare type WorkloadGroupsCreateOrUpdateResponse = WorkloadGroup; /** Optional parameters. */ export declare interface WorkloadGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } /** Optional parameters. */ export declare interface WorkloadGroupsGetOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the get operation. */ export declare type WorkloadGroupsGetResponse = WorkloadGroup; /** Optional parameters. */ export declare interface WorkloadGroupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabaseNext operation. */ export declare type WorkloadGroupsListByDatabaseNextResponse = WorkloadGroupListResult; /** Optional parameters. */ export declare interface WorkloadGroupsListByDatabaseOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the listByDatabase operation. */ export declare type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult; export { }