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

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

rancheros = openstack.images.get_image(member_status="all",
    name="RancherOS",
    visibility="shared")
rancheros_member = openstack.images.ImageAccessAccept("rancherosMember",
    image_id=rancheros.id,
    status="accepted")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const rancheros = pulumi.output(openstack.images.getImage({
    memberStatus: "all",
    name: "RancherOS",
    visibility: "shared",
}, { async: true }));
const rancherosMember = new openstack.images.ImageAccessAccept("rancheros_member", {
    imageId: rancheros.id,
    status: "accepted",
});

Create a ImageAccessAccept Resource

def ImageAccessAccept(resource_name, opts=None, image_id=None, member_id=None, region=None, status=None, __props__=None);
name string
The unique name of the resource.
args ImageAccessAcceptArgs
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 ImageAccessAcceptArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ImageAccessAcceptArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ImageAccessAccept Resource Properties

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

Inputs

The ImageAccessAccept resource accepts the following input properties:

ImageId string

The proposed image ID.

Status string

The membership proposal status. Can either be accepted, rejected or pending.

MemberId string

The member ID, e.g. the target project ID. Optional for admin accounts. Defaults to the current scope project ID.

Region string

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.

ImageId string

The proposed image ID.

Status string

The membership proposal status. Can either be accepted, rejected or pending.

MemberId string

The member ID, e.g. the target project ID. Optional for admin accounts. Defaults to the current scope project ID.

Region string

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.

imageId string

The proposed image ID.

status string

The membership proposal status. Can either be accepted, rejected or pending.

memberId string

The member ID, e.g. the target project ID. Optional for admin accounts. Defaults to the current scope project ID.

region string

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.

image_id str

The proposed image ID.

status str

The membership proposal status. Can either be accepted, rejected or pending.

member_id str

The member ID, e.g. the target project ID. Optional for admin accounts. Defaults to the current scope project ID.

region str

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.

Outputs

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

CreatedAt string

The date the image membership was created.

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

The membership schema.

UpdatedAt string

The date the image membership was last updated.

CreatedAt string

The date the image membership was created.

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

The membership schema.

UpdatedAt string

The date the image membership was last updated.

createdAt string

The date the image membership was created.

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

The membership schema.

updatedAt string

The date the image membership was last updated.

created_at str

The date the image membership was created.

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

The membership schema.

updated_at str

The date the image membership was last updated.

Look up an Existing ImageAccessAccept Resource

Get an existing ImageAccessAccept 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?: ImageAccessAcceptState, opts?: CustomResourceOptions): ImageAccessAccept
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 GetImageAccessAccept(ctx *Context, name string, id IDInput, state *ImageAccessAcceptState, opts ...ResourceOption) (*ImageAccessAccept, error)
public static ImageAccessAccept Get(string name, Input<string> id, ImageAccessAcceptState? 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 membership was created.

ImageId string

The proposed image ID.

MemberId string

The member ID, e.g. the target project ID. Optional for admin accounts. Defaults to the current scope project ID.

Region string

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.

Schema string

The membership schema.

Status string

The membership proposal status. Can either be accepted, rejected or pending.

UpdatedAt string

The date the image membership was last updated.

CreatedAt string

The date the image membership was created.

ImageId string

The proposed image ID.

MemberId string

The member ID, e.g. the target project ID. Optional for admin accounts. Defaults to the current scope project ID.

Region string

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.

Schema string

The membership schema.

Status string

The membership proposal status. Can either be accepted, rejected or pending.

UpdatedAt string

The date the image membership was last updated.

createdAt string

The date the image membership was created.

imageId string

The proposed image ID.

memberId string

The member ID, e.g. the target project ID. Optional for admin accounts. Defaults to the current scope project ID.

region string

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.

schema string

The membership schema.

status string

The membership proposal status. Can either be accepted, rejected or pending.

updatedAt string

The date the image membership was last updated.

created_at str

The date the image membership was created.

image_id str

The proposed image ID.

member_id str

The member ID, e.g. the target project ID. Optional for admin accounts. Defaults to the current scope project ID.

region str

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.

schema str

The membership schema.

status str

The membership proposal status. Can either be accepted, rejected or pending.

updated_at str

The date the image membership 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.