tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getMysqlSupportedPrivileges
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of mysql supported_privileges
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const supportedPrivileges = tencentcloud.getMysqlSupportedPrivileges({
instanceId: "cdb-fitq5t9h",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
supported_privileges = tencentcloud.get_mysql_supported_privileges(instance_id="cdb-fitq5t9h")
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.GetMysqlSupportedPrivileges(ctx, &tencentcloud.GetMysqlSupportedPrivilegesArgs{
InstanceId: "cdb-fitq5t9h",
}, 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 supportedPrivileges = Tencentcloud.GetMysqlSupportedPrivileges.Invoke(new()
{
InstanceId = "cdb-fitq5t9h",
});
});
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.GetMysqlSupportedPrivilegesArgs;
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 supportedPrivileges = TencentcloudFunctions.getMysqlSupportedPrivileges(GetMysqlSupportedPrivilegesArgs.builder()
.instanceId("cdb-fitq5t9h")
.build());
}
}
variables:
supportedPrivileges:
fn::invoke:
function: tencentcloud:getMysqlSupportedPrivileges
arguments:
instanceId: cdb-fitq5t9h
Using getMysqlSupportedPrivileges
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 getMysqlSupportedPrivileges(args: GetMysqlSupportedPrivilegesArgs, opts?: InvokeOptions): Promise<GetMysqlSupportedPrivilegesResult>
function getMysqlSupportedPrivilegesOutput(args: GetMysqlSupportedPrivilegesOutputArgs, opts?: InvokeOptions): Output<GetMysqlSupportedPrivilegesResult>
def get_mysql_supported_privileges(id: Optional[str] = None,
instance_id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMysqlSupportedPrivilegesResult
def get_mysql_supported_privileges_output(id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMysqlSupportedPrivilegesResult]
func GetMysqlSupportedPrivileges(ctx *Context, args *GetMysqlSupportedPrivilegesArgs, opts ...InvokeOption) (*GetMysqlSupportedPrivilegesResult, error)
func GetMysqlSupportedPrivilegesOutput(ctx *Context, args *GetMysqlSupportedPrivilegesOutputArgs, opts ...InvokeOption) GetMysqlSupportedPrivilegesResultOutput
> Note: This function is named GetMysqlSupportedPrivileges
in the Go SDK.
public static class GetMysqlSupportedPrivileges
{
public static Task<GetMysqlSupportedPrivilegesResult> InvokeAsync(GetMysqlSupportedPrivilegesArgs args, InvokeOptions? opts = null)
public static Output<GetMysqlSupportedPrivilegesResult> Invoke(GetMysqlSupportedPrivilegesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMysqlSupportedPrivilegesResult> getMysqlSupportedPrivileges(GetMysqlSupportedPrivilegesArgs args, InvokeOptions options)
public static Output<GetMysqlSupportedPrivilegesResult> getMysqlSupportedPrivileges(GetMysqlSupportedPrivilegesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getMysqlSupportedPrivileges:getMysqlSupportedPrivileges
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
- Id string
- Result
Output stringFile - Used to save results.
- Instance
Id string - The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
- Id string
- Result
Output stringFile - Used to save results.
- instance
Id String - The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
- id String
- result
Output StringFile - Used to save results.
- instance
Id string - The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
- id string
- result
Output stringFile - Used to save results.
- instance_
id str - The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
- id str
- result_
output_ strfile - Used to save results.
- instance
Id String - The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
- id String
- result
Output StringFile - Used to save results.
getMysqlSupportedPrivileges Result
The following output properties are available:
- Column
Supported List<string>Privileges - The database column permissions supported by the instance.
- Database
Supported List<string>Privileges - Database permissions supported by the instance.
- Global
Supported List<string>Privileges - Global permissions supported by the instance.
- Id string
- Instance
Id string - Table
Supported List<string>Privileges - Database table permissions supported by the instance.
- Result
Output stringFile
- Column
Supported []stringPrivileges - The database column permissions supported by the instance.
- Database
Supported []stringPrivileges - Database permissions supported by the instance.
- Global
Supported []stringPrivileges - Global permissions supported by the instance.
- Id string
- Instance
Id string - Table
Supported []stringPrivileges - Database table permissions supported by the instance.
- Result
Output stringFile
- column
Supported List<String>Privileges - The database column permissions supported by the instance.
- database
Supported List<String>Privileges - Database permissions supported by the instance.
- global
Supported List<String>Privileges - Global permissions supported by the instance.
- id String
- instance
Id String - table
Supported List<String>Privileges - Database table permissions supported by the instance.
- result
Output StringFile
- column
Supported string[]Privileges - The database column permissions supported by the instance.
- database
Supported string[]Privileges - Database permissions supported by the instance.
- global
Supported string[]Privileges - Global permissions supported by the instance.
- id string
- instance
Id string - table
Supported string[]Privileges - Database table permissions supported by the instance.
- result
Output stringFile
- column_
supported_ Sequence[str]privileges - The database column permissions supported by the instance.
- database_
supported_ Sequence[str]privileges - Database permissions supported by the instance.
- global_
supported_ Sequence[str]privileges - Global permissions supported by the instance.
- id str
- instance_
id str - table_
supported_ Sequence[str]privileges - Database table permissions supported by the instance.
- result_
output_ strfile
- column
Supported List<String>Privileges - The database column permissions supported by the instance.
- database
Supported List<String>Privileges - Database permissions supported by the instance.
- global
Supported List<String>Privileges - Global permissions supported by the instance.
- id String
- instance
Id String - table
Supported List<String>Privileges - Database table permissions supported by the instance.
- result
Output StringFile
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