ImageAccess

Manages members for the shared OpenStack Glance V2 Image within the source project, which owns the Image.

Example Usage

Unprivileged user

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var rancheros = new OpenStack.Images.Image("rancheros", new OpenStack.Images.ImageArgs
        {
            ContainerFormat = "bare",
            DiskFormat = "qcow2",
            ImageSourceUrl = "https://releases.rancher.com/os/latest/rancheros-openstack.img",
            Properties = 
            {
                { "key", "value" },
            },
            Visibility = "shared",
        });
        var rancherosMember = new OpenStack.Images.ImageAccess("rancherosMember", new OpenStack.Images.ImageAccessArgs
        {
            ImageId = rancheros.Id,
            MemberId = "bed6b6cbb86a4e2d8dc2735c2f1000e4",
        });
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

rancheros = openstack.images.Image("rancheros",
    container_format="bare",
    disk_format="qcow2",
    image_source_url="https://releases.rancher.com/os/latest/rancheros-openstack.img",
    properties={
        "key": "value",
    },
    visibility="shared")
rancheros_member = openstack.images.ImageAccess("rancherosMember",
    image_id=rancheros.id,
    member_id="bed6b6cbb86a4e2d8dc2735c2f1000e4")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const rancheros = new openstack.images.Image("rancheros", {
    containerFormat: "bare",
    diskFormat: "qcow2",
    imageSourceUrl: "https://releases.rancher.com/os/latest/rancheros-openstack.img",
    properties: {
        key: "value",
    },
    visibility: "shared",
});
const rancherosMember = new openstack.images.ImageAccess("rancheros_member", {
    imageId: rancheros.id,
    memberId: "bed6b6cbb86a4e2d8dc2735c2f1000e4",
});

Privileged user

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var rancheros = new OpenStack.Images.Image("rancheros", new OpenStack.Images.ImageArgs
        {
            ContainerFormat = "bare",
            DiskFormat = "qcow2",
            ImageSourceUrl = "https://releases.rancher.com/os/latest/rancheros-openstack.img",
            Properties = 
            {
                { "key", "value" },
            },
            Visibility = "shared",
        });
        var rancherosMember = new OpenStack.Images.ImageAccess("rancherosMember", new OpenStack.Images.ImageAccessArgs
        {
            ImageId = rancheros.Id,
            MemberId = "bed6b6cbb86a4e2d8dc2735c2f1000e4",
            Status = "accepted",
        });
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

rancheros = openstack.images.Image("rancheros",
    container_format="bare",
    disk_format="qcow2",
    image_source_url="https://releases.rancher.com/os/latest/rancheros-openstack.img",
    properties={
        "key": "value",
    },
    visibility="shared")
rancheros_member = openstack.images.ImageAccess("rancherosMember",
    image_id=rancheros.id,
    member_id="bed6b6cbb86a4e2d8dc2735c2f1000e4",
    status="accepted")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const rancheros = new openstack.images.Image("rancheros", {
    containerFormat: "bare",
    diskFormat: "qcow2",
    imageSourceUrl: "https://releases.rancher.com/os/latest/rancheros-openstack.img",
    properties: {
        key: "value",
    },
    visibility: "shared",
});
const rancherosMember = new openstack.images.ImageAccess("rancheros_member", {
    imageId: rancheros.id,
    memberId: "bed6b6cbb86a4e2d8dc2735c2f1000e4",
    status: "accepted",
});

Create a ImageAccess Resource

def ImageAccess(resource_name, opts=None, image_id=None, member_id=None, region=None, status=None, __props__=None);
func NewImageAccess(ctx *Context, name string, args ImageAccessArgs, opts ...ResourceOption) (*ImageAccess, error)
public ImageAccess(string name, ImageAccessArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ImageAccessArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ImageAccessArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ImageAccessArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ImageAccess Resource Properties

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

Inputs

The ImageAccess resource accepts the following input properties:

ImageId string

The image ID.

MemberId string

The member ID, e.g. the target project ID.

Region string

The region in which to obtain the V2 Glance client. A Glance client is needed to manage Image members. If omitted, the region argument of the provider is used. Changing this creates a new resource.

Status string

The member proposal status. Optional if admin wants to force the member proposal acceptance. Can either be accepted, rejected or pending. Defaults to pending. Foridden for non-admin users.

ImageId string

The image ID.

MemberId string

The member ID, e.g. the target project ID.

Region string

The region in which to obtain the V2 Glance client. A Glance client is needed to manage Image members. If omitted, the region argument of the provider is used. Changing this creates a new resource.

Status string

The member proposal status. Optional if admin wants to force the member proposal acceptance. Can either be accepted, rejected or pending. Defaults to pending. Foridden for non-admin users.

imageId string

The image ID.

memberId string

The member ID, e.g. the target project ID.

region string

The region in which to obtain the V2 Glance client. A Glance client is needed to manage Image members. If omitted, the region argument of the provider is used. Changing this creates a new resource.

status string

The member proposal status. Optional if admin wants to force the member proposal acceptance. Can either be accepted, rejected or pending. Defaults to pending. Foridden for non-admin users.

image_id str

The image ID.

member_id str

The member ID, e.g. the target project ID.

region str

The region in which to obtain the V2 Glance client. A Glance client is needed to manage Image members. If omitted, the region argument of the provider is used. Changing this creates a new resource.

status str

The member proposal status. Optional if admin wants to force the member proposal acceptance. Can either be accepted, rejected or pending. Defaults to pending. Foridden for non-admin users.

Outputs

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

CreatedAt string

The date the image access was created.

Id string
The provider-assigned unique ID for this managed resource.
Schema string

The member schema.

UpdatedAt string

The date the image access was last updated.

CreatedAt string

The date the image access was created.

Id string
The provider-assigned unique ID for this managed resource.
Schema string

The member schema.

UpdatedAt string

The date the image access was last updated.

createdAt string

The date the image access was created.

id string
The provider-assigned unique ID for this managed resource.
schema string

The member schema.

updatedAt string

The date the image access was last updated.

created_at str

The date the image access was created.

id str
The provider-assigned unique ID for this managed resource.
schema str

The member schema.

updated_at str

The date the image access was last updated.

Look up an Existing ImageAccess Resource

Get an existing ImageAccess 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?: ImageAccessState, opts?: CustomResourceOptions): ImageAccess
static get(resource_name, id, opts=None, created_at=None, image_id=None, member_id=None, region=None, schema=None, status=None, updated_at=None, __props__=None);
func GetImageAccess(ctx *Context, name string, id IDInput, state *ImageAccessState, opts ...ResourceOption) (*ImageAccess, error)
public static ImageAccess Get(string name, Input<string> id, ImageAccessState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

CreatedAt string

The date the image access was created.

ImageId string

The image ID.

MemberId string

The member ID, e.g. the target project ID.

Region string

The region in which to obtain the V2 Glance client. A Glance client is needed to manage Image members. If omitted, the region argument of the provider is used. Changing this creates a new resource.

Schema string

The member schema.

Status string

The member proposal status. Optional if admin wants to force the member proposal acceptance. Can either be accepted, rejected or pending. Defaults to pending. Foridden for non-admin users.

UpdatedAt string

The date the image access was last updated.

CreatedAt string

The date the image access was created.

ImageId string

The image ID.

MemberId string

The member ID, e.g. the target project ID.

Region string

The region in which to obtain the V2 Glance client. A Glance client is needed to manage Image members. If omitted, the region argument of the provider is used. Changing this creates a new resource.

Schema string

The member schema.

Status string

The member proposal status. Optional if admin wants to force the member proposal acceptance. Can either be accepted, rejected or pending. Defaults to pending. Foridden for non-admin users.

UpdatedAt string

The date the image access was last updated.

createdAt string

The date the image access was created.

imageId string

The image ID.

memberId string

The member ID, e.g. the target project ID.

region string

The region in which to obtain the V2 Glance client. A Glance client is needed to manage Image members. If omitted, the region argument of the provider is used. Changing this creates a new resource.

schema string

The member schema.

status string

The member proposal status. Optional if admin wants to force the member proposal acceptance. Can either be accepted, rejected or pending. Defaults to pending. Foridden for non-admin users.

updatedAt string

The date the image access was last updated.

created_at str

The date the image access was created.

image_id str

The image ID.

member_id str

The member ID, e.g. the target project ID.

region str

The region in which to obtain the V2 Glance client. A Glance client is needed to manage Image members. If omitted, the region argument of the provider is used. Changing this creates a new resource.

schema str

The member schema.

status str

The member proposal status. Optional if admin wants to force the member proposal acceptance. Can either be accepted, rejected or pending. Defaults to pending. Foridden for non-admin users.

updated_at str

The date the image access was last updated.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.