tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getSqlserverAccounts
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 accounts.
Example Usage
Pull instance account list
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getSqlserverAccounts({
instanceId: "mssql-3cdq7kx5",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_sqlserver_accounts(instance_id="mssql-3cdq7kx5")
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.GetSqlserverAccounts(ctx, &tencentcloud.GetSqlserverAccountsArgs{
InstanceId: "mssql-3cdq7kx5",
}, 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.GetSqlserverAccounts.Invoke(new()
{
InstanceId = "mssql-3cdq7kx5",
});
});
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.GetSqlserverAccountsArgs;
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.getSqlserverAccounts(GetSqlserverAccountsArgs.builder()
.instanceId("mssql-3cdq7kx5")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getSqlserverAccounts
arguments:
instanceId: mssql-3cdq7kx5
Pull instance account list Filter by name
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getSqlserverAccounts({
instanceId: "mssql-3cdq7kx5",
name: "myaccount",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_sqlserver_accounts(instance_id="mssql-3cdq7kx5",
name="myaccount")
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.GetSqlserverAccounts(ctx, &tencentcloud.GetSqlserverAccountsArgs{
InstanceId: "mssql-3cdq7kx5",
Name: pulumi.StringRef("myaccount"),
}, 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.GetSqlserverAccounts.Invoke(new()
{
InstanceId = "mssql-3cdq7kx5",
Name = "myaccount",
});
});
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.GetSqlserverAccountsArgs;
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.getSqlserverAccounts(GetSqlserverAccountsArgs.builder()
.instanceId("mssql-3cdq7kx5")
.name("myaccount")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getSqlserverAccounts
arguments:
instanceId: mssql-3cdq7kx5
name: myaccount
Using getSqlserverAccounts
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 getSqlserverAccounts(args: GetSqlserverAccountsArgs, opts?: InvokeOptions): Promise<GetSqlserverAccountsResult>
function getSqlserverAccountsOutput(args: GetSqlserverAccountsOutputArgs, opts?: InvokeOptions): Output<GetSqlserverAccountsResult>
def get_sqlserver_accounts(id: Optional[str] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSqlserverAccountsResult
def get_sqlserver_accounts_output(id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSqlserverAccountsResult]
func GetSqlserverAccounts(ctx *Context, args *GetSqlserverAccountsArgs, opts ...InvokeOption) (*GetSqlserverAccountsResult, error)
func GetSqlserverAccountsOutput(ctx *Context, args *GetSqlserverAccountsOutputArgs, opts ...InvokeOption) GetSqlserverAccountsResultOutput
> Note: This function is named GetSqlserverAccounts
in the Go SDK.
public static class GetSqlserverAccounts
{
public static Task<GetSqlserverAccountsResult> InvokeAsync(GetSqlserverAccountsArgs args, InvokeOptions? opts = null)
public static Output<GetSqlserverAccountsResult> Invoke(GetSqlserverAccountsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSqlserverAccountsResult> getSqlserverAccounts(GetSqlserverAccountsArgs args, InvokeOptions options)
public static Output<GetSqlserverAccountsResult> getSqlserverAccounts(GetSqlserverAccountsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getSqlserverAccounts:getSqlserverAccounts
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - SQL server instance ID that the account belongs to.
- Id string
- Name string
- Name of the SQL server account to be queried.
- Result
Output stringFile - Used to store results.
- Instance
Id string - SQL server instance ID that the account belongs to.
- Id string
- Name string
- Name of the SQL server account to be queried.
- Result
Output stringFile - Used to store results.
- instance
Id String - SQL server instance ID that the account belongs to.
- id String
- name String
- Name of the SQL server account to be queried.
- result
Output StringFile - Used to store results.
- instance
Id string - SQL server instance ID that the account belongs to.
- id string
- name string
- Name of the SQL server account to be queried.
- result
Output stringFile - Used to store results.
- instance_
id str - SQL server instance ID that the account belongs to.
- id str
- name str
- Name of the SQL server account to be queried.
- result_
output_ strfile - Used to store results.
- instance
Id String - SQL server instance ID that the account belongs to.
- id String
- name String
- Name of the SQL server account to be queried.
- result
Output StringFile - Used to store results.
getSqlserverAccounts Result
The following output properties are available:
- Id string
- Instance
Id string - SQL server instance ID that the account belongs to.
- Lists
List<Get
Sqlserver Accounts List> - A list of SQL Server account. Each element contains the following attributes:
- Name string
- Name of the SQL server account.
- Result
Output stringFile
- Id string
- Instance
Id string - SQL server instance ID that the account belongs to.
- Lists
[]Get
Sqlserver Accounts List - A list of SQL Server account. Each element contains the following attributes:
- Name string
- Name of the SQL server account.
- Result
Output stringFile
- id String
- instance
Id String - SQL server instance ID that the account belongs to.
- lists
List<Get
Sqlserver Accounts List> - A list of SQL Server account. Each element contains the following attributes:
- name String
- Name of the SQL server account.
- result
Output StringFile
- id string
- instance
Id string - SQL server instance ID that the account belongs to.
- lists
Get
Sqlserver Accounts List[] - A list of SQL Server account. Each element contains the following attributes:
- name string
- Name of the SQL server account.
- result
Output stringFile
- id str
- instance_
id str - SQL server instance ID that the account belongs to.
- lists
Sequence[Get
Sqlserver Accounts List] - A list of SQL Server account. Each element contains the following attributes:
- name str
- Name of the SQL server account.
- result_
output_ strfile
- id String
- instance
Id String - SQL server instance ID that the account belongs to.
- lists List<Property Map>
- A list of SQL Server account. Each element contains the following attributes:
- name String
- Name of the SQL server account.
- result
Output StringFile
Supporting Types
GetSqlserverAccountsList
- Create
Time string - Create time of the SQL Server account.
- Instance
Id string - SQL server instance ID that the account belongs to.
- Name string
- Name of the SQL server account to be queried.
- Remark string
- Remark of the SQL Server account.
- Status double
- Status of the SQL Server account.
1
for creating,2
for running,3
for modifying, 4 for resetting password, -1 for deleting. - Update
Time string - Last updated time of the SQL Server account.
- Create
Time string - Create time of the SQL Server account.
- Instance
Id string - SQL server instance ID that the account belongs to.
- Name string
- Name of the SQL server account to be queried.
- Remark string
- Remark of the SQL Server account.
- Status float64
- Status of the SQL Server account.
1
for creating,2
for running,3
for modifying, 4 for resetting password, -1 for deleting. - Update
Time string - Last updated time of the SQL Server account.
- create
Time String - Create time of the SQL Server account.
- instance
Id String - SQL server instance ID that the account belongs to.
- name String
- Name of the SQL server account to be queried.
- remark String
- Remark of the SQL Server account.
- status Double
- Status of the SQL Server account.
1
for creating,2
for running,3
for modifying, 4 for resetting password, -1 for deleting. - update
Time String - Last updated time of the SQL Server account.
- create
Time string - Create time of the SQL Server account.
- instance
Id string - SQL server instance ID that the account belongs to.
- name string
- Name of the SQL server account to be queried.
- remark string
- Remark of the SQL Server account.
- status number
- Status of the SQL Server account.
1
for creating,2
for running,3
for modifying, 4 for resetting password, -1 for deleting. - update
Time string - Last updated time of the SQL Server account.
- create_
time str - Create time of the SQL Server account.
- instance_
id str - SQL server instance ID that the account belongs to.
- name str
- Name of the SQL server account to be queried.
- remark str
- Remark of the SQL Server account.
- status float
- Status of the SQL Server account.
1
for creating,2
for running,3
for modifying, 4 for resetting password, -1 for deleting. - update_
time str - Last updated time of the SQL Server account.
- create
Time String - Create time of the SQL Server account.
- instance
Id String - SQL server instance ID that the account belongs to.
- name String
- Name of the SQL server account to be queried.
- remark String
- Remark of the SQL Server account.
- status Number
- Status of the SQL Server account.
1
for creating,2
for running,3
for modifying, 4 for resetting password, -1 for deleting. - update
Time String - Last updated time of the SQL Server account.
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