# Using gRPC with Certificate Authority Service

If you are using manually created [gRPC](https://grpc.io/) libraries to make API calls to Certificate Authority Service, you must add `x-goog-request-params: '<request-field>:<resource-name>'` as a header. The proper use of `x-goog-request-params` ensures that the request is routed to the appropriate region for your CA Service resources.

Given below are a few examples of methods with their respective request field and sample header.

|---|
| **Method** : [CreateCertificateAuthority](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rpc/google.cloud.security.privateca.v1beta1#createcertificateauthorityrequest) **Request field** : [CreateCertificateAuthority.parent](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rpc/google.cloud.security.privateca.v1beta1#google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.FIELDS.string.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.parent) ``` x-goog-request-params: 'parent: projects/PROJECT_ID/locations/LOCATION_ID' ``` |
| **Method** : [GetCertificateAuthority](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rpc/google.cloud.security.privateca.v1beta1#getcertificateauthorityrequest) **Request field** : [GetCertificateAuthority.name](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rpc/google.cloud.security.privateca.v1beta1#google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.FIELDS.string.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.name) ``` x-goog-request-params: 'name: projects/PROJECT_ID/locations/LOCATION_ID/certificateAuthorities/CA_NAME' ``` |
| **Method** : [UpdateCertificateAuthority](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rpc/google.cloud.security.privateca.v1beta1#updatecertificateauthorityrequest) **Request field** : [UpdateCertificateAuthority.certificate_authority.name](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rpc/google.cloud.security.privateca.v1beta1#google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.FIELDS.google.cloud.security.privateca.v1beta1.CertificateAuthority.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.certificate_authority) ``` x-goog-request-params: 'CertificateAuthority.name: projects/PROJECT_ID/locations/LOCATION_ID/certificateAuthorities/CA_NAME' ``` |

<br />

For the complete list of RPC methods and their respective request fields, see [Package google.cloud.security.privateca.v1beta1](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rpc/google.cloud.security.privateca.v1beta1).

## What's next

- [Cloud APIs: gRPC APIs](https://docs.cloud.google.com/apis/docs/client-libraries-explained#grpc_apis)
- [RPC Reference](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rpc)