Namespace Pulumi.OpenStack.Images
Classes
GetImage
GetImageArgs
GetImageResult
Image
Manages a V2 Image resource within OpenStack Glance.
Example Usage
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" },
},
});
}
}
Notes
Properties
This resource supports the ability to add properties to a resource during creation as well as add, update, and delete properties during an update of this resource.
Newer versions of OpenStack are adding some read-only properties to each image.
These properties start with the prefix os_. If these properties are detected,
this resource will automatically reconcile these with the user-provided
properties.
In addition, the direct_url property is also automatically reconciled if the
Image Service set it.
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",
});
}
}
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",
});
}
}
ImageAccessAccept
Manages memberships status for the shared OpenStack Glance V2 Image within the destination project, which has a member proposal.
Example Usage
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var rancheros = Output.Create(OpenStack.Images.GetImage.InvokeAsync(new OpenStack.Images.GetImageArgs
{
MemberStatus = "all",
Name = "RancherOS",
Visibility = "shared",
}));
var rancherosMember = new OpenStack.Images.ImageAccessAccept("rancherosMember", new OpenStack.Images.ImageAccessAcceptArgs
{
ImageId = rancheros.Apply(rancheros => rancheros.Id),
Status = "accepted",
});
}
}