Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.getMdbSqlserverCluster
Explore with Pulumi AI
Get information about a Yandex Managed SQLServer cluster. For more information, see the official documentation.
Example Usage
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Yandex.GetMdbSqlserverCluster.InvokeAsync(new Yandex.GetMdbSqlserverClusterArgs
{
Name = "test",
}));
this.NetworkId = foo.Apply(foo => foo.NetworkId);
}
[Output("networkId")]
public Output<string> NetworkId { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
opt0 := "test"
foo, err := yandex.GetMdbSqlserverCluster(ctx, &GetMdbSqlserverClusterArgs{
Name: &opt0,
}, nil)
if err != nil {
return err
}
ctx.Export("networkId", foo.NetworkId)
return nil
})
}
Coming soon!
import pulumi
import pulumi_yandex as yandex
foo = yandex.get_mdb_sqlserver_cluster(name="test")
pulumi.export("networkId", foo.network_id)
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const foo = pulumi.output(yandex.getMdbSqlserverCluster({
name: "test",
}));
export const networkId = foo.networkId;
Coming soon!
Using getMdbSqlserverCluster
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMdbSqlserverCluster(args: GetMdbSqlserverClusterArgs, opts?: InvokeOptions): Promise<GetMdbSqlserverClusterResult>
function getMdbSqlserverClusterOutput(args: GetMdbSqlserverClusterOutputArgs, opts?: InvokeOptions): Output<GetMdbSqlserverClusterResult>
def get_mdb_sqlserver_cluster(cluster_id: Optional[str] = None,
deletion_protection: Optional[bool] = None,
folder_id: Optional[str] = None,
name: Optional[str] = None,
sqlserver_config: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetMdbSqlserverClusterResult
def get_mdb_sqlserver_cluster_output(cluster_id: Optional[pulumi.Input[str]] = None,
deletion_protection: Optional[pulumi.Input[bool]] = None,
folder_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
sqlserver_config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMdbSqlserverClusterResult]
func GetMdbSqlserverCluster(ctx *Context, args *GetMdbSqlserverClusterArgs, opts ...InvokeOption) (*GetMdbSqlserverClusterResult, error)
func GetMdbSqlserverClusterOutput(ctx *Context, args *GetMdbSqlserverClusterOutputArgs, opts ...InvokeOption) GetMdbSqlserverClusterResultOutput
> Note: This function is named GetMdbSqlserverCluster
in the Go SDK.
public static class GetMdbSqlserverCluster
{
public static Task<GetMdbSqlserverClusterResult> InvokeAsync(GetMdbSqlserverClusterArgs args, InvokeOptions? opts = null)
public static Output<GetMdbSqlserverClusterResult> Invoke(GetMdbSqlserverClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMdbSqlserverClusterResult> getMdbSqlserverCluster(GetMdbSqlserverClusterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: yandex:index/getMdbSqlserverCluster:getMdbSqlserverCluster
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - The ID of the SQLServer cluster.
- Deletion
Protection bool - Folder
Id string - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- Name string
- The name of the SQLServer cluster.
- Sqlserver
Config Dictionary<string, string> - SQLServer cluster config.
- Cluster
Id string - The ID of the SQLServer cluster.
- Deletion
Protection bool - Folder
Id string - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- Name string
- The name of the SQLServer cluster.
- Sqlserver
Config map[string]string - SQLServer cluster config.
- cluster
Id String - The ID of the SQLServer cluster.
- deletion
Protection Boolean - folder
Id String - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- name String
- The name of the SQLServer cluster.
- sqlserver
Config Map<String,String> - SQLServer cluster config.
- cluster
Id string - The ID of the SQLServer cluster.
- deletion
Protection boolean - folder
Id string - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- name string
- The name of the SQLServer cluster.
- sqlserver
Config {[key: string]: string} - SQLServer cluster config.
- cluster_
id str - The ID of the SQLServer cluster.
- deletion_
protection bool - folder_
id str - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- name str
- The name of the SQLServer cluster.
- sqlserver_
config Mapping[str, str] - SQLServer cluster config.
- cluster
Id String - The ID of the SQLServer cluster.
- deletion
Protection Boolean - folder
Id String - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- name String
- The name of the SQLServer cluster.
- sqlserver
Config Map<String> - SQLServer cluster config.
getMdbSqlserverCluster Result
The following output properties are available:
- Backup
Window List<GetStarts Mdb Sqlserver Cluster Backup Window Start> - Cluster
Id string - Created
At string - Creation timestamp of the key.
- Databases
List<Get
Mdb Sqlserver Cluster Database> - A database of the SQLServer cluster. The structure is documented below.
- Deletion
Protection bool - Description string
- Description of the SQLServer cluster.
- Environment string
- Deployment environment of the SQLServer cluster.
- Folder
Id string - Health string
- Aggregated health of the cluster.
- Host
Group List<string>Ids - A list of IDs of the host groups hosting VMs of the cluster.
- Hosts
List<Get
Mdb Sqlserver Cluster Host> - A host of the SQLServer cluster. The structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, string>
- A set of key/value label pairs to assign to the SQLServer cluster.
- Name string
- The name of the database.
- Network
Id string - ID of the network, to which the SQLServer cluster belongs.
- Resources
List<Get
Mdb Sqlserver Cluster Resource> - Resources allocated to hosts of the SQLServer cluster. The structure is documented below.
- Security
Group List<string>Ids - A set of ids of security groups assigned to hosts of the cluster.
- Sqlserver
Config Dictionary<string, string> - SQLServer cluster config.
- Status string
- Status of the cluster.
- Users
List<Get
Mdb Sqlserver Cluster User> - A user of the SQLServer cluster. The structure is documented below.
- Version string
- Version of the SQLServer cluster.
- Backup
Window []GetStarts Mdb Sqlserver Cluster Backup Window Start - Cluster
Id string - Created
At string - Creation timestamp of the key.
- Databases
[]Get
Mdb Sqlserver Cluster Database - A database of the SQLServer cluster. The structure is documented below.
- Deletion
Protection bool - Description string
- Description of the SQLServer cluster.
- Environment string
- Deployment environment of the SQLServer cluster.
- Folder
Id string - Health string
- Aggregated health of the cluster.
- Host
Group []stringIds - A list of IDs of the host groups hosting VMs of the cluster.
- Hosts
[]Get
Mdb Sqlserver Cluster Host - A host of the SQLServer cluster. The structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels map[string]string
- A set of key/value label pairs to assign to the SQLServer cluster.
- Name string
- The name of the database.
- Network
Id string - ID of the network, to which the SQLServer cluster belongs.
- Resources
[]Get
Mdb Sqlserver Cluster Resource - Resources allocated to hosts of the SQLServer cluster. The structure is documented below.
- Security
Group []stringIds - A set of ids of security groups assigned to hosts of the cluster.
- Sqlserver
Config map[string]string - SQLServer cluster config.
- Status string
- Status of the cluster.
- Users
[]Get
Mdb Sqlserver Cluster User - A user of the SQLServer cluster. The structure is documented below.
- Version string
- Version of the SQLServer cluster.
- backup
Window List<GetStarts Mdb Sqlserver Cluster Backup Window Start> - cluster
Id String - created
At String - Creation timestamp of the key.
- databases
List<Get
Mdb Sqlserver Cluster Database> - A database of the SQLServer cluster. The structure is documented below.
- deletion
Protection Boolean - description String
- Description of the SQLServer cluster.
- environment String
- Deployment environment of the SQLServer cluster.
- folder
Id String - health String
- Aggregated health of the cluster.
- host
Group List<String>Ids - A list of IDs of the host groups hosting VMs of the cluster.
- hosts
List<Get
Mdb Sqlserver Cluster Host> - A host of the SQLServer cluster. The structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String,String>
- A set of key/value label pairs to assign to the SQLServer cluster.
- name String
- The name of the database.
- network
Id String - ID of the network, to which the SQLServer cluster belongs.
- resources
List<Get
Mdb Sqlserver Cluster Resource> - Resources allocated to hosts of the SQLServer cluster. The structure is documented below.
- security
Group List<String>Ids - A set of ids of security groups assigned to hosts of the cluster.
- sqlserver
Config Map<String,String> - SQLServer cluster config.
- status String
- Status of the cluster.
- users
List<Get
Mdb Sqlserver Cluster User> - A user of the SQLServer cluster. The structure is documented below.
- version String
- Version of the SQLServer cluster.
- backup
Window GetStarts Mdb Sqlserver Cluster Backup Window Start[] - cluster
Id string - created
At string - Creation timestamp of the key.
- databases
Get
Mdb Sqlserver Cluster Database[] - A database of the SQLServer cluster. The structure is documented below.
- deletion
Protection boolean - description string
- Description of the SQLServer cluster.
- environment string
- Deployment environment of the SQLServer cluster.
- folder
Id string - health string
- Aggregated health of the cluster.
- host
Group string[]Ids - A list of IDs of the host groups hosting VMs of the cluster.
- hosts
Get
Mdb Sqlserver Cluster Host[] - A host of the SQLServer cluster. The structure is documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- labels {[key: string]: string}
- A set of key/value label pairs to assign to the SQLServer cluster.
- name string
- The name of the database.
- network
Id string - ID of the network, to which the SQLServer cluster belongs.
- resources
Get
Mdb Sqlserver Cluster Resource[] - Resources allocated to hosts of the SQLServer cluster. The structure is documented below.
- security
Group string[]Ids - A set of ids of security groups assigned to hosts of the cluster.
- sqlserver
Config {[key: string]: string} - SQLServer cluster config.
- status string
- Status of the cluster.
- users
Get
Mdb Sqlserver Cluster User[] - A user of the SQLServer cluster. The structure is documented below.
- version string
- Version of the SQLServer cluster.
- backup_
window_ Sequence[Getstarts Mdb Sqlserver Cluster Backup Window Start] - cluster_
id str - created_
at str - Creation timestamp of the key.
- databases
Sequence[Get
Mdb Sqlserver Cluster Database] - A database of the SQLServer cluster. The structure is documented below.
- deletion_
protection bool - description str
- Description of the SQLServer cluster.
- environment str
- Deployment environment of the SQLServer cluster.
- folder_
id str - health str
- Aggregated health of the cluster.
- host_
group_ Sequence[str]ids - A list of IDs of the host groups hosting VMs of the cluster.
- hosts
Sequence[Get
Mdb Sqlserver Cluster Host] - A host of the SQLServer cluster. The structure is documented below.
- id str
- The provider-assigned unique ID for this managed resource.
- labels Mapping[str, str]
- A set of key/value label pairs to assign to the SQLServer cluster.
- name str
- The name of the database.
- network_
id str - ID of the network, to which the SQLServer cluster belongs.
- resources
Sequence[Get
Mdb Sqlserver Cluster Resource] - Resources allocated to hosts of the SQLServer cluster. The structure is documented below.
- security_
group_ Sequence[str]ids - A set of ids of security groups assigned to hosts of the cluster.
- sqlserver_
config Mapping[str, str] - SQLServer cluster config.
- status str
- Status of the cluster.
- users
Sequence[Get
Mdb Sqlserver Cluster User] - A user of the SQLServer cluster. The structure is documented below.
- version str
- Version of the SQLServer cluster.
- backup
Window List<Property Map>Starts - cluster
Id String - created
At String - Creation timestamp of the key.
- databases List<Property Map>
- A database of the SQLServer cluster. The structure is documented below.
- deletion
Protection Boolean - description String
- Description of the SQLServer cluster.
- environment String
- Deployment environment of the SQLServer cluster.
- folder
Id String - health String
- Aggregated health of the cluster.
- host
Group List<String>Ids - A list of IDs of the host groups hosting VMs of the cluster.
- hosts List<Property Map>
- A host of the SQLServer cluster. The structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String>
- A set of key/value label pairs to assign to the SQLServer cluster.
- name String
- The name of the database.
- network
Id String - ID of the network, to which the SQLServer cluster belongs.
- resources List<Property Map>
- Resources allocated to hosts of the SQLServer cluster. The structure is documented below.
- security
Group List<String>Ids - A set of ids of security groups assigned to hosts of the cluster.
- sqlserver
Config Map<String> - SQLServer cluster config.
- status String
- Status of the cluster.
- users List<Property Map>
- A user of the SQLServer cluster. The structure is documented below.
- version String
- Version of the SQLServer cluster.
Supporting Types
GetMdbSqlserverClusterBackupWindowStart
GetMdbSqlserverClusterDatabase
- Name string
- The name of the SQLServer cluster.
- Name string
- The name of the SQLServer cluster.
- name String
- The name of the SQLServer cluster.
- name string
- The name of the SQLServer cluster.
- name str
- The name of the SQLServer cluster.
- name String
- The name of the SQLServer cluster.
GetMdbSqlserverClusterHost
- Assign
Public boolIp - Sets whether the host should get a public IP address on creation. Changing this parameter for an existing host is not supported at the moment
- Fqdn string
- The fully qualified domain name of the host.
- Subnet
Id string - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- Zone string
- The availability zone where the SQLServer host will be created.
- Assign
Public boolIp - Sets whether the host should get a public IP address on creation. Changing this parameter for an existing host is not supported at the moment
- Fqdn string
- The fully qualified domain name of the host.
- Subnet
Id string - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- Zone string
- The availability zone where the SQLServer host will be created.
- assign
Public BooleanIp - Sets whether the host should get a public IP address on creation. Changing this parameter for an existing host is not supported at the moment
- fqdn String
- The fully qualified domain name of the host.
- subnet
Id String - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- zone String
- The availability zone where the SQLServer host will be created.
- assign
Public booleanIp - Sets whether the host should get a public IP address on creation. Changing this parameter for an existing host is not supported at the moment
- fqdn string
- The fully qualified domain name of the host.
- subnet
Id string - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- zone string
- The availability zone where the SQLServer host will be created.
- assign_
public_ boolip - Sets whether the host should get a public IP address on creation. Changing this parameter for an existing host is not supported at the moment
- fqdn str
- The fully qualified domain name of the host.
- subnet_
id str - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- zone str
- The availability zone where the SQLServer host will be created.
- assign
Public BooleanIp - Sets whether the host should get a public IP address on creation. Changing this parameter for an existing host is not supported at the moment
- fqdn String
- The fully qualified domain name of the host.
- subnet
Id String - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- zone String
- The availability zone where the SQLServer host will be created.
GetMdbSqlserverClusterResource
- Disk
Size int - Volume of the storage available to a SQLServer host, in gigabytes.
- Disk
Type stringId - Type of the storage for SQLServer hosts.
- Resource
Preset stringId
- Disk
Size int - Volume of the storage available to a SQLServer host, in gigabytes.
- Disk
Type stringId - Type of the storage for SQLServer hosts.
- Resource
Preset stringId
- disk
Size Integer - Volume of the storage available to a SQLServer host, in gigabytes.
- disk
Type StringId - Type of the storage for SQLServer hosts.
- resource
Preset StringId
- disk
Size number - Volume of the storage available to a SQLServer host, in gigabytes.
- disk
Type stringId - Type of the storage for SQLServer hosts.
- resource
Preset stringId
- disk_
size int - Volume of the storage available to a SQLServer host, in gigabytes.
- disk_
type_ strid - Type of the storage for SQLServer hosts.
- resource_
preset_ strid
- disk
Size Number - Volume of the storage available to a SQLServer host, in gigabytes.
- disk
Type StringId - Type of the storage for SQLServer hosts.
- resource
Preset StringId
GetMdbSqlserverClusterUser
- Name string
- The name of the SQLServer cluster.
- Password string
- The password of the user.
- Permissions
List<Get
Mdb Sqlserver Cluster User Permission> - Set of permissions granted to the user. The structure is documented below.
- Name string
- The name of the SQLServer cluster.
- Password string
- The password of the user.
- Permissions
[]Get
Mdb Sqlserver Cluster User Permission - Set of permissions granted to the user. The structure is documented below.
- name String
- The name of the SQLServer cluster.
- password String
- The password of the user.
- permissions
List<Get
Mdb Sqlserver Cluster User Permission> - Set of permissions granted to the user. The structure is documented below.
- name string
- The name of the SQLServer cluster.
- password string
- The password of the user.
- permissions
Get
Mdb Sqlserver Cluster User Permission[] - Set of permissions granted to the user. The structure is documented below.
- name str
- The name of the SQLServer cluster.
- password str
- The password of the user.
- permissions
Sequence[Get
Mdb Sqlserver Cluster User Permission] - Set of permissions granted to the user. The structure is documented below.
- name String
- The name of the SQLServer cluster.
- password String
- The password of the user.
- permissions List<Property Map>
- Set of permissions granted to the user. The structure is documented below.
GetMdbSqlserverClusterUserPermission
- Database
Name string - The name of the database that the permission grants access to.
- Roles List<string>
- List user's roles in the database.
Allowed roles:
OWNER
,SECURITYADMIN
,ACCESSADMIN
,BACKUPOPERATOR
,DDLADMIN
,DATAWRITER
,DATAREADER
,DENYDATAWRITER
,DENYDATAREADER
.
- Database
Name string - The name of the database that the permission grants access to.
- Roles []string
- List user's roles in the database.
Allowed roles:
OWNER
,SECURITYADMIN
,ACCESSADMIN
,BACKUPOPERATOR
,DDLADMIN
,DATAWRITER
,DATAREADER
,DENYDATAWRITER
,DENYDATAREADER
.
- database
Name String - The name of the database that the permission grants access to.
- roles List<String>
- List user's roles in the database.
Allowed roles:
OWNER
,SECURITYADMIN
,ACCESSADMIN
,BACKUPOPERATOR
,DDLADMIN
,DATAWRITER
,DATAREADER
,DENYDATAWRITER
,DENYDATAREADER
.
- database
Name string - The name of the database that the permission grants access to.
- roles string[]
- List user's roles in the database.
Allowed roles:
OWNER
,SECURITYADMIN
,ACCESSADMIN
,BACKUPOPERATOR
,DDLADMIN
,DATAWRITER
,DATAREADER
,DENYDATAWRITER
,DENYDATAREADER
.
- database_
name str - The name of the database that the permission grants access to.
- roles Sequence[str]
- List user's roles in the database.
Allowed roles:
OWNER
,SECURITYADMIN
,ACCESSADMIN
,BACKUPOPERATOR
,DDLADMIN
,DATAWRITER
,DATAREADER
,DENYDATAWRITER
,DENYDATAREADER
.
- database
Name String - The name of the database that the permission grants access to.
- roles List<String>
- List user's roles in the database.
Allowed roles:
OWNER
,SECURITYADMIN
,ACCESSADMIN
,BACKUPOPERATOR
,DDLADMIN
,DATAWRITER
,DATAREADER
,DENYDATAWRITER
,DENYDATAREADER
.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.