---
title: "openstack_sharedfilesystem_snapshot_v2"
description: ""
sidebar_position: 4
---

# openstack\_sharedfilesystem\_snapshot\_v2

:::info

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

:::

Use this data source to get the ID of an available Shared File System snapshot.

## Example Usage \{#example-usage}

```hcl
data "openstack_sharedfilesystem_snapshot_v2" "snapshot_1" {
  name = "snapshot_1"
}
```

## Argument Reference \{#argument-reference}

* `region` - (Optional) The region in which to obtain the V2 Shared File System client.

* `name` - (Optional) The name of the snapshot.

* `description` - (Optional) The human-readable description of the snapshot.

* `project_id` - (Optional) The owner of the snapshot.

* `status` - (Optional) A snapshot status filter. A valid value is `available`, `error`,
  `creating`, `deleting`, `manage_starting`, `manage_error`, `unmanage_starting`,
  `unmanage_error` or `error_deleting`.

## Attributes Reference \{#attributes-reference}

`id` is set to the ID of the found snapshot. In addition, the following attributes
are exported:

* `name` - See Argument Reference above.
* `description` - See Argument Reference above.
* `project_id` - See Argument Reference above.
* `status` - See Argument Reference above.
* `size` - The snapshot size, in GBs.
* `share_id` - The UUID of the source share that was used to create the snapshot.
* `share_proto` - The file system protocol of a share snapshot.
* `share_size` - The share snapshot size, in GBs.
