Class 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",
});
}
}
Inherited Members
Namespace: Pulumi.OpenStack.Images
Assembly: Pulumi.OpenStack.dll
Syntax
public class ImageAccessAccept : CustomResource
Constructors
View SourceImageAccessAccept(String, ImageAccessAcceptArgs, CustomResourceOptions)
Create a ImageAccessAccept resource with the given unique name, arguments, and options.
Declaration
public ImageAccessAccept(string name, ImageAccessAcceptArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ImageAccessAcceptArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCreatedAt
The date the image membership was created.
Declaration
public Output<string> CreatedAt { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ImageId
The proposed image ID.
Declaration
public Output<string> ImageId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MemberId
The member ID, e.g. the target project ID. Optional for admin accounts. Defaults to the current scope project ID.
Declaration
public Output<string> MemberId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Region
The region in which to obtain the V2 Glance client.
A Glance client is needed to manage Image memberships. If omitted, the
region argument of the provider is used. Changing this creates a new
membership.
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Schema
The membership schema.
Declaration
public Output<string> Schema { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Status
The membership proposal status. Can either be
accepted, rejected or pending.
Declaration
public Output<string> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UpdatedAt
The date the image membership was last updated.
Declaration
public Output<string> UpdatedAt { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ImageAccessAcceptState, CustomResourceOptions)
Get an existing ImageAccessAccept resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ImageAccessAccept Get(string name, Input<string> id, ImageAccessAcceptState 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. |
| ImageAccessAcceptState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ImageAccessAccept |