使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将 gRPC 与 Certificate Authority Service 搭配使用
如果您使用手动创建的 gRPC 库向 Certificate Authority Service 发出 API 调用,则必须将 x-goog-request-params: '<request-field>:<resource-name>'
添加为标头。正确使用 x-goog-request-params
可确保将请求路由到适用于您的 CA Service 资源的区域。
以下是一些方法示例及其相应的请求字段和示例标头。
如需查看 RPC 方法及其各自请求字段的完整列表,请参阅软件包 google.cloud.security.privateca.v1beta1。
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-12。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-12。"],[[["\u003cp\u003eWhen using manually created gRPC libraries to call the Certificate Authority Service API, you must include the \u003ccode\u003ex-goog-request-params\u003c/code\u003e header.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ex-goog-request-params\u003c/code\u003e header, in the format of \u003ccode\u003e<request-field>:<resource-name>\u003c/code\u003e, is necessary to ensure requests are routed to the correct region for your CA Service resources.\u003c/p\u003e\n"],["\u003cp\u003eSpecific request fields vary by method, for example, \u003ccode\u003eCreateCertificateAuthority\u003c/code\u003e uses the 'parent' field, while \u003ccode\u003eGetCertificateAuthority\u003c/code\u003e uses the 'name' field.\u003c/p\u003e\n"],["\u003cp\u003eFor the full list of RPC methods and their corresponding request fields, consult the \u003ccode\u003egoogle.cloud.security.privateca.v1beta1\u003c/code\u003e package documentation.\u003c/p\u003e\n"]]],[],null,["# Using gRPC with Certificate Authority Service\n=============================================\n\nIf 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: '\u003crequest-field\u003e:\u003cresource-name\u003e'` 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.\n\nGiven below are a few examples of methods with their respective request field and sample header.\n\n\u003cbr /\u003e\n\nFor the complete list of RPC methods and their respective request fields, see [Package google.cloud.security.privateca.v1beta1](/certificate-authority-service/docs/reference/rpc/google.cloud.security.privateca.v1beta1).\n\nWhat's next\n-----------\n\n- [Cloud APIs: gRPC APIs](/apis/docs/client-libraries-explained#grpc_apis)\n- [RPC Reference](/certificate-authority-service/docs/reference/rpc)"]]