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
new ImageAccessAccept(name: string, args: ImageAccessAcceptArgs, opts?: CustomResourceOptions);def ImageAccessAccept(resource_name, opts=None, image_id=None, member_id=None, region=None, status=None, __props__=None);func NewImageAccessAccept(ctx *Context, name string, args ImageAccessAcceptArgs, opts ...ResourceOption) (*ImageAccessAccept, error)public ImageAccessAccept(string name, ImageAccessAcceptArgs args, CustomResourceOptions? opts = null)- 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:
- Image
Id string The proposed image ID.
- Status string
The membership proposal status. Can either be
accepted,rejectedorpending.- Member
Id 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
regionargument of the provider is used. Changing this creates a new membership.
- Image
Id string The proposed image ID.
- Status string
The membership proposal status. Can either be
accepted,rejectedorpending.- Member
Id 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
regionargument of the provider is used. Changing this creates a new membership.
- image
Id string The proposed image ID.
- status string
The membership proposal status. Can either be
accepted,rejectedorpending.- member
Id 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
regionargument 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,rejectedorpending.- 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
regionargument 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:
- 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): ImageAccessAcceptstatic 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:
- Created
At string The date the image membership was created.
- Image
Id string The proposed image ID.
- Member
Id 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
regionargument 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,rejectedorpending.- Updated
At string The date the image membership was last updated.
- Created
At string The date the image membership was created.
- Image
Id string The proposed image ID.
- Member
Id 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
regionargument 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,rejectedorpending.- Updated
At string The date the image membership was last updated.
- created
At string The date the image membership was created.
- image
Id string The proposed image ID.
- member
Id 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
regionargument 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,rejectedorpending.- updated
At 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
regionargument 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,rejectedorpending.- 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
openstackTerraform Provider.