1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DcdbAccountPrivileges
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.DcdbAccountPrivileges

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a dcdb account_privileges

    Create DcdbAccountPrivileges Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DcdbAccountPrivileges(name: string, args: DcdbAccountPrivilegesArgs, opts?: CustomResourceOptions);
    @overload
    def DcdbAccountPrivileges(resource_name: str,
                              args: DcdbAccountPrivilegesArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def DcdbAccountPrivileges(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              account: Optional[DcdbAccountPrivilegesAccountArgs] = None,
                              instance_id: Optional[str] = None,
                              column_privileges: Optional[DcdbAccountPrivilegesColumnPrivilegesArgs] = None,
                              database_privileges: Optional[DcdbAccountPrivilegesDatabasePrivilegesArgs] = None,
                              dcdb_account_privileges_id: Optional[str] = None,
                              global_privileges: Optional[Sequence[str]] = None,
                              table_privileges: Optional[DcdbAccountPrivilegesTablePrivilegesArgs] = None,
                              view_privileges: Optional[DcdbAccountPrivilegesViewPrivilegesArgs] = None)
    func NewDcdbAccountPrivileges(ctx *Context, name string, args DcdbAccountPrivilegesArgs, opts ...ResourceOption) (*DcdbAccountPrivileges, error)
    public DcdbAccountPrivileges(string name, DcdbAccountPrivilegesArgs args, CustomResourceOptions? opts = null)
    public DcdbAccountPrivileges(String name, DcdbAccountPrivilegesArgs args)
    public DcdbAccountPrivileges(String name, DcdbAccountPrivilegesArgs args, CustomResourceOptions options)
    
    type: tencentcloud:DcdbAccountPrivileges
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DcdbAccountPrivilegesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DcdbAccountPrivilegesArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DcdbAccountPrivilegesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DcdbAccountPrivilegesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DcdbAccountPrivilegesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    DcdbAccountPrivileges Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DcdbAccountPrivileges resource accepts the following input properties:

    Account DcdbAccountPrivilegesAccount
    The account of the database, including username and host.
    InstanceId string
    The ID of instance.
    ColumnPrivileges DcdbAccountPrivilegesColumnPrivileges
    Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    DatabasePrivileges DcdbAccountPrivilegesDatabasePrivileges
    Database permissions. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    DcdbAccountPrivilegesId string
    ID of the resource.
    GlobalPrivileges List<string>
    Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
    TablePrivileges DcdbAccountPrivilegesTablePrivileges
    Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    ViewPrivileges DcdbAccountPrivilegesViewPrivileges
    Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    Account DcdbAccountPrivilegesAccountArgs
    The account of the database, including username and host.
    InstanceId string
    The ID of instance.
    ColumnPrivileges DcdbAccountPrivilegesColumnPrivilegesArgs
    Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    DatabasePrivileges DcdbAccountPrivilegesDatabasePrivilegesArgs
    Database permissions. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    DcdbAccountPrivilegesId string
    ID of the resource.
    GlobalPrivileges []string
    Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
    TablePrivileges DcdbAccountPrivilegesTablePrivilegesArgs
    Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    ViewPrivileges DcdbAccountPrivilegesViewPrivilegesArgs
    Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    account DcdbAccountPrivilegesAccount
    The account of the database, including username and host.
    instanceId String
    The ID of instance.
    columnPrivileges DcdbAccountPrivilegesColumnPrivileges
    Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    databasePrivileges DcdbAccountPrivilegesDatabasePrivileges
    Database permissions. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    dcdbAccountPrivilegesId String
    ID of the resource.
    globalPrivileges List<String>
    Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
    tablePrivileges DcdbAccountPrivilegesTablePrivileges
    Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    viewPrivileges DcdbAccountPrivilegesViewPrivileges
    Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    account DcdbAccountPrivilegesAccount
    The account of the database, including username and host.
    instanceId string
    The ID of instance.
    columnPrivileges DcdbAccountPrivilegesColumnPrivileges
    Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    databasePrivileges DcdbAccountPrivilegesDatabasePrivileges
    Database permissions. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    dcdbAccountPrivilegesId string
    ID of the resource.
    globalPrivileges string[]
    Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
    tablePrivileges DcdbAccountPrivilegesTablePrivileges
    Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    viewPrivileges DcdbAccountPrivilegesViewPrivileges
    Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    account DcdbAccountPrivilegesAccountArgs
    The account of the database, including username and host.
    instance_id str
    The ID of instance.
    column_privileges DcdbAccountPrivilegesColumnPrivilegesArgs
    Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    database_privileges DcdbAccountPrivilegesDatabasePrivilegesArgs
    Database permissions. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    dcdb_account_privileges_id str
    ID of the resource.
    global_privileges Sequence[str]
    Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
    table_privileges DcdbAccountPrivilegesTablePrivilegesArgs
    Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    view_privileges DcdbAccountPrivilegesViewPrivilegesArgs
    Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    account Property Map
    The account of the database, including username and host.
    instanceId String
    The ID of instance.
    columnPrivileges Property Map
    Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    databasePrivileges Property Map
    Database permissions. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    dcdbAccountPrivilegesId String
    ID of the resource.
    globalPrivileges List<String>
    Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
    tablePrivileges Property Map
    Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    viewPrivileges Property Map
    Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DcdbAccountPrivileges resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DcdbAccountPrivileges Resource

    Get an existing DcdbAccountPrivileges resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DcdbAccountPrivilegesState, opts?: CustomResourceOptions): DcdbAccountPrivileges
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account: Optional[DcdbAccountPrivilegesAccountArgs] = None,
            column_privileges: Optional[DcdbAccountPrivilegesColumnPrivilegesArgs] = None,
            database_privileges: Optional[DcdbAccountPrivilegesDatabasePrivilegesArgs] = None,
            dcdb_account_privileges_id: Optional[str] = None,
            global_privileges: Optional[Sequence[str]] = None,
            instance_id: Optional[str] = None,
            table_privileges: Optional[DcdbAccountPrivilegesTablePrivilegesArgs] = None,
            view_privileges: Optional[DcdbAccountPrivilegesViewPrivilegesArgs] = None) -> DcdbAccountPrivileges
    func GetDcdbAccountPrivileges(ctx *Context, name string, id IDInput, state *DcdbAccountPrivilegesState, opts ...ResourceOption) (*DcdbAccountPrivileges, error)
    public static DcdbAccountPrivileges Get(string name, Input<string> id, DcdbAccountPrivilegesState? state, CustomResourceOptions? opts = null)
    public static DcdbAccountPrivileges get(String name, Output<String> id, DcdbAccountPrivilegesState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DcdbAccountPrivileges    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Account DcdbAccountPrivilegesAccount
    The account of the database, including username and host.
    ColumnPrivileges DcdbAccountPrivilegesColumnPrivileges
    Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    DatabasePrivileges DcdbAccountPrivilegesDatabasePrivileges
    Database permissions. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    DcdbAccountPrivilegesId string
    ID of the resource.
    GlobalPrivileges List<string>
    Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
    InstanceId string
    The ID of instance.
    TablePrivileges DcdbAccountPrivilegesTablePrivileges
    Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    ViewPrivileges DcdbAccountPrivilegesViewPrivileges
    Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    Account DcdbAccountPrivilegesAccountArgs
    The account of the database, including username and host.
    ColumnPrivileges DcdbAccountPrivilegesColumnPrivilegesArgs
    Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    DatabasePrivileges DcdbAccountPrivilegesDatabasePrivilegesArgs
    Database permissions. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    DcdbAccountPrivilegesId string
    ID of the resource.
    GlobalPrivileges []string
    Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
    InstanceId string
    The ID of instance.
    TablePrivileges DcdbAccountPrivilegesTablePrivilegesArgs
    Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    ViewPrivileges DcdbAccountPrivilegesViewPrivilegesArgs
    Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    account DcdbAccountPrivilegesAccount
    The account of the database, including username and host.
    columnPrivileges DcdbAccountPrivilegesColumnPrivileges
    Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    databasePrivileges DcdbAccountPrivilegesDatabasePrivileges
    Database permissions. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    dcdbAccountPrivilegesId String
    ID of the resource.
    globalPrivileges List<String>
    Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
    instanceId String
    The ID of instance.
    tablePrivileges DcdbAccountPrivilegesTablePrivileges
    Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    viewPrivileges DcdbAccountPrivilegesViewPrivileges
    Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    account DcdbAccountPrivilegesAccount
    The account of the database, including username and host.
    columnPrivileges DcdbAccountPrivilegesColumnPrivileges
    Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    databasePrivileges DcdbAccountPrivilegesDatabasePrivileges
    Database permissions. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    dcdbAccountPrivilegesId string
    ID of the resource.
    globalPrivileges string[]
    Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
    instanceId string
    The ID of instance.
    tablePrivileges DcdbAccountPrivilegesTablePrivileges
    Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    viewPrivileges DcdbAccountPrivilegesViewPrivileges
    Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    account DcdbAccountPrivilegesAccountArgs
    The account of the database, including username and host.
    column_privileges DcdbAccountPrivilegesColumnPrivilegesArgs
    Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    database_privileges DcdbAccountPrivilegesDatabasePrivilegesArgs
    Database permissions. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    dcdb_account_privileges_id str
    ID of the resource.
    global_privileges Sequence[str]
    Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
    instance_id str
    The ID of instance.
    table_privileges DcdbAccountPrivilegesTablePrivilegesArgs
    Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    view_privileges DcdbAccountPrivilegesViewPrivilegesArgs
    Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    account Property Map
    The account of the database, including username and host.
    columnPrivileges Property Map
    Permissions for columns in database tables. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, REFERENCES. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    databasePrivileges Property Map
    Database permissions. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    dcdbAccountPrivilegesId String
    ID of the resource.
    globalPrivileges List<String>
    Global permissions. Among them, the optional value of the permission in GlobalPrivileges is: SELECT, INSERT, UPDATE, DELETE, CREATE, PROCESS, DROP, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER. Note that if this parameter is not passed, it means that the existing permissions are reserved. If it needs to be cleared, pass an empty array in this field.
    instanceId String
    The ID of instance.
    tablePrivileges Property Map
    Permissions for tables in the database. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.
    viewPrivileges Property Map
    Permissions for database views. Optional values for the Privileges permission are: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE VIEW, SHOW VIEW, TRIGGER. Note that if this parameter is not passed, the existing privileges are reserved. If you need to clear them, please pass an empty array in the complex type Privileges field.

    Supporting Types

    DcdbAccountPrivilegesAccount, DcdbAccountPrivilegesAccountArgs

    Host string
    account host.
    User string
    account name.
    Host string
    account host.
    User string
    account name.
    host String
    account host.
    user String
    account name.
    host string
    account host.
    user string
    account name.
    host str
    account host.
    user str
    account name.
    host String
    account host.
    user String
    account name.

    DcdbAccountPrivilegesColumnPrivileges, DcdbAccountPrivilegesColumnPrivilegesArgs

    Column string
    Database column name.
    Database string
    The name of database.
    Privileges List<string>
    Permission information.
    Table string
    Database table name.
    Column string
    Database column name.
    Database string
    The name of database.
    Privileges []string
    Permission information.
    Table string
    Database table name.
    column String
    Database column name.
    database String
    The name of database.
    privileges List<String>
    Permission information.
    table String
    Database table name.
    column string
    Database column name.
    database string
    The name of database.
    privileges string[]
    Permission information.
    table string
    Database table name.
    column str
    Database column name.
    database str
    The name of database.
    privileges Sequence[str]
    Permission information.
    table str
    Database table name.
    column String
    Database column name.
    database String
    The name of database.
    privileges List<String>
    Permission information.
    table String
    Database table name.

    DcdbAccountPrivilegesDatabasePrivileges, DcdbAccountPrivilegesDatabasePrivilegesArgs

    Database string
    The name of database.
    Privileges List<string>
    Permission information.
    Database string
    The name of database.
    Privileges []string
    Permission information.
    database String
    The name of database.
    privileges List<String>
    Permission information.
    database string
    The name of database.
    privileges string[]
    Permission information.
    database str
    The name of database.
    privileges Sequence[str]
    Permission information.
    database String
    The name of database.
    privileges List<String>
    Permission information.

    DcdbAccountPrivilegesTablePrivileges, DcdbAccountPrivilegesTablePrivilegesArgs

    Database string
    The name of database.
    Privileges List<string>
    Permission information.
    Table string
    Database table name.
    Database string
    The name of database.
    Privileges []string
    Permission information.
    Table string
    Database table name.
    database String
    The name of database.
    privileges List<String>
    Permission information.
    table String
    Database table name.
    database string
    The name of database.
    privileges string[]
    Permission information.
    table string
    Database table name.
    database str
    The name of database.
    privileges Sequence[str]
    Permission information.
    table str
    Database table name.
    database String
    The name of database.
    privileges List<String>
    Permission information.
    table String
    Database table name.

    DcdbAccountPrivilegesViewPrivileges, DcdbAccountPrivilegesViewPrivilegesArgs

    Database string
    The name of database.
    Privileges List<string>
    Permission information.
    View string
    Database view name.
    Database string
    The name of database.
    Privileges []string
    Permission information.
    View string
    Database view name.
    database String
    The name of database.
    privileges List<String>
    Permission information.
    view String
    Database view name.
    database string
    The name of database.
    privileges string[]
    Permission information.
    view string
    Database view name.
    database str
    The name of database.
    privileges Sequence[str]
    Permission information.
    view str
    Database view name.
    database String
    The name of database.
    privileges List<String>
    Permission information.
    view String
    Database view name.

    Import

    dcdb account_privileges can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/dcdbAccountPrivileges:DcdbAccountPrivileges account_privileges instanceId#userName#host#dbName#tabName#viewName#colName
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack