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

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

:::info

Эта инструкция — копия официальной документации OpenStack Terraform-провайдера в [Terraform Registry](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs).

:::

Manages memberships status for the shared OpenStack Glance V2 Image within the destination project, which has a member proposal.

## Example Usage \{#example-usage}

Accept a shared image membershipship 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 new
  membership.

* `image_id` - (Required) The proposed image ID.

* `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 either be
  `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
```
