1. Registry
  2. Packages
  3. Selectel Provider
  4. API Docs
  5. VpcRbacPolicyV2
Viewing docs for selectel 9.5.0
published on Friday, Oct 30, 2026 by selectel
selectel
Viewing docs for selectel 9.5.0
published on Friday, Oct 30, 2026 by selectel

    Creates and manages an RBAC policy that grants another project access to a networking object using the v2 public API. For more information about managing network access, see the official Selectel documentation.

    If you are upgrading from a version earlier than 9.1.0, follow the upgrade guide to migrate your resources from the OpenStack provider.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const rbac1 = new selectel.VpcRbacPolicyV2("rbac_1", {
        projectId: project1.id,
        region: "ru-6",
        action: "access_as_shared",
        objectType: "network",
        objectId: network1.id,
        targetProjectId: project2.id,
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    rbac1 = selectel.VpcRbacPolicyV2("rbac_1",
        project_id=project1["id"],
        region="ru-6",
        action="access_as_shared",
        object_type="network",
        object_id=network1["id"],
        target_project_id=project2["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v9/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewVpcRbacPolicyV2(ctx, "rbac_1", &selectel.VpcRbacPolicyV2Args{
    			ProjectId:       pulumi.Any(project1.Id),
    			Region:          pulumi.String("ru-6"),
    			Action:          pulumi.String("access_as_shared"),
    			ObjectType:      pulumi.String("network"),
    			ObjectId:        pulumi.Any(network1.Id),
    			TargetProjectId: pulumi.Any(project2.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 rbac1 = new Selectel.VpcRbacPolicyV2("rbac_1", new()
        {
            ProjectId = project1.Id,
            Region = "ru-6",
            Action = "access_as_shared",
            ObjectType = "network",
            ObjectId = network1.Id,
            TargetProjectId = project2.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.VpcRbacPolicyV2;
    import com.pulumi.selectel.VpcRbacPolicyV2Args;
    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 rbac1 = new VpcRbacPolicyV2("rbac1", VpcRbacPolicyV2Args.builder()
                .projectId(project1.id())
                .region("ru-6")
                .action("access_as_shared")
                .objectType("network")
                .objectId(network1.id())
                .targetProjectId(project2.id())
                .build());
    
        }
    }
    
    resources:
      rbac1:
        type: selectel:VpcRbacPolicyV2
        name: rbac_1
        properties:
          projectId: ${project1.id}
          region: ru-6
          action: access_as_shared
          objectType: network
          objectId: ${network1.id}
          targetProjectId: ${project2.id}
    
    Example coming soon!
    

    Create VpcRbacPolicyV2 Resource

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

    Constructor syntax

    new VpcRbacPolicyV2(name: string, args: VpcRbacPolicyV2Args, opts?: CustomResourceOptions);
    @overload
    def VpcRbacPolicyV2(resource_name: str,
                        args: VpcRbacPolicyV2Args,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcRbacPolicyV2(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        action: Optional[str] = None,
                        object_id: Optional[str] = None,
                        object_type: Optional[str] = None,
                        project_id: Optional[str] = None,
                        region: Optional[str] = None,
                        target_project_id: Optional[str] = None)
    func NewVpcRbacPolicyV2(ctx *Context, name string, args VpcRbacPolicyV2Args, opts ...ResourceOption) (*VpcRbacPolicyV2, error)
    public VpcRbacPolicyV2(string name, VpcRbacPolicyV2Args args, CustomResourceOptions? opts = null)
    public VpcRbacPolicyV2(String name, VpcRbacPolicyV2Args args)
    public VpcRbacPolicyV2(String name, VpcRbacPolicyV2Args args, CustomResourceOptions options)
    
    type: selectel:VpcRbacPolicyV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "selectel_vpc_rbac_policy_v2" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args VpcRbacPolicyV2Args
    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 VpcRbacPolicyV2Args
    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 VpcRbacPolicyV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcRbacPolicyV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcRbacPolicyV2Args
    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 vpcRbacPolicyV2Resource = new Selectel.VpcRbacPolicyV2("vpcRbacPolicyV2Resource", new()
    {
        Action = "string",
        ObjectId = "string",
        ObjectType = "string",
        ProjectId = "string",
        Region = "string",
        TargetProjectId = "string",
    });
    
    example, err := selectel.NewVpcRbacPolicyV2(ctx, "vpcRbacPolicyV2Resource", &selectel.VpcRbacPolicyV2Args{
    	Action:          pulumi.String("string"),
    	ObjectId:        pulumi.String("string"),
    	ObjectType:      pulumi.String("string"),
    	ProjectId:       pulumi.String("string"),
    	Region:          pulumi.String("string"),
    	TargetProjectId: pulumi.String("string"),
    })
    
    resource "selectel_vpc_rbac_policy_v2" "vpcRbacPolicyV2Resource" {
      lifecycle {
        create_before_destroy = true
      }
      action            = "string"
      object_id         = "string"
      object_type       = "string"
      project_id        = "string"
      region            = "string"
      target_project_id = "string"
    }
    
    var vpcRbacPolicyV2Resource = new VpcRbacPolicyV2("vpcRbacPolicyV2Resource", VpcRbacPolicyV2Args.builder()
        .action("string")
        .objectId("string")
        .objectType("string")
        .projectId("string")
        .region("string")
        .targetProjectId("string")
        .build());
    
    vpc_rbac_policy_v2_resource = selectel.VpcRbacPolicyV2("vpcRbacPolicyV2Resource",
        action="string",
        object_id="string",
        object_type="string",
        project_id="string",
        region="string",
        target_project_id="string")
    
    const vpcRbacPolicyV2Resource = new selectel.VpcRbacPolicyV2("vpcRbacPolicyV2Resource", {
        action: "string",
        objectId: "string",
        objectType: "string",
        projectId: "string",
        region: "string",
        targetProjectId: "string",
    });
    
    type: selectel:VpcRbacPolicyV2
    properties:
        action: string
        objectId: string
        objectType: string
        projectId: string
        region: string
        targetProjectId: string
    

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

    Action string
    Access granted by the policy. Available values are access_as_shared and access_as_external. access_as_external is applicable only when object_type is network. Changing this creates a new RBAC policy.
    ObjectId string
    Unique identifier of the object being shared. Retrieved from the selectelvpcnetworkv2 or selectelvpcsecgroupv2 resource. Changing this creates a new RBAC policy.
    ObjectType string
    Type of the object to share. Available values are network and security_group. Changing this creates a new RBAC policy.
    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new RBAC policy.
    Region string
    Pool where the RBAC policy is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new RBAC policy.
    TargetProjectId string
    Unique identifier of the project the access is granted to. Changing this moves the grant from one project to another. To get the ID of an existing project, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project.
    Action string
    Access granted by the policy. Available values are access_as_shared and access_as_external. access_as_external is applicable only when object_type is network. Changing this creates a new RBAC policy.
    ObjectId string
    Unique identifier of the object being shared. Retrieved from the selectelvpcnetworkv2 or selectelvpcsecgroupv2 resource. Changing this creates a new RBAC policy.
    ObjectType string
    Type of the object to share. Available values are network and security_group. Changing this creates a new RBAC policy.
    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new RBAC policy.
    Region string
    Pool where the RBAC policy is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new RBAC policy.
    TargetProjectId string
    Unique identifier of the project the access is granted to. Changing this moves the grant from one project to another. To get the ID of an existing project, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project.
    action string
    Access granted by the policy. Available values are access_as_shared and access_as_external. access_as_external is applicable only when object_type is network. Changing this creates a new RBAC policy.
    object_id string
    Unique identifier of the object being shared. Retrieved from the selectelvpcnetworkv2 or selectelvpcsecgroupv2 resource. Changing this creates a new RBAC policy.
    object_type string
    Type of the object to share. Available values are network and security_group. Changing this creates a new RBAC policy.
    project_id string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new RBAC policy.
    region string
    Pool where the RBAC policy is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new RBAC policy.
    target_project_id string
    Unique identifier of the project the access is granted to. Changing this moves the grant from one project to another. To get the ID of an existing project, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project.
    action String
    Access granted by the policy. Available values are access_as_shared and access_as_external. access_as_external is applicable only when object_type is network. Changing this creates a new RBAC policy.
    objectId String
    Unique identifier of the object being shared. Retrieved from the selectelvpcnetworkv2 or selectelvpcsecgroupv2 resource. Changing this creates a new RBAC policy.
    objectType String
    Type of the object to share. Available values are network and security_group. Changing this creates a new RBAC policy.
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new RBAC policy.
    region String
    Pool where the RBAC policy is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new RBAC policy.
    targetProjectId String
    Unique identifier of the project the access is granted to. Changing this moves the grant from one project to another. To get the ID of an existing project, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project.
    action string
    Access granted by the policy. Available values are access_as_shared and access_as_external. access_as_external is applicable only when object_type is network. Changing this creates a new RBAC policy.
    objectId string
    Unique identifier of the object being shared. Retrieved from the selectelvpcnetworkv2 or selectelvpcsecgroupv2 resource. Changing this creates a new RBAC policy.
    objectType string
    Type of the object to share. Available values are network and security_group. Changing this creates a new RBAC policy.
    projectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new RBAC policy.
    region string
    Pool where the RBAC policy is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new RBAC policy.
    targetProjectId string
    Unique identifier of the project the access is granted to. Changing this moves the grant from one project to another. To get the ID of an existing project, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project.
    action str
    Access granted by the policy. Available values are access_as_shared and access_as_external. access_as_external is applicable only when object_type is network. Changing this creates a new RBAC policy.
    object_id str
    Unique identifier of the object being shared. Retrieved from the selectelvpcnetworkv2 or selectelvpcsecgroupv2 resource. Changing this creates a new RBAC policy.
    object_type str
    Type of the object to share. Available values are network and security_group. Changing this creates a new RBAC policy.
    project_id str
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new RBAC policy.
    region str
    Pool where the RBAC policy is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new RBAC policy.
    target_project_id str
    Unique identifier of the project the access is granted to. Changing this moves the grant from one project to another. To get the ID of an existing project, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project.
    action String
    Access granted by the policy. Available values are access_as_shared and access_as_external. access_as_external is applicable only when object_type is network. Changing this creates a new RBAC policy.
    objectId String
    Unique identifier of the object being shared. Retrieved from the selectelvpcnetworkv2 or selectelvpcsecgroupv2 resource. Changing this creates a new RBAC policy.
    objectType String
    Type of the object to share. Available values are network and security_group. Changing this creates a new RBAC policy.
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new RBAC policy.
    region String
    Pool where the RBAC policy is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new RBAC policy.
    targetProjectId String
    Unique identifier of the project the access is granted to. Changing this moves the grant from one project to another. To get the ID of an existing project, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcRbacPolicyV2 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 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 VpcRbacPolicyV2 Resource

    Get an existing VpcRbacPolicyV2 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?: VpcRbacPolicyV2State, opts?: CustomResourceOptions): VpcRbacPolicyV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            object_id: Optional[str] = None,
            object_type: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            target_project_id: Optional[str] = None) -> VpcRbacPolicyV2
    func GetVpcRbacPolicyV2(ctx *Context, name string, id IDInput, state *VpcRbacPolicyV2State, opts ...ResourceOption) (*VpcRbacPolicyV2, error)
    public static VpcRbacPolicyV2 Get(string name, Input<string> id, VpcRbacPolicyV2State? state, CustomResourceOptions? opts = null)
    public static VpcRbacPolicyV2 get(String name, Output<String> id, VpcRbacPolicyV2State state, CustomResourceOptions options)
    resources:  _:    type: selectel:VpcRbacPolicyV2    get:      id: ${id}
    import {
      to = selectel_vpc_rbac_policy_v2.example
      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:
    Action string
    Access granted by the policy. Available values are access_as_shared and access_as_external. access_as_external is applicable only when object_type is network. Changing this creates a new RBAC policy.
    ObjectId string
    Unique identifier of the object being shared. Retrieved from the selectelvpcnetworkv2 or selectelvpcsecgroupv2 resource. Changing this creates a new RBAC policy.
    ObjectType string
    Type of the object to share. Available values are network and security_group. Changing this creates a new RBAC policy.
    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new RBAC policy.
    Region string
    Pool where the RBAC policy is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new RBAC policy.
    TargetProjectId string
    Unique identifier of the project the access is granted to. Changing this moves the grant from one project to another. To get the ID of an existing project, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project.
    Action string
    Access granted by the policy. Available values are access_as_shared and access_as_external. access_as_external is applicable only when object_type is network. Changing this creates a new RBAC policy.
    ObjectId string
    Unique identifier of the object being shared. Retrieved from the selectelvpcnetworkv2 or selectelvpcsecgroupv2 resource. Changing this creates a new RBAC policy.
    ObjectType string
    Type of the object to share. Available values are network and security_group. Changing this creates a new RBAC policy.
    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new RBAC policy.
    Region string
    Pool where the RBAC policy is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new RBAC policy.
    TargetProjectId string
    Unique identifier of the project the access is granted to. Changing this moves the grant from one project to another. To get the ID of an existing project, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project.
    action string
    Access granted by the policy. Available values are access_as_shared and access_as_external. access_as_external is applicable only when object_type is network. Changing this creates a new RBAC policy.
    object_id string
    Unique identifier of the object being shared. Retrieved from the selectelvpcnetworkv2 or selectelvpcsecgroupv2 resource. Changing this creates a new RBAC policy.
    object_type string
    Type of the object to share. Available values are network and security_group. Changing this creates a new RBAC policy.
    project_id string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new RBAC policy.
    region string
    Pool where the RBAC policy is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new RBAC policy.
    target_project_id string
    Unique identifier of the project the access is granted to. Changing this moves the grant from one project to another. To get the ID of an existing project, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project.
    action String
    Access granted by the policy. Available values are access_as_shared and access_as_external. access_as_external is applicable only when object_type is network. Changing this creates a new RBAC policy.
    objectId String
    Unique identifier of the object being shared. Retrieved from the selectelvpcnetworkv2 or selectelvpcsecgroupv2 resource. Changing this creates a new RBAC policy.
    objectType String
    Type of the object to share. Available values are network and security_group. Changing this creates a new RBAC policy.
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new RBAC policy.
    region String
    Pool where the RBAC policy is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new RBAC policy.
    targetProjectId String
    Unique identifier of the project the access is granted to. Changing this moves the grant from one project to another. To get the ID of an existing project, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project.
    action string
    Access granted by the policy. Available values are access_as_shared and access_as_external. access_as_external is applicable only when object_type is network. Changing this creates a new RBAC policy.
    objectId string
    Unique identifier of the object being shared. Retrieved from the selectelvpcnetworkv2 or selectelvpcsecgroupv2 resource. Changing this creates a new RBAC policy.
    objectType string
    Type of the object to share. Available values are network and security_group. Changing this creates a new RBAC policy.
    projectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new RBAC policy.
    region string
    Pool where the RBAC policy is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new RBAC policy.
    targetProjectId string
    Unique identifier of the project the access is granted to. Changing this moves the grant from one project to another. To get the ID of an existing project, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project.
    action str
    Access granted by the policy. Available values are access_as_shared and access_as_external. access_as_external is applicable only when object_type is network. Changing this creates a new RBAC policy.
    object_id str
    Unique identifier of the object being shared. Retrieved from the selectelvpcnetworkv2 or selectelvpcsecgroupv2 resource. Changing this creates a new RBAC policy.
    object_type str
    Type of the object to share. Available values are network and security_group. Changing this creates a new RBAC policy.
    project_id str
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new RBAC policy.
    region str
    Pool where the RBAC policy is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new RBAC policy.
    target_project_id str
    Unique identifier of the project the access is granted to. Changing this moves the grant from one project to another. To get the ID of an existing project, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project.
    action String
    Access granted by the policy. Available values are access_as_shared and access_as_external. access_as_external is applicable only when object_type is network. Changing this creates a new RBAC policy.
    objectId String
    Unique identifier of the object being shared. Retrieved from the selectelvpcnetworkv2 or selectelvpcsecgroupv2 resource. Changing this creates a new RBAC policy.
    objectType String
    Type of the object to share. Available values are network and security_group. Changing this creates a new RBAC policy.
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new RBAC policy.
    region String
    Pool where the RBAC policy is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new RBAC policy.
    targetProjectId String
    Unique identifier of the project the access is granted to. Changing this moves the grant from one project to another. To get the ID of an existing project, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project.

    Import

    All versions

    Use the pulumi import command:

    export OS_DOMAIN_NAME=<domain_name>

    export OS_USERNAME=

    export OS_PASSWORD=

    export INFRA_PROJECT_ID=<project_id>

    export INFRA_REGION=

    $ pulumi import selectel:index/vpcRbacPolicyV2:VpcRbacPolicyV2 rbac_1 <id>
    

    <domain_name>, <username>, and <password> are the arguments of the provider configuration.

    Other identity attributes are described above in the import or resource sections.

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

    Package Details

    Repository
    selectel selectel/terraform-provider-selectel
    License
    Notes
    This Pulumi package is based on the selectel Terraform Provider.
    selectel
    Viewing docs for selectel 9.5.0
    published on Friday, Oct 30, 2026 by selectel

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial