WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
subcategory: "GKEHub"
description: |-
Retrieves the details of a GKE Hub Membership Binding.
---

# `google_gke_hub_membership_binding`

Retrieves the details of a specific GKE Hub Membership Binding. Use this data source to retrieve the membership binding's configuration and state.

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.

## Example Usage

```
data "google_gke_hub_membership_binding" "example" {
location = "global"
membership_id = "my-membership-id"
membership_binding_id = "my-membership-binding-id"
project = "my-project-id"
}
```

## Argument Reference

The following arguments are supported:

* `membership_binding_id` - (Required) The ID of the membership binding.

* `membership_id` - (Required) The ID of the membership that this binding applies to.

* `location` - (Required) The location for the GKE Hub Membership Binding.
Currently only `global` is supported.

* `project` - (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.

## Attributes Reference

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.
Loading