Skip to content

Commit d7c8e2b

Browse files
authored
Adding Docs for Datasource google_gke_hub_membership_binding (#15903)
1 parent f318613 commit d7c8e2b

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
subcategory: "GKEHub"
3+
description: |-
4+
Retrieves the details of a GKE Hub Membership Binding.
5+
---
6+
7+
# `google_gke_hub_membership_binding`
8+
9+
Retrieves the details of a specific GKE Hub Membership Binding. Use this data source to retrieve the membership binding's configuration and state.
10+
11+
A membership binding associates a GKE Hub membership with a scope, enabling the membership to participate in fleet-wide configurations and policies defined by the scope.
12+
13+
## Example Usage
14+
15+
```
16+
data "google_gke_hub_membership_binding" "example" {
17+
location = "global"
18+
membership_id = "my-membership-id"
19+
membership_binding_id = "my-membership-binding-id"
20+
project = "my-project-id"
21+
}
22+
```
23+
24+
## Argument Reference
25+
26+
The following arguments are supported:
27+
28+
* `membership_binding_id` - (Required) The ID of the membership binding.
29+
30+
* `membership_id` - (Required) The ID of the membership that this binding applies to.
31+
32+
* `location` - (Required) The location for the GKE Hub Membership Binding.
33+
Currently only `global` is supported.
34+
35+
* `project` - (Optional) The ID of the project in which the resource belongs.
36+
If it is not provided, the provider project is used.
37+
38+
## Attributes Reference
39+
40+
See [google_gke_hub_membership_binding](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/gke_hub_membership_binding) resource for details of the available attributes.

0 commit comments

Comments
 (0)