1. Packages
  2. Selectel Provider
  3. API Docs
  4. DbaasGrantV1
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

selectel.DbaasGrantV1

Explore with Pulumi AI

selectel logo
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

    Grants privileges to the users in Managed Databases using public API v1. Not applicable to Redis and Kafka. Learn more about Managed Databases in the official Selectel documentation.

    Example Usage

    PostgreSQL, PostgreSQL for 1C, and PostgreSQL TimescaleDB

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const grant1 = new selectel.DbaasGrantV1("grant1", {
        projectId: selectel_vpc_project_v2.project_1.id,
        region: "ru-3",
        datastoreId: selectel_dbaas_postgresql_datastore_v1.datastore_1.id,
        databaseId: selectel_dbaas_postgresql_database_v1.database_1.id,
        userId: selectel_dbaas_user_v1.user_1.id,
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    grant1 = selectel.DbaasGrantV1("grant1",
        project_id=selectel_vpc_project_v2["project_1"]["id"],
        region="ru-3",
        datastore_id=selectel_dbaas_postgresql_datastore_v1["datastore_1"]["id"],
        database_id=selectel_dbaas_postgresql_database_v1["database_1"]["id"],
        user_id=selectel_dbaas_user_v1["user_1"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewDbaasGrantV1(ctx, "grant1", &selectel.DbaasGrantV1Args{
    			ProjectId:   pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
    			Region:      pulumi.String("ru-3"),
    			DatastoreId: pulumi.Any(selectel_dbaas_postgresql_datastore_v1.Datastore_1.Id),
    			DatabaseId:  pulumi.Any(selectel_dbaas_postgresql_database_v1.Database_1.Id),
    			UserId:      pulumi.Any(selectel_dbaas_user_v1.User_1.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var grant1 = new Selectel.DbaasGrantV1("grant1", new()
        {
            ProjectId = selectel_vpc_project_v2.Project_1.Id,
            Region = "ru-3",
            DatastoreId = selectel_dbaas_postgresql_datastore_v1.Datastore_1.Id,
            DatabaseId = selectel_dbaas_postgresql_database_v1.Database_1.Id,
            UserId = selectel_dbaas_user_v1.User_1.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.DbaasGrantV1;
    import com.pulumi.selectel.DbaasGrantV1Args;
    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) {
            var grant1 = new DbaasGrantV1("grant1", DbaasGrantV1Args.builder()
                .projectId(selectel_vpc_project_v2.project_1().id())
                .region("ru-3")
                .datastoreId(selectel_dbaas_postgresql_datastore_v1.datastore_1().id())
                .databaseId(selectel_dbaas_postgresql_database_v1.database_1().id())
                .userId(selectel_dbaas_user_v1.user_1().id())
                .build());
    
        }
    }
    
    resources:
      grant1:
        type: selectel:DbaasGrantV1
        properties:
          projectId: ${selectel_vpc_project_v2.project_1.id}
          region: ru-3
          datastoreId: ${selectel_dbaas_postgresql_datastore_v1.datastore_1.id}
          databaseId: ${selectel_dbaas_postgresql_database_v1.database_1.id}
          userId: ${selectel_dbaas_user_v1.user_1.id}
    

    MySQL semi-sync and MySQL sync

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const grant1 = new selectel.DbaasGrantV1("grant1", {
        projectId: selectel_vpc_project_v2.project_1.id,
        region: "ru-3",
        datastoreId: selectel_dbaas_mysql_datastore_v1.datastore_1.id,
        databaseId: selectel_dbaas_mysql_database_v1.database_1.id,
        userId: selectel_dbaas_user_v1.user_1.id,
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    grant1 = selectel.DbaasGrantV1("grant1",
        project_id=selectel_vpc_project_v2["project_1"]["id"],
        region="ru-3",
        datastore_id=selectel_dbaas_mysql_datastore_v1["datastore_1"]["id"],
        database_id=selectel_dbaas_mysql_database_v1["database_1"]["id"],
        user_id=selectel_dbaas_user_v1["user_1"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewDbaasGrantV1(ctx, "grant1", &selectel.DbaasGrantV1Args{
    			ProjectId:   pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
    			Region:      pulumi.String("ru-3"),
    			DatastoreId: pulumi.Any(selectel_dbaas_mysql_datastore_v1.Datastore_1.Id),
    			DatabaseId:  pulumi.Any(selectel_dbaas_mysql_database_v1.Database_1.Id),
    			UserId:      pulumi.Any(selectel_dbaas_user_v1.User_1.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var grant1 = new Selectel.DbaasGrantV1("grant1", new()
        {
            ProjectId = selectel_vpc_project_v2.Project_1.Id,
            Region = "ru-3",
            DatastoreId = selectel_dbaas_mysql_datastore_v1.Datastore_1.Id,
            DatabaseId = selectel_dbaas_mysql_database_v1.Database_1.Id,
            UserId = selectel_dbaas_user_v1.User_1.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.DbaasGrantV1;
    import com.pulumi.selectel.DbaasGrantV1Args;
    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) {
            var grant1 = new DbaasGrantV1("grant1", DbaasGrantV1Args.builder()
                .projectId(selectel_vpc_project_v2.project_1().id())
                .region("ru-3")
                .datastoreId(selectel_dbaas_mysql_datastore_v1.datastore_1().id())
                .databaseId(selectel_dbaas_mysql_database_v1.database_1().id())
                .userId(selectel_dbaas_user_v1.user_1().id())
                .build());
    
        }
    }
    
    resources:
      grant1:
        type: selectel:DbaasGrantV1
        properties:
          projectId: ${selectel_vpc_project_v2.project_1.id}
          region: ru-3
          datastoreId: ${selectel_dbaas_mysql_datastore_v1.datastore_1.id}
          databaseId: ${selectel_dbaas_mysql_database_v1.database_1.id}
          userId: ${selectel_dbaas_user_v1.user_1.id}
    

    Create DbaasGrantV1 Resource

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

    Constructor syntax

    new DbaasGrantV1(name: string, args: DbaasGrantV1Args, opts?: CustomResourceOptions);
    @overload
    def DbaasGrantV1(resource_name: str,
                     args: DbaasGrantV1Args,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def DbaasGrantV1(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     database_id: Optional[str] = None,
                     datastore_id: Optional[str] = None,
                     project_id: Optional[str] = None,
                     region: Optional[str] = None,
                     user_id: Optional[str] = None,
                     dbaas_grant_v1_id: Optional[str] = None,
                     timeouts: Optional[DbaasGrantV1TimeoutsArgs] = None)
    func NewDbaasGrantV1(ctx *Context, name string, args DbaasGrantV1Args, opts ...ResourceOption) (*DbaasGrantV1, error)
    public DbaasGrantV1(string name, DbaasGrantV1Args args, CustomResourceOptions? opts = null)
    public DbaasGrantV1(String name, DbaasGrantV1Args args)
    public DbaasGrantV1(String name, DbaasGrantV1Args args, CustomResourceOptions options)
    
    type: selectel:DbaasGrantV1
    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 DbaasGrantV1Args
    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 DbaasGrantV1Args
    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 DbaasGrantV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DbaasGrantV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DbaasGrantV1Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var dbaasGrantV1Resource = new Selectel.DbaasGrantV1("dbaasGrantV1Resource", new()
    {
        DatabaseId = "string",
        DatastoreId = "string",
        ProjectId = "string",
        Region = "string",
        UserId = "string",
        DbaasGrantV1Id = "string",
        Timeouts = new Selectel.Inputs.DbaasGrantV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := selectel.NewDbaasGrantV1(ctx, "dbaasGrantV1Resource", &selectel.DbaasGrantV1Args{
    	DatabaseId:     pulumi.String("string"),
    	DatastoreId:    pulumi.String("string"),
    	ProjectId:      pulumi.String("string"),
    	Region:         pulumi.String("string"),
    	UserId:         pulumi.String("string"),
    	DbaasGrantV1Id: pulumi.String("string"),
    	Timeouts: &selectel.DbaasGrantV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var dbaasGrantV1Resource = new DbaasGrantV1("dbaasGrantV1Resource", DbaasGrantV1Args.builder()
        .databaseId("string")
        .datastoreId("string")
        .projectId("string")
        .region("string")
        .userId("string")
        .dbaasGrantV1Id("string")
        .timeouts(DbaasGrantV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    dbaas_grant_v1_resource = selectel.DbaasGrantV1("dbaasGrantV1Resource",
        database_id="string",
        datastore_id="string",
        project_id="string",
        region="string",
        user_id="string",
        dbaas_grant_v1_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const dbaasGrantV1Resource = new selectel.DbaasGrantV1("dbaasGrantV1Resource", {
        databaseId: "string",
        datastoreId: "string",
        projectId: "string",
        region: "string",
        userId: "string",
        dbaasGrantV1Id: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: selectel:DbaasGrantV1
    properties:
        databaseId: string
        datastoreId: string
        dbaasGrantV1Id: string
        projectId: string
        region: string
        timeouts:
            create: string
            delete: string
            update: string
        userId: string
    

    DbaasGrantV1 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 DbaasGrantV1 resource accepts the following input properties:

    DatabaseId string
    Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
    DatastoreId string
    Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    ProjectId string
    Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the database is located, for example, ru-3. Changing this creates a new privilege for the user.
    UserId string
    Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
    DbaasGrantV1Id string
    Timeouts DbaasGrantV1Timeouts
    DatabaseId string
    Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
    DatastoreId string
    Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    ProjectId string
    Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the database is located, for example, ru-3. Changing this creates a new privilege for the user.
    UserId string
    Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
    DbaasGrantV1Id string
    Timeouts DbaasGrantV1TimeoutsArgs
    databaseId String
    Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
    datastoreId String
    Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    projectId String
    Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the database is located, for example, ru-3. Changing this creates a new privilege for the user.
    userId String
    Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
    dbaasGrantV1Id String
    timeouts DbaasGrantV1Timeouts
    databaseId string
    Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
    datastoreId string
    Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    projectId string
    Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    Pool where the database is located, for example, ru-3. Changing this creates a new privilege for the user.
    userId string
    Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
    dbaasGrantV1Id string
    timeouts DbaasGrantV1Timeouts
    database_id str
    Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
    datastore_id str
    Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    project_id str
    Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region str
    Pool where the database is located, for example, ru-3. Changing this creates a new privilege for the user.
    user_id str
    Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
    dbaas_grant_v1_id str
    timeouts DbaasGrantV1TimeoutsArgs
    databaseId String
    Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
    datastoreId String
    Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    projectId String
    Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the database is located, for example, ru-3. Changing this creates a new privilege for the user.
    userId String
    Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
    dbaasGrantV1Id String
    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the user privilege.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the user privilege.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the user privilege.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of the user privilege.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Status of the user privilege.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the user privilege.

    Look up Existing DbaasGrantV1 Resource

    Get an existing DbaasGrantV1 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?: DbaasGrantV1State, opts?: CustomResourceOptions): DbaasGrantV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            database_id: Optional[str] = None,
            datastore_id: Optional[str] = None,
            dbaas_grant_v1_id: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[DbaasGrantV1TimeoutsArgs] = None,
            user_id: Optional[str] = None) -> DbaasGrantV1
    func GetDbaasGrantV1(ctx *Context, name string, id IDInput, state *DbaasGrantV1State, opts ...ResourceOption) (*DbaasGrantV1, error)
    public static DbaasGrantV1 Get(string name, Input<string> id, DbaasGrantV1State? state, CustomResourceOptions? opts = null)
    public static DbaasGrantV1 get(String name, Output<String> id, DbaasGrantV1State state, CustomResourceOptions options)
    resources:  _:    type: selectel:DbaasGrantV1    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:
    DatabaseId string
    Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
    DatastoreId string
    Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    DbaasGrantV1Id string
    ProjectId string
    Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the database is located, for example, ru-3. Changing this creates a new privilege for the user.
    Status string
    Status of the user privilege.
    Timeouts DbaasGrantV1Timeouts
    UserId string
    Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
    DatabaseId string
    Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
    DatastoreId string
    Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    DbaasGrantV1Id string
    ProjectId string
    Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the database is located, for example, ru-3. Changing this creates a new privilege for the user.
    Status string
    Status of the user privilege.
    Timeouts DbaasGrantV1TimeoutsArgs
    UserId string
    Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
    databaseId String
    Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
    datastoreId String
    Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    dbaasGrantV1Id String
    projectId String
    Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the database is located, for example, ru-3. Changing this creates a new privilege for the user.
    status String
    Status of the user privilege.
    timeouts DbaasGrantV1Timeouts
    userId String
    Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
    databaseId string
    Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
    datastoreId string
    Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    dbaasGrantV1Id string
    projectId string
    Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    Pool where the database is located, for example, ru-3. Changing this creates a new privilege for the user.
    status string
    Status of the user privilege.
    timeouts DbaasGrantV1Timeouts
    userId string
    Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
    database_id str
    Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
    datastore_id str
    Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    dbaas_grant_v1_id str
    project_id str
    Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region str
    Pool where the database is located, for example, ru-3. Changing this creates a new privilege for the user.
    status str
    Status of the user privilege.
    timeouts DbaasGrantV1TimeoutsArgs
    user_id str
    Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.
    databaseId String
    Unique identifier of the associated database. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatabaseV1 or selectel.DbaasMysqlDatabaseV1 resource depending on the datastore type you use.
    datastoreId String
    Unique identifier of the associated datastore. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasPostgresqlDatastoreV1 or selectel.DbaasMysqlDatastoreV1 resource depending on the datastore type you use.
    dbaasGrantV1Id String
    projectId String
    Unique identifier of the associated project. Changing this creates a new privilege for the user. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the database is located, for example, ru-3. Changing this creates a new privilege for the user.
    status String
    Status of the user privilege.
    timeouts Property Map
    userId String
    Unique identifier of the associated user. Changing this creates a new privilege for the user. Retrieved from the selectel.DbaasUserV1 resource.

    Supporting Types

    DbaasGrantV1Timeouts, DbaasGrantV1TimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Package Details

    Repository
    selectel selectel/terraform-provider-selectel
    License
    Notes
    This Pulumi package is based on the selectel Terraform Provider.
    selectel logo
    selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel