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 メソッドとそれぞれのリクエスト フィールドの全一覧については、パッケージ google.cloud.security.privateca.v1beta1 をご覧ください。

次のステップ