hcp organizations iam add-binding

hcp organizations iam add-binding

hcp organizations iam add-binding 명령은 조직에 IAM 정책 바인딩을 추가할 때 사용해요. 이 글에서는 사용법, 예시, 그리고 필수 플래그를 설명해 드릴게요.

출처: 문서

본문

명령: hcp organizations iam add-binding

hcp organizations iam add-binding 명령은 조직에 IAM 정책 바인딩을 추가해요. 바인딩은 지정한 주체(principal)에게 조직에 대한 주어진 역할(role)을 부여해요.

바인딩할 수 있는 역할을 보려면 hcp iam roles list를 실행해요.

사용법 (Usage)

$ hcp organizations iam add-binding --member=PRINCIPAL_ID --role=ROLE_ID [Optional
  Flags]

예시 (Examples)

주체를 roles/viewer 역할에 바인딩해요.

$ hcp organizations iam add-binding \
  --member=ef938a22-09cf-4be9-b4d0-1f4587f80f53 \
  --role=roles/viewer

필수 플래그 (Required flags)

  • --member=PRINCIPAL_ID - 역할 바인딩을 추가할 주체의 ID예요.

  • --role=ROLE_ID - 멤버를 바인딩할 역할 ID(예: "roles/admin", "roles/contributor", "roles/viewer")예요.

더 알아보기 (Learn more)