published on Friday, Oct 30, 2026 by selectel
published on Friday, Oct 30, 2026 by selectel
Example Usage
Grant another project access to a shared image
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const imageAccess1 = new selectel.ComputeImageAccessV2("image_access_1", {
projectId: project1.id,
region: "ru-6",
imageId: image1.id,
memberId: project2.id,
});
import pulumi
import pulumi_selectel as selectel
image_access1 = selectel.ComputeImageAccessV2("image_access_1",
project_id=project1["id"],
region="ru-6",
image_id=image1["id"],
member_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.NewComputeImageAccessV2(ctx, "image_access_1", &selectel.ComputeImageAccessV2Args{
ProjectId: pulumi.Any(project1.Id),
Region: pulumi.String("ru-6"),
ImageId: pulumi.Any(image1.Id),
MemberId: 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 imageAccess1 = new Selectel.ComputeImageAccessV2("image_access_1", new()
{
ProjectId = project1.Id,
Region = "ru-6",
ImageId = image1.Id,
MemberId = project2.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.ComputeImageAccessV2;
import com.pulumi.selectel.ComputeImageAccessV2Args;
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 imageAccess1 = new ComputeImageAccessV2("imageAccess1", ComputeImageAccessV2Args.builder()
.projectId(project1.id())
.region("ru-6")
.imageId(image1.id())
.memberId(project2.id())
.build());
}
}
resources:
imageAccess1:
type: selectel:ComputeImageAccessV2
name: image_access_1
properties:
projectId: ${project1.id}
region: ru-6
imageId: ${image1.id}
memberId: ${project2.id}
Example coming soon!
Create ComputeImageAccessV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ComputeImageAccessV2(name: string, args: ComputeImageAccessV2Args, opts?: CustomResourceOptions);@overload
def ComputeImageAccessV2(resource_name: str,
args: ComputeImageAccessV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def ComputeImageAccessV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
image_id: Optional[str] = None,
member_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None)func NewComputeImageAccessV2(ctx *Context, name string, args ComputeImageAccessV2Args, opts ...ResourceOption) (*ComputeImageAccessV2, error)public ComputeImageAccessV2(string name, ComputeImageAccessV2Args args, CustomResourceOptions? opts = null)
public ComputeImageAccessV2(String name, ComputeImageAccessV2Args args)
public ComputeImageAccessV2(String name, ComputeImageAccessV2Args args, CustomResourceOptions options)
type: selectel:ComputeImageAccessV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "selectel_compute_image_access_v2" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ComputeImageAccessV2Args
- 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 ComputeImageAccessV2Args
- 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 ComputeImageAccessV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComputeImageAccessV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComputeImageAccessV2Args
- 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 computeImageAccessV2Resource = new Selectel.ComputeImageAccessV2("computeImageAccessV2Resource", new()
{
ImageId = "string",
MemberId = "string",
ProjectId = "string",
Region = "string",
});
example, err := selectel.NewComputeImageAccessV2(ctx, "computeImageAccessV2Resource", &selectel.ComputeImageAccessV2Args{
ImageId: pulumi.String("string"),
MemberId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
})
resource "selectel_compute_image_access_v2" "computeImageAccessV2Resource" {
lifecycle {
create_before_destroy = true
}
image_id = "string"
member_id = "string"
project_id = "string"
region = "string"
}
var computeImageAccessV2Resource = new ComputeImageAccessV2("computeImageAccessV2Resource", ComputeImageAccessV2Args.builder()
.imageId("string")
.memberId("string")
.projectId("string")
.region("string")
.build());
compute_image_access_v2_resource = selectel.ComputeImageAccessV2("computeImageAccessV2Resource",
image_id="string",
member_id="string",
project_id="string",
region="string")
const computeImageAccessV2Resource = new selectel.ComputeImageAccessV2("computeImageAccessV2Resource", {
imageId: "string",
memberId: "string",
projectId: "string",
region: "string",
});
type: selectel:ComputeImageAccessV2
properties:
imageId: string
memberId: string
projectId: string
region: string
ComputeImageAccessV2 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 ComputeImageAccessV2 resource accepts the following input properties:
- Image
Id string - Unique identifier of the shared image. The format is a lowercase UUID. You can retrieve the image ID from the selectelcomputeimage_v2 resource. Changing this creates a new image access.
- Member
Id string - Unique identifier of the project that receives access. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Changing this creates a new image access.
- Project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image access. - Region string
- Pool where the image access is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new image access.
- Image
Id string - Unique identifier of the shared image. The format is a lowercase UUID. You can retrieve the image ID from the selectelcomputeimage_v2 resource. Changing this creates a new image access.
- Member
Id string - Unique identifier of the project that receives access. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Changing this creates a new image access.
- Project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image access. - Region string
- Pool where the image access is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new image access.
- image_
id string - Unique identifier of the shared image. The format is a lowercase UUID. You can retrieve the image ID from the selectelcomputeimage_v2 resource. Changing this creates a new image access.
- member_
id string - Unique identifier of the project that receives access. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Changing this creates a new image access.
- project_
id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image access. - region string
- Pool where the image access is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new image access.
- image
Id String - Unique identifier of the shared image. The format is a lowercase UUID. You can retrieve the image ID from the selectelcomputeimage_v2 resource. Changing this creates a new image access.
- member
Id String - Unique identifier of the project that receives access. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Changing this creates a new image access.
- project
Id String - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image access. - region String
- Pool where the image access is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new image access.
- image
Id string - Unique identifier of the shared image. The format is a lowercase UUID. You can retrieve the image ID from the selectelcomputeimage_v2 resource. Changing this creates a new image access.
- member
Id string - Unique identifier of the project that receives access. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Changing this creates a new image access.
- project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image access. - region string
- Pool where the image access is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new image access.
- image_
id str - Unique identifier of the shared image. The format is a lowercase UUID. You can retrieve the image ID from the selectelcomputeimage_v2 resource. Changing this creates a new image access.
- member_
id str - Unique identifier of the project that receives access. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Changing this creates a new image access.
- project_
id str - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image access. - region str
- Pool where the image access is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new image access.
- image
Id String - Unique identifier of the shared image. The format is a lowercase UUID. You can retrieve the image ID from the selectelcomputeimage_v2 resource. Changing this creates a new image access.
- member
Id String - Unique identifier of the project that receives access. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Changing this creates a new image access.
- project
Id String - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image access. - region String
- Pool where the image access is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new image access.
Outputs
All input properties are implicitly available as output properties. Additionally, the ComputeImageAccessV2 resource produces the following output properties:
- Created
At string - Time when the access was granted in the RFC 3339 format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Status of the access:
pending,accepted, orrejected. A new access ispending. - Updated
At string - Time when the access was last updated in the RFC 3339 format.
- Created
At string - Time when the access was granted in the RFC 3339 format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Status of the access:
pending,accepted, orrejected. A new access ispending. - Updated
At string - Time when the access was last updated in the RFC 3339 format.
- created_
at string - Time when the access was granted in the RFC 3339 format.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Status of the access:
pending,accepted, orrejected. A new access ispending. - updated_
at string - Time when the access was last updated in the RFC 3339 format.
- created
At String - Time when the access was granted in the RFC 3339 format.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Status of the access:
pending,accepted, orrejected. A new access ispending. - updated
At String - Time when the access was last updated in the RFC 3339 format.
- created
At string - Time when the access was granted in the RFC 3339 format.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Status of the access:
pending,accepted, orrejected. A new access ispending. - updated
At string - Time when the access was last updated in the RFC 3339 format.
- created_
at str - Time when the access was granted in the RFC 3339 format.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Status of the access:
pending,accepted, orrejected. A new access ispending. - updated_
at str - Time when the access was last updated in the RFC 3339 format.
- created
At String - Time when the access was granted in the RFC 3339 format.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Status of the access:
pending,accepted, orrejected. A new access ispending. - updated
At String - Time when the access was last updated in the RFC 3339 format.
Look up Existing ComputeImageAccessV2 Resource
Get an existing ComputeImageAccessV2 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?: ComputeImageAccessV2State, opts?: CustomResourceOptions): ComputeImageAccessV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
image_id: Optional[str] = None,
member_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
status: Optional[str] = None,
updated_at: Optional[str] = None) -> ComputeImageAccessV2func GetComputeImageAccessV2(ctx *Context, name string, id IDInput, state *ComputeImageAccessV2State, opts ...ResourceOption) (*ComputeImageAccessV2, error)public static ComputeImageAccessV2 Get(string name, Input<string> id, ComputeImageAccessV2State? state, CustomResourceOptions? opts = null)public static ComputeImageAccessV2 get(String name, Output<String> id, ComputeImageAccessV2State state, CustomResourceOptions options)resources: _: type: selectel:ComputeImageAccessV2 get: id: ${id}import {
to = selectel_compute_image_access_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.
- Created
At string - Time when the access was granted in the RFC 3339 format.
- Image
Id string - Unique identifier of the shared image. The format is a lowercase UUID. You can retrieve the image ID from the selectelcomputeimage_v2 resource. Changing this creates a new image access.
- Member
Id string - Unique identifier of the project that receives access. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Changing this creates a new image access.
- Project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image access. - Region string
- Pool where the image access is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new image access. - Status string
- Status of the access:
pending,accepted, orrejected. A new access ispending. - Updated
At string - Time when the access was last updated in the RFC 3339 format.
- Created
At string - Time when the access was granted in the RFC 3339 format.
- Image
Id string - Unique identifier of the shared image. The format is a lowercase UUID. You can retrieve the image ID from the selectelcomputeimage_v2 resource. Changing this creates a new image access.
- Member
Id string - Unique identifier of the project that receives access. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Changing this creates a new image access.
- Project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image access. - Region string
- Pool where the image access is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new image access. - Status string
- Status of the access:
pending,accepted, orrejected. A new access ispending. - Updated
At string - Time when the access was last updated in the RFC 3339 format.
- created_
at string - Time when the access was granted in the RFC 3339 format.
- image_
id string - Unique identifier of the shared image. The format is a lowercase UUID. You can retrieve the image ID from the selectelcomputeimage_v2 resource. Changing this creates a new image access.
- member_
id string - Unique identifier of the project that receives access. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Changing this creates a new image access.
- project_
id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image access. - region string
- Pool where the image access is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new image access. - status string
- Status of the access:
pending,accepted, orrejected. A new access ispending. - updated_
at string - Time when the access was last updated in the RFC 3339 format.
- created
At String - Time when the access was granted in the RFC 3339 format.
- image
Id String - Unique identifier of the shared image. The format is a lowercase UUID. You can retrieve the image ID from the selectelcomputeimage_v2 resource. Changing this creates a new image access.
- member
Id String - Unique identifier of the project that receives access. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Changing this creates a new image access.
- project
Id String - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image access. - region String
- Pool where the image access is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new image access. - status String
- Status of the access:
pending,accepted, orrejected. A new access ispending. - updated
At String - Time when the access was last updated in the RFC 3339 format.
- created
At string - Time when the access was granted in the RFC 3339 format.
- image
Id string - Unique identifier of the shared image. The format is a lowercase UUID. You can retrieve the image ID from the selectelcomputeimage_v2 resource. Changing this creates a new image access.
- member
Id string - Unique identifier of the project that receives access. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Changing this creates a new image access.
- project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image access. - region string
- Pool where the image access is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new image access. - status string
- Status of the access:
pending,accepted, orrejected. A new access ispending. - updated
At string - Time when the access was last updated in the RFC 3339 format.
- created_
at str - Time when the access was granted in the RFC 3339 format.
- image_
id str - Unique identifier of the shared image. The format is a lowercase UUID. You can retrieve the image ID from the selectelcomputeimage_v2 resource. Changing this creates a new image access.
- member_
id str - Unique identifier of the project that receives access. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Changing this creates a new image access.
- project_
id str - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image access. - region str
- Pool where the image access is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new image access. - status str
- Status of the access:
pending,accepted, orrejected. A new access ispending. - updated_
at str - Time when the access was last updated in the RFC 3339 format.
- created
At String - Time when the access was granted in the RFC 3339 format.
- image
Id String - Unique identifier of the shared image. The format is a lowercase UUID. You can retrieve the image ID from the selectelcomputeimage_v2 resource. Changing this creates a new image access.
- member
Id String - Unique identifier of the project that receives access. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Changing this creates a new image access.
- project
Id String - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new image access. - region String
- Pool where the image access is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new image access. - status String
- Status of the access:
pending,accepted, orrejected. A new access ispending. - updated
At String - Time when the access was last updated in the RFC 3339 format.
Import
All versions
Use the pulumi import command:
Import the existing image access by the image UUID and the ID of the receiving project.
Set the project that owns the image and its pool.
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/computeImageAccessV2:ComputeImageAccessV2 image_access_1 <image_uuid>/<member_id>
<domain_name>, <username>, and <password> are the arguments of the provider configuration.
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
selectelTerraform Provider.
published on Friday, Oct 30, 2026 by selectel