Method: projects.locations.memberships.generateExclusivityManifest
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
langganan.generateExclusivityManifest menghasilkan manifes untuk memperbarui artefak eksklusivitas di cluster jika diperlukan.
Artefak eksklusivitas mencakup definisi resource kustom (CRD) Keanggotaan dan resource kustom Keanggotaan (CR) singleton. Dikombinasikan dengan membership.validateExclusivity, artefak eksklusivitas menjamin bahwa cluster Kubernetes hanya didaftarkan ke satu GKE Hub.
CRD Keanggotaan memiliki versi, dan mungkin memerlukan konversi saat server GKE Hub API mulai menyajikan versi CRD yang lebih baru dan CR yang terkait. Responsnya akan berupa CRD dan CR yang dikonversi jika ada perbedaan di antara kedua versi.
Permintaan HTTP
GET https://gkehub.googleapis.com/v1beta1/{name=projects/*/locations/*/memberships/*}:generateExclusivityManifest
URL menggunakan sintaks gRPC Transcoding.
Parameter jalur
Parameter |
name |
string
Wajib. Nama resource Keanggotaan dalam format projects/*/locations/*/memberships/* .
Otorisasi memerlukan izin IAM berikut pada resource name yang ditentukan:
gkehub.memberships.generateConnectManifest
|
Parameter kueri
Parameter |
crdManifest |
string
Opsional. Manifes YAML dari CRD keanggotaan yang diambil oleh kubectl get customresourcedefinitions membership . Biarkan kosong jika resource tidak ada.
|
crManifest |
string
Opsional. Manifes YAML dari CR keanggotaan yang diambil oleh kubectl get memberships membership . Biarkan kosong jika resource tidak ada.
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Respons manifes artefak eksklusivitas untuk diterapkan oleh klien.
Jika berhasil, isi respons memuat data dengan struktur berikut:
Representasi JSON |
{
"crdManifest": string,
"crManifest": string
} |
Kolom |
crdManifest |
string
Manifes YAML dari CRD keanggotaan yang akan diterapkan jika versi CRD yang lebih baru tersedia. Kosong jika tidak ada update yang perlu diterapkan.
|
crManifest |
string
Manifes YAML dari CR keanggotaan yang akan diterapkan jika versi CR baru tersedia. Kosong jika tidak ada update yang perlu diterapkan.
|
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/cloud-platform
Untuk informasi selengkapnya, lihat Ringkasan Autentikasi.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-04-19 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-04-19 UTC."],[],[],null,["# Method: projects.locations.memberships.generateExclusivityManifest\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.GenerateExclusivityManifestResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nmemberships.generateExclusivityManifest generates the manifests to update the exclusivity artifacts in the cluster if needed.\n\nExclusivity artifacts include the Membership custom resource definition (CRD) and the singleton Membership custom resource (CR). Combined with memberships.validateExclusivity, exclusivity artifacts guarantee that a Kubernetes cluster is only registered to a single GKE Hub.\n\nThe Membership CRD is versioned, and may require conversion when the GKE Hub API server begins serving a newer version of the CRD and corresponding CR. The response will be the converted CRD and CR if there are any differences between the versions.\n\n### HTTP request\n\n`GET https://gkehub.googleapis.com/v1beta1/{name=projects/*/locations/*/memberships/*}:generateExclusivityManifest`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nThe response of the exclusivity artifacts manifests for the client to apply.\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]