Method: projects.locations.memberships.validateCreate
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
memberships.validateCreate は、memberships.create のプリフライト チェックです。次の点を確認します。1. 呼び出し元には必要な gkehub.memberships.create
権限がある。2. membershipId は引き続き使用できます。
HTTP リクエスト
POST https://gkehub.googleapis.com/v1alpha/{parent=projects/*/locations/*}/memberships:validateCreate
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
必須。Membership が作成される親(プロジェクトとロケーション)。projects/*/locations/* の形式で指定します。
認可には、指定されたリソース parent に対する次の IAM の権限が必要です。
gkehub.memberships.create
|
リクエストの本文
リクエストの本文には、次の構造のデータが含まれます。
JSON 表現 |
{
"membershipId": string,
"membership": {
object (Membership )
}
} |
フィールド |
membershipId |
string
必須。クライアントが選択したメンバーシップ ID。
|
membership |
object (Membership )
必須。作成するメンバーシップ リソース。
|
レスポンスの本文
GkeHub.ValidateCreateMembership
メソッドに対するレスポンス メッセージ。
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
フィールド |
validationResults[] |
object (ValidationResult )
すべてのバリデータの結果をラップします。
|
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/cloud-platform
詳細については、認証の概要をご覧ください。
ValidationResult
ValidationResults は、memberships.validateCreate の実行中にバリデータによって設定される結果です。
ValidationResult.ValidatorType
列挙型 |
VALIDATOR_TYPE_UNSPECIFIED |
UNSPECIFIED バリデータ。 |
MEMBERSHIP_ID |
MEMBERSHIP_ID バリデータは、membershipId がまだ使用可能であることを検証します。 |
CROSS_PROJECT_PERMISSION |
CROSS_PROJECT_PERMISSION バリデータは、サービス エージェントのプロジェクト間ロール バインディングが存在することを検証します。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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.validateCreate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ValidateCreateMembershipResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [ValidationResult](#ValidationResult)\n - [JSON representation](#ValidationResult.SCHEMA_REPRESENTATION)\n- [ValidationResult.ValidatorType](#ValidationResult.ValidatorType)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nmemberships.validateCreate is a preflight check for memberships.create. It checks the following: 1. Caller has the required `gkehub.memberships.create` permission. 2. The membershipId is still available.\n\n### HTTP request\n\n`POST https://gkehub.googleapis.com/v1alpha/{parent=projects/*/locations/*}/memberships:validateCreate`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nResponse message for the `GkeHub.ValidateCreateMembership` method.\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).\n\nValidationResult\n----------------\n\nValidationResults are results set by each validator running during memberships.validateCreate.\n\nValidationResult.ValidatorType\n------------------------------\n\nSpecifies different types of validation."]]