openstack_images_image_access_accept_v2
These instructions are a copy of the official OpenStack Terraform provider documentation in the Terraform Registry.
Manages memberships status for the shared OpenStack Glance V2 Image within the destination project that has a member proposal.
Example Usage
Accept a shared image membership proposal within the current project.
data "openstack_images_image_v2" "rancheros" {
name = "RancherOS"
visibility = "shared"
member_status = "all"
}
resource "openstack_images_image_access_accept_v2" "rancheros_member" {
image_id = data.openstack_images_image_v2.rancheros.id
status = "accepted"
}
Argument Reference
The following arguments are supported:
-
region— (Optional) The region in which to obtain the V2 Glance client.A Glance client is needed to manage Image memberships. If omitted, theregionargument of the provider is used. Changing this creates a newmembership. -
image_id— (Required) The proposed image ID. -
member_id— (Optional) The member ID, e.g. the target project ID. Optionalfor admin accounts. Defaults to the current scope project ID. -
status— (Required) The membership proposal status. Can either beaccepted,rejectedorpending.
Attributes Reference
The following attributes are exported:
created_at— The date the image membership was created.updated_at— The date the image membership was last updated.schema— The membership schema.
Import
Image access acceptance status can be imported using the image_id, e.g.
$ terraform import openstack_images_image_access_accept_v2 89c60255-9bd6-460c-822a-e2b959ede9d2