Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex Managed Service for SQL Server™
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Information about existing clusters
    • Creating clusters
    • Connecting to databases
    • Stopping and starting clusters
    • Changing cluster and database settings
    • Managing SQL Server hosts
    • Managing databases
    • Managing users
    • Granting permissions and roles
    • Managing backups
    • Deleting clusters
  • Concepts
    • Relationship between service resources
    • Host classes
    • Networks in Managed Service for SQL Server
    • Quotas and limits
    • Storage types
    • Backups
  • Access management
  • Pricing policy
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • BackupService
      • ClusterService
      • DatabaseService
      • ResourcePresetService
      • UserService
      • OperationService
    • REST
      • Overview
      • Backup
        • Overview
        • get
        • list
      • Cluster
        • Overview
        • backup
        • create
        • delete
        • get
        • list
        • listBackups
        • listHosts
        • listLogs
        • listOperations
        • move
        • restore
        • start
        • stop
        • update
      • Database
        • Overview
        • create
        • delete
        • get
        • list
      • ResourcePreset
        • Overview
        • get
        • list
      • User
        • Overview
        • create
        • delete
        • get
        • grantPermission
        • list
        • revokePermission
        • update
      • Operation
        • Overview
        • get
  • Questions and answers
    • General questions
  1. API reference
  2. REST
  3. Cluster
  4. Overview

Cluster

  • JSON Representation
  • Methods

A set of methods for managing SQL Server clusters.

JSON Representation

{
  "id": "string",
  "folderId": "string",
  "createdAt": "string",
  "name": "string",
  "description": "string",
  "labels": "object",
  "environment": "string",
  "monitoring": [
    {
      "name": "string",
      "description": "string",
      "link": "string"
    }
  ],
  "config": {
    "version": "string",
    "resources": {
      "resourcePresetId": "string",
      "diskSize": "string",
      "diskTypeId": "string"
    },
    "backupWindowStart": {
      "hours": "integer",
      "minutes": "integer",
      "seconds": "integer",
      "nanos": "integer"
    },
    "sqlserverConfig_2016Sp2": {
      "effectiveConfig": {
        "maxDegreeOfParallelism": "integer",
        "costThresholdForParallelism": "integer",
        "sqlcollation": "string",
        "auditLevel": "integer",
        "filestreamAccessLevel": "integer",
        "fillFactorPercent": "integer",
        "inDoubtXactResolution": "integer",
        "optimizeForAdHocWorkloads": true,
        "crossDbOwnershipChaining": true
      },
      "userConfig": {
        "maxDegreeOfParallelism": "integer",
        "costThresholdForParallelism": "integer",
        "sqlcollation": "string",
        "auditLevel": "integer",
        "filestreamAccessLevel": "integer",
        "fillFactorPercent": "integer",
        "inDoubtXactResolution": "integer",
        "optimizeForAdHocWorkloads": true,
        "crossDbOwnershipChaining": true
      },
      "defaultConfig": {
        "maxDegreeOfParallelism": "integer",
        "costThresholdForParallelism": "integer",
        "sqlcollation": "string",
        "auditLevel": "integer",
        "filestreamAccessLevel": "integer",
        "fillFactorPercent": "integer",
        "inDoubtXactResolution": "integer",
        "optimizeForAdHocWorkloads": true,
        "crossDbOwnershipChaining": true
      }
    }
  },
  "networkId": "string",
  "health": "string",
  "status": "string"
}
Field Description
id string

ID of the SQL Server cluster. This ID is assigned by Managed Service for SQL Server at creation time.

folderId string

ID of the folder the SQL Server cluster belongs to.

createdAt string (date-time)

String in RFC3339 text format.

name string

Name of the SQL Server cluster.

The name must be unique within the folder, comply with RFC 1035 and be 1-63 characters long.

description string

Description of the SQL Server cluster. 0-256 characters long.

labels object

Custom labels for the SQL Server cluster as key:value pairs. Maximum 64 per resource.

environment string

Deployment environment of the SQL Server cluster.

  • PRODUCTION: Stable environment with a conservative update policy: only hotfixes are applied during regular maintenance.
  • PRESTABLE: Environment with more aggressive update policy: new versions are rolled out irrespective of backward compatibility.
monitoring[] object

Description of monitoring systems relevant to the SQL Server cluster.

monitoring[].
name
string

Name of the monitoring system.

monitoring[].
description
string

Description of the monitoring system.

monitoring[].
link
string

Link to the monitoring system charts for the SQL Server cluster.

config object

Configuration of the SQL Server cluster.

config.
version
string

Version of the SQL Server.

config.
resources
object
config.
resources.
resourcePresetId
string

ID of the preset for computational resources available to a host (CPU, memory etc.). All available presets are listed in the documentation.

config.
resources.
diskSize
string (int64)

Volume of the storage available to a host.

config.
resources.
diskTypeId
string

Type of the storage environment for the host.

Possible values:

  • network-hdd — network HDD drive,
  • network-ssd — network SSD drive,
  • local-ssd — local SSD storage.
config.
backupWindowStart
object

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and google.protobuf.Timestamp.

config.
backupWindowStart.
hours
integer (int32)

Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.

config.
backupWindowStart.
minutes
integer (int32)

Minutes of hour of day. Must be from 0 to 59.

config.
backupWindowStart.
seconds
integer (int32)

Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.

config.
backupWindowStart.
nanos
integer (int32)

Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.

config.
sqlserverConfig_2016Sp2
object
config.
sqlserverConfig_2016Sp2.
effectiveConfig
object

Effective settings for an SQL Server 2016 SP2 cluster (a combination of settings defined in userConfig and defaultConfig).

SQL Server 2016 SP2 supported configuration options are listed here.

Detailed description for each set of options is available in SQL Server documentation.

Any options that are not listed here are not supported.

config.
sqlserverConfig_2016Sp2.
effectiveConfig.
maxDegreeOfParallelism
integer (int64)

Limits the number of processors to use in parallel plan execution per task.

See in-depth description in SQL Server documentation.

Acceptable values are 1 to 99, inclusive.

config.
sqlserverConfig_2016Sp2.
effectiveConfig.
costThresholdForParallelism
integer (int64)

Specifies the threshold at which SQL Server creates and runs parallel plans for queries.

SQL Server creates and runs a parallel plan for a query only when the estimated cost to run a serial plan for the same query is higher than the value of the option.

See in-depth description in SQL Server documentation.

Acceptable values are 5 to 32767, inclusive.

config.
sqlserverConfig_2016Sp2.
effectiveConfig.
sqlcollation
string

Collation used for databases across the instance. Determines if instance is case sensitive, accent sensitive etc.

See in-depth description in SQL Server documentation.

config.
sqlserverConfig_2016Sp2.
effectiveConfig.
auditLevel
integer (int64)

Describes how to configure login auditing to monitor SQL Server Database Engine login activity. Possible values:

  • 0 — do not log login attempts,
  • 1 — log only failed login attempts,
  • 2 — log only successful login attempts (not recommended),
  • 3 — log all login attempts (not recommended).

See in-depth description in SQL Server documentation.

Acceptable values are 0 to 3, inclusive.

config.
sqlserverConfig_2016Sp2.
effectiveConfig.
filestreamAccessLevel
integer (int64)

Determines the FILESTREAM access level for the SQL Server instance. FILESTREAM technology enables SQL Server-based applications to store BLOB data, such as documents and images, on the file system outside of a database. Possible values:

  • 0 — disables FILESTREAM,
  • 1 — enables FILESTREAM for Transact-SQL access,
  • 2 — enables FILESTREAM for Transact-SQL and Win32 streaming access.

See in-depth description in SQL Server documentation.

Acceptable values are 0 to 2, inclusive.

config.
sqlserverConfig_2016Sp2.
effectiveConfig.
fillFactorPercent
integer (int64)

Manages the fill factor server configuration option. When an index is created or rebuilt the fill factor determines the percentage of space on each index leaf-level page to be filled with data, reserving the rest as free space for future growth.

Values 0 and 100 mean full page usage (no space reserved).

See in-depth description in SQL Server documentation.

Acceptable values are 0 to 100, inclusive.

config.
sqlserverConfig_2016Sp2.
effectiveConfig.
inDoubtXactResolution
integer (int64)

Determines the default outcome of distributed transactions that the Microsoft Distributed Transaction Coordinator (MS DTC) is unable to resolve (in-doubt distributed transactions). Possible values:

  • 0 — no automatic resolution, recovery fails if MS DTC cannot resolve any in-doubt transactions,
  • 1 — assume in-doubt transactions committed,
  • 2 — assume in-doubt transactions uncommitted and roll them back.

See in-depth description in SQL Server documentation.

Acceptable values are 0 to 2, inclusive.

config.
sqlserverConfig_2016Sp2.
effectiveConfig.
optimizeForAdHocWorkloads
boolean (boolean)

Determines whether plans should be cached only after second execution. Allows to avoid SQL cache bloat because of single-use plans.

See in-depth description in SQL Server documentation.

config.
sqlserverConfig_2016Sp2.
effectiveConfig.
crossDbOwnershipChaining
boolean (boolean)

Enables cross-database ownership chaining. Example: having explicit access to stored procedure in one database that refers to an object in another database that you don't have explicit access, you'll be able to execute the procedure without permission related error.

See in-depth description in SQL Server documentation.

config.
sqlserverConfig_2016Sp2.
userConfig
object

User-defined settings for an SQL Server 2016 SP2 cluster.

SQL Server 2016 SP2 supported configuration options are listed here.

Detailed description for each set of options is available in SQL Server documentation.

Any options that are not listed here are not supported.

config.
sqlserverConfig_2016Sp2.
userConfig.
maxDegreeOfParallelism
integer (int64)

Limits the number of processors to use in parallel plan execution per task.

See in-depth description in SQL Server documentation.

Acceptable values are 1 to 99, inclusive.

config.
sqlserverConfig_2016Sp2.
userConfig.
costThresholdForParallelism
integer (int64)

Specifies the threshold at which SQL Server creates and runs parallel plans for queries.

SQL Server creates and runs a parallel plan for a query only when the estimated cost to run a serial plan for the same query is higher than the value of the option.

See in-depth description in SQL Server documentation.

Acceptable values are 5 to 32767, inclusive.

config.
sqlserverConfig_2016Sp2.
userConfig.
sqlcollation
string

Collation used for databases across the instance. Determines if instance is case sensitive, accent sensitive etc.

See in-depth description in SQL Server documentation.

config.
sqlserverConfig_2016Sp2.
userConfig.
auditLevel
integer (int64)

Describes how to configure login auditing to monitor SQL Server Database Engine login activity. Possible values:

  • 0 — do not log login attempts,
  • 1 — log only failed login attempts,
  • 2 — log only successful login attempts (not recommended),
  • 3 — log all login attempts (not recommended).

See in-depth description in SQL Server documentation.

Acceptable values are 0 to 3, inclusive.

config.
sqlserverConfig_2016Sp2.
userConfig.
filestreamAccessLevel
integer (int64)

Determines the FILESTREAM access level for the SQL Server instance. FILESTREAM technology enables SQL Server-based applications to store BLOB data, such as documents and images, on the file system outside of a database. Possible values:

  • 0 — disables FILESTREAM,
  • 1 — enables FILESTREAM for Transact-SQL access,
  • 2 — enables FILESTREAM for Transact-SQL and Win32 streaming access.

See in-depth description in SQL Server documentation.

Acceptable values are 0 to 2, inclusive.

config.
sqlserverConfig_2016Sp2.
userConfig.
fillFactorPercent
integer (int64)

Manages the fill factor server configuration option. When an index is created or rebuilt the fill factor determines the percentage of space on each index leaf-level page to be filled with data, reserving the rest as free space for future growth.

Values 0 and 100 mean full page usage (no space reserved).

See in-depth description in SQL Server documentation.

Acceptable values are 0 to 100, inclusive.

config.
sqlserverConfig_2016Sp2.
userConfig.
inDoubtXactResolution
integer (int64)

Determines the default outcome of distributed transactions that the Microsoft Distributed Transaction Coordinator (MS DTC) is unable to resolve (in-doubt distributed transactions). Possible values:

  • 0 — no automatic resolution, recovery fails if MS DTC cannot resolve any in-doubt transactions,
  • 1 — assume in-doubt transactions committed,
  • 2 — assume in-doubt transactions uncommitted and roll them back.

See in-depth description in SQL Server documentation.

Acceptable values are 0 to 2, inclusive.

config.
sqlserverConfig_2016Sp2.
userConfig.
optimizeForAdHocWorkloads
boolean (boolean)

Determines whether plans should be cached only after second execution. Allows to avoid SQL cache bloat because of single-use plans.

See in-depth description in SQL Server documentation.

config.
sqlserverConfig_2016Sp2.
userConfig.
crossDbOwnershipChaining
boolean (boolean)

Enables cross-database ownership chaining. Example: having explicit access to stored procedure in one database that refers to an object in another database that you don't have explicit access, you'll be able to execute the procedure without permission related error.

See in-depth description in SQL Server documentation.

config.
sqlserverConfig_2016Sp2.
defaultConfig
object

Default configuration for an SQL Server 2016 SP2 cluster.

SQL Server 2016 SP2 supported configuration options are listed here.

Detailed description for each set of options is available in SQL Server documentation.

Any options that are not listed here are not supported.

config.
sqlserverConfig_2016Sp2.
defaultConfig.
maxDegreeOfParallelism
integer (int64)

Limits the number of processors to use in parallel plan execution per task.

See in-depth description in SQL Server documentation.

Acceptable values are 1 to 99, inclusive.

config.
sqlserverConfig_2016Sp2.
defaultConfig.
costThresholdForParallelism
integer (int64)

Specifies the threshold at which SQL Server creates and runs parallel plans for queries.

SQL Server creates and runs a parallel plan for a query only when the estimated cost to run a serial plan for the same query is higher than the value of the option.

See in-depth description in SQL Server documentation.

Acceptable values are 5 to 32767, inclusive.

config.
sqlserverConfig_2016Sp2.
defaultConfig.
sqlcollation
string

Collation used for databases across the instance. Determines if instance is case sensitive, accent sensitive etc.

See in-depth description in SQL Server documentation.

config.
sqlserverConfig_2016Sp2.
defaultConfig.
auditLevel
integer (int64)

Describes how to configure login auditing to monitor SQL Server Database Engine login activity. Possible values:

  • 0 — do not log login attempts,
  • 1 — log only failed login attempts,
  • 2 — log only successful login attempts (not recommended),
  • 3 — log all login attempts (not recommended).

See in-depth description in SQL Server documentation.

Acceptable values are 0 to 3, inclusive.

config.
sqlserverConfig_2016Sp2.
defaultConfig.
filestreamAccessLevel
integer (int64)

Determines the FILESTREAM access level for the SQL Server instance. FILESTREAM technology enables SQL Server-based applications to store BLOB data, such as documents and images, on the file system outside of a database. Possible values:

  • 0 — disables FILESTREAM,
  • 1 — enables FILESTREAM for Transact-SQL access,
  • 2 — enables FILESTREAM for Transact-SQL and Win32 streaming access.

See in-depth description in SQL Server documentation.

Acceptable values are 0 to 2, inclusive.

config.
sqlserverConfig_2016Sp2.
defaultConfig.
fillFactorPercent
integer (int64)

Manages the fill factor server configuration option. When an index is created or rebuilt the fill factor determines the percentage of space on each index leaf-level page to be filled with data, reserving the rest as free space for future growth.

Values 0 and 100 mean full page usage (no space reserved).

See in-depth description in SQL Server documentation.

Acceptable values are 0 to 100, inclusive.

config.
sqlserverConfig_2016Sp2.
defaultConfig.
inDoubtXactResolution
integer (int64)

Determines the default outcome of distributed transactions that the Microsoft Distributed Transaction Coordinator (MS DTC) is unable to resolve (in-doubt distributed transactions). Possible values:

  • 0 — no automatic resolution, recovery fails if MS DTC cannot resolve any in-doubt transactions,
  • 1 — assume in-doubt transactions committed,
  • 2 — assume in-doubt transactions uncommitted and roll them back.

See in-depth description in SQL Server documentation.

Acceptable values are 0 to 2, inclusive.

config.
sqlserverConfig_2016Sp2.
defaultConfig.
optimizeForAdHocWorkloads
boolean (boolean)

Determines whether plans should be cached only after second execution. Allows to avoid SQL cache bloat because of single-use plans.

See in-depth description in SQL Server documentation.

config.
sqlserverConfig_2016Sp2.
defaultConfig.
crossDbOwnershipChaining
boolean (boolean)

Enables cross-database ownership chaining. Example: having explicit access to stored procedure in one database that refers to an object in another database that you don't have explicit access, you'll be able to execute the procedure without permission related error.

See in-depth description in SQL Server documentation.

networkId string

ID of the network the cluster belongs to.

health string

Aggregated cluster health.

  • HEALTH_UNKNOWN: State of the cluster is unknown (health of all hosts in the cluster is UNKNOWN).
  • ALIVE: Cluster is alive and well (health of all hosts in the cluster is ALIVE).
  • DEAD: Cluster is inoperable (health of all hosts in the cluster is DEAD).
  • DEGRADED: Cluster is in degraded state (health of at least one of the hosts in the cluster is not ALIVE).
status string

Current state of the cluster.

  • STATUS_UNKNOWN: Cluster state is unknown.
  • CREATING: Cluster is being created.
  • RUNNING: Cluster is running normally.
  • ERROR: Cluster encountered a problem and cannot operate.
  • UPDATING: Cluster is being updated.
  • STOPPING: Cluster is stopping.
  • STOPPED: Cluster stopped.
  • STARTING: Cluster is starting.

Methods

Method Description
backup Creates a backup for the specified SQL Server cluster.
create Creates an SQL Server cluster in the specified folder.
delete Deletes the specified SQL Server cluster.
get Returns the specified SQL Server cluster.
list Retrieves the list of SQL Server clusters that belong to the specified folder.
listBackups Retrieves the list of available backups for the specified SQL Server cluster.
listHosts Retrieves a list of hosts for the specified SQL Server cluster.
listLogs Retrieves logs for the specified SQL Server cluster.
listOperations Retrieves the list of operations for the specified SQL Server cluster.
move Moves the specified SQL Server cluster to the specified folder.
restore Creates a new SQL Server cluster using the specified backup.
start Starts the specified SQL Server cluster.
stop Stops the specified SQL Server cluster.
update Modifies the specified SQL Server cluster.
In this article:
  • JSON Representation
  • Methods
Language
Careers
Privacy policy
Terms of use
© 2021 Yandex.Cloud LLC