Show / Hide Table of Contents

Class 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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ImageAccess
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.OpenStack.Images
Assembly: Pulumi.OpenStack.dll
Syntax
public class ImageAccess : CustomResource

Constructors

View Source

ImageAccess(String, ImageAccessArgs, CustomResourceOptions)

Create a ImageAccess resource with the given unique name, arguments, and options.

Declaration
public ImageAccess(string name, ImageAccessArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ImageAccessArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

CreatedAt

The date the image access was created.

Declaration
public Output<string> CreatedAt { get; }
Property Value
Type Description
Output<System.String>
View Source

ImageId

The image ID.

Declaration
public Output<string> ImageId { get; }
Property Value
Type Description
Output<System.String>
View Source

MemberId

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

Declaration
public Output<string> MemberId { get; }
Property Value
Type Description
Output<System.String>
View Source

Region

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.

Declaration
public Output<string> Region { get; }
Property Value
Type Description
Output<System.String>
View Source

Schema

The member schema.

Declaration
public Output<string> Schema { get; }
Property Value
Type Description
Output<System.String>
View Source

Status

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.

Declaration
public Output<string> Status { get; }
Property Value
Type Description
Output<System.String>
View Source

UpdatedAt

The date the image access was last updated.

Declaration
public Output<string> UpdatedAt { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, ImageAccessState, CustomResourceOptions)

Get an existing ImageAccess resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ImageAccess Get(string name, Input<string> id, ImageAccessState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ImageAccessState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ImageAccess
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.