---
title: "openstack_images_image_access_accept_v2"
description: ""
sidebar_position: 1
---

# openstack\_images\_image\_access\_accept\_v2

:::info

This instruction is a copy of the official OpenStack Terraform provider documentation in the [Terraform Registry](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs).

:::

Manages the membership status for a shared OpenStack Glance V2 Image within the destination project that has a pending member proposal.

## Example Usage \{#example-usage}

Accept a shared image membership proposal within the current project.

```hcl
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 \{#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, the `region` argument of the provider is used. Changing this creates a newmembership.

* `image_id` - (Required) The ID of the image for which access is being proposed.

* `member_id` - (Optional) The member ID, e.g. the target project ID. Optional for admin accounts. Defaults to the current scope project ID.

* `status` - (Required) The membership proposal status. Can be either `accepted`, `rejected`, or `pending`.

## Attributes Reference \{#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 \{#import}

Image access acceptance status can be imported using the `image_id`, e.g.

```bash
$ terraform import openstack_images_image_access_accept_v2 89c60255-9bd6-460c-822a-e2b959ede9d2
```
