Method: projects.locations.memberships.validateCreate
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
membership.validateCreate는 membership.create에 대한 실행 전 검사입니다. 다음 사항을 확인합니다. 1. 호출자에게 필요한 gkehub.memberships.create
권한이 있습니다. 2. membershipId는 계속 사용할 수 있습니다.
HTTP 요청
POST https://gkehub.googleapis.com/v1alpha/{parent=projects/*/locations/*}/memberships:validateCreate
URL은 gRPC 트랜스코딩 구문을 사용합니다.
경로 매개변수
매개변수 |
parent |
string
필수 항목입니다. 멤버십이 생성될 상위 요소(프로젝트 및 위치)입니다. 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는 membership.validateCreate 중에 실행되는 각 검사기에서 설정된 결과입니다.
ValidationResult.ValidatorType
열거형 |
VALIDATOR_TYPE_UNSPECIFIED |
UNSPECIFIED 검사기 |
MEMBERSHIP_ID |
MEMBERSHIP_ID 검사기는 membershipId를 계속 사용할 수 있는지를 검증합니다. |
CROSS_PROJECT_PERMISSION |
CROSS_PROJECT_PERMISSION 검사기는 서비스 에이전트의 프로젝트 간 역할 바인딩이 있는지 검증합니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-05-23(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-23(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."]]