tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getCynosdbAccountAllGrantPrivileges
Start a Neo task
Explain and create a tencentcloud.getCynosdbAccountAllGrantPrivileges resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of cynosdb account_all_grant_privileges
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const accountAllGrantPrivileges = tencentcloud.getCynosdbAccountAllGrantPrivileges({
clusterId: "cynosdbmysql-bws8h88b",
account: {
accountName: "keep_dts",
host: "%",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
account_all_grant_privileges = tencentcloud.get_cynosdb_account_all_grant_privileges(cluster_id="cynosdbmysql-bws8h88b",
account={
"account_name": "keep_dts",
"host": "%",
})
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.GetCynosdbAccountAllGrantPrivileges(ctx, &tencentcloud.GetCynosdbAccountAllGrantPrivilegesArgs{
ClusterId: "cynosdbmysql-bws8h88b",
Account: tencentcloud.GetCynosdbAccountAllGrantPrivilegesAccount{
AccountName: "keep_dts",
Host: pulumi.StringRef("%"),
},
}, 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 accountAllGrantPrivileges = Tencentcloud.GetCynosdbAccountAllGrantPrivileges.Invoke(new()
{
ClusterId = "cynosdbmysql-bws8h88b",
Account = new Tencentcloud.Inputs.GetCynosdbAccountAllGrantPrivilegesAccountInputArgs
{
AccountName = "keep_dts",
Host = "%",
},
});
});
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.GetCynosdbAccountAllGrantPrivilegesArgs;
import com.pulumi.tencentcloud.inputs.GetCynosdbAccountAllGrantPrivilegesAccountArgs;
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 accountAllGrantPrivileges = TencentcloudFunctions.getCynosdbAccountAllGrantPrivileges(GetCynosdbAccountAllGrantPrivilegesArgs.builder()
.clusterId("cynosdbmysql-bws8h88b")
.account(GetCynosdbAccountAllGrantPrivilegesAccountArgs.builder()
.accountName("keep_dts")
.host("%")
.build())
.build());
}
}
variables:
accountAllGrantPrivileges:
fn::invoke:
function: tencentcloud:getCynosdbAccountAllGrantPrivileges
arguments:
clusterId: cynosdbmysql-bws8h88b
account:
accountName: keep_dts
host: '%'
Using getCynosdbAccountAllGrantPrivileges
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 getCynosdbAccountAllGrantPrivileges(args: GetCynosdbAccountAllGrantPrivilegesArgs, opts?: InvokeOptions): Promise<GetCynosdbAccountAllGrantPrivilegesResult>
function getCynosdbAccountAllGrantPrivilegesOutput(args: GetCynosdbAccountAllGrantPrivilegesOutputArgs, opts?: InvokeOptions): Output<GetCynosdbAccountAllGrantPrivilegesResult>def get_cynosdb_account_all_grant_privileges(account: Optional[GetCynosdbAccountAllGrantPrivilegesAccount] = None,
cluster_id: Optional[str] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCynosdbAccountAllGrantPrivilegesResult
def get_cynosdb_account_all_grant_privileges_output(account: Optional[pulumi.Input[GetCynosdbAccountAllGrantPrivilegesAccountArgs]] = None,
cluster_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCynosdbAccountAllGrantPrivilegesResult]func GetCynosdbAccountAllGrantPrivileges(ctx *Context, args *GetCynosdbAccountAllGrantPrivilegesArgs, opts ...InvokeOption) (*GetCynosdbAccountAllGrantPrivilegesResult, error)
func GetCynosdbAccountAllGrantPrivilegesOutput(ctx *Context, args *GetCynosdbAccountAllGrantPrivilegesOutputArgs, opts ...InvokeOption) GetCynosdbAccountAllGrantPrivilegesResultOutput> Note: This function is named GetCynosdbAccountAllGrantPrivileges in the Go SDK.
public static class GetCynosdbAccountAllGrantPrivileges
{
public static Task<GetCynosdbAccountAllGrantPrivilegesResult> InvokeAsync(GetCynosdbAccountAllGrantPrivilegesArgs args, InvokeOptions? opts = null)
public static Output<GetCynosdbAccountAllGrantPrivilegesResult> Invoke(GetCynosdbAccountAllGrantPrivilegesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCynosdbAccountAllGrantPrivilegesResult> getCynosdbAccountAllGrantPrivileges(GetCynosdbAccountAllGrantPrivilegesArgs args, InvokeOptions options)
public static Output<GetCynosdbAccountAllGrantPrivilegesResult> getCynosdbAccountAllGrantPrivileges(GetCynosdbAccountAllGrantPrivilegesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCynosdbAccountAllGrantPrivileges:getCynosdbAccountAllGrantPrivileges
arguments:
# arguments dictionaryThe following arguments are supported:
- Account
Get
Cynosdb Account All Grant Privileges Account - account information.
- Cluster
Id string - Cluster ID.
- Id string
- Result
Output stringFile - Used to save results.
- Account
Get
Cynosdb Account All Grant Privileges Account - account information.
- Cluster
Id string - Cluster ID.
- Id string
- Result
Output stringFile - Used to save results.
- account
Get
Cynosdb Account All Grant Privileges Account - account information.
- cluster
Id String - Cluster ID.
- id String
- result
Output StringFile - Used to save results.
- account
Get
Cynosdb Account All Grant Privileges Account - account information.
- cluster
Id string - Cluster ID.
- id string
- result
Output stringFile - Used to save results.
- account
Get
Cynosdb Account All Grant Privileges Account - account information.
- cluster_
id str - Cluster ID.
- id str
- result_
output_ strfile - Used to save results.
- account Property Map
- account information.
- cluster
Id String - Cluster ID.
- id String
- result
Output StringFile - Used to save results.
getCynosdbAccountAllGrantPrivileges Result
The following output properties are available:
- Account
Get
Cynosdb Account All Grant Privileges Account - Cluster
Id string - Database
Privileges List<GetCynosdb Account All Grant Privileges Database Privilege> - Database permissions note: This field may return null, indicating that a valid value cannot be obtained.
- Global
Privileges List<string> - Global permission note: This field may return null, indicating that a valid value cannot be obtained.
- Id string
- Privilege
Statements List<string> - Permission statement note: This field may return null, indicating that a valid value cannot be obtained.
- Table
Privileges List<GetCynosdb Account All Grant Privileges Table Privilege> - Database table permissions note: This field may return null, indicating that a valid value cannot be obtained.
- Result
Output stringFile
- Account
Get
Cynosdb Account All Grant Privileges Account - Cluster
Id string - Database
Privileges []GetCynosdb Account All Grant Privileges Database Privilege - Database permissions note: This field may return null, indicating that a valid value cannot be obtained.
- Global
Privileges []string - Global permission note: This field may return null, indicating that a valid value cannot be obtained.
- Id string
- Privilege
Statements []string - Permission statement note: This field may return null, indicating that a valid value cannot be obtained.
- Table
Privileges []GetCynosdb Account All Grant Privileges Table Privilege - Database table permissions note: This field may return null, indicating that a valid value cannot be obtained.
- Result
Output stringFile
- account
Get
Cynosdb Account All Grant Privileges Account - cluster
Id String - database
Privileges List<GetCynosdb Account All Grant Privileges Database Privilege> - Database permissions note: This field may return null, indicating that a valid value cannot be obtained.
- global
Privileges List<String> - Global permission note: This field may return null, indicating that a valid value cannot be obtained.
- id String
- privilege
Statements List<String> - Permission statement note: This field may return null, indicating that a valid value cannot be obtained.
- table
Privileges List<GetCynosdb Account All Grant Privileges Table Privilege> - Database table permissions note: This field may return null, indicating that a valid value cannot be obtained.
- result
Output StringFile
- account
Get
Cynosdb Account All Grant Privileges Account - cluster
Id string - database
Privileges GetCynosdb Account All Grant Privileges Database Privilege[] - Database permissions note: This field may return null, indicating that a valid value cannot be obtained.
- global
Privileges string[] - Global permission note: This field may return null, indicating that a valid value cannot be obtained.
- id string
- privilege
Statements string[] - Permission statement note: This field may return null, indicating that a valid value cannot be obtained.
- table
Privileges GetCynosdb Account All Grant Privileges Table Privilege[] - Database table permissions note: This field may return null, indicating that a valid value cannot be obtained.
- result
Output stringFile
- account
Get
Cynosdb Account All Grant Privileges Account - cluster_
id str - database_
privileges Sequence[GetCynosdb Account All Grant Privileges Database Privilege] - Database permissions note: This field may return null, indicating that a valid value cannot be obtained.
- global_
privileges Sequence[str] - Global permission note: This field may return null, indicating that a valid value cannot be obtained.
- id str
- privilege_
statements Sequence[str] - Permission statement note: This field may return null, indicating that a valid value cannot be obtained.
- table_
privileges Sequence[GetCynosdb Account All Grant Privileges Table Privilege] - Database table permissions note: This field may return null, indicating that a valid value cannot be obtained.
- result_
output_ strfile
- account Property Map
- cluster
Id String - database
Privileges List<Property Map> - Database permissions note: This field may return null, indicating that a valid value cannot be obtained.
- global
Privileges List<String> - Global permission note: This field may return null, indicating that a valid value cannot be obtained.
- id String
- privilege
Statements List<String> - Permission statement note: This field may return null, indicating that a valid value cannot be obtained.
- table
Privileges List<Property Map> - Database table permissions note: This field may return null, indicating that a valid value cannot be obtained.
- result
Output StringFile
Supporting Types
GetCynosdbAccountAllGrantPrivilegesAccount
- Account
Name string - Account.
- Host string
- Host, default
%.
- Account
Name string - Account.
- Host string
- Host, default
%.
- account
Name String - Account.
- host String
- Host, default
%.
- account
Name string - Account.
- host string
- Host, default
%.
- account_
name str - Account.
- host str
- Host, default
%.
- account
Name String - Account.
- host String
- Host, default
%.
GetCynosdbAccountAllGrantPrivilegesDatabasePrivilege
- Db string
- Database name.
- Privileges List<string>
- Permission List.
- Db string
- Database name.
- Privileges []string
- Permission List.
- db String
- Database name.
- privileges List<String>
- Permission List.
- db string
- Database name.
- privileges string[]
- Permission List.
- db str
- Database name.
- privileges Sequence[str]
- Permission List.
- db String
- Database name.
- privileges List<String>
- Permission List.
GetCynosdbAccountAllGrantPrivilegesTablePrivilege
- Db string
- Database name.
- Privileges List<string>
- Permission List.
- Table
Name string - Table Name.
- Db string
- Database name.
- Privileges []string
- Permission List.
- Table
Name string - Table Name.
- db String
- Database name.
- privileges List<String>
- Permission List.
- table
Name String - Table Name.
- db string
- Database name.
- privileges string[]
- Permission List.
- table
Name string - Table Name.
- db str
- Database name.
- privileges Sequence[str]
- Permission List.
- table_
name str - Table Name.
- db String
- Database name.
- privileges List<String>
- Permission List.
- table
Name String - Table Name.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
