Method: projects.locations.memberships.validateExclusivity
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
memberships.validateExclusivity は、クラスタ内の排他性の状態を検証します。検証は、既存のハブ メンバーシップ リソースに依存しません。
HTTP リクエスト
GET https://gkehub.googleapis.com/v1beta1/{parent=projects/*/locations/*}/memberships:validateExclusivity
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
必須。Membership が作成される親(プロジェクトとロケーション)。projects/*/locations/* の形式で指定します。
認可には、指定されたリソース parent に対する次の IAM の権限が必要です。
gkehub.memberships.generateConnectManifest
|
クエリ パラメータ
パラメータ |
crManifest |
string
省略可。クラスタ内のメンバーシップ CR の YAML。メンバーシップ CR が存在しない場合は空です。
|
intendedMembership |
string
必須。parent の下にある指定されたメンバーシップ名。このメソッドは、同じ名前の memberships.create 呼び出しを想定して検証のみを行います。
|
リクエストの本文
リクエストの本文は空にする必要があります。
レスポンスの本文
独占的アーティファクトの検証結果ステータスのレスポンス。
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
JSON 表現 |
{
"status": {
object (Status )
}
} |
フィールド |
status |
object (Status )
検証結果。
OK は、memberships.generateExclusivityManifest によって生成されたマニフェストが正常に適用されたと仮定して、排他性が検証されていることを意味します。
ALREADY_EXISTS は、Membership CRD が別のハブによってすでに所有されていることを意味します。詳細については、status.message をご覧ください。
|
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/cloud-platform
詳細については、認証の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-05-16 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-05-16 UTC。"],[],[],null,["# Method: projects.locations.memberships.validateExclusivity\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.ValidateExclusivityResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nmemberships.validateExclusivity validates the state of exclusivity in the cluster. The validation does not depend on an existing Hub membership resource.\n\n### HTTP request\n\n`GET https://gkehub.googleapis.com/v1beta1/{parent=projects/*/locations/*}/memberships:validateExclusivity`\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 exclusivity artifacts validation result status.\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)."]]