tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getSqlserverReadonlyGroups
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query the list of SQL Server readonly groups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getSqlserverDbs({
instanceId: "mssql-ds1xhnt9",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_sqlserver_dbs(instance_id="mssql-ds1xhnt9")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetSqlserverDbs(ctx, &tencentcloud.GetSqlserverDbsArgs{
InstanceId: "mssql-ds1xhnt9",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetSqlserverDbs.Invoke(new()
{
InstanceId = "mssql-ds1xhnt9",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetSqlserverDbsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = TencentcloudFunctions.getSqlserverDbs(GetSqlserverDbsArgs.builder()
.instanceId("mssql-ds1xhnt9")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getSqlserverDbs
arguments:
instanceId: mssql-ds1xhnt9
Using getSqlserverReadonlyGroups
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 getSqlserverReadonlyGroups(args: GetSqlserverReadonlyGroupsArgs, opts?: InvokeOptions): Promise<GetSqlserverReadonlyGroupsResult>
function getSqlserverReadonlyGroupsOutput(args: GetSqlserverReadonlyGroupsOutputArgs, opts?: InvokeOptions): Output<GetSqlserverReadonlyGroupsResult>
def get_sqlserver_readonly_groups(id: Optional[str] = None,
master_instance_id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSqlserverReadonlyGroupsResult
def get_sqlserver_readonly_groups_output(id: Optional[pulumi.Input[str]] = None,
master_instance_id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSqlserverReadonlyGroupsResult]
func GetSqlserverReadonlyGroups(ctx *Context, args *GetSqlserverReadonlyGroupsArgs, opts ...InvokeOption) (*GetSqlserverReadonlyGroupsResult, error)
func GetSqlserverReadonlyGroupsOutput(ctx *Context, args *GetSqlserverReadonlyGroupsOutputArgs, opts ...InvokeOption) GetSqlserverReadonlyGroupsResultOutput
> Note: This function is named GetSqlserverReadonlyGroups
in the Go SDK.
public static class GetSqlserverReadonlyGroups
{
public static Task<GetSqlserverReadonlyGroupsResult> InvokeAsync(GetSqlserverReadonlyGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetSqlserverReadonlyGroupsResult> Invoke(GetSqlserverReadonlyGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSqlserverReadonlyGroupsResult> getSqlserverReadonlyGroups(GetSqlserverReadonlyGroupsArgs args, InvokeOptions options)
public static Output<GetSqlserverReadonlyGroupsResult> getSqlserverReadonlyGroups(GetSqlserverReadonlyGroupsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getSqlserverReadonlyGroups:getSqlserverReadonlyGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- ID of the readonly group.
- Master
Instance stringId - Master SQL Server instance ID.
- Result
Output stringFile - Used to store results.
- Id string
- ID of the readonly group.
- Master
Instance stringId - Master SQL Server instance ID.
- Result
Output stringFile - Used to store results.
- id String
- ID of the readonly group.
- master
Instance StringId - Master SQL Server instance ID.
- result
Output StringFile - Used to store results.
- id string
- ID of the readonly group.
- master
Instance stringId - Master SQL Server instance ID.
- result
Output stringFile - Used to store results.
- id str
- ID of the readonly group.
- master_
instance_ strid - Master SQL Server instance ID.
- result_
output_ strfile - Used to store results.
- id String
- ID of the readonly group.
- master
Instance StringId - Master SQL Server instance ID.
- result
Output StringFile - Used to store results.
getSqlserverReadonlyGroups Result
The following output properties are available:
- Id string
- ID of the readonly group.
- Lists
List<Get
Sqlserver Readonly Groups List> - A list of SQL Server readonly group. Each element contains the following attributes:
- Master
Instance stringId - Master instance id.
- Result
Output stringFile
- Id string
- ID of the readonly group.
- Lists
[]Get
Sqlserver Readonly Groups List - A list of SQL Server readonly group. Each element contains the following attributes:
- Master
Instance stringId - Master instance id.
- Result
Output stringFile
- id String
- ID of the readonly group.
- lists
List<Get
Sqlserver Readonly Groups List> - A list of SQL Server readonly group. Each element contains the following attributes:
- master
Instance StringId - Master instance id.
- result
Output StringFile
- id string
- ID of the readonly group.
- lists
Get
Sqlserver Readonly Groups List[] - A list of SQL Server readonly group. Each element contains the following attributes:
- master
Instance stringId - Master instance id.
- result
Output stringFile
- id str
- ID of the readonly group.
- lists
Sequence[Get
Sqlserver Readonly Groups List] - A list of SQL Server readonly group. Each element contains the following attributes:
- master_
instance_ strid - Master instance id.
- result_
output_ strfile
- id String
- ID of the readonly group.
- lists List<Property Map>
- A list of SQL Server readonly group. Each element contains the following attributes:
- master
Instance StringId - Master instance id.
- result
Output StringFile
Supporting Types
GetSqlserverReadonlyGroupsList
- Id string
- ID of the readonly group.
- Is
Offline doubleDelay - Indicate whether to offline delayed readonly instances.
- Master
Instance stringId - Master SQL Server instance ID.
- Max
Delay doubleTime - Maximum delay time of the readonly instances.
- Min
Instances double - Minimum readonly instances that stays in the group.
- Name string
- Name of the readonly group.
- Readonly
Instance List<string>Sets - Readonly instance ID set of the readonly group.
- Status double
- Status of the readonly group.
1
for running,5
for applying. - Vip string
- Virtual IP address of the readonly group.
- Vport double
- Virtual port of the readonly group.
- Id string
- ID of the readonly group.
- Is
Offline float64Delay - Indicate whether to offline delayed readonly instances.
- Master
Instance stringId - Master SQL Server instance ID.
- Max
Delay float64Time - Maximum delay time of the readonly instances.
- Min
Instances float64 - Minimum readonly instances that stays in the group.
- Name string
- Name of the readonly group.
- Readonly
Instance []stringSets - Readonly instance ID set of the readonly group.
- Status float64
- Status of the readonly group.
1
for running,5
for applying. - Vip string
- Virtual IP address of the readonly group.
- Vport float64
- Virtual port of the readonly group.
- id String
- ID of the readonly group.
- is
Offline DoubleDelay - Indicate whether to offline delayed readonly instances.
- master
Instance StringId - Master SQL Server instance ID.
- max
Delay DoubleTime - Maximum delay time of the readonly instances.
- min
Instances Double - Minimum readonly instances that stays in the group.
- name String
- Name of the readonly group.
- readonly
Instance List<String>Sets - Readonly instance ID set of the readonly group.
- status Double
- Status of the readonly group.
1
for running,5
for applying. - vip String
- Virtual IP address of the readonly group.
- vport Double
- Virtual port of the readonly group.
- id string
- ID of the readonly group.
- is
Offline numberDelay - Indicate whether to offline delayed readonly instances.
- master
Instance stringId - Master SQL Server instance ID.
- max
Delay numberTime - Maximum delay time of the readonly instances.
- min
Instances number - Minimum readonly instances that stays in the group.
- name string
- Name of the readonly group.
- readonly
Instance string[]Sets - Readonly instance ID set of the readonly group.
- status number
- Status of the readonly group.
1
for running,5
for applying. - vip string
- Virtual IP address of the readonly group.
- vport number
- Virtual port of the readonly group.
- id str
- ID of the readonly group.
- is_
offline_ floatdelay - Indicate whether to offline delayed readonly instances.
- master_
instance_ strid - Master SQL Server instance ID.
- max_
delay_ floattime - Maximum delay time of the readonly instances.
- min_
instances float - Minimum readonly instances that stays in the group.
- name str
- Name of the readonly group.
- readonly_
instance_ Sequence[str]sets - Readonly instance ID set of the readonly group.
- status float
- Status of the readonly group.
1
for running,5
for applying. - vip str
- Virtual IP address of the readonly group.
- vport float
- Virtual port of the readonly group.
- id String
- ID of the readonly group.
- is
Offline NumberDelay - Indicate whether to offline delayed readonly instances.
- master
Instance StringId - Master SQL Server instance ID.
- max
Delay NumberTime - Maximum delay time of the readonly instances.
- min
Instances Number - Minimum readonly instances that stays in the group.
- name String
- Name of the readonly group.
- readonly
Instance List<String>Sets - Readonly instance ID set of the readonly group.
- status Number
- Status of the readonly group.
1
for running,5
for applying. - vip String
- Virtual IP address of the readonly group.
- vport Number
- Virtual port of the readonly group.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack