Certificate Authority Service와 함께 gRPC 사용

수동으로 만든 gRPC 라이브러리를 사용하여 Certificate Authority Service에 대한 API 호출을 수행하는 경우 x-goog-request-params: '<request-field>:<resource-name>'을 헤더로 추가해야 합니다. x-goog-request-params를 올바르게 사용하면 요청이 CA Service 리소스에 맞는 적절한 리전으로 라우팅됩니다.

다음은 각 요청 필드와 샘플 헤더가 있는 몇 가지 메서드 예시입니다.

메서드: CreateCertificateAuthority
요청 필드: CreateCertificateAuthority.parent

x-goog-request-params: 'parent: projects/PROJECT_ID/locations/LOCATION_ID'
메서드: GetCertificateAuthority
요청 필드: GetCertificateAuthority.name

x-goog-request-params: 'name: projects/PROJECT_ID/locations/LOCATION_ID/certificateAuthorities/CA_NAME'
메서드: UpdateCertificateAuthority
요청 필드: UpdateCertificateAuthority.certificate_authority.name

x-goog-request-params: 'CertificateAuthority.name: projects/PROJECT_ID/locations/LOCATION_ID/certificateAuthorities/CA_NAME'

RPC 메서드와 각 요청 필드의 전체 목록은 Package google.cloud.security.privateca.v1beta1을 참조하세요.

다음 단계